/* Dosa Tycoon — windows.css
 * The management windows (js/ui-windows.js): one cream-paper window at a time, anchored at
 * (16, 80) in the 1600×900 stage and never larger than 1210×730. Thick ink outlines, hard
 * offset shadows, display type for headings and the numbers that matter. */

.dtw-root {
  --ink: var(--c-ink, #3A1F12);
  --paper: #FFF8E7;
  --paper-2: #FBEBC8;
  --card: #FFFDF5;
  --line: rgba(58, 31, 18, .16);
  --muted: #7A5A44;
  --good: #1F7A32;
  --good-bg: #D9F2C6;
  --warn: #8A5200;
  --warn-bg: #FFE3A3;
  --bad: #B00D26;
  --bad-bg: #FFD3CC;
  --fair: #0A6464;
  --fair-bg: #D6F0EE;
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 900px;
  pointer-events: none;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.dtw-root .is-hidden { display: none !important; }

/* ---------- frame ---------- */

.dtw-window {
  position: absolute;
  left: 16px;
  top: 80px;
  width: 1210px;
  max-width: 1210px;
  max-height: 730px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background:
    var(--kolam-ink) 0 0 / 140px 140px,
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 4px solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 7px 0 var(--ink), 0 20px 36px rgba(30, 8, 4, .38);
  overflow: hidden;
  transform-origin: 0 0;
}

.dtw-window.is-open { animation: dtw-pop .18s var(--ease-out-back, ease-out) both; }
.dtw-window.is-swap { animation: dtw-fade-in .15s ease-out both; }
.dtw-window.is-leaving { animation: dtw-fade-out .15s ease-in both; pointer-events: none; z-index: 2; }

@keyframes dtw-pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes dtw-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dtw-fade-out { from { opacity: 1; } to { opacity: 0; } }

.dtw-window--staff { width: 1160px; }
.dtw-window--research { width: 1150px; }
.dtw-window--marketing { width: 1150px; }
.dtw-window--report { width: 880px; }

.dtw-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 12px 4px 12px;
  background: linear-gradient(180deg, #D4183A 0%, var(--c-kumkum, #C8102E) 45%, var(--c-maroon, #8E1B2D) 100%);
  border-bottom: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), inset 0 -4px 0 var(--c-turmeric, #F5B301);
}

.dtw-head__icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 4px;
  background: var(--c-cream, #FFF4DC);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(58, 31, 18, .55);
}

.dtw-head__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-synthesis: none;
  font-size: 31px;
  line-height: 1;
  letter-spacing: .6px;
  color: var(--c-turmeric, #F5B301);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
}

.dtw-scope {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 330px;
  height: 38px;
  padding: 0 14px 1px 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  background: var(--c-cream, #FFF4DC);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(58, 31, 18, .55);
}
.dtw-scope.is-company { background: var(--c-turmeric, #F5B301); }
.dtw-scope__badge { flex: none; width: 28px; height: 28px; }
.dtw-scope__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }

.dtw-close {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 7px;
  background: linear-gradient(180deg, #FFFDF5, #F6E6C3);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 #D6BD8B, 0 4px 0 var(--ink);
  transition: transform .08s ease-out, box-shadow .08s ease-out, filter .12s;
}
.dtw-close:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 -4px 0 #D6BD8B, 0 5px 0 var(--ink); }
.dtw-close:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 #D6BD8B, 0 1px 0 var(--ink); }
.dtw-close__x { display: block; width: 100%; height: 100%; }

.dtw-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.dtw-window button:focus-visible,
.dtw-window select:focus-visible { outline: 3px solid var(--c-teal, #0E8C8C); outline-offset: 2px; }

/* chunky scrollbars */
.dtw-scroll, .dtw-body { overscroll-behavior: contain; }
.dtw-scroll { scrollbar-gutter: stable; }
.dtw-scroll::-webkit-scrollbar, .dtw-body::-webkit-scrollbar { width: 14px; height: 14px; }
.dtw-scroll::-webkit-scrollbar-track, .dtw-body::-webkit-scrollbar-track { background: #EFDCB1; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(58, 31, 18, .3); }
.dtw-scroll::-webkit-scrollbar-thumb, .dtw-body::-webkit-scrollbar-thumb { background: var(--c-gold, #E8A33D); border: 3px solid var(--ink); border-radius: 8px; }
.dtw-scroll::-webkit-scrollbar-thumb:hover, .dtw-body::-webkit-scrollbar-thumb:hover { background: var(--c-marigold, #FF9A1F); }
.dtw-scroll::-webkit-scrollbar-corner, .dtw-body::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .dtw-scroll, .dtw-body { scrollbar-width: thin; scrollbar-color: #A8651E #EFDCB1; }
}

/* ---------- floating feedback ---------- */

.dtw-tip, .dtw-nope {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  max-width: 340px;
  padding: 7px 12px 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
.dtw-tip { color: var(--c-cream, #FFF4DC); background: #4A2C1A; }
.dtw-tip b { color: var(--c-turmeric, #F5B301); }
.dtw-tip .is-pos { color: #9BE27A; }
.dtw-tip .is-neg { color: #FF9C8E; }
.dtw-tip.is-on { visibility: visible; opacity: 1; transition: opacity .1s ease-out; }
.dtw-nope { z-index: 6; color: #fff; background: var(--c-kumkum, #C8102E); white-space: nowrap; }
.dtw-nope.is-soft { color: var(--ink); background: var(--c-turmeric, #F5B301); }
.dtw-nope.is-on { visibility: visible; opacity: 1; animation: dtw-nope-in .16s var(--ease-out-back, ease-out) both; }
@keyframes dtw-nope-in { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

.dtw-window .is-shake { animation: dtw-shake .32s ease-in-out both; }
@keyframes dtw-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -6px 0; }
  40% { translate: 5px 0; }
  60% { translate: -4px 0; }
  80% { translate: 2px 0; }
}

/* ---------- shared pieces ---------- */

.dtw-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.is-r { text-align: right; justify-content: flex-end; }
.is-c { text-align: center; justify-content: center; }
.dtw-window .is-pos { color: var(--good); }
.dtw-window .is-neg { color: var(--bad); }
.dtw-window .is-zero { color: #A18A76; }

.dtw-card {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 10px 14px 12px;
}

.dtw-h {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin-bottom: 8px;
}
.dtw-h__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-synthesis: none;
  font-size: 22px;
  letter-spacing: .3px;
  line-height: 1;
  white-space: nowrap;
}
.dtw-h__text::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  background: var(--c-kumkum, #C8102E);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  vertical-align: 1px;
}
.dtw-h__note { font-size: 16px; font-weight: 700; color: var(--muted); }

.dtw-empty {
  padding: 26px 20px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 253, 245, .7);
  border: 3px dashed rgba(58, 31, 18, .45);
  border-radius: 18px;
}
.dtw-empty--soft { border: 0; background: none; padding: 22px 16px; font-size: 18px; }

.dtw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 1px 12px 2px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  background: var(--c-cream, #FFF4DC);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
}
.dtw-chip__ico { flex: none; width: 20px; height: 20px; margin-left: -4px; }
.dtw-chip--good { color: #17592A; background: var(--good-bg); border-color: #17592A; }
.dtw-chip--fair { color: var(--fair); background: var(--fair-bg); border-color: var(--fair); }
.dtw-chip--warn { color: #6B3F00; background: var(--warn-bg); border-color: #6B3F00; }
.dtw-chip--bad { color: #8E0A1E; background: var(--bad-bg); border-color: #8E0A1E; }
.dtw-chip--lock { color: #5A4636; background: #EFE4CE; border-color: #6B5546; }
button.dtw-chip--btn { cursor: pointer; box-shadow: 0 3px 0 #6B5546; transition: transform .08s, box-shadow .08s, filter .12s; }
button.dtw-chip--btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
button.dtw-chip--btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #6B5546; }

.dtw-kv { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dtw-kv__k { font-size: 15px; font-weight: 700; color: var(--muted); }
.dtw-kv__v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.dtw-link {
  display: inline;
  padding: 0;
  font-weight: 800;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.dtw-link:hover { color: var(--c-kumkum, #C8102E); text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 3px; }

/* buttons: the shared .dt-btn--small, tightened for dense windows */
.dtw-window .dt-btn--small { min-height: 44px; padding: 0 16px 5px; font-size: 19px; border-width: 3px; border-radius: 15px; }
.dtw-window .dt-btn--small.dt-btn--primary::after { inset: 2px 2px 7px; border-width: 2px; border-radius: 10px; }
.dtw-btn__label { display: block; }
.dtw-btn__ico { flex: none; width: 24px; height: 24px; }
.dtw-window .dt-btn.is-disabled { cursor: not-allowed; }
.dtw-window .dt-btn.is-disabled:hover { transform: none; filter: none; }
.dtw-btn2 { min-width: 150px; }
.dtw-btn2__in { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dtw-btn2__main { font-size: 18px; line-height: 1; }
.dtw-btn2__sub { font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; line-height: 1; letter-spacing: 0; opacity: .85; }
.dtw-window .dt-btn.dtw-btn--danger { --btn-text: #B00D26; }
.dtw-window .dt-btn.dtw-btn--danger:hover { --btn-face: #FFE1DC; --btn-face-2: #FFC4BB; --btn-lip: #E08A80; }

/* segmented control */
.dtw-seg {
  display: flex;
  background: #EADBB8;
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}
.dtw-seg__btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 10px 7px;
  border-left: 3px solid var(--ink);
  background: linear-gradient(180deg, #FFF9EA, #F4E3BC);
  cursor: pointer;
  transition: background .12s, filter .12s;
}
.dtw-seg__btn:first-child { border-left: 0; }
.dtw-seg__btn:hover { filter: brightness(1.04); }
.dtw-seg__btn:active { filter: brightness(.95); }
.dtw-seg__btn.is-on { background: linear-gradient(180deg, #FFD44A, var(--c-turmeric, #F5B301)); box-shadow: inset 0 -4px 0 #C27F00, inset 0 3px 0 rgba(255, 255, 255, .5); }
.dtw-seg__in { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dtw-seg__title { font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 20px; line-height: 1.05; letter-spacing: .3px; white-space: nowrap; }
.dtw-seg__sub { font-size: 14px; font-weight: 700; line-height: 1.1; color: #5E4433; white-space: nowrap; }
.dtw-seg__btn.is-on .dtw-seg__sub { color: var(--ink); }

/* switch */
.dtw-switch {
  position: relative;
  flex: none;
  width: 58px;
  height: 32px;
  background: #D2C4AA;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 3px 0 rgba(58, 31, 18, .16);
  cursor: pointer;
  transition: background .14s;
}
.dtw-switch.is-on { background: var(--c-good, #5DBB3F); }
.dtw-switch__knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  background: #FFFDF5;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(58, 31, 18, .35);
  transition: left .14s var(--ease-out-back, ease-out);
}
.dtw-switch.is-on .dtw-switch__knob { left: 28px; }

/* progress bar */
.dtw-bar {
  position: relative;
  display: block;
  height: 16px;
  background: #EADBB8;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.dtw-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(180deg, #FFD44A, var(--c-turmeric, #F5B301));
  border-right: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45);
  transition: width .3s var(--ease-out, ease-out);
}
.dtw-bar__fill[style*="width: 0.0%"] { border-right: 0; }
.dtw-bar__fill.is-good { background: linear-gradient(180deg, #86D45E, #4FAE3B); }
.dtw-bar__fill.is-mid { background: linear-gradient(180deg, #FFD44A, #F5B301); }
.dtw-bar__fill.is-low { background: linear-gradient(180deg, #FF8A75, #E5533D); }

/* stat tile */
.dtw-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px 9px 10px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
}
.dtw-stat__icon { flex: none; width: 44px; height: 44px; }
.dtw-stat__main { min-width: 0; }
.dtw-stat__label { font-size: 15px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.dtw-stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-synthesis: none;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dtw-stat__value.is-len-l { font-size: 28px; }
.dtw-stat__value.is-len-xl { font-size: 22px; line-height: 1.4; }
.dtw-stat__sub { min-height: 17px; font-size: 14.5px; font-weight: 700; line-height: 1.15; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-stat.is-bad .dtw-stat__value { color: var(--bad); }
.dtw-stat.is-bad .dtw-stat__sub { color: var(--bad); }
.dtw-stat.is-warn .dtw-stat__sub, .dtw-stat.is-full .dtw-stat__sub { color: var(--bad); font-weight: 800; }
.dtw-stat--hero { background: linear-gradient(180deg, #FFF3C4, #FFE08A); }
.dtw-stat--hero .dtw-stat__value { font-size: 40px; }
.dtw-stat--hero .dtw-stat__value.is-len-l { font-size: 31px; }
.dtw-stat--hero .dtw-stat__value.is-len-xl { font-size: 24px; }
.dtw-stat--mini { padding: 6px 12px 7px; border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.dtw-stat--mini .dtw-stat__icon { width: 32px; height: 32px; }
.dtw-stat--mini .dtw-stat__value { font-size: 26px; }
.dtw-stat--mini .dtw-stat__value.is-len-l { font-size: 21px; }
.dtw-stat--mini .dtw-stat__value.is-len-xl { font-size: 17px; }
.dtw-stat--mini .dtw-stat__sub { min-height: 0; }
.dtw-stat--plain { background: none; border: 0; box-shadow: none; padding: 0; }

/* stars */
.dtw-stars { display: inline-flex; gap: 1px; }
.dtw-star { display: block; flex: none; width: 24px; height: 24px; }
.dtw-star.is-empty { opacity: .28; }
.dtw-rating { position: relative; display: inline-block; flex: none; width: 120px; height: 24px; }
.dtw-rating__off, .dtw-rating__in { display: flex; width: 120px; }
.dtw-rating__off { opacity: .3; }
.dtw-rating__on { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; transition: width .4s var(--ease-out, ease-out); }
.dtw-rating--big { width: 160px; height: 32px; }
.dtw-rating--big .dtw-rating__off, .dtw-rating--big .dtw-rating__in { width: 160px; }
.dtw-rating--big .dtw-star { width: 32px; height: 32px; }

/* select */
.dtw-select {
  width: 100%;
  height: 38px;
  padding: 0 34px 2px 12px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 7 6-7z' fill='%233A1F12'/%3E%3C/svg%3E") right 9px center / 16px 16px no-repeat,
    linear-gradient(180deg, #FFFDF5, #F6E6C3);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.dtw-select.is-bad { background-color: var(--bad-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 7 6-7z' fill='%233A1F12'/%3E%3C/svg%3E"), linear-gradient(180deg, #FFE7E2, #FFCFC7); }

/* cropped head from a waist-up customer portrait */
.dtw-face {
  position: relative;
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #FFE9B0, #F7C96B);
  border: 3px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
}
.dtw-face__in { position: absolute; left: -38%; top: -8%; width: 176%; height: 264%; }

/* medal (drawn in CSS around a painted icon) */
.dtw-medal {
  position: relative;
  display: block;
  flex: none;
  width: 50px;
  height: 58px;
}
.dtw-medal::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 30px;
  width: 28px;
  height: 26px;
  background: linear-gradient(90deg, #B8B0A0 0 50%, #A39B8B 50% 100%);
  border: 2.5px solid #8B7A66;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}
.dtw-medal::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 44px;
  height: 44px;
  background: #E6DCC8;
  border: 3px dashed #8B7A66;
  border-radius: 50%;
}
.dtw-medal__icon { position: absolute; left: 12px; top: 9px; z-index: 1; width: 26px; height: 26px; filter: grayscale(1) opacity(.4); }
.is-won > .dtw-medal::before, .dtw-medal.is-won::before { background: linear-gradient(90deg, #E0243F 0 50%, #B00D26 50% 100%); border-color: var(--ink); }
.is-won > .dtw-medal::after, .dtw-medal.is-won::after {
  background: radial-gradient(circle at 35% 30%, #FFF2B0 0 18%, #FFD23F 45%, #E8A33D 100%);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45);
}
.is-won > .dtw-medal .dtw-medal__icon, .dtw-medal.is-won .dtw-medal__icon { filter: none; }

/* ---------- Menu & Prices ---------- */

.dtw-window--menu, .dtw-window--guests, .dtw-window--finances { height: 730px; }
.dtw-menu { gap: 10px; overflow: hidden; }

.dtw-menu__top { flex: none; display: flex; gap: 12px; align-items: stretch; }
.dtw-menu__quality { flex: 1 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 16px; row-gap: 5px; padding: 9px 14px 8px; }
.dtw-menu__qlabel { grid-row: 1 / 3; font-family: var(--font-display); font-size: 22px; letter-spacing: .3px; }
.dtw-menu__qnote { font-size: 15.5px; font-weight: 700; line-height: 1.2; color: #5E4433; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-menu__stats { flex: none; display: flex; gap: 10px; }
.dtw-menu__stats .dtw-stat { min-width: 128px; }

.dtw-dishgrid {
  display: grid;
  grid-template-columns: 52px minmax(150px, 1fr) 72px 176px 64px 86px 108px 258px;
  column-gap: 12px;
  align-items: center;
}
.dtw-menu__cols {
  flex: none;
  padding: 0 32px 0 16px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
}
.dtw-menu__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 6px 6px 0; display: flex; flex-direction: column; gap: 12px; }

.dtw-fam { flex: none; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.dtw-fam__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px 0 8px;
  background: linear-gradient(180deg, #FFE9A8, #FFD76B);
  border-bottom: 3px solid var(--ink);
}
.dtw-fam.is-dim .dtw-fam__head { background: linear-gradient(180deg, #EFE4CE, #E2D3B4); }
.dtw-fam__thumb { flex: none; width: 46px; height: 46px; margin: -6px 0 -2px; filter: drop-shadow(0 2px 0 rgba(58, 31, 18, .35)); }
.dtw-fam.is-dim .dtw-fam__thumb { filter: grayscale(.85) opacity(.7); }
.dtw-fam__name { flex: 1; font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 23px; letter-spacing: .3px; white-space: nowrap; }
.dtw-fam__rows:empty { display: none; }

.dtw-dish { min-height: 62px; padding: 5px 12px 6px 10px; border-bottom: 2px dashed var(--line); transition: background .15s; }
.dtw-dish:last-child { border-bottom: 0; }
.dtw-dish:hover { background: #FFF6DC; }
.dtw-dish__icon { width: 52px; height: 52px; transition: filter .15s, opacity .15s; }
.dtw-dish__id { min-width: 0; }
.dtw-dish__name { font-size: 20px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-dish__sub { font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-dish.is-unavailable .dtw-dish__sub { color: var(--bad); }
.dtw-dish__toggle { display: flex; justify-content: center; }
.dtw-dish__c { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.dtw-dish__cost { font-size: 18px; font-weight: 700; color: #5E4433; }
.dtw-dish__margin { font-size: 21px; font-weight: 800; color: var(--good); }
.dtw-dish__margin.is-neg { color: var(--bad); }
.dtw-dish__pct { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.dtw-dish__soldline { display: inline-flex; align-items: center; gap: 6px; }
.dtw-dish__sold { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.dtw-dish__yest { font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dtw-dish__verdict { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dtw-dish__vline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dtw-dish__note { font-size: 14.5px; font-weight: 700; color: #5E4433; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-dish .dtw-chip--verdict { min-height: 25px; min-width: 84px; justify-content: center; font-size: 15.5px; }
.dtw-dish.is-off .dtw-dish__icon { filter: grayscale(1); opacity: .45; }
.dtw-dish.is-off .dtw-dish__name { color: #8B7A66; }
.dtw-dish.is-off .dtw-dish__c, .dtw-dish.is-off .dtw-dish__verdict { opacity: .45; }

.dtw-trend { display: block; width: 0; height: 0; border: 7px solid transparent; }
.dtw-trend.is-up { border-bottom: 11px solid #2E8B3D; border-top-width: 0; }
.dtw-trend.is-down { border-top: 11px solid #C8102E; border-bottom-width: 0; }
.dtw-trend.is-flat { width: 14px; height: 4px; border: 0; background: #B3A08C; border-radius: 2px; }

.dtw-stepper { display: flex; align-items: center; gap: 6px; }
.dtw-step {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 4px 4px 7px;
  background: linear-gradient(180deg, #FFFDF5, #F6E6C3);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 -4px 0 #D6BD8B, 0 3px 0 var(--ink);
  cursor: pointer;
  touch-action: none;
  transition: transform .06s ease-out, box-shadow .06s ease-out, filter .12s;
}
.dtw-step:hover { filter: brightness(1.05); }
.dtw-step:active { transform: translateY(3px); box-shadow: inset 0 -1px 0 #D6BD8B, 0 0 0 var(--ink); }
.dtw-step__ico { display: block; width: 100%; height: 100%; }
.dtw-price {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 42px;
  padding: 0 6px 2px;
  background: #FFFDF5;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 3px 0 rgba(58, 31, 18, .12);
  cursor: text;
  transition: background .12s, box-shadow .12s;
}
.dtw-price:hover { background: #FFF6CF; }
.dtw-price:focus-within { background: #FFF3B8; box-shadow: inset 0 3px 0 rgba(58, 31, 18, .12), 0 0 0 3px var(--c-teal, #0E8C8C); }
.dtw-price__cur { font-family: var(--font-display); font-size: 21px; color: #7A5A44; margin-right: 1px; }
.dtw-price__input {
  width: 3.2ch;
  min-width: 0;
  padding: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  -webkit-user-select: text;
  user-select: text;
}

.dtw-vbar { position: relative; display: block; height: 10px; margin: 0 8px 2px 2px; background: #EADBB8; border: 2px solid rgba(58, 31, 18, .6); border-radius: 999px; }
.dtw-vbar__room { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #CDEBB5, #9FD67C); border-radius: 999px 0 0 999px; }
.dtw-vbar__tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.dtw-vbar__pin {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--c-turmeric, #F5B301);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(58, 31, 18, .4);
  transition: left .15s var(--ease-out, ease-out), background .15s;
}
.dtw-vbar__pin.is-good { background: #5DBB3F; }
.dtw-vbar__pin.is-fair { background: #2BB3B3; }
.dtw-vbar__pin.is-warn { background: #FF9A1F; }
.dtw-vbar__pin.is-bad { background: #E5334D; }

.dtw-fam__locked { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px 10px; background: rgba(234, 219, 184, .35); }
.dtw-fam__rows:not(:empty) + .dtw-fam__locked { border-top: 2px dashed var(--line); }
.dtw-lockdish {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 4px 6px;
  text-align: left;
  background: #F3E8D0;
  border: 2.5px dashed #8B7A66;
  border-radius: 14px;
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.dtw-lockdish:hover { background: #FFF1C9; transform: translateY(-1px); }
.dtw-lockdish__icon { flex: none; width: 38px; height: 38px; filter: brightness(0) opacity(.3); }
.dtw-lockdish__text { display: flex; flex-direction: column; line-height: 1.1; }
.dtw-lockdish__name { font-size: 16.5px; font-weight: 800; color: #6B5546; }
.dtw-lockdish__why { font-size: 14px; font-weight: 700; color: #8B6F58; white-space: nowrap; }
.dtw-lockdish__lock { flex: none; width: 22px; height: 22px; }

.dtw-menu__foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  padding: 2px 14px;
  background: rgba(255, 253, 245, .75);
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.dtw-seller { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; white-space: nowrap; }
.dtw-seller__label { font-size: 15px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.dtw-seller__icon { width: 36px; height: 36px; }
.dtw-seller__n { font-weight: 700; color: #5E4433; }
.dtw-seller--none { font-size: 17px; font-weight: 700; color: var(--muted); white-space: normal; }

.dtw-menu__scope { flex: none; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 6px 2px 14px; background: rgba(255, 253, 245, .75); border: 3px solid var(--ink); border-radius: 14px; }
.dtw-menu__scopelabel { flex: none; max-width: 420px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-menu__scopename { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: .2px; unicode-bidi: plaintext; }
.dtw-menu__copynote { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-menu__copynote.is-done { color: var(--good); font-weight: 800; }
.dtw-window .dt-btn--small.dtw-menu__copy { flex: none; min-height: 34px; font-size: 16.5px; margin: 3px 0 5px; }
.dtw-fam__trend { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 1px 5px; font-size: 14.5px; font-weight: 800; border: 2.5px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.dtw-fam__trend.is-hot { color: #7A2400; background: #FFD9A8; border-color: #7A2400; }
.dtw-fam__trend.is-cold { color: #51606E; background: #E3E9EE; border-color: #7E8A97; }
.dtw-fam__trend.is-cold .dtw-fam__trendico { filter: grayscale(1) opacity(.7); }
.dtw-fam__trendico { width: 20px; height: 20px; }
.dtw-dish__nameline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dtw-dish__star { flex: none; width: 26px; height: 26px; padding: 1px; border-radius: 8px; cursor: pointer; opacity: .28; filter: grayscale(1); transition: opacity .12s, filter .12s, transform .12s var(--ease-out-back, ease-out); }
.dtw-dish__star:hover { opacity: .7; filter: grayscale(.4); transform: scale(1.12); }
.dtw-dish__star.is-on { opacity: 1; filter: none; }
.dtw-dish__starico { display: block; width: 100%; height: 100%; }
.dtw-dish.is-special { background: linear-gradient(90deg, #FFF3C4, rgba(255, 243, 196, 0)); }
.dtw-res__shared { justify-self: start; grid-column: 1 / -1; margin-top: 7px; }

/* ---------- Staff ---------- */

.dtw-staff { gap: 10px; overflow: hidden; }
.dtw-staff__hire { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dtw-hire { display: grid; grid-template-columns: 68px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; padding: 8px 12px 11px; }
.dtw-hire__art { width: 68px; height: 68px; background: linear-gradient(180deg, #FFE9B0, #F7C96B); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.dtw-hire__main { min-width: 0; }
.dtw-hire__name { font-family: var(--font-display); font-size: 23px; letter-spacing: .3px; line-height: 1.05; }
.dtw-hire__count { margin-left: 8px; font-family: var(--font-ui); font-size: 17px; font-weight: 800; color: var(--muted); }
.dtw-hire__desc { margin: 1px 0 2px; font-size: 15px; font-weight: 600; line-height: 1.15; color: #5E4433; min-height: 34px; }
.dtw-hire__nums { display: flex; gap: 16px; }
.dtw-hire__act { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.dtw-hire__btn { flex: none; min-width: 150px; }
.dtw-hire__why { font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--muted); }
.dtw-hire__why.is-bad { color: var(--bad); }
.dtw-hire.is-locked { background: #F1E7D2; }
.dtw-hire.is-locked .dtw-hire__art { filter: grayscale(1) opacity(.55); }
.dtw-hire.is-locked .dtw-hire__name, .dtw-hire.is-locked .dtw-hire__desc { color: #8B7A66; }

.dtw-staff__summary { flex: none; display: flex; align-items: center; gap: 18px; padding: 4px 14px 5px 10px; background: rgba(255, 253, 245, .75); border: 3px solid var(--ink); border-radius: 16px; }
.dtw-staff__summary .dtw-stat__icon { width: 38px; height: 38px; }
.dtw-staff__summary .dtw-stat__main { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; }
.dtw-staff__summary .dtw-stat__label { grid-column: 1; grid-row: 1; align-self: end; }
.dtw-staff__summary .dtw-stat__sub { grid-column: 1; grid-row: 2; align-self: start; min-height: 0; font-size: 13.5px; }
.dtw-staff__summary .dtw-stat__sub.is-full { color: var(--bad); font-weight: 800; }
.dtw-staff__summary .dtw-stat__value { grid-column: 2; grid-row: 1 / 3; font-size: 32px; }
.dtw-staff__heads { display: flex; gap: 14px; }
.dtw-headcount { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.dtw-headcount b { font-family: var(--font-display); font-size: 22px; }
.dtw-headcount__icon { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: #FFE9B0; }
.dtw-staff__warns { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 8px; }

.dtw-rostergrid { display: grid; grid-template-columns: 42px 150px 82px 86px minmax(120px, 1fr) 232px 156px 78px; column-gap: 12px; align-items: center; }
.dtw-staff__cols { flex: none; padding: 0 32px 0 15px; font-size: 14.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.dtw-staff__roster { flex: 1 1 auto; min-height: 60px; overflow-y: auto; padding: 0 6px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.dtw-roster { flex: none; min-height: 54px; padding: 3px 10px 7px 10px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); }
.dtw-roster__icon { width: 42px; height: 42px; background: linear-gradient(180deg, #FFE9B0, #F7C96B); border: 2.5px solid var(--ink); border-radius: 50%; overflow: hidden; }
.dtw-roster__id { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.1; }
.dtw-roster__name { font-size: 20px; }
.dtw-roster__role { font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dtw-roster__wage { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; font-size: 20px; font-weight: 800; }
.dtw-roster__per { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dtw-roster__doing { font-size: 16.5px; font-weight: 700; line-height: 1.15; color: #4A2C1A; }
.dtw-roster__doing.is-bad { color: var(--bad); }
.dtw-roster .dt-btn--small { min-height: 40px; padding-left: 10px; padding-right: 10px; }

/* ---------- Guests ---------- */

.dtw-guests { overflow: hidden; }
.dtw-guests__top { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 232px 330px; gap: 12px; align-items: stretch; }
.dtw-guests__stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 10px; }
.dtw-guests__stats .dtw-stat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px 10px; }
.dtw-guests__stats .dtw-stat__icon { width: 34px; height: 34px; }
.dtw-guests__stats .dtw-stat__value { font-size: 40px; }
.dtw-guests__stats .dtw-stat--hero .dtw-stat__value { font-size: 52px; }

.dtw-guests__gauge { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; column-gap: 7px; padding: 8px 8px 6px; }
.dtw-gauge__wrap { position: relative; flex: 0 0 100%; display: flex; justify-content: center; height: 89px; margin-bottom: 30px; }
.dtw-gauge { display: block; width: 160px; height: 89px; }
.dtw-gauge__needle { transition: transform .5s var(--ease-out-back, ease-out); transform-box: view-box; }
.dtw-gauge__num { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.dtw-gauge__label { font-size: 15px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.dtw-gauge__note { font-size: 15px; font-weight: 800; white-space: nowrap; }
.dtw-gauge__note.is-happy { color: var(--good); }
.dtw-gauge__note.is-neutral { color: var(--warn); }
.dtw-gauge__note.is-unhappy { color: var(--bad); }

.dtw-guests__rating { display: flex; flex-direction: column; gap: 6px; padding: 8px 14px 10px; }
.dtw-guests__rhead { display: flex; align-items: center; gap: 10px; }
.dtw-guests__rlabel { font-size: 15px; font-weight: 800; color: var(--muted); }
.dtw-guests__rnum { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.dtw-parts { display: flex; flex-direction: column; gap: 5px; }
.dtw-part { display: grid; grid-template-columns: 108px 1fr 78px; align-items: center; column-gap: 8px; font-size: 15px; font-weight: 700; }
.dtw-part__k { color: #5E4433; white-space: nowrap; }
.dtw-part__v { text-align: right; font-weight: 800; white-space: nowrap; }
.dtw-bar--part { height: 13px; }

.dtw-guests__main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 540px; grid-template-rows: minmax(0, 1fr); gap: 12px; }
.dtw-guests__thoughts { display: flex; flex-direction: column; min-height: 0; padding-bottom: 8px; }
.dtw-guests__thoughts .dtw-h { flex: none; }
.dtw-thoughts__sum { flex: 1; font-size: 16px; font-weight: 700; color: var(--muted); }
.dtw-tabs { display: flex; gap: 6px; }
.dtw-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 8px 1px 12px;
  font-size: 16.5px;
  font-weight: 800;
  background: #F3E6C6;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.dtw-tabs__btn:hover { background: #FFF1C9; }
.dtw-tabs__btn:active { transform: translateY(2px); }
.dtw-tabs__btn.is-on { background: var(--c-turmeric, #F5B301); box-shadow: 0 3px 0 var(--ink); }
.dtw-tabs__n { min-width: 26px; padding: 2px 7px 3px; font-size: 14.5px; line-height: 1; text-align: center; color: #FFF4DC; background: var(--ink); border-radius: 999px; font-variant-numeric: tabular-nums; }
.dtw-thoughts { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 6px; }
.dtw-thought {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  column-gap: 10px;
  min-height: 38px;
  padding: 3px 12px 4px 7px;
  background: #FBF3DF;
  border: 2px solid rgba(58, 31, 18, .22);
  border-radius: 12px;
  overflow: hidden;
}
.dtw-thought__bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px 6px 6px 10px; transition: width .35s var(--ease-out, ease-out); }
.dtw-thought.is-good .dtw-thought__bar { background: linear-gradient(90deg, #BDE8A2, #D6F2C2); }
.dtw-thought.is-bad .dtw-thought__bar { background: linear-gradient(90deg, #FFB3A6, #FFD0C8); }
.dtw-thought.is-neutral .dtw-thought__bar { background: linear-gradient(90deg, #DDD3C0, #EAE2D2); }
.dtw-thought.is-good { border-color: rgba(23, 89, 42, .45); }
.dtw-thought.is-bad { border-color: rgba(142, 10, 30, .45); }
.dtw-thought__face, .dtw-thought__text, .dtw-thought__count { position: relative; }
.dtw-thought__face { width: 28px; height: 28px; }
.dtw-thought__text { font-size: 17.5px; font-weight: 700; line-height: 1.15; }
.dtw-thought__count { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.dtw-thought.is-good .dtw-thought__count { color: #17592A; }
.dtw-thought.is-bad .dtw-thought__count { color: #8E0A1E; }

.dtw-guests__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.dtw-guests__types { flex: none; padding-bottom: 8px; }
.dtw-guests__types .dtw-h { margin-bottom: 4px; }
.dtw-types { display: flex; gap: 4px; justify-content: space-between; align-items: flex-start; }
.dtw-type { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.dtw-type .dtw-face { width: 46px; height: 46px; }
.dtw-type__n { margin-top: 1px; font-family: var(--font-display); font-size: 23px; line-height: 1.05; }
.dtw-type__name { min-height: 28px; font-size: 13px; font-weight: 700; line-height: 1.05; text-align: center; color: var(--muted); }
.dtw-type.is-none .dtw-face { filter: grayscale(1); opacity: .45; }
.dtw-type.is-none .dtw-type__n { color: #B3A08C; }

.dtw-guests__list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 8px; }
.dtw-guests__list .dtw-h { flex: none; margin-bottom: 4px; }
.dtw-guestgrid { display: grid; grid-template-columns: 28px 116px minmax(0, 1fr) 60px; column-gap: 10px; align-items: center; }
.dtw-glist__cols { flex: none; padding: 0 22px 2px 8px; font-size: 13.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.dtw-glist { position: relative; flex: 1 1 auto; min-height: 88px; overflow-y: auto; }
.dtw-glist__inner { position: relative; }
.dtw-grow {
  position: absolute;
  left: 0;
  right: 6px;
  height: 40px;
  padding: 0 8px;
  text-align: left;
  background: #FBF3DF;
  border: 2px solid rgba(58, 31, 18, .22);
  border-radius: 11px;
  cursor: pointer;
  transition: background .1s, border-color .1s;
}
.dtw-grow:hover { background: #FFEFB8; border-color: var(--ink); }
.dtw-grow.is-special { background: #FFE1EC; }
.dtw-grow__face { width: 28px; height: 28px; }
.dtw-grow__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.dtw-grow__name { font-size: 16.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-grow__type { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dtw-grow__doing { font-size: 15.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-grow__cash { font-size: 16px; font-weight: 800; text-align: right; }

/* ---------- Finances ---------- */

.dtw-fin__top { flex: none; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.1fr; gap: 12px; align-items: stretch; }
.dtw-fin { overflow: hidden; }
.dtw-fin__top .dtw-stat { padding-top: 5px; padding-bottom: 6px; }
.dtw-fin__view { flex: none; display: flex; align-items: center; gap: 14px; margin-bottom: -2px; }
.dtw-fin__view .dtw-fin__report { flex: none; align-self: center; min-width: 0; margin: 0 0 4px; }
.dtw-window .dtw-fin__view .dt-btn--small { min-height: 38px; }
.dtw-seg--view { flex: none; width: 300px; }
.dtw-seg--view .dtw-seg__btn { padding: 3px 10px 5px; }
.dtw-seg--view .dtw-seg__title { font-size: 18px; }
.dtw-fin__viewnote { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; line-height: 1.2; color: #5E4433; }
.dtw-fin.is-chain { gap: 8px; }
.dtw-fin.is-chain .dtw-fin__top { gap: 8px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat { padding-top: 2px; padding-bottom: 3px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat__value { font-size: 29px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat--hero .dtw-stat__value { font-size: 32px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat__value.is-len-l { font-size: 25px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat__value.is-len-xl { font-size: 20px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat__icon { width: 38px; height: 38px; }
.dtw-fin.is-chain .dtw-fin__top .dtw-stat__sub { font-size: 13.5px; min-height: 15px; }
.dtw-fin.is-chain .dtw-fin__main, .dtw-fin.is-chain .dtw-fin__left, .dtw-fin.is-chain .dtw-fin__right { gap: 8px; }
.dtw-fin.is-chain .dtw-ledger__table th, .dtw-fin.is-chain .dtw-ledger__table td { height: 24px; }
.dtw-fin.is-chain .dtw-ledger__table thead th { height: 40px; }
.dtw-fin.is-chain .dtw-ledger__table tr.is-op th, .dtw-fin.is-chain .dtw-ledger__table tr.is-op td { height: 29px; }
.dtw-fin.is-chain .dtw-fin__costs { padding-top: 2px; padding-bottom: 4px; }
.dtw-fin.is-chain .dtw-costs__total { font-size: 24px; }
.dtw-fin__sidetabs { margin-left: auto; }
.dtw-fin__sidetabs .dtw-tabs__btn { height: 28px; padding: 0 10px 1px; font-size: 14.5px; }
.dtw-fin__chart .dtw-legend:not(.is-hidden) + .dtw-fin__sidetabs { margin-left: 8px; }
.dtw-fin__outlets { padding-bottom: 6px; }
.dtw-finrow { display: grid; grid-template-columns: minmax(0, 1fr) 62px 62px 38px 24px 32px; column-gap: 5px; align-items: center; min-height: 29px; padding: 0 3px; font-size: 14.5px; font-weight: 800; border-bottom: 1.5px solid var(--line); font-variant-numeric: tabular-nums; }
.dtw-finrow > :nth-child(n+2) { text-align: right; white-space: nowrap; }
.dtw-finrow--head { min-height: 22px; font-size: 12.5px; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); border-bottom: 2.5px solid var(--ink); }
.dtw-finrow.is-here { background: #FFF1C2; }
.dtw-finrow__id { display: flex; align-items: center; gap: 5px; min-width: 0; }
.dtw-finrow__badge { flex: none; width: 22px; height: 22px; }
.dtw-finrow__name { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.dtw-finrow__yest { font-weight: 700; }
.dtw-finrow__visit { font-size: 14px; color: var(--c-kumkum, #C8102E); text-decoration: underline; text-underline-offset: 2px; }
.dtw-finrow__visit.is-disabled { color: var(--muted); text-decoration: none; cursor: default; }
.dtw-fin__main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.dtw-fin__left, .dtw-fin__right { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.dtw-fin__ledger { flex: 0 1 auto; min-height: 0; display: flex; padding: 0; overflow: hidden; }
.dtw-ledger { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; overflow: auto; }
.dtw-ledger__table { flex: none; }
.dtw-ledger__empty { flex: 1; align-self: center; padding: 20px 40px; font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--muted); }
.dtw-ledger__table { border-collapse: separate; border-spacing: 0; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtw-ledger__table th, .dtw-ledger__table td { height: 25px; padding: 0 9px; border-bottom: 1.5px solid var(--line); }
.dtw-ledger__table td { min-width: 78px; text-align: right; font-weight: 700; }
.dtw-ledger__table tbody th, .dtw-ledger__corner {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 184px;
  text-align: left;
  font-weight: 700;
  background: #FFF6DC;
  border-right: 3px solid var(--ink);
}
.dtw-ledger__table thead th { position: sticky; top: 0; z-index: 2; height: 42px; padding-top: 2px; text-align: right; background: linear-gradient(180deg, #FFE9A8, #FFD76B); border-bottom: 3px solid var(--ink); font-weight: 800; }
.dtw-ledger__table thead th.dtw-ledger__corner { z-index: 3; font-family: var(--font-display); font-size: 20px; letter-spacing: .3px; background: linear-gradient(180deg, #FFE9A8, #FFD76B); }
.dtw-ledger__day { display: block; font-size: 16px; line-height: 1.1; }
.dtw-ledger__dow { display: block; font-size: 13px; font-weight: 700; line-height: 1.1; color: #6B4A2E; }
.dtw-ledger__daybtn { display: block; width: 100%; margin: 0; padding: 2px 6px 3px; text-align: right; font-weight: 800; border-radius: 8px; cursor: pointer; }
.dtw-ledger__daybtn:hover { background: rgba(255, 255, 255, .6); }
.dtw-ledger__table thead th:not(.dtw-ledger__corner):not(.is-today) { padding: 0 3px; }
.dtw-ledger__ico { display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -5px; }
.dtw-ledger__table .is-today { background: #FFF1C2; border-right: 2px solid rgba(58, 31, 18, .3); }
.dtw-ledger__table thead .is-today { background: linear-gradient(180deg, #FFD44A, #F5B301); }
.dtw-ledger__table tr.is-op th, .dtw-ledger__table tr.is-op td { height: 31px; font-size: 19px; font-weight: 800; border-top: 3px solid var(--ink); border-bottom: 0; background: #FFF1C2; }
.dtw-ledger__table tr.is-op td.is-today { background: #FFE38A; }
.dtw-ledger__table tr.is-profit th, .dtw-ledger__table tr.is-profit td { font-weight: 800; border-top: 1.5px solid var(--line); }
.dtw-ledger__table tr.is-profit th { font-size: 14.5px; }
.dtw-ledger__table tr.is-cash th, .dtw-ledger__table tr.is-cash td { font-weight: 800; border-top: 1.5px solid var(--line); }
.dtw-ledger__table tr.is-guests th, .dtw-ledger__table tr.is-guests td { border-bottom: 0; color: #5E4433; }

.dtw-fin__costs { flex: none; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 5px 14px 6px; }
.dtw-fin__costhead { display: flex; flex-direction: column; gap: 2px; }
.dtw-costs__total { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--bad); padding-left: 21px; }
.dtw-costs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dtw-costs__row { display: flex; flex-direction: column; align-items: flex-end; padding: 3px 10px 4px; background: #FBF3DF; border: 2px solid rgba(58, 31, 18, .22); border-radius: 10px; line-height: 1.1; }
.dtw-costs__k { font-size: 13.5px; font-weight: 800; color: var(--muted); }
.dtw-costs__v { font-size: 18px; font-weight: 800; }

.dtw-fin__chart { padding-bottom: 6px; }
.dtw-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: #5E4433; white-space: nowrap; }
.dtw-legend__bar { width: 14px; height: 14px; background: #4FAE3B; border: 2px solid var(--ink); border-radius: 3px; }
.dtw-legend__line { width: 22px; height: 5px; margin-left: 8px; background: #F5B301; border: 1.5px solid var(--ink); border-radius: 3px; }
.dtw-chart { width: 100%; aspect-ratio: 430 / 232; cursor: crosshair; }
.dtw-chart svg { display: block; }
.dtw-chart__ax { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; fill: #5E4433; }
.dtw-chart__ax.is-cash { fill: #8A5A00; }
.dtw-chart__ax.is-today { font-weight: 800; fill: var(--ink); }
.dtw-chart__hint { font-family: var(--font-ui); font-size: 14px; font-weight: 700; fill: #8B7A66; }

.dtw-fin__loan .dtw-h { margin-bottom: 6px; }
.dtw-loan__fig { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dtw-loan__now { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.dtw-loan__max { font-size: 15px; font-weight: 700; color: var(--muted); }
.dtw-bar--loan .dtw-bar__fill { background: linear-gradient(180deg, #FF8A75, #E5533D); }
.dtw-loan__note { margin: 6px 0 9px; font-size: 15px; font-weight: 700; color: #5E4433; }
.dtw-loan__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 4px; }
.dtw-fin__report { align-self: flex-end; min-width: 200px; margin-top: 2px; }

/* ---------- Research ---------- */

.dtw-res { overflow: hidden; }
.dtw-res__top { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 12px; }
.dtw-res__funding { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 10px 14px 9px; }
.dtw-res__funding .dtw-h, .dtw-res__auto .dtw-h { margin-bottom: 0; }
.dtw-res__auto { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 10px 14px 9px; }
.dtw-res__fnote { grid-column: 1 / -1; margin-top: 9px; font-size: 16px; font-weight: 700; color: #5E4433; }
.dtw-res__fnote.is-warn { justify-self: start; padding: 3px 12px 4px; color: #8E0A1E; background: var(--bad-bg); border: 2.5px solid #8E0A1E; border-radius: 10px; }
.dtw-res__autorow { display: flex; align-items: center; gap: 12px; }
.dtw-res__autonote { font-size: 15px; font-weight: 700; line-height: 1.2; color: #5E4433; }

.dtw-res__current {
  flex: none;
  display: grid;
  grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, #FFF3C4, #FFE08A);
}
.dtw-res__current.is-empty { background: var(--card); }
.dtw-res__current.is-flash { animation: dtw-flash .8s ease-out; }
@keyframes dtw-flash { 0% { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(245, 179, 1, .9); } 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 26px rgba(245, 179, 1, 0); } }
.dtw-res__icon { width: 96px; height: 96px; padding: 6px; background: #FFFDF5; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 3px 0 var(--ink); }
.dtw-res__tag { font-size: 14.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #8A5200; }
.dtw-res__name { margin-bottom: 7px; font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: .3px; }
.dtw-res__progress { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.dtw-bar--big { height: 22px; }
.dtw-bar--big .dtw-bar__fill { background: linear-gradient(180deg, #86D45E, #4FAE3B); }
.dtw-res__pts { font-size: 17px; font-weight: 800; white-space: nowrap; }
.dtw-res__eta { display: block; margin-top: 5px; font-size: 16px; font-weight: 700; color: #5E4433; min-height: 19px; }
.dtw-res__eta.is-warn { color: var(--bad); }
.dtw-res__unlock { padding: 8px 12px 9px; font-size: 17px; line-height: 1.25; background: rgba(255, 253, 245, .8); border: 2.5px dashed rgba(58, 31, 18, .5); border-radius: 14px; }
.dtw-res__current.is-empty .dtw-res__unlock { visibility: hidden; }
.dtw-res__current.is-empty .dtw-res__progress { display: none; }
.dtw-res__current.is-empty .dtw-res__name { margin-bottom: 2px; }
.dtw-res__uhead { font-weight: 700; color: var(--muted); }
.dtw-res__unames { font-weight: 800; }
.dtw-res__uextra { margin-top: 2px; font-size: 15px; font-weight: 600; color: #5E4433; }

.dtw-res__scroll { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 0 6px 6px 0; }
.dtw-res__scroll .dtw-h { margin-bottom: 6px; }
.dtw-res__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 5px; }
.dtw-proj {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 7px 10px 9px 8px;
  text-align: left;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out, background .12s;
}
.dtw-proj:hover { background: #FFF6CF; transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.dtw-proj:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.dtw-proj__icon { width: 58px; height: 58px; }
.dtw-proj__main { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.dtw-proj__name { font-family: var(--font-display); font-size: 20px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-proj__what { font-size: 14.5px; font-weight: 700; color: #5E4433; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-proj__nums { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.dtw-proj__cost { font-size: 16.5px; font-weight: 800; color: #0A6464; }
.dtw-proj__eta { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.dtw-proj__tag { position: absolute; right: 8px; bottom: 7px; padding: 1px 8px 2px; font-size: 13.5px; font-weight: 800; color: #5A4636; background: #EFE4CE; border: 2px solid #6B5546; border-radius: 999px; }
.dtw-proj.is-locked { background: #F1E7D2; border-color: #6B5546; border-style: dashed; box-shadow: none; cursor: not-allowed; }
.dtw-proj.is-locked:hover { transform: none; background: #F1E7D2; }
.dtw-proj.is-locked .dtw-proj__icon { filter: grayscale(1) opacity(.5); }
.dtw-proj.is-locked .dtw-proj__name, .dtw-proj.is-locked .dtw-proj__what { color: #8B7A66; }
.dtw-proj.is-locked .dtw-proj__cost { color: #8B7A66; }
.dtw-proj.is-focus { animation: dtw-focus 1.4s ease-out 1; }
@keyframes dtw-focus { 0%, 60% { outline: 5px solid var(--c-teal, #0E8C8C); outline-offset: 2px; } 100% { outline: 5px solid rgba(14, 140, 140, 0); outline-offset: 2px; } }
.dtw-res__doneh { margin-top: 10px; }
.dtw-res__done { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.dtw-res__nodone { font-size: 16px; font-weight: 700; color: var(--muted); }
.dtw-donechip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 1px 5px; font-size: 15.5px; font-weight: 700; background: var(--good-bg); border: 2.5px solid #17592A; border-radius: 999px; white-space: nowrap; }
.dtw-donechip__icon { width: 26px; height: 26px; }

/* ---------- Marketing ---------- */

.dtw-mkt__top { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 14px 8px 8px; background: rgba(255, 253, 245, .75); border: 3px solid var(--ink); border-radius: 16px; }
.dtw-mkt__icon { flex: none; width: 44px; height: 44px; }
.dtw-mkt__note { flex: 1; font-size: 16.5px; font-weight: 700; line-height: 1.25; color: #4A2C1A; }
.dtw-mkt__rating { flex: none; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--muted); }
.dtw-mkt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dtw-camp { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 14px; row-gap: 8px; padding: 12px 14px 14px; }
.dtw-camp__art { position: relative; width: 104px; height: 104px; background: radial-gradient(circle at 50% 40%, #FFF6CF, #FFD76B); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 3px 0 var(--ink); }
.dtw-camp__pic { position: absolute; left: 12px; top: 10px; width: 78px; height: 78px; }
.dtw-camp__pic2 { position: absolute; right: -10px; bottom: -8px; width: 46px; height: 46px; padding: 5px; background: #FFFDF5; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); }
.dtw-camp__main { min-width: 0; }
.dtw-camp__name { font-family: var(--font-display); font-size: 24px; line-height: 1.05; letter-spacing: .3px; }
.dtw-camp__desc { margin: 3px 0 5px; font-size: 15.5px; font-weight: 600; line-height: 1.2; color: #5E4433; }
.dtw-camp__effect { display: inline-block; padding: 2px 10px 3px; font-size: 16px; font-weight: 800; line-height: 1.2; color: #17592A; background: var(--good-bg); border: 2px solid #17592A; border-radius: 10px; }
.dtw-camp__nums { display: flex; gap: 18px; margin-top: 7px; }
.dtw-camp__run { display: none; margin-top: 7px; }
.dtw-camp.is-running .dtw-camp__run { display: block; }
.dtw-camp.is-running .dtw-camp__nums { display: none; }
.dtw-camp.is-running { background: linear-gradient(180deg, #FFF3C4, #FFE08A); }
.dtw-camp__status { margin-bottom: 4px; font-size: 16.5px; font-weight: 800; color: #8A5200; }
.dtw-camp__act { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.dtw-camp__btn { flex: none; min-width: 170px; }
.dtw-camp__why { font-size: 15.5px; font-weight: 700; color: var(--bad); }

/* ---------- Goals, Awards & Land ---------- */

.dtw-goals__won {
  position: relative;
  flex: none;
  height: 72px;
  background: linear-gradient(180deg, #FFE38A, #F5B301);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}
.dtw-goals__toran { position: absolute; left: 0; top: -8px; width: 100%; height: 40px; opacity: .95; }
.dtw-goals__toran svg { width: 100%; height: 100%; }
.dtw-goals__wontext { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; align-items: baseline; justify-content: center; gap: 18px; font-size: 18px; font-weight: 800; }
.dtw-goals__wontitle { font-size: 34px; -webkit-text-stroke: 7px var(--ink); color: #FFF4DC; text-shadow: 0 4px 0 var(--ink); }

.dtw-goals__main { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 12px; align-items: stretch; }
.dtw-goals__card { flex: 1 1 auto; display: flex; flex-direction: column; padding: 12px 16px 14px; }
.dtw-goals__card.is-top { justify-content: center; align-items: center; gap: 6px; text-align: center; background: linear-gradient(180deg, #FFFDF5, #FFF1C2); }
.dtw-goals__card.is-top .dtw-rank__badge { width: 168px; height: 168px; }
.dtw-goals__card.is-top .dtw-rank__name { font-size: 34px; }
.dtw-goals__card.is-top .dtw-goals__caption { font-size: 17px; }
.dtw-goals__card.has-challenges { justify-content: flex-start; gap: 4px; }
.dtw-goals__card.has-challenges .dtw-goals__ladder { margin-bottom: 2px; }
.dtw-goals__card.has-challenges .dtw-rank { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; width: auto; justify-items: start; text-align: left; }
.dtw-goals__card.has-challenges .dtw-rank__badge { grid-row: 1 / 3; width: 84px; height: 84px; }
.dtw-goals__card.has-challenges .dtw-rank__tag { align-self: end; }
.dtw-goals__card.has-challenges .dtw-rank__name { align-self: start; font-size: 28px; }
.dtw-goals__card.has-challenges .dtw-goals__journey { display: none; }
.dtw-goals__card.has-challenges .dtw-goal__label { font-size: 17px; }
.dtw-goals__card.has-challenges .dtw-goal__val { font-size: 16px; }
.dtw-goals__card.has-challenges .dtw-goals__chead { margin: 4px 0 4px; }
.dtw-goals__card.has-challenges .dtw-goals__items { align-self: stretch; text-align: left; order: 3; }
.dtw-goals__chead { align-self: stretch; order: 2; margin: 8px 0 6px; }
.dtw-goals__card.has-challenges .dtw-goals__caption { order: 4; margin-top: 8px; align-self: flex-start; }
.dtw-goals__legend { display: flex; align-items: center; gap: 2px; margin: 2px 0 4px; }
.dtw-goals__legend .dtw-star { width: 22px; height: 22px; }
.dtw-goals__legend b { margin-left: 4px; font-family: var(--font-display); font-size: 18px; }
.dtw-goals__legendlabel { margin-right: 6px; font-size: 14px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #8A5200; }

.dtw-land.is-max { padding-bottom: 8px; }
.dtw-land.is-max .dtw-land__pic { display: none; }
.dtw-land.is-max .dtw-land__why, .dtw-land.is-max .dtw-land__btns { display: none; }
.dtw-land.is-max .dtw-land__row { display: block; }
.dtw-land.is-max .dtw-land__main { display: block; }
.dtw-land.is-max:not(.has-storeys) .dtw-h { float: left; margin: 2px 16px 0 0; }
.dtw-land.is-max:not(.has-storeys) .dtw-land__title { font-size: 21px; }
/* whole block owned, storeys known: the heading (with the Expand button) and one line of facts */
.dtw-land.is-max.has-storeys .dtw-h { margin-bottom: 2px; }
.dtw-land.is-max.has-storeys .dtw-land__title, .dtw-land.is-max.has-storeys .dtw-land__sub { display: none; }

/* after the win the right column also carries the branches / franchise card, so the land card drops its picture */
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__pic { display: none; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__row { display: block; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__title { grid-column: 1; font-size: 22px; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__sub { grid-column: 1; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__storeys, .dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__stairs { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.dtw-goals.is-won .dtw-land.has-storeys:not(.is-max) .dtw-land__sub { display: none; }
.dtw-goals.is-won .dtw-land.has-storeys:not(.is-max) .dtw-land__btns { grid-row: 1; }
.dtw-goals.is-won .dtw-land .dtw-h { margin-bottom: 2px; }
.dtw-goals.is-won .dtw-goals__side { gap: 8px; }
.dtw-goals.is-won .dtw-goals__main { gap: 10px; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__title { font-size: 20px; }
.dtw-goals.is-won .dtw-land { padding-top: 7px; padding-bottom: 8px; }
.dtw-goals.is-won .dtw-goals__awards { padding-top: 7px; padding-bottom: 6px; }
.dtw-window .dtw-goals.is-won .dtw-land__btns .dt-btn--small { min-height: 38px; }
.dtw-goals.is-won .dtw-land:not(.is-max) .dtw-land__btns { grid-column: 2; grid-row: 1 / 4; margin: 0; }
.dtw-goals.is-won .dtw-land .dt-btn { margin-top: 0; }
.dtw-goals.is-won .dtw-land__why { display: none; }   /* the button's own tooltip carries the reason; the room goes to the branches card */
.dtw-goals.is-won .dtw-award .dtw-medal { transform: scale(.8); margin: -6px -5px; }
.dtw-goals.is-won .dtw-award { column-gap: 4px; }
.dtw-goals.is-won .dtw-goals__life .dtw-stat { padding-top: 3px; padding-bottom: 4px; }
.dtw-goals.is-won .dtw-goal__who { margin-top: 3px; }
.dtw-goals.is-won .dtw-goal__outlet, .dtw-goals.is-won .dtw-goal__obadge { width: 28px; height: 28px; }
.dtw-goals.is-won .dtw-goals__items { gap: 6px; }
.dtw-branch { padding-bottom: 9px; }
.dtw-branch .dtw-h { margin-bottom: 4px; }
.dtw-branch__title { margin-left: auto; font-size: 16.5px; font-weight: 800; color: #5E4433; white-space: nowrap; }
.dtw-branch__icons { display: flex; align-items: center; gap: 2px; min-height: 32px; margin-bottom: 5px; }
.dtw-branch__icon { flex: none; width: 32px; height: 32px; }
.dtw-branch__more { margin-left: 6px; font-family: var(--font-display); font-size: 20px; }
.dtw-branch__none { font-size: 15.5px; font-weight: 700; color: var(--muted); }
.dtw-branch__act { display: flex; align-items: center; gap: 12px; }
.dtw-branch__why { font-size: 15.5px; font-weight: 800; color: var(--bad); }
.dtw-branch__why.is-ok { color: #5E4433; }
.dtw-branch.is-franchise .dtw-branch__act { flex-wrap: wrap; gap: 4px 12px; }
.dtw-branch.is-franchise .dtw-branch__why { white-space: nowrap; }
.dtw-branch.is-franchise .dtw-branch__icons { min-height: 26px; margin-bottom: 4px; }

.dtw-goals__records { display: flex; align-items: center; gap: 8px; padding: 4px 12px 5px; background: rgba(255, 253, 245, .75); border: 3px solid var(--ink); border-radius: 14px; }
.dtw-goals__reclabel { font-family: var(--font-display); font-size: 18px; letter-spacing: .3px; margin-right: 2px; }
.dtw-record { flex: 1 1 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; padding: 1px 9px 3px; line-height: 1.1; background: #FBF3DF; border: 2px solid rgba(58, 31, 18, .22); border-radius: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dtw-record__k { flex: 0 0 100%; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.dtw-record b { font-size: 16.5px; font-weight: 800; }
.dtw-record__d { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dtw-goals__ladder { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 8px; }
.dtw-rank { display: flex; flex-direction: column; align-items: center; width: 190px; }
.dtw-rank__badge { width: 104px; height: 104px; filter: drop-shadow(0 4px 0 rgba(58, 31, 18, .3)); }
.dtw-rank.is-next .dtw-rank__badge { width: 86px; height: 86px; margin: 9px 0; filter: grayscale(.75) opacity(.75); }
.dtw-rank.is-next.is-ready .dtw-rank__badge { filter: drop-shadow(0 0 10px rgba(245, 179, 1, .9)); animation: dtw-bob 1.2s ease-in-out infinite; }
@keyframes dtw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.dtw-rank__tag { margin-top: 2px; font-size: 14px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.dtw-rank.is-ready .dtw-rank__tag { color: var(--good); }
.dtw-rank__name { font-family: var(--font-display); font-size: 25px; line-height: 1.05; letter-spacing: .3px; white-space: nowrap; }
.dtw-rank__arrow { width: 54px; height: 54px; }

.dtw-goals__items { display: flex; flex-direction: column; gap: 6px; }
.dtw-goal { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; }
.dtw-goal__tick { width: 34px; height: 34px; padding: 4px; background: #EADBB8; border: 2.5px solid rgba(58, 31, 18, .5); border-radius: 50%; }
.dtw-goal__tick svg { opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease-out-back, ease-out); }
.dtw-goal.is-done .dtw-goal__tick { background: var(--good-bg); border-color: #17592A; }
.dtw-goal.is-done .dtw-goal__tick svg { opacity: 1; transform: none; }
.dtw-goal__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
.dtw-goal__label { font-size: 18px; font-weight: 800; }
.dtw-goal__val { font-size: 17px; font-weight: 800; color: #5E4433; white-space: nowrap; }
.dtw-goal.is-done .dtw-goal__val { color: var(--good); }
.dtw-bar--goal { height: 18px; }
.dtw-goal.is-done .dtw-bar__fill { background: linear-gradient(180deg, #86D45E, #4FAE3B); }
.dtw-goal__who { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; }
.dtw-goal__outlet { position: relative; display: block; width: 32px; height: 32px; filter: grayscale(.85); opacity: .7; }
.dtw-goal__outlet.is-ok { filter: none; opacity: 1; }
.dtw-goal__obadge { display: block; width: 32px; height: 32px; }
.dtw-goal__omark { position: absolute; right: -5px; bottom: -4px; width: 18px; height: 18px; padding: 1px; background: #FFFDF5; border: 2px solid var(--ink); border-radius: 50%; }
.dtw-goals__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; }
.dtw-goals__foot .dtw-goals__reward { margin-top: 6px; }
.dtw-goals__card.is-top .dtw-goals__foot { justify-content: center; }
.dtw-goals__card.has-challenges .dtw-goals__foot { order: 4; align-self: flex-start; }
.dtw-goals__card.is-dense .dtw-rank__badge { width: 84px; height: 84px; }
.dtw-goals__card.is-dense .dtw-rank.is-next .dtw-rank__badge { width: 70px; height: 70px; margin: 7px 0; }
.dtw-goals__card.is-dense .dtw-goals__ladder { margin-bottom: 4px; }
.dtw-goals__card.is-dense .dtw-goals__items { gap: 4px; }
.dtw-goals__card.is-dense .dtw-goal__who { margin-top: 3px; }
.dtw-goals__card.is-dense .dtw-goal__outlet, .dtw-goals__card.is-dense .dtw-goal__obadge { width: 28px; height: 28px; }
.dtw-goals__card.is-dense .dtw-goals__perks { gap: 1px; margin-top: 2px; }
.dtw-goals__card.is-dense .dtw-perk__icon { width: 22px; height: 22px; }
.dtw-goals__card.is-dense .dtw-perk { grid-template-columns: 22px 1fr; }
.dtw-goals__card.is-dense { padding-top: 8px; padding-bottom: 10px; }
.dtw-goals__card.is-dense .dtw-perk { font-size: 15px; }
.dtw-goals__sandbox { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; padding: 14px 18px; text-align: left; background: linear-gradient(180deg, #D6F0EE, #BFE6E2); border: 3px dashed var(--fair); border-radius: 18px; }
.dtw-goals__sandbox b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: .3px; color: var(--fair); }
.dtw-goals__sandbox span { font-size: 18px; font-weight: 700; }
.dtw-goals__sandico { flex: none; width: 60px; height: 60px; }
.dtw-land__head { max-width: 480px; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.dtw-goals__caption { margin-top: 10px; font-size: 15.5px; font-weight: 700; color: var(--muted); }
.dtw-goals__caption.is-good { color: var(--good); }
.dtw-goals__reward { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 18px; font-weight: 700; }
.dtw-goals__reward:empty { display: none; }
.dtw-goals__reward b { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--good); }
.dtw-goals__rewardico { width: 30px; height: 30px; }
.dtw-goals__perks { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.dtw-perk { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; font-size: 16px; font-weight: 700; line-height: 1.2; color: #4A2C1A; }
.dtw-perk__icon { width: 26px; height: 26px; }

.dtw-goals__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dtw-goals__journey { display: flex; align-items: flex-start; justify-content: center; gap: 2px; margin: 4px 0 6px; }
.dtw-goals__jstep { display: flex; flex-direction: column; align-items: center; width: 92px; font-size: 13.5px; font-weight: 800; line-height: 1.1; text-align: center; color: #5E4433; }
.dtw-goals__jbadge { width: 62px; height: 62px; margin-bottom: 2px; }
.dtw-goals__jarrow { flex: none; width: 20px; height: 20px; margin-top: 21px; opacity: .7; }
.dtw-land__row { display: grid; grid-template-columns: 196px 1fr; column-gap: 16px; align-items: center; }
.dtw-land__pic { width: 196px; height: 155px; }
.dtw-land .dtw-h { margin-bottom: 2px; }
.dtw-land__lbl { font-family: var(--font-ui); font-size: 11.5px; font-weight: 800; fill: #6B5546; }
.dtw-land__lbl.is-own { fill: var(--c-ink, #3A1F12); }
.dtw-land__lbl.is-next { fill: #17592A; }
.dtw-land__main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.dtw-land__title { font-family: var(--font-display); font-size: 25px; line-height: 1.05; letter-spacing: .3px; }
.dtw-land__sub { font-size: 15.5px; font-weight: 700; line-height: 1.2; color: #5E4433; }
.dtw-land__why { min-height: 18px; font-size: 15.5px; font-weight: 800; color: var(--bad); }
.dtw-land .dt-btn { margin-top: 0; }
.dtw-land__btns { display: flex; flex-wrap: wrap; gap: 7px 10px; margin-top: 2px; }
.dtw-land__main { gap: 4px; }
.dtw-land .dtw-land__why:empty { display: none; }
.dtw-land__btns:empty { display: none; }
.dtw-land__h { min-width: 0; }
.dtw-land__h .dtw-land__head { flex: 1 1 auto; min-width: 0; font-size: 19px; }
.dtw-window .dt-btn--small.dtw-land__expand { flex: none; min-height: 32px; margin: 0 0 4px auto; font-size: 15px; padding: 0 10px 4px; border-radius: 12px; }
.dtw-land__storeys { font-size: 15.5px; font-weight: 800; line-height: 1.2; color: #4A2C1A; }
.dtw-land__storeys.is-ready { color: var(--good); }
.dtw-land__stairs { font-size: 14.5px; font-weight: 800; line-height: 1.15; color: var(--bad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* which storey someone is on (lists in Guests and Staff) */
.dtw-floorchip { display: inline-block; flex: none; min-width: 18px; height: 16px; margin-left: 5px; padding: 0 4px; font-size: 11.5px; font-weight: 800; line-height: 15px; text-align: center; color: #5A4636; background: #EFE4CE; border: 1.5px solid #6B5546; border-radius: 6px; vertical-align: 1px; }
.dtw-floorchip.is-up { color: #FFF4DC; background: var(--c-teal, #0E8C8C); border-color: var(--ink); }
.dtw-roster__roleline, .dtw-grow__typeline { display: flex; align-items: center; white-space: nowrap; }

.dtw-goals__awards { padding-bottom: 8px; }
.dtw-goals__awards .dtw-h { margin-bottom: 4px; }
.dtw-awards { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.dtw-award { display: grid; grid-template-columns: 50px 1fr; column-gap: 8px; align-items: center; min-width: 0; }
.dtw-award__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.dtw-award__name { font-size: 16px; font-weight: 800; color: #8B7A66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-award__day { font-size: 13.5px; font-weight: 700; color: #9A8873; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dtw-award.is-won .dtw-award__name { color: var(--ink); }
.dtw-award.is-won .dtw-award__day { color: var(--good); font-weight: 800; }
.dtw-goals__life { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dtw-goals__life .dtw-stat__label { font-size: 13.5px; }

/* ---------- Your Outlets (the chain) ---------- */

.dtw-window--chain { height: 730px; }
.dtw-chain { gap: 7px; padding-bottom: 12px; }
.dtw-chain__strip { flex: none; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr 1fr 1fr; gap: 8px; }
.dtw-chain__strip .dtw-stat { padding: 3px 10px 4px 8px; }
.dtw-chain__strip .dtw-stat__label { font-size: 13.5px; }
.dtw-chain__strip .dtw-stat__value { font-size: 24px; }
.dtw-chain__strip .dtw-stat__value.is-len-l { font-size: 20px; }
.dtw-chain__strip .dtw-stat__sub { display: none; }
.dtw-chain__h { flex: none; margin: 2px 0 -2px; min-height: 26px; }
.dtw-chain__go { flex: none; display: flex; align-items: center; gap: 12px; padding: 4px 8px 6px 12px; background: linear-gradient(180deg, #D9F2C6, #BDE8A2); border: 3px solid #17592A; border-radius: 16px; }
.dtw-chain__goico { flex: none; width: 30px; height: 30px; }
.dtw-chain__gonote { flex: 1; font-size: 17px; font-weight: 800; color: #17592A; }

.dtw-chain__outlets { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dtw-outlet { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px 9px 8px; }
.dtw-outlet.is-here { background: linear-gradient(180deg, #FFF3C4, #FFE08A); }
.dtw-outlet.is-fresh { outline: 4px solid var(--c-good, #5DBB3F); outline-offset: 1px; }
.dtw-outlet__head { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 6px; align-items: center; }
.dtw-outlet__badge { width: 36px; height: 36px; }
.dtw-outlet__id { min-width: 0; }
.dtw-outlet__namebox { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; height: 26px; }
.dtw-outlet__name { min-width: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.2; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.dtw-outlet__edit { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 7px; opacity: .7; cursor: pointer; transition: opacity .12s, background .12s; }
.dtw-outlet__edit:hover { opacity: 1; background: rgba(58, 31, 18, .1); }
.dtw-outlet__pencil { display: block; width: 100%; height: 100%; }
.dtw-outlet__input, .dtw-outlet__counter { display: none; }
.dtw-outlet.is-editing .dtw-outlet__name, .dtw-outlet.is-editing .dtw-outlet__edit { display: none; }
.dtw-outlet.is-editing .dtw-outlet__input {
  display: block;
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 6px 1px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  background: #FFF3B8;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  outline: 0;
  box-shadow: 0 0 0 3px var(--c-teal, #0E8C8C);
  -webkit-user-select: text;
  user-select: text;
}
.dtw-outlet.is-editing .dtw-outlet__counter { display: block; flex: none; font-size: 12.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.dtw-outlet__counter.is-over { color: var(--bad); }
.dtw-outlet__town { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-outlet__line { display: flex; align-items: center; gap: 6px; }
.dtw-outlet__sign { min-height: 22px; padding: 0 8px 1px; font-size: 12.5px; letter-spacing: .4px; border-width: 2px; }
.dtw-rating--small { width: 85px; height: 17px; }
.dtw-rating--small .dtw-rating__off, .dtw-rating--small .dtw-rating__in { width: 85px; }
.dtw-rating--small .dtw-star { width: 17px; height: 17px; }
.dtw-outlet__rating { font-family: var(--font-display); font-size: 18px; line-height: 1; }
.dtw-outlet__nums { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 1px; align-items: center; }
.dtw-outlet__k { font-size: 13.5px; font-weight: 800; color: var(--muted); }
.dtw-outlet__v { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; font-size: 17px; white-space: nowrap; }
.dtw-outlet__dim { font-size: 13px; font-weight: 700; color: var(--muted); }
.dtw-outlet__spark { flex: none; width: 72px; height: 22px; order: -1; margin-right: auto; }
.dtw-outlet__facts { display: flex; flex-direction: column; line-height: 1.15; }
.dtw-outlet__crew { font-size: 13.5px; font-weight: 700; color: #5E4433; }
.dtw-outlet__size { font-size: 13.5px; font-weight: 700; color: #5E4433; white-space: nowrap; }
.dtw-outlet__warns { display: flex; flex-direction: column; gap: 2px; min-height: 37px; }
.dtw-outlet__warn { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 5px; align-items: center; font-size: 13.5px; font-weight: 800; line-height: 1.15; color: #8E0A1E; }
.dtw-outlet__warn span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-outlet__warn.is-ok { color: var(--good); }
.dtw-outlet__warnico { width: 18px; height: 18px; }
.dtw-window .dt-btn--small.dtw-outlet__visit { min-height: 36px; margin-top: auto; }
.dtw-outlet__here { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-top: auto; font-family: var(--font-display); font-size: 18px; color: #17592A; background: var(--good-bg); border: 2.5px dashed #17592A; border-radius: 13px; }
.dtw-outlet__hereico { width: 22px; height: 22px; }

.dtw-chain__towns { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dtw-chain__towns.is-n1 { grid-template-columns: minmax(0, 420px); }
.dtw-chain__towns.is-n2 { grid-template-columns: repeat(2, minmax(0, 420px)); }
.dtw-chain__towns.is-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dtw-town { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 5px 10px 8px; }
.dtw-town.is-locked { background: #F4EBD8; }
.dtw-town.is-locked .dtw-town__badge { filter: grayscale(.8) opacity(.75); }
.dtw-town__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 9px; align-items: center; }
.dtw-town__badge { width: 44px; height: 44px; }
.dtw-town__name { font-family: var(--font-display); font-size: 20px; line-height: 1.1; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtw-town__tag { font-size: 13px; font-weight: 700; line-height: 1.1; color: var(--muted); }
.dtw-town__traits { display: flex; flex-wrap: wrap; gap: 3px 4px; }
.dtw-town__trait { padding: 0 7px 1px; font-size: 12.5px; font-weight: 700; line-height: 1.15; color: #5A4636; background: #F3E6C6; border: 1.5px solid rgba(58, 31, 18, .35); border-radius: 999px; white-space: nowrap; }
.dtw-town__sells { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: #4A2C1A; }
.dtw-town__sells b { font-weight: 800; color: var(--good); }
.dtw-town__sells .dtw-town__sep + b { color: var(--bad); }
.dtw-town__meters { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 14px; }
.dtw-town__meter { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.dtw-pips { display: inline-flex; gap: 2px; }
.dtw-pips i { display: block; width: 11px; height: 11px; background: #EADBB8; border: 1.5px solid rgba(58, 31, 18, .5); border-radius: 50%; }
.dtw-pips i.is-on { background: var(--c-turmeric, #F5B301); border-color: var(--ink); }
.dtw-town__act { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: auto; }
.dtw-window .dt-btn--small.dtw-town__btn { min-width: 0; min-height: 48px; padding: 2px 8px 6px; }
.dtw-town__btn .dtw-btn2__main { font-size: 17px; }
.dtw-town__btn .dtw-btn2__sub { font-size: 13px; opacity: 1; }
.dtw-franchise__pins { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-height: 44px; }
.dtw-franchise__pin { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.dtw-franchise__flag { width: 20px; height: 20px; }
.dtw-franchise__more { font-family: var(--font-display); font-size: 17px; }

/* ---------- Daily Report ---------- */

.dtw-rep { position: relative; gap: 10px; padding-top: 42px; }
.dtw-rep__toran { position: absolute; left: 0; top: -2px; width: 100%; height: 44px; pointer-events: none; }
.dtw-rep__toran svg { width: 100%; height: 100%; }
.dtw-rep__content { display: flex; flex-direction: column; gap: 10px; }
.dtw-rep__head { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.dtw-rep__day { font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: .5px; color: var(--c-kumkum, #C8102E); white-space: nowrap; }
.dtw-rep__nav { flex: none; width: 38px; height: 38px; padding: 5px; background: #FFFDF5; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.dtw-rep__nav:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.dtw-rep__nav.is-disabled { opacity: .35; cursor: default; box-shadow: none; }
.dtw-rep__navico { display: block; width: 100%; height: 100%; }
.dtw-rep__navico.is-prev { transform: scaleX(-1); }
.dtw-rep__chips { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.dtw-rep__event, .dtw-rep__head .dtw-rep__award { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px 2px 6px; font-size: 16.5px; line-height: 1.1; white-space: nowrap; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); }
.dtw-rep__event { background: #FFFDF5; }
.dtw-rep__event b, .dtw-rep__head .dtw-rep__award b { font-weight: 800; }
.dtw-rep__evbadge { flex: none; width: 46px; height: 46px; }
.dtw-rep__head .dtw-medal { transform: scale(.82); margin: -4px -4px -6px; }

.dtw-rep__hero { display: grid; grid-template-columns: 290px 1fr 220px; gap: 12px; align-items: stretch; }
.dtw-rep__pbox { display: flex; flex-direction: column; justify-content: center; padding: 8px 16px 10px; background: linear-gradient(180deg, #FFF3C4, #FFE08A); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); min-width: 0; }
.dtw-rep__plabel { font-size: 16px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #8A5200; }
.dtw-rep__profit { font-family: var(--font-display); font-size: 54px; line-height: 1.02; letter-spacing: .5px; white-space: nowrap; }
.dtw-rep__profit.is-len-l { font-size: 42px; }
.dtw-rep__profit.is-len-xl { font-size: 30px; }
.dtw-rep__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dtw-rep__stats .dtw-stat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.dtw-rep__stats .dtw-stat__value { font-size: 34px; }
.dtw-rep__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dtw-rep__rating, .dtw-rep__top, .dtw-rep__award { padding: 5px 12px 7px; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.dtw-rep__rating { display: flex; flex-direction: column; }
.dtw-rep__rline { display: flex; align-items: center; gap: 8px; }
.dtw-rep__rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dtw-rep__rnum { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.dtw-rep__rdelta { font-size: 14.5px; font-weight: 800; color: var(--muted); }
.dtw-rep__rdelta.is-up { color: var(--good); }
.dtw-rep__rdelta.is-down { color: var(--bad); }
.dtw-rep__toplabel { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.dtw-rep__top, .dtw-rep__award { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1.1; }
.dtw-rep__top b, .dtw-rep__award b { font-weight: 800; }
.dtw-rep__topico { flex: none; width: 46px; height: 46px; }
.dtw-rep__award { background: linear-gradient(180deg, #FFF3C4, #FFE08A); }

.dtw-rep__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: stretch; }
.dtw-rep__ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; padding: 10px 16px 12px; }
.dtw-rep__col { display: flex; flex-direction: column; }
.dtw-rep__colh { margin-bottom: 4px; font-family: var(--font-display); font-size: 20px; letter-spacing: .3px; }
.dtw-rep__line { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0 3px; font-size: 16px; font-weight: 700; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.dtw-rep__line.is-none { color: var(--muted); }
.dtw-rep__line.is-total { margin-top: auto; padding-top: 6px; font-size: 19px; font-weight: 800; border-bottom: 0; border-top: 3px solid var(--ink); }
.dtw-rep__line.is-sub { font-weight: 800; border-top: 2px solid rgba(58, 31, 18, .55); margin-top: 2px; }
.dtw-rep__line.is-carry { color: #5E4433; }
.dtw-rep__line.is-carry + .dtw-rep__line.is-total, .dtw-rep__line.is-sub ~ .dtw-rep__line.is-total { margin-top: auto; }
.dtw-rep__says { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dtw-rep__bubble { position: relative; z-index: 1; width: 100%; padding: 9px 13px 11px; font-size: 17px; font-weight: 700; line-height: 1.25; background: #FFFDF5; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.dtw-rep__bubble::after { content: ''; position: absolute; left: 50%; bottom: -13px; width: 18px; height: 18px; margin-left: -9px; background: #FFFDF5; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.dtw-rep__chef { position: relative; flex: none; width: 190px; height: 176px; background: radial-gradient(circle at 50% 35%, #FFF6CF, #FFD76B); border: 3px solid var(--ink); border-radius: 95px 95px 24px 24px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.dtw-rep__chef svg { position: absolute; left: 7px; top: 6px; width: 176px; height: 211px; }
.dtw-rep__btns { flex: none; display: flex; justify-content: flex-end; gap: 12px; padding-bottom: 4px; }
.dtw-rep__btns .dt-btn { min-width: 150px; }

/* the chain's report: company headline, a row per outlet, one outlet in detail */
.dtw-window--report.is-wide { width: 1210px; }
.dtw-rep.is-chain .dtw-rep__content { display: grid; grid-template-columns: 540px minmax(0, 1fr); grid-template-areas: "head head" "hero hero" "outlets detail" "says detail"; gap: 10px 14px; align-items: start; }
.dtw-rep.is-chain .dtw-rep__content.is-hidden { display: none; }
.dtw-rep.is-chain .dtw-rep__head { grid-area: head; padding-right: 330px; }
.dtw-rep.is-chain .dtw-rep__hero { grid-area: hero; grid-template-columns: 360px 1fr 260px; }
.dtw-rep.is-chain .dtw-rep__profit { font-size: 46px; }
.dtw-rep.is-chain .dtw-rep__stats .dtw-stat { flex-direction: row; align-items: center; gap: 10px; }
.dtw-rep.is-chain .dtw-rep__side { flex-direction: row; }
.dtw-rep.is-chain .dtw-rep__side > * { flex: 1 1 0; min-width: 0; }
.dtw-rep.is-chain .dtw-rep__hero { grid-template-columns: 300px 440px minmax(0, 1fr); }
.dtw-rep.is-chain .dtw-rep__side > .dtw-rep__rating { flex: 0 0 168px; }
.dtw-rep.is-chain .dtw-rep__stars { width: 95px; height: 19px; }
.dtw-rep.is-chain .dtw-rep__stars .dtw-rating__off, .dtw-rep.is-chain .dtw-rep__stars .dtw-rating__in { width: 95px; }
.dtw-rep.is-chain .dtw-rep__stars .dtw-star { width: 19px; height: 19px; }
.dtw-rep.is-chain .dtw-rep__topico { width: 38px; height: 38px; }
.dtw-rep.is-chain .dtw-rep__stats .dtw-stat__value { font-size: 28px; }
.dtw-rep.is-chain .dtw-rep__stats .dtw-stat { padding-left: 8px; padding-right: 8px; gap: 7px; }
.dtw-rep.is-chain .dtw-rep__top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dtw-rep.is-chain .dtw-rep__top > span:last-child { min-width: 0; }
.dtw-rep.is-chain .dtw-rep__body { display: contents; }
.dtw-rep.is-chain .dtw-rep__ledger { grid-area: detail; align-self: stretch; grid-template-rows: auto 1fr; }
.dtw-rep.is-chain .dtw-rep__outlets { grid-area: outlets; }
.dtw-rep.is-chain .dtw-rep__says { grid-area: says; flex-direction: row-reverse; align-items: center; gap: 14px; }
.dtw-rep.is-chain .dtw-rep__chef { width: 118px; height: 108px; border-radius: 59px 59px 18px 18px; }
.dtw-rep.is-chain .dtw-rep__chef svg { left: 4px; top: 4px; width: 110px; height: 132px; }
.dtw-rep.is-chain .dtw-rep__bubble::after { left: -11px; bottom: 50%; margin: 0 0 -9px; border-width: 0 0 3px 3px; }
.dtw-rep.is-chain .dtw-rep__btns { position: absolute; right: 16px; top: 46px; padding: 0; }
.dtw-rep__outlets { padding: 6px 10px 8px; }
.dtw-reprow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 84px 54px 40px 92px 30px; column-gap: 8px; align-items: center; width: 100%; min-height: 31px; padding: 0 6px; font-size: 15.5px; font-weight: 800; text-align: left; border-bottom: 1.5px solid var(--line); border-radius: 8px; font-variant-numeric: tabular-nums; }
button.dtw-reprow { cursor: pointer; transition: background .1s; }
button.dtw-reprow:hover { background: #FFF6DC; }
button.dtw-reprow.is-on { background: #FFE9A8; box-shadow: inset 0 0 0 2.5px var(--ink); }
.dtw-reprow > :nth-child(n+3):not(:last-child) { text-align: right; justify-content: flex-end; }
.dtw-reprow--head { min-height: 22px; font-size: 12.5px; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); border-bottom: 2.5px solid var(--ink); border-radius: 0; }
.dtw-reprow__badge { width: 26px; height: 26px; }
.dtw-reprow__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.dtw-reprow__rating { display: flex; align-items: baseline; gap: 5px; }
.dtw-reprow__rating .dtw-rep__rdelta { font-size: 12.5px; min-width: 34px; text-align: left; }
.dtw-reprow__dish { width: 28px; height: 28px; }
.dtw-rep__dtitle { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 15.5px; font-weight: 700; color: var(--muted); }
.dtw-rep__dtitle b { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--ink); max-width: 330px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.dtw-rep__dbadge { flex: none; width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .dtw-window.is-open, .dtw-window.is-swap, .dtw-window.is-leaving, .dtw-window .is-shake, .dtw-nope.is-on,
  .dtw-rank.is-next.is-ready .dtw-rank__badge, .dtw-proj.is-focus, .dtw-res__current.is-flash { animation-duration: .01s; }
}
