/* ==================================================================================================
   Fincan — chain layer UI (CHAIN_SPEC §6): Merkez, Şubeler, Şehir, Şablonlar, Tesisler & Müdürler,
   Politika, Zincir Pazarlama, chain Sıralama, branch dialogs, the chain onboarding and Hesap.
   Same paper / ink / copper / İznik vocabulary as ui.css; only tokens from ui.css are used.
   Loaded after ui.css and before mobile.css (index.html).
   ================================================================================================== */

/* ------------------------------------------------------------------------------- panel sizes */
body:not(.ui-mobile) .panel.is-xwide { width: min(720px, calc(100vw - var(--panel-left) - var(--gutter))); }
body:not(.ui-mobile) .panel.is-city { width: min(580px, calc(100vw - var(--panel-left) - var(--gutter))); }
@media (max-width: 1100px) { body:not(.ui-mobile) .panel.is-xwide { width: min(600px, calc(100vw - var(--panel-left) - var(--gutter))); } }

/* chain sub-panels live in the strip on desktop; on phones they are in the "Daha" sheet */
body:not(.ui-mobile) .dock-btn.is-desk-hidden { display: none; }
/* `.fincan-ui button { color: inherit }` outranks `.dock-btn { color }`: give the rail its ink so icons inherit it */
.dock { color: #d9c9b0; }
body:not(.ui-mobile) .dock { max-height: calc(100vh - var(--top) - var(--gutter)); overflow-y: auto; scrollbar-width: none; }
body:not(.ui-mobile) .dock::-webkit-scrollbar { display: none; }
@media (max-height: 760px) {
  body:not(.ui-mobile) .dock { gap: 2px; padding: 5px; }
  body:not(.ui-mobile) .dock-btn { width: 40px; height: 40px; }
  body:not(.ui-mobile) .dock-sep { margin: 2px 0; }
}

/* ---------------------------------------------------------------------------- chain nav strip */
.chain-nav {
  display: flex; gap: 2px; margin: 0 -4px; padding: 0 4px 2px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6px, #000 calc(100% - 10px), transparent);
  mask: linear-gradient(90deg, transparent, #000 6px, #000 calc(100% - 10px), transparent);
}
.chain-nav::-webkit-scrollbar { display: none; }
.chain-nav-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none; height: 28px; padding: 0 10px 0 8px; border: 0; border-radius: 99px;
  background: transparent; color: var(--ink-3); cursor: pointer; font: 600 11.5px/1 var(--f-ui);
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}
.chain-nav-btn .ico { --ico: 15px; color: var(--copper); }
.chain-nav-btn:hover { background: rgba(184, 115, 51, 0.1); color: var(--ink); }
.chain-nav-btn[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 31, 26, 0.14), inset 0 0 0 1px rgba(184, 115, 51, 0.3); cursor: default; }
.chain-nav-btn[aria-current="page"] .ico { color: var(--cobalt); }

/* ------------------------------------------------------------------------------- shared atoms */
.emblem-badge { display: inline-flex; width: var(--em, 28px); height: var(--em, 28px); flex: none; line-height: 0; }
.emblem-badge svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px rgba(42, 31, 26, 0.28)); }
.chain-tag { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 12.5px/1.1 var(--f-ui); color: var(--ink); }
.chain-tag-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating-inline { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.delta { display: inline-flex; align-items: center; gap: 3px; font: 600 11.5px/1 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta .ico { --ico: 13px; }
.delta.is-up { color: var(--turq-deep); }
.delta.is-down { color: var(--tomato-deep); }
.delta.is-flat, .delta.is-na { color: var(--ink-4); font-weight: 500; }

.ratio-bar { position: relative; height: 8px; min-width: 40px; border-radius: 99px; background: rgba(42, 31, 26, 0.1); overflow: hidden; box-shadow: inset 0 1px 1px rgba(42, 31, 26, 0.12); }
.ratio-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; transition: width 500ms var(--ease-out); background: var(--copper); }
.ratio-bar.tone-copper .ratio-fill { background: linear-gradient(90deg, var(--copper-deep), var(--copper-hi)); }
.ratio-bar.tone-turq .ratio-fill { background: linear-gradient(90deg, var(--turq-deep), #2fb0a8); }
.ratio-bar.tone-brass .ratio-fill { background: linear-gradient(90deg, #a8841a, var(--brass-hi)); }
.ratio-bar.tone-cobalt .ratio-fill { background: linear-gradient(90deg, var(--cobalt-deep), var(--cobalt-hi)); }
.ratio-bar.tone-warn .ratio-fill { background: linear-gradient(90deg, #b06a16, #e0a64a); }

.share { display: flex; flex-direction: column; gap: 8px; }
.share-bar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(42, 31, 26, 0.08); box-shadow: inset 0 1px 1px rgba(42, 31, 26, 0.12); }
.share-seg { min-width: 4px; flex-basis: 0; transition: flex-grow 500ms var(--ease-out); }
.share-seg.is-mine { box-shadow: inset 0 0 0 2px rgba(255, 250, 241, 0.85); }
.share-seg.is-rest { background: repeating-linear-gradient(135deg, rgba(42, 31, 26, 0.16) 0 4px, rgba(42, 31, 26, 0.07) 4px 8px); }
.share-seg.is-empty { background: transparent; }
.share-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.share-key { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.share-key.is-mine { font-weight: 700; color: var(--ink); }
.share-name { max-width: 16ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-val { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.share-none { font-size: 12px; color: var(--ink-3); }

.econ-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.econ {
  display: inline-flex; flex-direction: column; gap: 3px; padding: 6px 10px 7px; border-radius: 10px; min-width: 0;
  background: rgba(255, 250, 241, 0.85); box-shadow: inset 0 0 0 1px var(--line-2);
}
.econ-k { font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.econ-v { font: 650 13.5px/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.econ-v s { font: 500 11px/1 var(--f-ui); color: var(--ink-4); }
.econ.is-free { background: rgba(31, 138, 138, 0.09); box-shadow: inset 0 0 0 1px rgba(31, 138, 138, 0.3); }
.econ.is-free .econ-v { color: var(--turq-deep); }
.mix-chips { gap: 4px; }
.alert-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.sel-wrap { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.sel {
  -webkit-appearance: none; appearance: none; height: 32px; max-width: 100%; min-width: 0; padding: 0 30px 0 10px; border-radius: 9px;
  border: 1px solid rgba(42, 31, 26, 0.16); background: var(--card); color: var(--ink); cursor: pointer;
  font: 600 12px/1 var(--f-ui); text-overflow: ellipsis; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(42, 31, 26, 0.06);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.sel:hover { border-color: rgba(184, 115, 51, 0.55); }
.sel:focus-visible { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(31, 78, 156, 0.15); outline: none; }
.sel-caret { position: absolute; right: 9px; pointer-events: none; color: var(--ink-3); }

.search-wrap { position: relative; display: flex; align-items: center; flex: 1 1 180px; min-width: 0; }
.search-wrap > .ico { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.text-in.is-search { height: 32px; padding-left: 32px; font-size: 12.5px; }
.text-in.is-search::-webkit-search-cancel-button { cursor: pointer; }
.tool-row.is-wrap { flex-wrap: wrap; }
.sort-dir .ico { transition: transform var(--t-med) var(--ease-out); }
.sort-dir.is-desc .ico { transform: scaleY(-1); }

.skeleton { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.sk-line { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(42, 31, 26, 0.07) 30%, rgba(42, 31, 26, 0.13) 50%, rgba(42, 31, 26, 0.07) 70%); background-size: 300% 100%; animation: chain-shimmer 1.3s ease-in-out infinite; }
@keyframes chain-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.link-btn.is-danger { color: var(--tomato-deep); text-decoration-color: rgba(192, 57, 43, 0.3); }
.link-btn.is-danger:hover { color: var(--tomato); }
.callout.is-gift { background: rgba(201, 162, 39, 0.14); color: #5d470a; box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.38); margin-top: 12px; }
.callout.is-gift .ico { color: #a8841a; }
.menu-cost { color: var(--ink-3); }
.active-where { font-size: 11.5px; color: var(--ink-3); }
.camp-target .sel-wrap, .camp-target .sel { width: 100%; }

/* tone helpers for round icon wells */
.tone-bad { --tone: var(--tomato); --tone-bg: rgba(192, 57, 43, 0.12); }
.tone-warn { --tone: #b06a16; --tone-bg: rgba(201, 130, 43, 0.16); }
.tone-neutral { --tone: var(--ink-3); --tone-bg: rgba(42, 31, 26, 0.08); }
.tone-good { --tone: var(--turq-deep); --tone-bg: rgba(31, 138, 138, 0.13); }

/* ==================================================================================================
   MERKEZ
   ================================================================================================== */
.hq-id {
  --brand: var(--cobalt);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 13%, var(--card)), var(--card) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent), 0 1px 2px rgba(42, 31, 26, 0.06);
}
.hq-id-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hq-name { font: 650 20px/1.05 var(--f-display); font-variation-settings: "opsz" 72; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.hq-sub { font-size: 11.5px; color: var(--ink-3); }
.hq-money { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.hq-money-k { font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hq-money-val { font: 650 22px/1 var(--f-display); font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.hq-money-val.is-neg { color: var(--tomato); }
.hq-sec { margin-top: 4px; }
.hq-meter-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 26px; }
.hq-meter-k { font: 600 12px/1.2 var(--f-ui); color: var(--ink-2); }
.hq-meter-v { font: 600 12px/1 var(--f-ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hq-note { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.hq-note.is-warn { display: flex; align-items: center; gap: 6px; color: var(--tomato-deep); font-weight: 600; }

.kpi-table { display: flex; flex-direction: column; border-radius: 12px; background: rgba(255, 250, 241, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.kpi-row { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; padding: 8px 12px; }
.kpi-row + .kpi-row { border-top: 1px solid var(--line-2); }
.kpi-row.is-head { padding-top: 7px; padding-bottom: 6px; font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); background: rgba(42, 31, 26, 0.035); }
.kpi-row.is-head span:not(:first-child), .kpi-v, .kpi-p, .kpi-d { text-align: right; justify-self: end; }
.kpi-k { font: 600 12.5px/1.2 var(--f-ui); color: var(--ink-2); }
.kpi-v { font: 650 14.5px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-v.is-neg { color: var(--tomato); }
.kpi-p { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.alert-list { display: flex; flex-direction: column; gap: 4px; }
.alert-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 8px 7px 8px;
  border-radius: 12px; background: rgba(255, 250, 241, 0.8); box-shadow: inset 0 0 0 1px var(--line-2);
}
.alert-ico { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--tone, var(--ink-3)); background: var(--tone-bg, rgba(42, 31, 26, 0.08)); }
.alert-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert-name { font: 600 13.5px/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-loc { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-allgood { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font: 600 12.5px/1.3 var(--f-ui); color: var(--turq-deep); background: rgba(31, 138, 138, 0.08); box-shadow: inset 0 0 0 1px rgba(31, 138, 138, 0.25); }
.hq-more { margin-top: 8px; }
.hq-titles { margin-bottom: 10px; }
.aware-head { display: flex; justify-content: space-between; margin-bottom: 6px; font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.aware-list { display: flex; flex-direction: column; gap: 2px; }
.aware-row {
  display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 42px; align-items: center; gap: 10px; width: 100%; min-height: 32px;
  padding: 4px 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; transition: background var(--t-fast) ease;
}
.aware-row:hover { background: rgba(184, 115, 51, 0.09); }
.aware-city { font: 600 12.5px/1.2 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aware-val { font: 600 11.5px/1 var(--f-ui); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.hq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ==================================================================================================
   ŞUBELER
   ================================================================================================== */
.branch-table { display: flex; flex-direction: column; gap: 4px; container-type: inline-size; }
.br-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 76px 82px 82px auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; background: rgba(255, 250, 241, 0.8); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
.br-row:not(.is-head):hover { box-shadow: inset 0 0 0 1px rgba(184, 115, 51, 0.38); }
.br-row.is-head { padding: 0 10px 2px; background: none; box-shadow: none; font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.br-row.is-head > :last-child { text-align: right; }
.br-row.is-active { background: rgba(255, 248, 228, 0.95); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.6); }
.br-row.is-closed .br-name, .br-row.is-closed .br-num { opacity: 0.62; }
.br-row.has-alerts { box-shadow: inset 3px 0 0 rgba(192, 57, 43, 0.55), inset 0 0 0 1px var(--line-2); }
.br-row.is-active.has-alerts { box-shadow: inset 3px 0 0 rgba(192, 57, 43, 0.55), inset 0 0 0 1px rgba(201, 162, 39, 0.6); }
.br-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.br-name { display: flex; align-items: center; gap: 6px; min-width: 0; font: 600 14px/1.15 var(--f-display); }
.br-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-active { flex: none; padding: 2px 6px; border-radius: 99px; font: 700 9px/1.2 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: #6f560a; background: rgba(201, 162, 39, 0.24); }
.br-loc { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-main .alert-chips { margin-top: 2px; }
.br-rating { display: flex; flex-direction: column; gap: 4px; }
.br-lvl { font: 600 10.5px/1 var(--f-ui); color: var(--ink-3); }
.br-num { text-align: right; font: 650 13px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.br-row.is-head .br-num { font: inherit; color: inherit; }
.br-num.is-neg { color: var(--tomato); }
.br-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.br-open { display: inline-flex; padding: 0 4px; }
.br-close:hover { color: var(--tomato-deep); background: rgba(192, 57, 43, 0.1); }
.branch-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.branch-cap { font: 600 12px/1.2 var(--f-ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }
@container (max-width: 600px) {
  .br-row { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 8px; }
  .br-row.is-head { display: none; }
  .br-row > .br-main { grid-column: 1; grid-row: 1; }
  .br-row > .br-rating { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .br-row > span.br-num { grid-column: 3; grid-row: 1; }
  .br-row > span.br-num:nth-of-type(2) { display: none; }
  .br-row > .br-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@container (max-width: 380px) {
  .br-row { grid-template-columns: minmax(0, 1fr) auto; }
  .br-row > .br-main { grid-row: 1 / span 2; }
  .br-row > span.br-num { grid-column: 2; grid-row: 2; }
  .br-row > .br-actions { grid-row: 3; }
}

/* ==================================================================================================
   ŞEHİR
   ================================================================================================== */
.city-head { display: flex; align-items: flex-start; gap: 12px; }
.city-plate, .cl-plate {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 52px; height: 30px; padding: 0 9px 0 19px; border-radius: 5px; background: #fdfcf8; color: #141414;
  font: 700 17px/1 var(--f-ui); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px #1d1d1d, 0 2px 4px -1px rgba(42, 31, 26, 0.3);
}
.city-plate::before, .cl-plate::before {
  content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 11px; border-radius: 3.5px 0 0 3.5px; background: #1e40a6;
}
.city-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.city-blurb { font: italic 420 14px/1.45 var(--f-display); color: var(--ink-2); text-wrap: pretty; }
.region-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 6px; border-radius: 99px; font: 600 11px/1 var(--f-ui); color: var(--ink-2); background: color-mix(in srgb, var(--region, #b9ab95) 22%, transparent); }
.city-specs { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.city-specs-k, .city-aware-k { font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.city-sec { margin-top: 4px; }
.title-holder { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 8px 11px; border-radius: 11px; font-size: 12.5px; color: var(--ink-2); background: rgba(201, 162, 39, 0.1); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.3); }
.title-holder strong { font: 650 13.5px/1.2 var(--f-display); color: var(--ink); }
.title-holder.is-mine { background: rgba(201, 162, 39, 0.2); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.6); }
.city-aware { display: grid; grid-template-columns: auto minmax(0, 1fr) 42px; align-items: center; gap: 10px; margin-top: 12px; }
.city-aware-v { font: 600 12px/1 var(--f-ui); text-align: right; font-variant-numeric: tabular-nums; }

.district-list { display: flex; flex-direction: column; gap: 6px; }
.district { border-radius: 14px; background: rgba(255, 250, 241, 0.82); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(42, 31, 26, 0.04); transition: box-shadow var(--t-fast) ease; }
.district.is-open { box-shadow: inset 0 0 0 1px rgba(184, 115, 51, 0.32), 0 6px 16px -12px rgba(42, 31, 26, 0.5); }
.district-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; }
.district-head:hover { background: rgba(184, 115, 51, 0.06); }
.district-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.district-name { display: flex; align-items: center; gap: 7px; font: 650 15px/1.15 var(--f-display); color: var(--ink); }
.mine-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font: 700 10px/1 var(--f-ui); color: var(--lacquer); background: linear-gradient(180deg, var(--brass-hi), var(--brass)); }
.district-sub { font-size: 11px; color: var(--ink-3); }
.district-caret { color: var(--ink-3); transition: transform var(--t-med) var(--ease-out); }
.district.is-open .district-caret { transform: rotate(180deg); }
.district-econ { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 10px; }
.street-blocks { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; }
.street-block { padding: 9px 10px 8px; border-radius: 11px; background: linear-gradient(180deg, rgba(42, 31, 26, 0.03), rgba(42, 31, 26, 0.065)); box-shadow: inset 0 0 0 1px var(--line-2); }
.street-block-head { display: flex; align-items: center; gap: 6px; min-height: 22px; flex-wrap: wrap; }
.street-block-name { font: 600 13.5px/1.2 var(--f-display); color: var(--ink); }
.street-free { font: 600 10.5px/1 var(--f-ui); padding: 3px 7px; border-radius: 99px; color: var(--turq-deep); background: rgba(31, 138, 138, 0.12); }
.street-free.is-full { color: var(--ink-3); background: rgba(42, 31, 26, 0.07); }
.plot-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 8px; position: relative; }
.plot-unknown { grid-column: 1 / -1; font-size: 11.5px; font-style: italic; color: var(--ink-3); }
.pslot {
  --slot: #b9ab95;
  display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 0; background: none; cursor: pointer; min-width: 0;
  transition: transform var(--t-med) var(--ease-out), filter var(--t-fast) ease;
}
.pslot-awn {
  height: 8px; border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(90deg, var(--slot) 0 5px, #f6ecd9 5px 10px);
}
.pslot.is-free:not(.is-selected) .pslot-awn { opacity: 0.4; }
.pslot-front { position: relative; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #e9dcc5, #d9c7a8); box-shadow: inset 0 0 0 1px rgba(42, 31, 26, 0.12); }
.pslot.is-taken .pslot-front { background: linear-gradient(180deg, #f5d79a, #e6b767); box-shadow: inset 0 0 0 1px rgba(138, 79, 31, 0.28), inset 0 0 10px rgba(255, 200, 110, 0.55); }
.pslot-rent { padding: 1px 2px; border-radius: 2px; font: 800 5.5px/1 var(--f-ui); letter-spacing: 0.04em; color: var(--tomato-deep); background: #fff8ec; box-shadow: 0 0 0 0.5px rgba(192, 57, 43, 0.5); white-space: nowrap; overflow: hidden; max-width: 92%; }
/* p7:qa — a narrow slot cut the English "FOR RENT" to "FOR REN"; two short words may now take two lines */
.pslot-rent { white-space: normal; text-align: center; }
.pslot-no { margin-top: 4px; font: 650 10px/1 var(--f-display); color: var(--ink-3); text-align: center; }
.pslot.is-free:hover { transform: translateY(-2px); }
.pslot.is-free:hover .pslot-awn { opacity: 0.8; }
.pslot.is-taken { cursor: zoom-in; }
.pslot.is-taken:hover { filter: brightness(1.05); }
.pslot.is-mine .pslot-front { box-shadow: inset 0 0 0 1.5px var(--brass), inset 0 0 10px rgba(255, 200, 110, 0.6); }
.pslot.is-mine .pslot-no { color: #8a6d12; font-weight: 800; }
.pslot.is-selected { transform: translateY(-3px); filter: drop-shadow(0 5px 5px rgba(42, 31, 26, 0.28)); }
.pslot.is-selected .pslot-awn { --slot: var(--cobalt); opacity: 1; }
.pslot.is-selected .pslot-front { background: linear-gradient(180deg, #fff7e8, #f1e2c6); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.pslot.is-selected .pslot-rent { display: none; }
.pslot.is-selected .pslot-no { color: var(--cobalt); }
/* p10:ui — neighbourhood (game-owned) shops: sage awning, pale green front, trade icon + "Esnaf / Shop" tag;
   not clickable (role=img), so they never read as a rival café or a free plot */
.pslot.is-gameshop { --slot: #5f8a6e; cursor: default; }
.pslot.is-gameshop .pslot-front {
  flex-direction: column; gap: 1px;
  background: repeating-linear-gradient(180deg, #e3eee2 0 4px, #d7e6d6 4px 8px);
  box-shadow: inset 0 0 0 1px rgba(63, 107, 78, 0.35);
}
.pslot-shop-ico { color: #3f6b4e; }
.pslot-shop { font: 800 6px/1 var(--f-ui); letter-spacing: 0.03em; text-transform: uppercase; color: #3f6b4e; max-width: 94%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pslot.is-gameshop .pslot-no { color: #5f8a6e; }
.pslot-legend { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.pslot-legend-key { width: 12px; height: 10px; border-radius: 2px; flex: none; background: linear-gradient(180deg, #5f8a6e 0 3px, #dbe8da 3px); box-shadow: inset 0 0 0 1px rgba(63, 107, 78, 0.35); }

.city-action {
  position: sticky; bottom: -18px; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 14px -16px -18px; padding: 12px 16px calc(12px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
  background: var(--paper-hi); border-top: 1px solid rgba(184, 115, 51, 0.3); box-shadow: 0 -10px 22px -16px rgba(42, 31, 26, 0.6);
  animation: chain-rise 260ms var(--ease-out);
}
.city-action-main { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.city-action-k { font: 650 14.5px/1.15 var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
.city-action-v { font-size: 11.5px; color: var(--ink-3); }
@keyframes chain-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==================================================================================================
   ŞABLONLAR
   ================================================================================================== */
.tpl-save { margin-bottom: 4px; }
.tpl-save .inline-form { margin-top: 10px; }
.tpl-save .inline-form .text-in { flex: 1; min-width: 0; font-size: 13.5px; }
.tpl-list, .fac-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-card, .fac-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 250, 241, 0.82); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(42, 31, 26, 0.05); }
.tpl-head, .fac-head { display: flex; align-items: center; gap: 10px; }
.tpl-ico, .fac-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fdf8ee; background: radial-gradient(circle at 35% 30%, #d9955a, var(--copper-deep)); }
.tpl-titles, .fac-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tpl-name, .fac-name { font: 650 15px/1.15 var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
.tpl-sub, .fac-sub { font-size: 11.5px; color: var(--ink-3); }
.tpl-cost { font: 650 15px/1 var(--f-display); color: var(--copper-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpl-apply { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpl-apply .sel-wrap { flex: 1 1 200px; }
.tpl-apply .sel { width: 100%; }
.tpl-preview { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 84px; }
.tpl-preview-k { font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.tpl-preview-v { font: 650 14px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tpl-preview-v.is-refund { color: var(--turq-deep); }
.tpl-foot { display: flex; align-items: center; gap: 8px; min-height: 20px; }

/* ==================================================================================================
   TESİSLER & MÜDÜRLER
   ================================================================================================== */
.fac-card.is-built { box-shadow: inset 0 0 0 1px rgba(31, 138, 138, 0.38), 0 1px 2px rgba(42, 31, 26, 0.05); }
.fac-card.is-built .fac-ico { background: radial-gradient(circle at 35% 30%, #2fb0a8, var(--turq-deep)); }
.fac-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.fac-price strong { font: 650 15px/1 var(--f-display); color: var(--copper-deep); font-variant-numeric: tabular-nums; }
.fac-price span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fac-desc { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.fac-build { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fac-build .sel-wrap { flex: 0 1 220px; }
.fac-build .sel { width: 100%; }
.fac-note { flex: 1 1 120px; font-size: 11px; color: var(--ink-3); }

.mgr-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mgr-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; text-align: center; background: rgba(255, 250, 241, 0.85); box-shadow: inset 0 0 0 1px var(--line-2); }
.mgr-stat strong { font: 650 18px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.mgr-stat span { font-size: 11px; color: var(--ink-3); }
.mgr-list { display: flex; flex-direction: column; gap: 4px; }
.mgr-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 250, 241, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); }
.mgr-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fdf8ee; background: radial-gradient(circle at 35% 30%, var(--cobalt-hi), var(--cobalt-deep)); }
.mgr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mgr-name { font: 600 13.5px/1.15 var(--f-display); }
.mgr-where { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgr-wage { font: 600 12px/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-form.is-select { align-items: center; }
.inline-form.is-select .sel-wrap { flex: 1; }
.inline-form.is-select .sel { width: 100%; height: 34px; }

/* ==================================================================================================
   POLİTİKA
   ================================================================================================== */
.policy-lead { margin: 0 0 10px; }
.follow-list, .region-list { display: flex; flex-direction: column; gap: 4px; }
.follow-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 250, 241, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); }
.follow-main, .region-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.follow-name, .region-name { font: 600 13.5px/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-loc, .region-sub { font-size: 11px; color: var(--ink-3); }
.follow-state { font: 600 11px/1 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
.follow-state.is-on { color: var(--turq-deep); }
.region-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 250, 241, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); }
.region-row.is-empty { background: rgba(255, 250, 241, 0.45); }
.region-row.is-empty .region-name { color: var(--ink-3); }
.region-ex { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
@container (max-width: 360px) { .region-ex { display: none; } }
.region-list { container-type: inline-size; }

/* ==================================================================================================
   SIRALAMA (chain leagues) & SOKAK
   ================================================================================================== */
.rank-list.is-league .rank-row { grid-template-columns: 30px minmax(0, 1fr) 64px 86px; }
.rank-name-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name .emblem-badge { margin-right: 1px; }
.rank-gap { text-align: center; letter-spacing: 0.3em; color: var(--ink-4); padding: 2px 0; }
.rank-mid { font: 650 13px/1 var(--f-display); text-align: center; font-variant-numeric: tabular-nums; }
.rank-rating.is-inline { flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; }
.city-league-sum { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; font: 600 12.5px/1.3 var(--f-ui); color: #5d470a; background: rgba(201, 162, 39, 0.13); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35); }
.city-league-sum .ico { color: #a8841a; }
.rank-list.is-cities { gap: 4px; }
.city-league-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, auto) 40px; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px 7px 8px; border: 0; border-radius: 11px; background: rgba(255, 250, 241, 0.75); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.city-league-row:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(184, 115, 51, 0.4); }
.city-league-row.is-mine { background: rgba(255, 248, 228, 0.95); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.6); }
.cl-plate { min-width: 40px; height: 22px; padding: 0 6px 0 14px; font-size: 12px; border-radius: 4px; }
.cl-plate::before { width: 8px; border-radius: 2.5px 0 0 2.5px; }
.cl-city { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-name { font: 600 13.5px/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sub { font-size: 11px; color: var(--ink-3); }
.cl-leader { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 12px/1.1 var(--f-ui); }
.cl-leader > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-leader.is-none { color: var(--ink-4); font-weight: 500; font-style: italic; }
.cl-share { font: 600 11.5px/1 var(--f-ui); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.street-city { margin-top: 12px; }

/* ==================================================================================================
   DIALOGS: Şube aç · Şube seç · zincir Gün Sonu
   ================================================================================================== */
.modal-card.ob-card { --brand: var(--cobalt); width: min(460px, 100%); display: flex; flex-direction: column; gap: 12px; }
.ob-head { display: flex; align-items: center; gap: 12px; }
.ob-head .modal-title { text-align: left; }
.ob-where { display: block; margin-top: 3px; font: 600 14px/1.25 var(--f-display); color: var(--ink); }
.ob-where-sub { display: block; font-size: 12px; color: var(--ink-3); }
.ob-orn { margin: 0; }
.ob-k { display: block; margin-bottom: 6px; font: 600 9.5px/1 var(--f-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.ob-layouts { display: flex; flex-direction: column; gap: 6px; }
.ob-layout {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 12px 9px 9px;
  border: 0; border-radius: 12px; background: rgba(255, 250, 241, 0.85); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
.ob-layout:hover { box-shadow: inset 0 0 0 1px rgba(184, 115, 51, 0.45); }
.ob-layout[aria-checked="true"] { background: rgba(31, 78, 156, 0.06); box-shadow: inset 0 0 0 2px var(--cobalt); }
.ob-layout-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--copper-deep); background: rgba(184, 115, 51, 0.14); }
.ob-layout[aria-checked="true"] .ob-layout-ico { color: #fdf8ee; background: radial-gradient(circle at 35% 30%, var(--cobalt-hi), var(--cobalt-deep)); }
.ob-layout-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-layout-name { font: 600 13.5px/1.15 var(--f-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-layout-sub { font-size: 11px; color: var(--ink-3); }
.ob-layout-cost { font: 650 13.5px/1 var(--f-display); color: var(--copper-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ob-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(42, 31, 26, 0.04); }
.ob-total .ob-k { margin: 0; }
.ob-total-v { font: 650 22px/1 var(--f-display); font-variation-settings: "opsz" 96; color: var(--ink); font-variant-numeric: tabular-nums; }
.ob-after { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ob-after.is-neg { color: var(--tomato-deep); font-weight: 600; }
.ob-fine { font-size: 11.5px; color: var(--ink-3); }
.ob-fine:empty { display: none; }
.ob-card .modal-actions { justify-content: flex-end; margin-top: 2px; }
.ob-card .ob-confirm { min-width: 160px; }

.modal-card.sw-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 12px; }
.sw-head { display: flex; align-items: center; gap: 12px; }
.sw-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.sw-list { display: flex; flex-direction: column; gap: 4px; max-height: min(52vh, 460px); overflow-y: auto; margin: 0 -4px; padding: 2px 4px; }
.sw-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 8px;
  border: 0; border-radius: 11px; background: rgba(255, 250, 241, 0.8); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.sw-row:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(184, 115, 51, 0.45); }
.sw-row.is-active { background: rgba(255, 248, 228, 0.95); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.65); }
.sw-ico { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--copper-deep); background: rgba(184, 115, 51, 0.13); }
.sw-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-name { display: flex; align-items: center; gap: 6px; font: 600 13.5px/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-loc { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-go { font: 600 11.5px/1 var(--f-ui); color: var(--cobalt); white-space: nowrap; }
.sw-row.is-active .sw-go { color: #8a6d12; }
.sw-card .modal-actions { justify-content: space-between; }
.sw-card .empty-text { padding: 12px 4px; }
@media (max-width: 520px) { .sw-row { grid-template-columns: 28px minmax(0, 1fr) auto; } .sw-row .alert-chips, .sw-row .rating-inline { display: none; } }

.eod.is-chain .eod-emblem { display: inline-flex; }
.eod-brs { display: flex; flex-direction: column; gap: 6px; }
.eod-br { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; align-items: baseline; }
.eod-br-name { font: 600 13px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eod-br-loc { grid-row: 2; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eod-br-v { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 650 13.5px/1 var(--f-display); color: var(--turq-deep); font-variant-numeric: tabular-nums; }
.eod-br-v.is-neg { color: var(--tomato); }
.eod-br-sep { height: 1px; margin: 2px 0; background: linear-gradient(90deg, transparent, rgba(184, 115, 51, 0.45), transparent); }

/* ==================================================================================================
   ONBOARDING (title.js): steps · brand · HQ on the live map
   ================================================================================================== */
.ob-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; padding: 0; list-style: none; }
.ob-step-dot { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--f-ui); color: var(--ink-4); }
.ob-step-dot + .ob-step-dot::before { content: ""; width: 18px; height: 1px; margin-right: 2px; background: rgba(184, 115, 51, 0.45); }
.ob-step-n { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 10.5px/1 var(--f-ui); box-shadow: inset 0 0 0 1.5px rgba(42, 31, 26, 0.2); }
.ob-step-dot.is-current { color: var(--ink); }
.ob-step-dot.is-current .ob-step-n { color: #fdf8ee; background: var(--cobalt); box-shadow: 0 0 0 3px rgba(31, 78, 156, 0.16); }
.ob-step-dot.is-done { color: var(--ink-3); }
.ob-step-dot.is-done .ob-step-n { color: #fdf8ee; background: var(--turq); box-shadow: none; }
.ob-step { display: flex; flex-direction: column; gap: 14px; animation: chain-step 300ms var(--ease-out); }
@keyframes chain-step { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.title-actions.is-split { gap: 8px; justify-content: space-between; align-items: center; }
.title-actions.is-split .title-submit { width: auto; flex: 1; min-width: 0; }
.title-actions.is-split .title-submit .btn-label { overflow: hidden; text-overflow: ellipsis; }
.title-links { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.title-form.is-login { display: none; }
.title-card.is-login-mode .title-form { display: none; }
.title-card.is-login-mode .title-form.is-login { display: flex; }

.ob-preview { display: flex; }
.ob-sign {
  --brand: var(--cobalt); --brand-ink: #fdf8ee;
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px 12px 12px; border-radius: 14px;
  color: var(--brand-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 86%, #fff), var(--brand) 60%, color-mix(in srgb, var(--brand) 80%, #000));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 4px color-mix(in srgb, var(--brand) 92%, #000), inset 0 0 0 5px rgba(201, 162, 39, 0.55), 0 10px 22px -14px rgba(20, 12, 8, 0.8);
  transition: background 320ms ease;
}
.ob-sign-em { display: inline-flex; flex: none; line-height: 0; }
.ob-sign-em svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.ob-sign-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ob-sign-name { font: 650 22px/1.05 var(--f-display); font-variation-settings: "opsz" 96; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.ob-sign-sub { font: 600 10px/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.78; }

.emblem-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.emblem-opt {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 44px; padding: 4px; border: 0; border-radius: 12px;
  background: rgba(255, 250, 241, 0.6); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
.emblem-opt svg { display: block; width: min(40px, 100%); height: auto; }
.emblem-opt:hover { transform: translateY(-2px); background: #fff; }
.emblem-opt[aria-checked="true"] { background: #fff; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

/* HQ step: the card turns into a compact guide so the live map stays clickable */
.title-layer.is-map-step::before { background: linear-gradient(90deg, rgba(20, 14, 10, 0.28) 0%, rgba(20, 14, 10, 0) 36%); }
.title-layer.is-map-step .title-card { top: auto; bottom: clamp(16px, 3vh, 32px); width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 16px 18px 14px; transform: translate(-18px, 0); }
.title-layer.is-open.is-map-step .title-card { transform: none; }
.title-layer.is-map-step .title-brand, .title-layer.is-map-step .title-orn, .title-layer.is-map-step .title-foot, .title-layer.is-map-step .title-credit { display: none; }
.ob-map-lead { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-weight: 500; }
.ob-map-lead .ico { color: var(--copper); margin-top: 2px; }
.ob-city { padding: 11px 12px; border-radius: 12px; background: rgba(255, 250, 241, 0.88); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.ob-city-head { display: flex; align-items: center; gap: 10px; }
.ob-city-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ob-city-name { font: 650 18px/1.05 var(--f-display); color: var(--ink); }
.ob-city-sub { font-size: 11.5px; color: var(--ink-3); }
.ob-city-blurb { font: italic 420 13px/1.45 var(--f-display); color: var(--ink-2); }
.ob-city-empty { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-style: italic; color: var(--ink-3); }
.ob-city-empty .ico { color: var(--copper); opacity: 0.8; }
.ob-city-pick .sel-wrap, .ob-city-pick .sel { width: 100%; }
.ob-city-pick .sel { height: 38px; font-size: 13px; }
.ob-here { align-self: flex-start; margin-top: -6px; }
body.ui-mobile .title-layer.is-map-step .title-card { max-height: min(56vh, calc(var(--vvh, 100dvh) - var(--safe-t) - var(--safe-b) - 24px)); }
body.ui-mobile .title-layer.is-map-step .ob-city-blurb { display: none; }
/* p7:play — on a 375×667 phone the city card made the HQ step scroll and pushed "Start in {city}" below the
   card's edge; keep the Back / Start row pinned to the bottom of the scrolling card */
body.ui-mobile .title-layer.is-map-step .title-actions { position: sticky; bottom: -14px; z-index: 2; margin: 0 -18px -14px; padding: 8px 18px 14px; background: var(--paper); }
body.ui-mobile .emblem-grid { gap: 5px; }

/* ==================================================================================================
   AYARLAR › HESAP & ZİNCİR · INSPECTOR
   ================================================================================================== */
.acc-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(31, 78, 156, 0.06); box-shadow: inset 0 0 0 1px rgba(31, 78, 156, 0.2); }
.acc-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fdf8ee; background: radial-gradient(circle at 35% 30%, var(--cobalt-hi), var(--cobalt-deep)); }
.acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-name { font: 650 15px/1.15 var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
.acc-sub { font-size: 11px; color: var(--ink-3); }
.acc-sec .segmented { margin-bottom: 2px; }
.acc-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acc-form .text-in { flex: 1 1 120px; min-width: 0; height: 34px; }
.acc-form .btn { height: 34px; }
.acc-sec .form-error { margin-top: 8px; }

.insp-emblem { display: inline-flex; flex: none; }
.insp-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 2px; font-size: 11px; color: var(--ink-3); }
.insp-chain .chain-tag { font-size: 12px; }
.insp-chain-n { font-variant-numeric: tabular-nums; }
.insp-chain-where { display: inline-flex; align-items: center; gap: 3px; }
.inspector .econ-chips { margin-top: 10px; }
.insp-mix { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }

/* ------------------------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sk-line, .city-action, .ob-step { animation: none; }
  .ratio-fill, .share-seg, .pslot, .district-caret, .emblem-opt, .sort-dir .ico { transition: none; }
}

/* === p6:prestige === Popular (silver) / Prime (gold) streets: badges, tier cards, locked plots, dialog warning */
.pr-badge { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 20px; padding: 0 8px 0 6px; border-radius: 99px; font: 700 10px/1 var(--f-ui); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.pr-badge.is-compact { width: 20px; padding: 0; justify-content: center; }
.pr-badge.is-gold { color: #5b3f05; background: linear-gradient(180deg, #ffe39a, #e2a92e); box-shadow: inset 0 0 0 1px rgba(122, 82, 8, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.pr-badge.is-silver { color: #3c4651; background: linear-gradient(180deg, #f7f9fb, #b9c2cc); box-shadow: inset 0 0 0 1px rgba(60, 70, 81, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.pr-badge .ico { flex: none; }
.pr-city { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font: 600 11px/1 var(--f-ui); }
.pr-city.is-gold { color: #5b3f05; background: rgba(226, 169, 46, 0.18); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45); }
.pr-city.is-gold .ico { color: #c08a12; }
.pr-city.is-silver { color: #3c4651; background: rgba(169, 178, 188, 0.2); box-shadow: inset 0 0 0 1px rgba(120, 130, 142, 0.4); }
.pr-first-hint { display: flex; align-items: flex-start; gap: 5px; margin-top: 6px; font-size: 11.5px; }
.pr-first-hint .ico { flex: none; margin-top: 2px; color: #c08a12; }

.street-block.is-gold { box-shadow: inset 3px 0 0 #e2a92e; padding-left: 10px; }
.street-block.is-silver { box-shadow: inset 3px 0 0 #aab4be; padding-left: 10px; }
.pr-card { margin-top: 10px; padding: 10px 11px 9px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.pr-card.is-gold { background: linear-gradient(180deg, rgba(255, 227, 154, 0.32), rgba(255, 244, 214, 0.5)); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.4); }
.pr-card.is-silver { background: linear-gradient(180deg, rgba(230, 235, 240, 0.7), rgba(246, 248, 250, 0.7)); box-shadow: inset 0 0 0 1px rgba(150, 160, 172, 0.4); }
.pr-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pr-card-mix { flex: 1 1 140px; min-width: 0; font-size: 11px; color: var(--ink-3); }
.pr-lock { display: inline-flex; align-items: center; gap: 4px; font: 650 10.5px/1.2 var(--f-ui); color: var(--tomato-deep); }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pr-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px 8px 7px; border-radius: 9px; background: rgba(255, 252, 245, 0.85); box-shadow: inset 0 0 0 1px var(--line-2); }
.pr-cell.is-wide { grid-column: 1 / -1; }
.pr-k { font: 600 9px/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pr-v { font: 650 13px/1.15 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sub { font-size: 10.5px; color: var(--ink-3); }
.pr-cell.has-loss .pr-sub { color: var(--tomato-deep); }
.pr-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-slots { font: 650 10.5px/1 var(--f-ui); padding: 4px 8px; border-radius: 99px; color: var(--turq-deep); background: rgba(31, 138, 138, 0.12); }
.pr-slots.is-full { color: var(--tomato-deep); background: rgba(192, 57, 43, 0.1); }
.pr-fine { flex: 1 1 160px; font-size: 10.5px; color: var(--ink-3); }

.pslot.is-locked { cursor: not-allowed; }
.pslot.is-locked .pslot-awn { opacity: 0.25; }
.pslot.is-locked .pslot-front { background: repeating-linear-gradient(135deg, #e4d8c3 0 5px, #d8c9ae 5px 10px); }
.pslot.is-locked .pslot-lock { color: var(--ink-3); }
.pslot.is-locked:hover { transform: none; }
.pslot.is-quota .pslot-rent { color: var(--ink-3); box-shadow: 0 0 0 0.5px rgba(42, 31, 26, 0.35); }

.pr-lock-line { margin: 2px 0; }
.pr-warn-wrap:empty { display: none; }
.pr-warn { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; }
.pr-warn-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pr-warn.is-ok { background: rgba(31, 138, 138, 0.08); box-shadow: inset 0 0 0 1px rgba(31, 138, 138, 0.28); color: var(--turq-deep); }
.pr-warn.is-weak { background: rgba(226, 169, 46, 0.14); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45); color: #6a4c07; }
.pr-warn.is-bad { background: rgba(192, 57, 43, 0.08); box-shadow: inset 0 0 0 1.5px rgba(192, 57, 43, 0.45); color: var(--tomato-deep); }
.pr-warn-body, .pr-warn-fine, .pr-warn-loss { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.pr-warn-loss { font-weight: 650; color: var(--tomato-deep); }
.pr-warn-fine { font-size: 11px; color: var(--ink-3); }
.pr-needs { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-need { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; font: 650 11px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.pr-need.is-ok { color: var(--turq-deep); background: rgba(31, 138, 138, 0.12); }
.pr-need.is-miss { color: var(--tomato-deep); background: rgba(192, 57, 43, 0.1); }
@media (max-width: 520px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-card { padding: 9px 9px 8px; }
}
/* === end p6:prestige === */

/* === p6:qa === day report: "nobody was served" warning */
.eod-idle { margin: 0; padding: 9px 12px; border-radius: 12px; font: 500 13px/1.4 var(--f-ui); color: #7a3a12; background: rgba(230, 140, 60, 0.14); border: 1px solid rgba(200, 110, 40, 0.35); }
.eod-idle .ico { vertical-align: -2px; }
/* === /p6:qa === */
