@import url("./fonts.css?v=249");
:root {
  --bg: #0a0d19;
  --sheet: #101426;
  --card: #101426;
  --card2: #191c34;
  --ink: #e9ecff;
  --muted: #a0aac7;
  --line: #a28aca26;
  --border: #a28aca26;
  --acc: #b59aff;
  --primary: #7049bc;
  --acc-soft: #9970ff20;
  --ok: #6ce0ad;
  --warn: #ffca7c;
  --bad: #ff8fa6;
  --mint: #18372f;
  --sand: #392c20;
  --blush: #3b2233;
  --sky: #1c2948;
  --radius: 20px;
  --radius-sm: 14px;
  --pad: 16px;
  --gap: 12px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --app-h: 100dvh;
  --dock-h: 0px;
  --tap: 44px;
  color-scheme: dark;
}

details.employee-directory-entry{padding:0}
.employee-directory-entry>.employee-directory-summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none;min-height:68px;user-select:none}
.employee-directory-summary::-webkit-details-marker{display:none}
.employee-directory-summary::marker{content:''}
.employee-directory-label{display:grid;gap:4px;min-width:0;flex:1}
.employee-directory-label strong{font-size:15px;overflow-wrap:anywhere;color:var(--ink)}
.employee-directory-label small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.employee-directory-chevron{color:var(--muted);font-size:22px;transition:transform .15s}
.employee-directory-entry[open]>.employee-directory-summary{background:var(--card2);border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0}
.employee-directory-entry[open]>.employee-directory-summary .employee-directory-chevron{transform:rotate(180deg)}
.employee-directory-content{padding:16px}
.employee-directory-content>.dir-item>.person{display:none}
.employee-directory-summary:focus-visible{outline:2px solid var(--acc);outline-offset:-3px;border-radius:var(--radius)}

.own-contact-links.profile-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 20px;max-width:520px}
.own-contact-links.profile-contact-actions>.btn{min-width:0;min-height:44px;white-space:normal;align-self:stretch}

.payment-route-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.payment-route-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:900px;color:var(--ink)}
.payment-route-table th,.payment-route-table td{padding:14px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.payment-route-table th{font-size:12px;color:var(--muted);background:var(--card2)}
.payment-route-table td>span,.payment-route-table td>strong,.payment-route-table td>small{display:block;margin-bottom:6px}
.payment-route-table td>small{color:var(--muted)}
.payment-route-table .route-arrow{width:25px;color:var(--acc);text-align:center}
.payment-route-table th:nth-child(3){width:25px}
.payment-route-table th:last-child{width:25%}
.payment-route-table .btn{font-size:12px;padding:8px 10px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.payment-route-table .route-money{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.payment-route-table .route-evidence{max-height:220px;overflow:auto;font-size:12px;background:var(--card2);border-radius:10px;padding:10px;user-select:text}
.payment-route-parties{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.payment-route-editor fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px}
.payment-route-editor legend{font-weight:700;padding:0 5px}
#routeExistingForm{margin-top:16px;max-width:620px}
@media(max-width:700px){.payment-route-parties{grid-template-columns:1fr}.payment-route-table{display:block;min-width:0;table-layout:auto}.payment-route-table thead{display:none}.payment-route-table tbody{display:block}.payment-route-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--line);padding:6px}.payment-route-table td{display:block;min-width:0;border:0;padding:10px}.payment-route-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.payment-route-table td:first-child,.payment-route-table td:last-child{grid-column:1/-1}.payment-route-table .route-arrow{display:none}.payment-route-table .route-money{white-space:normal;word-break:keep-all;overflow-wrap:normal}.payment-route-table td:nth-child(5){grid-column:1/-1}}
.archive-modal.rate-chart-modal input[type=range][data-rate-time]{appearance:auto;padding:0;margin:8px 0;width:100%;height:34px;min-height:34px;background:transparent;border-radius:0}
.admin-only-badge{display:inline-block;vertical-align:middle;background:#151515;color:#fff!important;border-radius:6px;padding:3px 7px;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.02em;margin:0 0 0 6px;white-space:nowrap}.card>.admin-only-badge{margin:0 0 10px}.payment-new-request{margin-top:14px}.payment-new-request[hidden]{display:none}.rate-chart-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end}.rate-chart-controls>label{min-width:0;margin:0}.rate-chart-controls input[type=date],.rate-chart-controls select{min-width:0;max-width:100%;margin:5px 0;font-size:14px;min-height:44px}.rate-comparison-toggle{margin:12px 0;display:flex;align-items:center;gap:8px;font-size:13px}.rate-chart-legend{display:flex;flex-wrap:wrap;gap:8px 18px;color:#2465ed;font-size:12px}.rate-chart-legend .previous{color:#78859e}.rate-chart-legend .meta{font-size:12px}.rate-chart-controls input[type=date]{appearance:auto}@media(max-width:500px){.rate-chart-controls{grid-template-columns:1fr 1fr;gap:8px}.rate-chart-controls>label:last-child:nth-child(3){grid-column:1/-1}.rate-chart-controls input[type=date],.rate-chart-controls select{font-size:13px;padding:10px 7px}}
.search-combo{position:relative;width:100%;min-width:0}.search-combo input{width:100%;margin:6px 0}.search-combo-options{position:absolute;top:100%;left:0;right:0;max-height:260px;overflow-y:auto;z-index:90;background:#fff;border:1px solid #dbe3f2;border-radius:12px;box-shadow:0 12px 32px #10254626;padding:5px}.search-combo-options[hidden]{display:none}.search-combo-options button{display:block;width:100%;padding:12px;text-align:left;background:#fff;color:var(--ink);font:inherit;font-size:14px;border:0;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}.search-combo-options button:hover,.search-combo-options button.active{background:var(--acc-soft)}.search-combo-options button[aria-selected=true]{font-weight:700;color:#2058d6}.search-combo>select[hidden]{display:none!important}.request-overview h3,.request-table td:nth-child(2){text-align:left}.request-overview h3{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:5px}.workspace-request-statuses{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px}.workspace-request-statuses .badge{font-size:10px}.sidebar-search{margin-bottom:8px}.sidebar-search>span{font-size:27px;width:22px}.directory-other-list{margin-top:18px}.directory-other-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;max-height:400px;overflow:auto}.request-overview .badge[data-request-balance-badge]{font-size:12px}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  height: 100%;
  height: var(--app-h, 100dvh);
  max-height: var(--app-h, 100dvh);
  overflow: hidden;
  background: var(--bg);
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  overscroll-behavior: none;
}
html.desktop, html.desktop body {
  touch-action: auto;
  -ms-touch-action: auto;
  overscroll-behavior: auto;
  overflow: hidden;
}
html.desktop,
html.desktop body,
html.desktop .shell,
html.desktop #app {
  -webkit-app-region: no-drag;
  app-region: no-drag;
  -webkit-user-drag: none;
}
html.desktop #app {
  overflow-y: scroll;
  overscroll-behavior: auto;
  touch-action: pan-y;
  cursor: grab;
}
html.desktop #app.drag-scroll,
html.desktop #app.drag-scroll * {
  cursor: grabbing !important;
  user-select: none !important;
}
body {
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
.shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
}
.top {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: calc(8px + var(--sat)) max(var(--pad), var(--sar)) 10px max(var(--pad), var(--sal));
  background: rgba(244,246,251,.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top-mid { min-width: 0; text-align: center; flex: 1; }
.brand {
  font-weight: 760;
  font-size: 16px;
  letter-spacing: -.03em;
}
.sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; max-width: 52%; }
.icon-btn, .ghost, .btn, .tile, .kb-btn, .dock-btn, .crumb, .chip, .kpi, .qa, .act {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--sheet);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(28,36,52,.06);
  flex: 0 0 auto;
}
.ghost {
  background: var(--sheet);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 12px;
  min-height: 32px;
  font-weight: 650;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(28,36,52,.06);
}
.ghost .gico { font-size: 13px; }
.ava-sm {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #5b8cff, #7c5cff);
  color: #fff;
  font-weight: 760;
  font-size: 13px;
  flex: 0 0 auto;
}
#app {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px max(var(--pad), var(--sar)) 16px max(var(--pad), var(--sal));
}
.hello {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 2px 14px;
}
.hello .kicker { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.hello h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.045em;
  font-weight: 780;
  line-height: 1.12;
}
.page { padding: 0 0 8px; min-height: 55vh; }
.page h2 {
  margin: 4px 0 16px;
  font-size: 26px;
  letter-spacing: -.04em;
  font-weight: 780;
}
.page > .btn { margin-bottom: 12px; }
.hero {
  background: var(--mint);
  border-radius: 22px;
  padding: 18px 18px 16px;
  margin-bottom: 10px;
}
.hero .lbl { color: #3d6b54; font-size: 13px; font-weight: 650; }
.hero .num {
  margin: 8px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.hero .subd { color: #4a7a62; font-size: 13px; }
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.kpi {
  text-align: left;
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: var(--sheet);
  min-height: 86px;
}
.kpi.sand { background: var(--sand); }
.kpi.blush { background: var(--blush); }
.kpi.sky { background: var(--sky); }
.kpi .lbl { color: var(--muted); font-size: 12px; font-weight: 650; }
.kpi .num {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.qa-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 18px;
}
.qa-row.all {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}
.qa {
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
}
.qa .ico {
  width: 48px; height: 48px;
  border-radius: 16px;
  margin: 0 auto 6px;
  display: grid; place-items: center;
  background: var(--sheet);
  box-shadow: 0 1px 3px rgba(28,36,52,.08);
  font-size: 20px;
}
.qa span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.sec-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 760;
}
.act {
  width: 100%;
  display: flex;
  gap: 12px;
  text-align: left;
  background: var(--sheet);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 8px;
  color: inherit;
}
.act .ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--acc-soft);
  color: var(--acc);
  display: grid; place-items: center;
  font-weight: 760;
  flex: 0 0 auto;
}
.act b { display: block; font-size: 14px; }
.act .meta { margin-top: 2px; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 16px;
}
.grid.sys { margin-top: 4px; }
.tile {
  position: relative;
  overflow: visible;
  text-align: left;
  background: var(--sheet);
  border-radius: 18px;
  padding: 14px 14px 12px;
  min-height: 96px;
  color: inherit;
  box-shadow: 0 1px 3px rgba(28,36,52,.06);
}
.tile .ico { font-size: 22px; line-height: 1; margin-bottom: 8px; }
.tile b { display: block; font-size: 15px; font-weight: 760; letter-spacing: -.02em; }
.tile b + span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.tile.wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}
.tile.wide .ico { margin: 0; font-size: 24px; }
.tile.wide .ntf { top: 8px; right: 10px; }
.t-mint { background: var(--mint); }
.t-amber { background: #ffe8c7; }
.t-gold { background: #fff0c8; }
.t-lilac { background: #eee4ff; }
.t-sky { background: var(--sky); }
.t-cyan { background: #d9f4f4; }
.t-sand { background: var(--sand); }
.t-navy { background: #e4e9ff; }
.t-rose { background: var(--blush); }
.t-steel { background: var(--sheet); }
.more-list { display: flex; flex-direction: column; gap: 6px; }
.more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--sheet);
  border-radius: 16px;
  padding: 12px 14px;
  color: inherit;
}
.more-item .ico {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--acc-soft);
  flex: 0 0 auto;
}
.more-item b { display: block; font-size: 15px; }
.more-item span { color: var(--muted); font-size: 12px; }
.card {
  background: var(--sheet);
  border-radius: 18px;
  padding: 16px;
  margin: 0 0 var(--gap);
  box-shadow: 0 1px 3px rgba(28,36,52,.05);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -.02em;
  font-weight: 740;
  overflow-wrap: anywhere;
}
.card p { margin: 8px 0; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.meta + .meta { margin-top: 3px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.row .btn { flex: 1 1 auto; min-width: calc(50% - 8px); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  margin: 6px 0;
  background: var(--card2);
  color: var(--ink);
  outline: none;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
input[type="file"] {
  width: 100%;
  margin: 8px 0;
  font: inherit;
  font-size: 14px;
}
input:not([type="checkbox"]):focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(47,107,255,.22); }
input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  background: none;
  border: 0;
  box-shadow: none;
  accent-color: var(--acc);
  pointer-events: auto;
}
.btn {
  padding: 12px 14px;
  min-height: var(--tap);
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  background: var(--card2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn.primary { background: var(--acc); color: #fff; }
.btn.ok { background: #d8f5e5; color: #15803d; }
.btn.bad { background: #ffe0dc; color: #b91c1c; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-weight: 750;
  margin-left: 4px;
}
.badge.gold { background: var(--sand); color: #92400e; }
.badge.green { background: var(--mint); color: #166534; }
a { color: var(--acc); }
.err { color: var(--bad); padding: 16px; }
.checks { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0 4px; }
.check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 12px; background: var(--card2);
  font-size: 14px; font-weight: 650;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}
.check.on { outline: 2px solid rgba(47,107,255,.35); }
.check:has(input:disabled) { opacity: .72; pointer-events: none; }
.check input { width: 22px; margin: 2px 0 0; accent-color: var(--acc); flex: 0 0 auto; }
.user-head {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.user-more { margin-top: 10px; }
.person { display: flex; gap: 12px; align-items: flex-start; }
.ava {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--acc-soft);
  color: var(--acc);
  font-weight: 760;
  flex: 0 0 auto;
}
.hint {
  background: var(--sky);
  padding: 12px 14px;
  border-radius: 14px;
  color: #3b4660;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.dir-add { margin: 12px 0 8px; }
.dir-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.dir-item .row { margin-top: 8px; }
.amt { font-size: 26px; font-weight: 800; letter-spacing: -.04em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.kb.cols3 { grid-template-columns: 1fr 1fr; }
.kb-btn {
  position: relative;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 14px;
  min-height: 54px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 3px rgba(28,36,52,.05);
  touch-action: manipulation;
}
.kb-btn.wide { grid-column: 1 / -1; text-align: left; }
.kb-btn.wide b { display: block; }
.kb-btn.wide .meta { display: block; font-weight: 500; margin-top: 3px; }
.kb-btn.acc { background: var(--acc-soft); }
.kb-btn.on { background: var(--acc); color: #fff; }
.kb-btn.on .meta { color: rgba(255,255,255,.85); }
.req-status { margin-top: 8px; }
.req-status .kb-btn { font-weight: 700; }
.ntf,
.tile .ntf,
.dock-btn .ntf {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  z-index: 5;
  margin: 0 !important;
  pointer-events: none;
}
.msg { background: var(--card2); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; }
.msg.mine { outline: 2px solid rgba(47,107,255,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { background: var(--card2); color: var(--ink); border-radius: 999px; padding: 8px 12px; font-weight: 650; font-size: 13px; }
.chip.on { background: var(--acc-soft); color: var(--acc); }
.chip.bad { background: #ffe0dc; color: #b91c1c; }
.card.warn { border: 1.5px solid #dc2626; background: #fff5f4; }
.card.used { border: 1.5px solid #f59e0b; }
.warn-line { color: #b91c1c; font-size: 13px; font-weight: 650; margin: 6px 0; }
.warn-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.kb-btn { position: relative; }
.kb-btn.has-warn { border: 1.5px solid #dc2626; }
.kb-btn .warn-dot { top: 8px; right: 8px; }
.tile .warn-dot { top: 10px; right: 12px; }
pre.report {
  white-space: pre-wrap;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
  overflow-wrap: anywhere;
}
.search { margin: 0 0 10px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.crumb { background: var(--sheet); color: var(--ink); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 1px 2px rgba(28,36,52,.06); }
.crumbs span { color: var(--muted); font-size: 12px; }
.dock {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0;
  padding: 6px 6px calc(8px + var(--sab));
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dock[hidden] { display: none !important; }
.dock-btn {
  position: relative;
  overflow: visible;
  background: transparent;
  color: #9aa3b5;
  border-radius: 12px;
  padding: 6px 2px 4px;
  font-size: 10px;
  font-weight: 700;
  min-width: 0;
}
.dock-btn span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dock-btn.on { color: var(--acc); }
.dock-ico { display: block; font-size: 18px; margin-bottom: 2px; }
.dock-btn .ntf {
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  box-shadow: 0 0 0 1.5px #fff;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h, 64px) + 12px);
  transform: translateX(-50%);
  z-index: 30;
  background: #1c2434;
  color: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 650;
  max-width: min(86%, 420px);
  text-align: center;
}
.inline-dsp { margin-top: 8px; }
.copy { background: transparent; color: var(--muted); padding: 0; font: inherit; font-weight: 700; }
.fold { margin-bottom: 12px; }
.kb-btn[hidden] { display: none; }
.kanban {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
html.desktop .kanban {
  cursor: grab;
  touch-action: pan-x pan-y;
  scroll-snap-type: none;
}
html.desktop .kanban.drag-scroll,
html.desktop .kanban.drag-scroll * {
  cursor: grabbing !important;
  user-select: none !important;
  scroll-snap-type: none;
}
.kanban-col {
  flex: 0 0 min(280px, 84vw);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-height: 160px;
  scroll-snap-align: start;
}
.kanban-col h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  margin: 0 0 4px;
}
.task-card {
  background: var(--card2);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0 0;
  text-align: left;
}
.task-card h3 { font-size: 15px; margin: 0 0 6px; }
.task-card p { margin: 0 0 8px; font-size: 14px; }
.doc-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--card2);
  margin: 0 0 8px;
  cursor: pointer;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 18, 24, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(56px + var(--sat, 0px)) 16px 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-x {
  position: absolute;
  top: calc(10px + var(--sat, 0px));
  left: 12px;
}
.msg-card p { white-space: pre-wrap; }

.request-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.request-filters .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 12px;
}
.request-filter-count { opacity: .75; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .request-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.archive-modal {
  width: min(760px, calc(100% - 24px));
  max-height: calc(var(--app-h, 100dvh) - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.archive-modal::backdrop { background: rgba(15, 18, 24, .65); }
.archive-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  position: sticky;
  top: 0;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.archive-modal > header h3 { margin: 0; overflow-wrap: anywhere; }
.archive-body { padding: 16px; }
.archive-body select { width: 100%; }
.archive-body .btn:disabled { opacity: .5; cursor: wait; }
.archive-report { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.archive-preview { margin-top: 16px; }
.archive-preview img, .archive-preview video, .archive-preview audio { max-width: 100%; }
.archive-preview iframe { width: 100%; height: 60vh; border: 0; }

@media (max-width: 420px) {
  :root { --pad: 14px; }
  .hello h1 { font-size: 24px; }
  .hero .num { font-size: 24px; }
  .kpi .num { font-size: 22px; }
  .ghost .glbl { display: none; }
  .ghost { padding: 0 10px; min-width: 32px; justify-content: center; }
  .checks { grid-template-columns: 1fr; }
  .kb, .kb.cols3 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .row .btn { min-width: 100%; }
  .qa-row { gap: 4px; }
}
@media (min-width: 640px) {
  :root { --pad: 24px; }
  .hello h1, .page h2 { font-size: 32px; }
  .row .btn { min-width: 140px; flex: 0 1 auto; }
  .dock-btn { font-size: 11px; }
}
.file-row {background:#fff;border-radius:14px;margin:8px 0;overflow:hidden;}
.file-row > .file-tile-trigger {display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;list-style:none;}
.file-row > summary::-webkit-details-marker {display:none;}
.file-row-text {flex:1;min-width:0;}
.file-row-text b {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.file-row-text .meta {display:block;}
.file-row-arrow {font-size:22px;transition:transform .15s;}
.file-row[open] .file-row-arrow {transform:rotate(90deg);}
.file-row-actions {padding:0 16px 14px;border-top:1px solid #edf0f5;}
.saldo-danger-modal {border:2px solid #b91c1c;}
.saldo-danger-modal > header {background:#fee2e2;color:#991b1b;}
.saldo-danger-warning {padding:16px;background:#fee2e2;color:#991b1b;border:2px solid #dc2626;border-radius:12px;}
.saldo-clear-button {margin-top:24px;}
.saldo-clear-confirm {display:flex;gap:10px;align-items:center;margin:18px 0;}
.saldo-clear-confirm input {width:auto;}
.saldo-lot-operation {padding:12px 0;border-top:1px solid #e5e7eb;}
.doc-folder-entry {
  grid-column: 1 / -1;
}
.doc-folder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.doc-folder-actions > .btn {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px 12px;
}
.doc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.doc-breadcrumbs > .btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.creation-toggle { margin: 12px 0; }
.work-comment { border-left: 3px solid #c6d7f5; padding: 8px 12px; margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.payment-timeline { padding-left: 22px; color: var(--muted, #64748b); line-height: 1.7; }
.operation-tabs, .operation-scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.operation-tabs .btn, .operation-scopes .btn { min-width: 0; width: 100%; }
.section-group-tabs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px 0; margin: 12px 0; }
.section-group-tabs .btn { flex: 0 0 auto; min-width: 0; font-size: 13px; padding: 10px 14px; }
.file-pick { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.file-pick input { width: auto; }
.balance-company-list { background: #fff; border-radius: 16px; overflow: hidden; margin: 16px 0; }
.balance-company-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px; border: 0; border-bottom: 1px solid #edf0f5; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.balance-company-row > span { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-variant-numeric: tabular-nums; }
.balance-company-row.on { background: #edf3ff; box-shadow: inset 3px 0 #3468f5; }
.balance-account { padding: 14px 0; border-bottom: 1px solid #edf0f5; }
.balance-account h4 { margin: 4px 0 10px; }
.balance-account .meta:empty { display: none; }
.balance-amounts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 10px 0; }
.balance-amounts span { display: flex; flex-direction: column; color: #64748b; font-size: 13px; }
.balance-amounts b { color: #14263b; margin-top: 4px; font-size: 16px; }
.request-amount { font-size: 20px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.request-close-warning { padding: 16px; border: 1px solid #f59e0b; border-radius: 12px; background: #fff7ed; color: #7c2d12; }
#requestList .card { cursor: pointer; }
#requestList .card:hover { box-shadow: 0 0 0 1px #9bb7f6; }
@media (min-width: 768px) {
  #requestList .card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 20px; align-items: center; }
  #requestList h3, #requestList .request-amount { margin: 4px 0; }
  #requestList .request-amount { text-align: right; }
  #requestList .card > .meta, #requestList .card > p:not(.request-amount) { grid-column: 1; }
  #requestList .card > button { grid-column: 2; grid-row: 3 / span 4; }
}
.request-settlement-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.request-settlement-choice .btn { width: 100%; min-width: 0; }
[data-creation-panel][hidden] { display: none !important; }
.rate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rate-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .shell { max-width: 840px; }
}

.saldo-position-amounts{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.saldo-position-amounts>div{flex:1;min-width:110px}.saldo-position-amounts dt{font-size:12px;color:var(--muted,#7c88a5)}.saldo-position-amounts dd{margin:4px 0;font-weight:700;overflow-wrap:anywhere}


.home-search{display:block;width:100%;padding:18px 16px;margin-bottom:20px;border:1px solid #dce3f2;border-radius:18px;background:white;color:#6d7894;font:inherit;text-align:left;cursor:pointer}.global-search-modal{width:min(860px,95vw)}.global-search-modal form{display:flex;gap:8px}.global-search-modal form input{min-width:0;flex:1}.search-filters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.search-result{display:flex;gap:8px;border-bottom:1px solid #e1e6ef;padding:12px 0}.search-result-open{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer;overflow-wrap:anywhere}.search-result-open b{font-size:16px}.search-favorite{align-self:flex-start;font-size:22px}.global-search-modal .archive-body{overflow:auto}#globalSearchBtn{font-size:27px;flex-shrink:0}@media(max-width:420px){.top-actions{gap:4px}.global-search-modal .search-filters .btn{padding:8px 10px}}


.top-actions{flex-wrap:nowrap;max-width:none}.top-actions .ava-sm{flex-shrink:0}@media(max-width:380px){#homeBtn{font-size:0;padding:0;width:32px;min-width:32px}#homeBtn:after{content:'←';font-size:16px}}


.worklet-kanban{display:grid;grid-template-columns:repeat(6,minmax(270px,1fr));overflow-x:auto;gap:12px}.task-mobile-stages{display:flex;overflow-x:auto;gap:6px;margin:12px 0}.task-mobile-stages .btn{white-space:nowrap}.task-overdue{border:2px solid #ef4444;background:#fff5f5}.task-member{border-top:1px solid #e1e6ef;padding:10px 0}.task-upload{display:block;margin:12px 0}.task-upload input{max-width:100%}@media(max-width:700px){.task-mobile-stages{display:flex;overflow-x:auto;gap:6px;margin:12px 0}.task-mobile-stages .btn{white-space:nowrap}.worklet-kanban{display:block;overflow:visible}.worklet-kanban .kanban-col{display:none}.worklet-kanban .task-stage-active{display:block}}


.publication-days{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.publication-days label{display:flex;align-items:center;gap:4px}.publication-days input{width:18px;margin:0}#taskEmp{min-height:120px}.worklet-kanban{max-width:100%;min-width:0}#taskUrgent{width:auto;margin-right:8px}

.text-lines{white-space:pre-wrap;overflow-wrap:anywhere}.profile-photo{width:160px;height:160px;object-fit:cover;border-radius:24px}.social-images{display:flex;flex-wrap:wrap;gap:8px}.social-images img{max-width:100%;width:240px;max-height:320px;object-fit:contain;border-radius:12px}[data-staff-card] summary{cursor:pointer;font-weight:700}[data-staff-card] form{margin-top:16px}
.dashboard-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.dashboard-blocks .card{text-align:left;margin:0;min-width:0;color:inherit}.dashboard-blocks h3{margin-top:0}@media(max-width:600px){.dashboard-blocks{grid-template-columns:1fr}}
.request-table-wrap{width:100%;overflow-x:auto}.request-table{width:100%;border-collapse:collapse;font-size:.9rem}.request-table th,.request-table td{padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border,#dbe1ed)}.request-table th{background:var(--card,#fff);position:sticky;top:0}.request-table td p{margin:4px 0}.request-table tr[data-request-card]{cursor:pointer}.request-table tr:hover{background:rgba(77,114,255,.06)}.request-table .amt{font-size:1rem}.request-table td:first-child{min-width:125px}
.profile-rank-frame{padding:16px;border-radius:18px;border:2px solid transparent;margin-bottom:16px;overflow:hidden}.profile-cover{display:block;width:100%;height:160px;object-fit:cover;border-radius:12px}.rank-role{padding:12px 0}.rank-role summary{cursor:pointer}.rank-radar{display:block;width:100%;max-width:350px;height:auto;margin:auto}.rank-style-1{border-color:#90aab5;background:linear-gradient(135deg,#90aab511,transparent)}.rank-style-2{border-color:#b99256;background:linear-gradient(135deg,#b9925622,transparent)}.rank-style-3{border-color:#6ca07b;background:linear-gradient(135deg,#6ca07b22,transparent)}.rank-style-4{border-color:#8878c4;background:linear-gradient(135deg,#8878c422,transparent)}.rank-style-5{border-color:#cf9c32;background:linear-gradient(135deg,#cf9c3222,transparent)}.rank-style-6{border-color:#d45990;box-shadow:0 0 16px #d4599022}.rank-style-7{border:3px solid #e7b328;background:linear-gradient(135deg,#e7b32822,#724bb322);box-shadow:0 0 20px #e7b32844}.rank-animated-name{background:linear-gradient(90deg,#3668ee,#d94eac,#e7b328,#3668ee);background-size:250% 100%;color:transparent;background-clip:text;animation:rank-name-shine 5s linear infinite}@keyframes rank-name-shine{to{background-position:250% 0}}@media(prefers-reduced-motion:reduce){.rank-animated-name{animation:none}}
.home-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px;margin:14px 0}.metric-link{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;width:100%;padding:14px;background:var(--card2);color:var(--ink);border:1px solid var(--line);border-radius:14px;text-align:left;cursor:pointer;font:inherit}.metric-link span{font-size:.8rem;color:var(--muted)}.metric-link b{font-size:1.2rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-link:hover,.metric-link:focus-visible{border-color:var(--acc)}label.btn:has(#accountingImport){cursor:pointer}#accountingImport{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}

/* Worklet responsive workspace: phone, iPad and desktop. */
:root{--radius:16px;--radius-sm:10px}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8eb4ff;outline-offset:3px}
[hidden]{display:none!important}
.worklet-sidebar{display:none}
.top{border-bottom:1px solid var(--line);background:rgba(255,255,255,.95);min-height:68px}
.page{max-width:1520px;margin:0 auto;padding-top:18px}
.card{border:1px solid var(--line);box-shadow:0 2px 8px #1c365006;border-radius:var(--radius)}
.page h2{font-size:25px;letter-spacing:-.025em;line-height:1.25}
.home-search{border-radius:12px;padding:15px 18px;box-shadow:0 2px 7px #27446a04;font-size:14px}
.hello{padding:8px 0 20px}.hello h1{font-size:28px;letter-spacing:-.035em}.hello .kicker{font-size:13px}
.overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.overview-metric{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px 12px;padding:19px 16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#fff 62%,var(--tone-bg));text-align:left;color:var(--ink);min-width:0;box-shadow:0 3px 10px #243c5d04;cursor:pointer}
.tone-blue{--tone:#3475f4;--tone-bg:#ecf3ff}.tone-violet{--tone:#8c5be8;--tone-bg:#f3eeff}.tone-amber{--tone:#d79416;--tone-bg:#fff7e4}.tone-green{--tone:#13a47c;--tone-bg:#e9f9f2}
.metric-symbol{display:grid;place-items:center;grid-row:1/3;width:38px;height:42px;border-radius:10px;background:var(--tone-bg);color:var(--tone)}
.metric-symbol svg{width:22px;height:22px}.overview-metric-label{font-size:12px;color:#65738a;line-height:1.4;overflow-wrap:anywhere}
.overview-metric>b{font-size:29px;line-height:1.2;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.metric-caption{grid-column:2;font-size:11px;color:var(--muted);margin-top:6px}.metric-caption>span{color:var(--tone)}
.overview-metric:hover{border-color:var(--tone);transform:translateY(-1px)}
.dashboard-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.dashboard-panel-title h3{margin:0}.dashboard-panel-title .btn{font-size:12px;padding:7px 10px;min-width:0;background:transparent;color:var(--acc)}
.dashboard-distribution{padding:22px}.distribution-content{display:flex;align-items:center;justify-content:center;gap:36px;padding:8px 0 14px}
.status-donut{width:152px;height:152px;flex:0 0 152px;border-radius:50%;background:conic-gradient(#4f83f9 var(--share),#40c59a var(--share) 100%);padding:19px}
.status-donut>div{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;width:100%;height:100%;background:#fff}.status-donut b{font-size:28px;font-variant-numeric:tabular-nums}.status-donut span{font-size:11px;color:var(--muted)}
.status-legend{min-width:145px;max-width:100%;flex:1}.status-legend>div{display:flex;align-items:center;gap:10px;font-size:13px;margin:14px 0}.status-legend i{width:9px;height:9px;border-radius:50%;background:#4f83f9;flex-shrink:0}.status-legend>div:nth-child(2) i{background:#40c59a}.status-legend b{margin-left:auto;font-variant-numeric:tabular-nums}.status-legend .meta{font-size:11px}
.dashboard-blocks .card{position:relative;padding:20px;border-radius:14px;background:#fff;font:inherit;text-align:left;cursor:pointer;min-height:125px;line-height:1.6}
.dashboard-blocks .card h3{font-size:13px;color:#64738b;font-weight:600}.dashboard-blocks .card>b{font-size:30px;letter-spacing:-.04em;line-height:1.2}.dashboard-blocks .card:hover{border-color:#a9c1f5;background:#fcfdff}.dashboard-blocks .card .meta{font-size:11px}
.home-section-links{margin-top:24px}.home-section-links .tile{border:1px solid var(--line);border-radius:12px;min-height:70px;box-shadow:none}.home-section-links .tile.wide{grid-column:auto}.home-section-links .tile .ico{font-size:20px;background:#eef3ff;border-radius:10px;min-width:38px;height:38px;display:grid;place-items:center}
.home-metrics .metric-link{position:relative;border-radius:12px;background:linear-gradient(140deg,#fff,#eef4ff);padding:18px;min-height:105px}.home-metrics .metric-link:nth-child(2n){background:linear-gradient(140deg,#fff,#edfaf5)}.home-metrics .metric-link:nth-child(3n){background:linear-gradient(140deg,#fff,#f6efff)}.home-metrics .metric-link b{font-size:25px;letter-spacing:-.035em}
.request-workspace-list{display:none}.request-detail{min-width:0}.request-table-wrap{border:1px solid var(--line);border-radius:14px;overflow:auto;background:#fff}.request-table{width:100%;border-collapse:collapse}.request-table th{background:#f8faff;color:#78859a;font-size:11px;font-weight:600;text-align:left;padding:14px}.request-table td{padding:14px;border-bottom:1px solid var(--line);font-size:13px}.request-table tr:hover td{background:#f5f8ff}.request-table .request-amount{font-size:15px;white-space:nowrap}.request-table td .btn{font-size:12px;padding:9px 12px;min-width:0}
@media(min-width:768px){
 .shell{display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);max-width:none;width:100%;margin:0}
 .worklet-sidebar{grid-column:1;grid-row:1/-1;display:flex;flex-direction:column;background:#142239;color:#cad4e4;min-height:0;padding:18px 10px 12px;overflow-y:auto;overscroll-behavior:contain}
 .top{grid-column:2;grid-row:1;padding:12px 24px;min-width:0}.top-mid{flex:1}.top .brand{font-size:17px}.top .sub{font-size:11px}
 #app,html.desktop #app{grid-column:2;grid-row:2;min-width:0;padding:0 22px 30px;cursor:auto;overflow-y:auto}
 #dock{display:none!important}
 .sidebar-brand{display:flex;align-items:center;gap:11px;height:45px;margin-bottom:28px;justify-content:center}.sidebar-logo{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#3475f4;color:white;font-size:20px;font-weight:850;flex-shrink:0}.sidebar-brand b{color:#fff;font-size:19px}.sidebar-brand small{display:block;color:#8190a7;font-size:10px;font-weight:400;margin-top:3px}
 .sidebar-caption{font-size:10px;letter-spacing:.12em;color:#7c8ba2;padding:0 12px;margin-bottom:10px}
 .sidebar-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:46px;margin-bottom:4px;padding:11px 14px;color:#aebcd2;background:transparent;border:0;border-radius:9px;text-align:left;cursor:pointer;font-size:12px;line-height:1.35}
 .sidebar-item svg{width:20px;height:20px;flex:0 0 20px}.sidebar-item:hover{background:#20334f;color:#fff}.sidebar-item.active{background:#2f6fed;color:white;box-shadow:0 4px 14px #071c4826}.sidebar-item em{font-style:normal;background:#e85b78;color:white;padding:2px 5px;border-radius:8px;font-size:10px;margin-left:auto}
 .sidebar-profile{display:flex;align-items:center;gap:10px;min-width:0;margin-top:auto;padding:18px 8px 4px;border:0;border-top:1px solid #ffffff12;background:transparent;color:white;text-align:left;cursor:pointer}
 .sidebar-profile>span:last-child{min-width:0}.sidebar-profile b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.sidebar-profile small{display:block;color:#8293ac;margin-top:3px;font-size:10px}.sidebar-avatar{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#34598c;color:#e5eeff;font-size:12px;font-weight:700}
 .sidebar-brand>b,.sidebar-caption,.sidebar-item>span,.sidebar-profile>span:last-child{display:none}.sidebar-item{justify-content:center;padding:12px 0}.sidebar-item em{position:absolute;right:0;top:0}.sidebar-profile{justify-content:center;padding-left:0;padding-right:0}
 .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-blocks{grid-template-columns:repeat(2,minmax(0,1fr))}.home-section-links{grid-template-columns:repeat(2,minmax(0,1fr))}
 .request-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.request-workspace-list{display:block;position:sticky;top:18px;max-height:calc(var(--app-h) - 115px);overflow:auto;padding:12px;background:white;border:1px solid var(--line);border-radius:14px}.workspace-list-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}.workspace-list-heading>b{font-size:14px}.workspace-list-heading .btn{font-size:11px;padding:7px 8px;min-width:0}.workspace-search{font-size:12px!important;padding:10px!important}
 .workspace-request{display:block;width:100%;padding:13px 10px;margin:6px 0;border:1px solid transparent;border-radius:10px;background:transparent;text-align:left;color:var(--ink);cursor:pointer}.workspace-request.selected{border-color:#c7d8ff;background:#eff5ff;box-shadow:inset 3px 0 #3978f7}.workspace-request:hover{background:#f4f7fc}.workspace-request>b{font-size:13px}.workspace-request>span{display:block;color:var(--muted);font-size:11px;margin-top:5px}.workspace-request .request-amount{font-size:14px;margin:6px 0}.workspace-request small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
 .request-detail .kb{grid-template-columns:repeat(2,minmax(0,1fr))}.request-detail .card{padding:16px}
}
@media(min-width:1200px){
 .shell{grid-template-columns:232px minmax(0,1fr)}.worklet-sidebar{padding:24px 14px 14px}.sidebar-brand{justify-content:flex-start;padding:0 10px;margin-bottom:30px}.sidebar-brand>b,.sidebar-caption,.sidebar-item>span,.sidebar-profile>span:last-child{display:block}.sidebar-item{justify-content:flex-start;padding:12px}.sidebar-item em{position:static}.sidebar-profile{justify-content:flex-start;padding:18px 10px 4px}.top{padding:14px 32px}#app,html.desktop #app{padding:0 32px 36px}.page{padding-top:24px}.overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-blocks{grid-template-columns:repeat(3,minmax(0,1fr))}.home-section-links{grid-template-columns:repeat(3,minmax(0,1fr))}.request-workspace{grid-template-columns:270px minmax(0,1fr);gap:24px}
}
@media(max-width:767px){
 .shell{max-width:none}.page{padding-top:12px}.page h2{font-size:23px}.top{min-height:60px;padding-top:calc(8px + var(--sat))}.hello h1{font-size:25px}.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-metric{padding:13px 12px;grid-template-columns:30px minmax(0,1fr);gap:4px 8px}.metric-symbol{width:30px;height:34px}.metric-symbol svg{width:18px;height:18px}.overview-metric-label{font-size:10px}.overview-metric>b{font-size:25px}.metric-caption{font-size:10px;grid-column:1/-1;margin-top:7px}.distribution-content{gap:18px}.dashboard-distribution{padding:16px}.status-donut{width:128px;height:128px;flex-basis:128px;padding:16px}.status-legend{min-width:0}.status-legend>div{font-size:12px;gap:7px}.dashboard-blocks{grid-template-columns:1fr}.home-section-links{grid-template-columns:1fr}.home-section-links .tile.wide{grid-column:1/-1}.home-search{font-size:12px;padding:14px 12px}.request-detail{width:100%}
}
@media(prefers-reduced-motion:reduce){.overview-metric:hover{transform:none}}
.request-detail .kb-btn{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;text-align:left;border:1px solid var(--line);box-shadow:none;border-radius:12px;padding:16px;min-height:82px}.request-detail .kb-btn .meta{display:block;font-size:12px;line-height:1.5;font-weight:400}.status-donut.empty{background:#e6ebf3}
@media(min-width:1200px){.home-overview{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.7fr);gap:16px;align-items:start}.home-overview>.dashboard-distribution{margin:0}.home-overview .distribution-content{flex-direction:column;gap:18px;padding-top:20px}.home-overview .status-legend{width:100%}.home-overview .dashboard-blocks{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}.home-overview-data{min-width:0}}
@media(min-width:768px){.card:has(#accountingMonth){display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px}.card:has(#accountingMonth)>label{flex:1 1 220px;margin:0}.card:has(#accountingMonth)>label input,.card:has(#accountingMonth)>label select{margin-bottom:0;min-height:42px;padding:10px 12px;font-size:13px}.card:has(#accountingMonth)>.hint{flex-basis:100%;order:2;margin:0;font-size:12px;padding:10px 12px}.card:has(#accountingMonth)>p:not(.hint){font-size:12px;margin:0;align-self:center}.card:has(#accountingMonth)>.btn{font-size:12px;padding:10px 12px;min-width:0;margin:0}}

/* The sidebar replaces the hamburger on wide screens. Phones keep mobile navigation. */
@media(min-width:768px){#menuBtn{display:none}}

/* Navigation buttons share one renderer and visual treatment on every device. */
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0 0 4px;padding:12px;color:#aebcd2;background:transparent;border:0;border-radius:9px;text-align:left;cursor:pointer;font:inherit;font-size:13px;line-height:1.35;box-shadow:none}
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item svg{width:20px;height:20px;flex:0 0 20px}
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item:hover{background:#20334f;color:#fff}
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item.active{background:#2f6fed;color:#fff;box-shadow:0 4px 14px #071c4826}
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item .navigation-label{font:inherit;color:inherit}
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item>span{color:inherit;font:inherit}
:is(.worklet-sidebar,.navigation-sheet) .sidebar-item em{font-style:normal;background:#e85b78;color:white;padding:2px 5px;border-radius:8px;font-size:10px;margin-left:auto}
.navigation-sheet{background:#142239;color:#cad4e4;border-radius:16px;padding:20px 14px;max-width:420px;margin:0 auto 16px}
.navigation-sheet .sidebar-brand{display:flex;align-items:center;gap:11px;margin:0 10px 24px;height:45px}
.navigation-sheet .sidebar-logo{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#3475f4;color:#fff;font-size:20px;font-weight:850;flex-shrink:0}
.navigation-sheet .sidebar-brand>b{color:#fff;font-size:19px;display:block}
.navigation-sheet .sidebar-brand small{display:block;color:#8190a7;font-size:10px;font-weight:400;margin-top:3px}
.navigation-sheet .more-list{gap:0}
@media(min-width:768px) and (max-width:1199px){.worklet-sidebar .sidebar-item{justify-content:center;padding:12px 0}}

/* Phone navigation is a left drawer; the current page stays underneath. */
dialog.mobile-menu{position:fixed;inset:0 auto 0 0;width:min(310px,calc(100% - 48px));height:var(--app-h,100dvh);max-height:100%;max-width:none;margin:0;border:0;border-radius:0 18px 18px 0;padding:calc(18px + var(--sat)) 14px calc(18px + var(--sab));background:#142239;color:#cad4e4;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;box-shadow:12px 0 40px #07142633}
dialog.mobile-menu::backdrop{background:#0b162a88;backdrop-filter:blur(2px)}
.mobile-menu-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}
.mobile-menu .sidebar-brand{margin:0;min-width:0;gap:9px}
.mobile-menu .sidebar-brand b{font-size:17px}.mobile-menu .sidebar-brand small{font-size:9px}
.mobile-menu-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:#ffffff0d;color:#d9e5f5;border:1px solid #ffffff14;border-radius:10px;font-size:27px;cursor:pointer}
.mobile-menu-close:hover{background:#ffffff1c}
.request-number-fields{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}.request-number-fields label{min-width:0}.request-number-fields input{width:100%}#reqAbbreviation{text-transform:uppercase;letter-spacing:.08em}@media(max-width:360px){.request-number-fields{grid-template-columns:95px minmax(0,1fr);gap:8px}}
html.desktop.native-desktop-scroll #app{cursor:auto}
.compat-dialog-backdrop{position:fixed;inset:0;background:rgba(15,18,24,.65)}
dialog.archive-modal.compat-dialog[open]{display:block;position:fixed;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;max-height:calc(var(--app-h,100dvh) - 32px)}

/* Compact request card; controls retain comfortable touch targets. */
.request-detail .request-overview{padding:14px 16px;margin-bottom:10px}
.request-overview h3{margin:0 0 8px}.request-overview p{margin:7px 0}.request-overview .request-amount{font-size:24px;margin:8px 0}.request-overview .request-saldo-progress p{font-size:13px;line-height:1.4}
.request-people{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}.request-people summary{font-size:13px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}.request-people[open] summary{margin-bottom:8px}
.request-detail .request-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.request-detail .request-actions .kb-btn{min-height:48px;padding:10px 12px;font-size:14px;border-radius:10px;gap:0}.request-detail .request-actions .kb-btn .meta{display:none}
.request-status-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.request-status-actions .btn{min-height:44px;padding:10px 8px;font-size:13px;white-space:normal;margin:0}
.request-detail details.card{padding:12px 16px;margin-top:10px;margin-bottom:10px}.request-detail details.card>summary{cursor:pointer;font-size:14px;font-weight:650;min-height:24px;line-height:1.5}.request-detail details.card[open]>summary{margin-bottom:12px}
.request-approval-history .card{box-shadow:none;border:1px solid var(--line);margin:10px 0;padding:12px}.request-detail [data-request-approval]{padding:12px 16px;margin:10px 0}.request-detail [data-request-approval] h3{font-size:16px;margin:6px 0}.request-detail [data-request-approval] .request-amount{font-size:18px;margin:6px 0}
@media(min-width:600px){.request-detail .request-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.request-status-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}

.saldo-flat-list{display:grid;gap:8px}.saldo-flat-row{margin:0!important;padding:12px 14px!important}.saldo-flat-row header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.saldo-flat-row header span{font-size:12px;color:var(--muted)}.saldo-flat-row dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.saldo-flat-row dt{font-size:11px;color:var(--muted);margin-bottom:4px}.saldo-flat-row dd{margin:0;font-size:14px;overflow-wrap:anywhere}.saldo-flat-row .btn{min-height:40px;padding:8px 10px;font-size:12px}
.task-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.task-toolbar>#taskNew{min-height:40px;padding:8px 12px;font-size:13px}.task-scopes{display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto;max-width:100%;margin:0!important}.task-scopes .btn,.task-mobile-stages .btn{flex-shrink:0;min-height:40px;padding:8px 10px;font-size:12px;white-space:nowrap}.task-mobile-stages{margin:6px 0!important}.worklet-kanban{gap:8px;grid-template-columns:repeat(6,minmax(250px,1fr))}.worklet-kanban .kanban-col{padding:10px}.kanban-column-header{display:flex;align-items:center;justify-content:space-between;gap:6px}.kanban-column-header h3{font-size:14px;margin:4px 0}.kanban-column-header small{font-weight:400;opacity:.65}.kanban-column-handle{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;touch-action:none;cursor:grab;background:transparent;border:0;color:inherit;border-radius:6px;user-select:none}.kanban-column-handle:focus-visible{outline:2px solid #2563eb}.column-dragging{cursor:grabbing;background:#dbeafe}.column-drop-target{outline:2px dashed #2563eb;outline-offset:-2px}.worklet-kanban .task-card{padding:12px;margin-bottom:8px}.worklet-kanban .task-card h3{font-size:14px;margin:0 0 6px}.worklet-kanban .task-card .btn{padding:7px 9px;font-size:12px;min-height:36px}.worklet-kanban .task-member{padding:7px 0;font-size:12px}
@media(max-width:700px){.saldo-flat-row dl{grid-template-columns:repeat(2,minmax(0,1fr))}.task-toolbar{align-items:stretch}.task-scopes{width:100%}}

.task-scopes .btn,.task-mobile-stages .btn{flex:0 0 auto;width:auto;min-width:0}.task-toolbar>#taskNew{width:auto}

.task-drag-hint{font-size:12px;color:var(--muted);margin:6px 0 10px}.task-card[data-task-draggable="true"]{cursor:grab}.task-card[data-task-draggable="true"]>h3{touch-action:none;user-select:none;cursor:grab}.task-card[data-task-draggable="true"]>h3:focus-visible{outline:2px solid #2563eb;outline-offset:3px}.task-drag-source{opacity:.35}.task-drag-ghost{position:fixed;pointer-events:none;z-index:20000;max-width:250px;padding:14px 18px;border:1px solid #2563eb;border-radius:12px;background:#fff;box-shadow:0 12px 35px #18274533;font-weight:700;overflow-wrap:anywhere}.task-drop-target{outline:2px dashed #2563eb!important;outline-offset:-2px;background:#e8f0ff!important}

.accounting-table-wrap{overflow-x:auto;max-width:100%;margin:12px 0}.accounting-table{width:100%;border-collapse:collapse;text-align:left}.accounting-table th,.accounting-table td{padding:10px;border-bottom:1px solid var(--border,#e4e8ef)}.accounting-table input[type=checkbox]{width:22px;height:22px}.accounting-tabs{flex-wrap:wrap}.home-metrics>div:not(.card){padding:12px;background:var(--card,#fff);border-radius:12px}.home-metrics>div>span,.home-metrics>div>b{display:block}

.finance-saldo-overview{padding:24px}.saldo-overview-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.saldo-overview-header h3{margin:0;font-size:20px;line-height:1.3}.saldo-overview-search{display:flex;align-items:center;gap:10px;width:min(320px,45%);padding:0 14px;margin:0;border:1px solid var(--line);border-radius:30px;background:#f8f9fd;color:var(--muted)}.saldo-overview-search input.search{width:100%;min-width:0;padding:12px 0;margin:0;background:transparent;border:0;box-shadow:none;font-size:13px}.saldo-overview-search:focus-within{outline:2px solid var(--acc)}.saldo-overview-search input:focus{outline:none}.saldo-overview-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.saldo-overview-tabs .btn{border-radius:12px;min-height:46px}.saldo-overview-caption{margin:0 0 22px;line-height:1.5}.saldo-counterparty-list{display:flex;flex-direction:column;gap:16px}.saldo-counterparty{display:grid;grid-template-columns:minmax(170px,26%) minmax(0,1fr);border:1px solid #e0e5ee;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 1px 3px #18294606}.saldo-counterparty-label{display:flex;align-items:flex-start;gap:12px;padding:20px 16px;background:#f8faff;border-right:1px solid #e0e5ee;min-width:0}.saldo-counterparty-avatar{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:50%;background:#e6f0ff;color:#1763da;font-weight:800;font-size:15px}.saldo-counterparty-label h4{font-size:15px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 5px}.saldo-counterparty-label p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}.saldo-counterparty-types{min-width:0}.saldo-type-row{display:grid;grid-template-columns:minmax(150px,33%) minmax(0,1fr);align-items:stretch}.saldo-type-row+.saldo-type-row{border-top:1px solid #dce3ed}.saldo-type-label{display:flex;align-items:center;padding:12px;min-width:0}.saldo-kind-badge{display:inline-block;padding:7px 11px;border-radius:8px;border:1px solid #d6e2f3;font-size:13px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.saldo-kind-badge.nerez{background:#ecf4ff;color:#28578e}.saldo-kind-badge.swift{background:#f0edff;border-color:#e0dcf5;color:#575487}.saldo-type-currencies{min-width:0;padding:6px 0}.saldo-currency-row{display:grid;grid-template-columns:minmax(70px,.7fr) minmax(0,1.3fr) 38px;align-items:center;gap:8px;min-height:44px;padding:0 8px}.saldo-currency-code{display:flex;align-items:center;gap:10px;font-size:13px;color:#627189;min-width:0}.saldo-currency-mark{display:inline-grid;place-items:center;min-width:20px;font-size:16px}.saldo-currency-amount,.saldo-currency-more{appearance:none;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer;border-radius:8px;min-height:40px;min-width:0}.saldo-currency-amount{text-align:right;font-weight:800;font-size:17px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;padding:6px}.saldo-currency-more{font-size:22px;color:#8894a7}.saldo-currency-amount:hover,.saldo-currency-more:hover{background:var(--acc-soft);color:#1757cb}.saldo-currency-amount:focus-visible,.saldo-currency-more:focus-visible{outline:2px solid var(--acc)}.finance-saldo-notice{background:#fff7e4;border-radius:12px;padding:16px;margin:22px 0 0;font-size:13px;line-height:1.5;color:#736445}.saldo-counterparty[hidden]{display:none}
@media(max-width:1100px){.saldo-counterparty{grid-template-columns:minmax(155px,27%) minmax(0,1fr)}.saldo-type-row{grid-template-columns:minmax(130px,35%) minmax(0,1fr)}.saldo-counterparty-label{padding:18px 12px;gap:10px}.saldo-counterparty-avatar{flex-basis:38px;height:38px}.saldo-currency-row{gap:4px;grid-template-columns:minmax(60px,.6fr) minmax(0,1.4fr) 30px}.saldo-kind-badge{font-size:12px;padding:6px 9px}.saldo-currency-amount{font-size:16px}}
@media(max-width:700px){.finance-saldo-overview{padding:16px}.saldo-overview-header{align-items:stretch;flex-direction:column;gap:12px;margin-bottom:14px}.saldo-overview-header h3{font-size:19px}.saldo-overview-search{width:100%}.saldo-overview-caption{font-size:12px;margin-bottom:16px}.saldo-counterparty{grid-template-columns:minmax(0,1fr);border-radius:14px}.saldo-counterparty-label{border-right:0;border-bottom:1px solid #e0e5ee;padding:12px 14px;align-items:center}.saldo-counterparty-label h4{font-size:15px;margin-bottom:2px}.saldo-counterparty-label p{font-size:11px}.saldo-counterparty-avatar{height:36px;flex-basis:36px;font-size:13px}.saldo-type-row{grid-template-columns:minmax(105px,36%) minmax(0,1fr)}.saldo-type-label{padding:10px 8px}.saldo-kind-badge{font-size:11px;padding:6px 7px}.saldo-currency-code{font-size:11px;gap:5px}.saldo-currency-mark{font-size:14px;min-width:17px}.saldo-currency-row{grid-template-columns:minmax(53px,.6fr) minmax(0,1.4fr) 25px;gap:2px;padding:0 4px}.saldo-currency-amount{font-size:14px;padding:4px 2px}.saldo-currency-more{font-size:21px}.finance-saldo-notice{font-size:12px;padding:12px;margin-top:18px}}

.payment-purposes{flex-wrap:wrap;margin-top:8px}.select-search{margin-bottom:5px}.select-search-status:empty{display:none}.rate-chart-trigger{display:block;width:100%;text-align:left;background:transparent;border:0;padding:8px;border-radius:12px;color:inherit;cursor:pointer;font:inherit;font-weight:800;font-size:inherit}.rate-chart-trigger:hover,.rate-chart-trigger:focus-visible{background:#edf2ff;outline:2px solid #b7c9ff}.rate-chart-trigger small{display:block;font-size:11px;font-weight:500;color:var(--muted)}.rate-day-chart{display:block;width:100%;height:auto;min-height:180px;touch-action:pan-y}.rate-day-chart text{font:11px sans-serif;fill:#71809b}.rate-chart-selection{padding:12px;border-radius:12px;background:#eaf0ff;font-weight:700}[data-rate-time]{width:100%;accent-color:#326bff;min-height:40px}

.rate-chart-trigger{font-size:26px}

.archive-modal.rate-chart-modal{width:min(960px,calc(100vw - 24px));max-width:calc(100vw - 24px)}

.finance-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.company-bank-summary.balance-company-row{display:grid;grid-template-columns:minmax(180px,.95fr) minmax(0,1.05fr);align-items:center;gap:18px;cursor:default}.company-balance-label,.company-bank-name,.company-bank-amount{border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;border-radius:7px;overflow-wrap:anywhere;font:inherit}.company-balance-label{min-height:44px;padding:6px 0;width:100%}.company-banks{display:flex;flex-direction:column;gap:4px;min-width:0}.company-bank-line{display:grid;grid-template-columns:minmax(110px,.9fr) minmax(0,1.1fr);gap:8px;align-items:center}.company-bank-name{padding:8px 4px;font-weight:600}.company-bank-currencies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.company-bank-amount{padding:8px 4px;font-variant-numeric:tabular-nums;font-weight:600;font-size:13px}.company-bank-name:hover,.company-bank-amount:hover,.company-balance-label:hover{background:#e7edff}.company-bank-name.on,.company-bank-amount.on{background:#dce6ff;color:#174cbf}.company-bank-name:focus-visible,.company-bank-amount:focus-visible,.company-balance-label:focus-visible{outline:2px solid #326bff}#balanceBankDetails>h3{margin-top:0}@media(max-width:700px){.company-bank-summary.balance-company-row{grid-template-columns:1fr;gap:4px;padding:12px}.company-balance-label{min-height:30px}.company-bank-line{grid-template-columns:minmax(90px,.9fr) minmax(0,1.1fr)}.company-bank-name{font-size:12px}.company-bank-amount{font-size:12px}.company-bank-currencies{gap:2px}}

.entity-contact-form h3{margin-top:0}.entity-contact-form>details{margin:12px 0}.profile-document{margin:10px 0}.profile-document .meta{margin:5px 0;overflow-wrap:anywhere}.document-name-group>summary{cursor:pointer;font-weight:700;overflow-wrap:anywhere}.document-name-group .file-row{margin-top:10px}#textDocumentForm textarea{min-height:200px;resize:vertical}#textDocumentForm input,#textDocumentForm textarea{width:100%}

#financeSaldoSearch{padding:12px 0;margin:0;background:transparent;border:0;font-size:13px;box-shadow:none}.finance-saldo-overview .saldo-overview-caption{margin:0 0 22px}.finance-saldo-overview .finance-saldo-notice{margin:22px 0 0}.saldo-kind-badge{overflow-wrap:normal;word-break:normal}.saldo-currency-mark[data-currency="RUB"],.saldo-currency-mark[data-currency="USD"],.saldo-currency-mark[data-currency="EUR"],.saldo-currency-mark[data-currency="AED"],.saldo-currency-mark[data-currency="CNY"]{position:relative;display:inline-block;width:19px;height:13px;min-width:19px;flex-shrink:0;border-radius:2px;box-shadow:0 0 0 1px #142b4f10;overflow:hidden}.saldo-currency-mark[data-currency="RUB"]{background:linear-gradient(#fff 0 33.33%,#1c57b8 33.33% 66.66%,#df3040 66.66%)}.saldo-currency-mark[data-currency="USD"]{background:repeating-linear-gradient(#c9364b 0 1px,#fff 1px 2px)}.saldo-currency-mark[data-currency="USD"]:before{content:"";position:absolute;top:0;left:0;width:9px;height:7px;background:#285797}.saldo-currency-mark[data-currency="EUR"]{background:#2153a2}.saldo-currency-mark[data-currency="EUR"]:before{content:"✶";position:absolute;inset:0;text-align:center;color:#ffda48;font-size:13px;line-height:13px}.saldo-currency-mark[data-currency="AED"]{background:linear-gradient(#159967 0 33.33%,#fff 33.33% 66.66%,#202b39 66.66%)}.saldo-currency-mark[data-currency="AED"]:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#e43a43}.saldo-currency-mark[data-currency="CNY"]{background:#dd3540}.saldo-currency-mark[data-currency="CNY"]:before{content:"★";position:absolute;top:0;left:2px;color:#ffdb54;font-size:8px;line-height:10px}.saldo-currency-mark[data-currency="USDT"]{width:18px;height:18px;min-width:18px;border-radius:50%;background:#20a38c;color:white;font-size:13px;font-weight:800}
@media(max-width:700px){.saldo-type-row{grid-template-columns:minmax(118px,36%) minmax(0,1fr)}.saldo-type-label{padding:10px 7px}.saldo-kind-badge{font-size:10.5px;padding:6px}.finance-saldo-overview .saldo-overview-caption{margin-bottom:16px}.finance-saldo-overview .finance-saldo-notice{margin-top:18px}.saldo-currency-mark[data-currency]{width:16px;min-width:16px}}

.archive-modal.rate-chart-modal .rate-chart-controls input[type=date]{appearance:auto;padding:10px 8px;font-size:14px;margin:5px 0}.rate-day-chart text[data-price-label]{fill:#1c2434;font-weight:700}
.provider-chart-frame{padding:16px;background:white;border:1px solid #e0e5ef;border-radius:12px;margin:12px 0;display:flex;justify-content:center;align-items:center;min-height:160px}
.provider-chart-frame img{display:block;width:456px;max-width:100%;height:auto;image-rendering:pixelated}

/* Company metadata remains above its document sections at every folder depth. */
.company-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.company-directory-card.card{margin:0;overflow:hidden;padding:0;display:flex;flex-direction:column}
.company-card-open{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;padding:22px;background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;width:100%;min-width:0;overflow-wrap:anywhere}
.company-card-open:hover{background:#f8faff}.company-card-open:focus-visible{outline:3px solid #3167ff;outline-offset:-3px}
.company-card-open strong{font-size:19px}.company-card-address{font-size:13px;color:#60708d}.company-card-link{color:#3064ef;font-size:13px;font-weight:650;margin-top:auto;padding-top:8px}
.company-avatar{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:14px;background:#edf2ff;color:#3167ff;font-weight:750;font-size:18px}
.company-card-actions{padding:12px 22px;border-top:1px solid #edf0f7}.company-card-actions summary,.company-additional summary{cursor:pointer;font-size:13px;font-weight:600;color:#526584}.company-card-actions .row{margin-top:10px}
.company-profile-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.company-profile-heading>div{min-width:0;flex:1}.company-profile-heading h3{margin:3px 0;font-size:22px;overflow-wrap:anywhere}.company-profile-heading .meta{margin:0}.company-profile-heading .btn{margin:0}
.company-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:22px 0 0}.company-facts>div{min-width:0}.company-facts dt{font-size:12px;color:#7887a1;margin-bottom:5px}.company-facts dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line}.company-facts a{color:#3167ff}.company-fact-wide{grid-column:1/-1}
.company-additional{margin-top:18px;padding-top:14px;border-top:1px solid #edf0f7}.company-additional p{font-size:14px;overflow-wrap:anywhere}
.company-document-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.company-document-menu .btn{margin:0;min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:52px}
.company-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.company-edit-grid>label{min-width:0}
@media(max-width:650px){.company-profile-heading>.btn{width:100%;margin-top:4px}.company-profile-heading h3{font-size:20px}.company-facts{gap:12px 16px}.company-document-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.company-document-menu .btn{font-size:13px;padding:12px 10px}.company-edit-grid{grid-template-columns:minmax(0,1fr);gap:0}}

@media(min-width:1000px){.company-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.company-fact-wide{grid-column:auto}}
.company-dashboard .company-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.company-info-tile{display:flex;gap:12px;background:linear-gradient(125deg,#f7faff,#eff4fc);border-radius:14px;padding:16px}.company-info-tile>div{min-width:0;flex:1}.company-info-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:10px;background:#e7efff;color:#3167ff;font-size:23px}.company-info-tile dd{font-size:15px}.company-inline-add{float:right;border:0;background:none;color:#3167ff;cursor:pointer;font:inherit;margin-left:8px}.company-dashboard-section{margin-top:22px}.company-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.company-panel-heading h3{margin:0;font-size:18px}.company-panel-heading .btn{margin:0;font-size:12px;padding:9px 12px}.company-banks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}.company-bank-card{min-width:0;border:1px solid #e5ebf5;border-radius:14px;padding:14px}.company-bank-card>.row{align-items:center}.company-bank-card .row>div{flex:1;min-width:0}.company-bank-card .row .btn{padding:6px;margin:0}.company-bank-monogram{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#172846;color:#fff;font-size:14px;font-weight:800}.company-bank-card .meta{font-size:12px;margin:10px 0 6px}.company-currency-tags{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 14px}.company-bank-value{width:100%;display:flex;justify-content:space-between;gap:8px;padding:5px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.company-bank-value span,.company-bank-costs span:first-child{color:#72819f}.company-bank-costs{border-top:1px solid #edf1f8;margin-top:12px}.company-bank-costs>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:3px 0}.company-bank-costs>div span{overflow-wrap:anywhere}.company-quotes{background:#f1f5ff;padding:14px;border-radius:14px;margin-top:16px}.company-quotes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.company-quotes-grid strong{display:block;margin-top:7px;font-size:21px}.company-quotes-grid .meta{font-size:12px;overflow-wrap:anywhere}.company-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}.company-quick-document{display:flex;align-items:center;gap:4px;padding:10px;border:1px solid #e6ebf5;border-radius:12px;min-width:0}.company-quick-open{border:0;background:none;text-align:left;color:inherit;font:inherit;font-weight:600;cursor:pointer;min-width:0;flex:1;overflow-wrap:anywhere}.company-quick-open small{display:block;color:#7d8ba5;font-size:11px;font-weight:400;margin-top:5px}.company-quick-document .btn{padding:6px 9px;margin:0}.company-documents-title{margin-top:24px}.company-custom-field{display:flex;gap:8px;align-items:center}.company-custom-field input{min-width:0}.company-custom-field button{flex-shrink:0}
@media(max-width:600px){.company-dashboard .company-facts{grid-template-columns:minmax(0,1fr)}.company-panel-heading{align-items:flex-start}.company-quotes-grid{grid-template-columns:minmax(0,1fr)}.company-quotes-grid>div+div{border-top:1px solid #dfe7fa;padding-top:10px}.company-info-tile{padding:12px}.company-panel-heading h3{font-size:16px}.company-profile-card.company-dashboard{padding:14px}}
.executive-home-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;grid-template-areas:"requests rates" "balances saldo" "tasks holidays" "tasks profit";align-items:start}.executive-home-grid>.card{min-width:0;margin:0;padding:20px}.home-requests{grid-area:requests}.home-rates{grid-area:rates}.home-company-balances{grid-area:balances}.home-saldo{grid-area:saldo}.home-tasks{grid-area:tasks}.home-holidays{grid-area:holidays}.home-profit{grid-area:profit}.home-panel-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}.home-panel-heading h2{font-size:18px;margin:0}.home-panel-heading>div{display:flex;gap:8px;flex-wrap:wrap}.home-section-link{font:inherit;color:#3167ff;background:none;border:0;padding:4px 0;cursor:pointer;font-size:12px;text-align:left}.home-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}.home-counters>:is(div,button){padding:12px 10px;border:1px solid #e1e9fa;border-radius:12px;background:#f5f8ff;min-width:0}.home-counters span{display:block;font-size:11px;color:#667b9e;line-height:1.4}.home-counters b{display:block;font-size:25px;margin-top:9px}.home-subtitle{font-size:13px;margin:18px 0 8px}.home-request-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;border-top:1px solid #edf1f8;padding:14px 0;font-size:13px;overflow-wrap:anywhere}.home-request-row>div:last-child{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.home-request-row .meta{font-size:11px;margin:6px 0 0}.home-request-row .btn{font-size:11px;padding:6px 10px;margin:0}.home-record-link{border:0;background:none;padding:0;color:#254d9b;text-align:left;font:inherit;font-weight:700;cursor:pointer;overflow-wrap:anywhere}.home-company{display:grid;grid-template-columns:minmax(95px,30%) minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid #e9eef7;font-size:13px}.home-bank{display:grid;grid-template-columns:minmax(55px,1fr) minmax(0,1.5fr);gap:10px;margin-bottom:9px;font-size:12px}.home-balance-value{display:flex;justify-content:space-between;align-items:baseline;gap:7px;width:100%;border:0;background:none;color:inherit;padding:4px 0;cursor:pointer;font:inherit}.home-balance-value span{color:#7b8ca7}.home-balance-value b{overflow-wrap:anywhere}.home-saldo-group{padding:14px 0;border-top:1px solid #e9eef7}.home-saldo-row{display:grid;grid-template-columns:minmax(90px,1fr) 45px minmax(65px,1fr);gap:10px;align-items:center;padding:7px 0;font-size:13px}.home-saldo-row .badge{font-size:10px;white-space:normal;justify-self:start}.home-saldo-row b{text-align:right;overflow-wrap:anywhere}.home-task-row,.home-holiday-row{display:flex;align-items:flex-start;flex-direction:column;gap:7px;width:100%;border:0;border-top:1px solid #e9eef7;padding:14px 0;text-align:left;background:none;color:inherit;font:inherit;font-size:13px;cursor:pointer}.home-task-row span{color:#4670ae;font-size:12px}.home-task-row small,.home-holiday-row span{color:#7c8aa2;font-size:12px}.home-profit-details{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:none;border:0;color:inherit;width:100%;text-align:left;padding:0;cursor:pointer}.home-profit-details strong{font-size:28px;overflow-wrap:anywhere}.home-profit-details span{font-size:12px}.home-rate-row{border-top:1px solid #e9eef7}.home-rate-row>summary{display:flex;align-items:center;gap:10px;padding:13px 0;cursor:pointer;font-size:13px;list-style:none}.home-rate-row>summary::-webkit-details-marker{display:none}.home-rate-row>summary>span:first-child{flex:1}.home-rate-row small{display:block;color:#7d8aa3;font-size:11px;margin-top:4px}.home-rate-row>summary>strong{font-size:16px}.home-rate-row [data-home-rate-chart]{min-width:0}.home-rates .rate-chart-controls{display:flex;flex-wrap:wrap;gap:8px}.home-rates .rate-chart-controls label{min-width:100px;flex:1}.home-rates .rate-chart-controls select,.home-rates .rate-chart-controls input{font-size:12px;padding:8px}.home-rates .rate-day-chart{width:100%;min-width:0}.home-rates .rate-chart-legend,.home-rates .rate-chart-selection,.home-rates [data-home-rate-chart]>.meta{font-size:11px}.home-order-list>div{display:flex;gap:8px;align-items:center}.home-order-list span{flex:1}
@media(min-width:1500px){.home-request-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.home-request-row>div:last-child{grid-column:auto;align-items:flex-start}}
@media(max-width:760px){.executive-home-grid{display:flex;flex-direction:column;gap:14px}.executive-home-grid>.card{width:100%;padding:16px}.home-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.home-company{grid-template-columns:minmax(0,1fr)}.home-saldo-row{gap:6px}.home-panel-heading h2{font-size:17px}}
.company-bank-card .row .btn{flex:none;width:36px}.home-wide-finances{grid-template-areas:"requests rates" "balances balances" "saldo saldo" "tasks holidays" "tasks profit"}.home-wide-finances .home-saldo-group{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:0 24px}.home-wide-finances .home-saldo-group>.home-record-link{grid-column:1;grid-row:1/10;align-self:start}.home-wide-finances .home-saldo-row{grid-column:2}.home-wide-finances .home-company{grid-template-columns:minmax(120px,25%) minmax(0,1fr)}
.home-panel-title{border:0;background:none;color:inherit;padding:0;font:inherit;text-align:left;cursor:pointer}.home-panel-title:hover{color:#3167ff}.home-panel-title:focus-visible,[data-approval-card]:focus-visible{outline:2px solid #3167ff;outline-offset:5px}
@media(max-width:760px){.home-wide-finances .home-saldo-group{display:block}.home-wide-finances .home-company{grid-template-columns:minmax(0,1fr)}}

/* Executive dashboard: the dark violet reference, scoped to its own screen. */
body.executive-theme{color-scheme:dark;background:#080b15;color:var(--ink);font-family:Inter,'Segoe UI',system-ui,sans-serif}
.executive-theme .shell{background:radial-gradient(ellipse at 90% 90%,#55329919,transparent 55%),#090c17;border:1px solid #ab8aff24;box-shadow:inset 0 0 0 1px #8560bf0a,0 0 60px #682dc20a}
.executive-theme .top{background:#0b0e1df0;border-bottom:1px solid #a28aca26;gap:18px;min-height:64px}.executive-theme .top .brand{color:#ececff}.executive-theme .top .sub{color:#969dbd}.executive-theme .top .icon-btn,.executive-theme .top .ghost{background:#15182b;color:#b3b8d5;border:1px solid #9483bb25;box-shadow:none}.executive-theme .ava-sm{background:linear-gradient(145deg,#433470,#20213f);color:#e3d9ff;border:1px solid #a681ff55;box-shadow:0 0 18px #8d4cff20}
.executive-top-tools{display:flex;gap:24px;align-items:center;flex:1;min-width:0}.executive-top-search{display:flex;align-items:center;gap:10px;min-width:0;width:100%;padding:10px 12px;background:#101426;border:1px solid #8672bd44;border-radius:8px;color:#9ca7ce;font:inherit;font-size:12px;text-align:left;cursor:pointer;box-shadow:inset 0 0 12px #7765be07}.executive-top-search>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.executive-top-search svg{width:18px;height:18px;flex-shrink:0}.executive-top-search kbd{background:#8e72dc20;color:#b3a0ec;border:1px solid #a491d530;border-radius:4px;font:inherit;font-size:10px;padding:2px 5px;white-space:nowrap}.executive-clock{display:flex;flex-direction:column;gap:4px;flex-shrink:0;color:#a1a9c6;font-size:10px;min-width:75px}.executive-clock b{font-size:12px;font-weight:500;color:#d5daef}
.executive-theme #app,.executive-theme.desktop #app{background:radial-gradient(ellipse at 95% 6%,#5f3c9f13,transparent 38%),radial-gradient(ellipse at 0 60%,#3c31851a,transparent 40%),#0b0e1b;scrollbar-color:#484064 #101321}.executive-theme .executive-home{padding-top:16px;max-width:none}.executive-theme .executive-home-grid{gap:14px}.executive-theme .executive-home-grid>.card{padding:16px;border-radius:12px;background:linear-gradient(130deg,#14182b,#0e1220 75%);border:1px solid #a28ed32c;box-shadow:inset 0 1px 0 #b89aff09,0 5px 22px #0000001f}
.executive-theme .home-panel-heading{margin-bottom:12px;gap:8px}.executive-theme .home-panel-heading h2{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:650;letter-spacing:-.02em}.executive-theme .home-panel-heading>div{gap:10px}.executive-theme .home-panel-icon{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:8px;background:linear-gradient(140deg,#9b5aff2e,#6643a80d);color:#bd90ff;box-shadow:0 0 17px #974cff17}.executive-theme .home-panel-icon svg{width:21px;height:21px;filter:drop-shadow(0 0 5px #9e65f877)}.executive-theme .home-section-link{font-size:10px;color:#ad8ded;white-space:nowrap}.executive-theme .home-panel-title:hover,.executive-theme .home-section-link:hover{color:#d1b6ff}.executive-theme .home-section-link span{margin-left:5px}
.executive-theme .home-counters{gap:9px;margin:4px 0 16px}.executive-theme .home-counters>:is(div,button){position:relative;overflow:hidden;background:linear-gradient(110deg,#23437130,#17254818);border:1px solid #648bf836;border-radius:8px;padding:10px 11px;min-height:75px;color:#a9c7ff;box-shadow:inset 0 0 15px #5487ff05}.executive-theme .home-counters>:is(div,button):nth-child(2){background:linear-gradient(110deg,#34397b30,#24234a20);border-color:#7f7aff36;color:#a4a5ff}.executive-theme .home-counters>:is(div,button):nth-child(3){background:linear-gradient(110deg,#81542528,#33271924);border-color:#e9a44c35;color:#ffc167}.executive-theme .home-counters>:is(div,button):nth-child(4){background:linear-gradient(110deg,#85304428,#4c243320);border-color:#f16a8833;color:#ff668e}.executive-theme .home-counters .home-counter-label{position:relative;z-index:1;font-size:10px;color:#b8c4e2;line-height:1.4;max-width:85%}.executive-theme .home-counters b{position:relative;z-index:1;font-size:28px;line-height:1.15;margin-top:8px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.executive-theme .home-counter-icon{position:absolute;bottom:12px;right:11px;width:27px;height:27px;opacity:.95;filter:drop-shadow(0 0 10px currentColor)}.executive-theme .home-counter-icon svg{width:100%;height:100%}.executive-theme .home-tasks .home-counters>:is(div,button){min-height:61px}.executive-theme .home-tasks .home-counters b{font-size:22px}.executive-theme .home-tasks .home-counter-icon{width:21px;height:21px;opacity:.5}.executive-theme .home-subtitle{font-size:12px;font-weight:600;color:#d6daee;margin:10px 0}
.executive-theme .home-request-columns,.executive-theme .home-request-row{grid-template-columns:minmax(80px,1.05fr) minmax(125px,1.5fr) minmax(70px,.9fr) minmax(70px,.9fr) minmax(90px,1fr);gap:10px}.executive-theme .home-request-columns{display:grid;color:#929dbc;font-size:9px;padding:0 0 8px;border-bottom:1px solid #9a86cc20}.executive-theme .home-request-columns>span:last-child{text-align:right}.executive-theme .home-request-row{display:grid;font-size:11px;padding:10px 0;border-color:#9580bf1a;align-items:center}.executive-theme .home-request-row>div:last-child{grid-column:auto;display:flex;align-items:flex-end;gap:3px;flex-direction:column}.executive-theme .home-request-row .meta{font-size:9px;line-height:1.45;color:#909bbd;margin:4px 0 0}.executive-theme .home-record-link{color:#dbe0f6;font-weight:550;font-size:11px}.executive-theme .home-record-link:hover{color:#cbb3ff}.executive-theme .home-request-action{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.executive-theme .home-request-action .badge{font-size:9px;font-weight:500;padding:3px 6px;border-radius:4px;color:#d2c2ff;background:#8e6ce323;border:1px solid #b49aff22;white-space:normal;line-height:1.4}.executive-theme .home-request-action .badge[data-home-action-tone=approval]{color:#f6ca83;background:#9c6e3426;border-color:#d8ac5033}.executive-theme .home-request-action .badge[data-home-action-tone=payment]{color:#f4a4bf;background:#8e3f5c29;border-color:#d87c9f33}.executive-theme .home-request-action .badge[data-home-action-tone=prepare_approval]{color:#9ec8ff;background:#3a69a826;border-color:#779ce633}.executive-theme .home-request-row .btn{border:0;background:transparent;color:#ab8eea;font-size:9px;padding:0;margin:0;min-height:24px}.executive-theme .home-request-money b{font-weight:550;white-space:nowrap}.executive-theme .home-request-money>span{font-size:9px;color:#9ba4c0}.executive-theme .home-request-manager,.executive-theme .home-request-operator{color:#b3bdd9;font-size:10px;overflow-wrap:anywhere}
.executive-theme .home-company{border-color:#9480bf20;padding:11px 0;font-size:11px;gap:10px;grid-template-columns:minmax(110px,31%) minmax(0,1fr)}.executive-theme .home-company-identity{display:flex;align-items:center;gap:9px;min-width:0}.executive-theme .home-entity-avatar{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:8px;background:linear-gradient(140deg,#553a942f,#24294d);border:1px solid #a286e755;color:#c0a3ff;box-shadow:0 0 11px #a26bff0b;font-size:10px;font-weight:750}.executive-theme .home-saldo-group:nth-of-type(3n) .home-entity-avatar{background:linear-gradient(140deg,#1b615a38,#14243c);color:#8be1cd;border-color:#58baab44}.executive-theme .home-company:nth-of-type(3n) .home-entity-avatar{background:linear-gradient(140deg,#843b5c38,#22192d);color:#f093bc;border-color:#ce779944}.executive-theme .home-bank{font-size:10px;grid-template-columns:minmax(80px,1fr) minmax(0,1.35fr);gap:8px;margin-bottom:6px}.executive-theme .home-bank-label{display:flex;align-items:center;gap:5px;color:#b7bfd9}.executive-theme .home-bank-avatar{display:grid;place-items:center;width:16px;height:16px;flex:0 0 16px;border-radius:4px;border:1px solid #ffffff24;background:#272c43;color:#d5d8ec;font-size:7px;font-weight:700}.executive-theme .home-balance-value{font-size:10px;padding:3px 0;color:#d7dcef;min-width:0}.executive-theme .home-currency-label{display:flex;gap:6px;align-items:center;color:#a5afcd!important}.executive-theme .home-currency-mark{flex-shrink:0;width:14px!important;min-width:14px!important;height:10px!important}.executive-theme .home-currency-mark[data-currency=USDT]{height:14px!important;font-size:10px;line-height:14px}.executive-theme .home-saldo-group{padding:11px 0;border-color:#9480bf20}.executive-theme .home-saldo-row{font-size:11px;grid-template-columns:minmax(95px,1fr) 60px minmax(70px,1fr);gap:8px;padding:5px 0}.executive-theme .home-saldo-row .badge{border:1px solid #a18ae62a;background:#6751aa1c;color:#b2a6da;font-size:8px;padding:3px 5px;border-radius:4px}.executive-theme .home-saldo-row .badge:has(+.home-currency-label){max-width:100%}.executive-theme .home-saldo-row b{font-weight:550;color:#e1e4f7}.executive-theme .home-company-balances>.meta,.executive-theme .home-saldo>.meta{font-size:9px;color:#7985a7;margin:10px 0 0}
.executive-theme .home-rate-row{border-color:#9480bf24}.executive-theme .home-rate-row>summary{gap:9px;font-size:11px;padding:12px 0;min-height:57px;color:#dde2f5}.executive-theme .home-rate-row>summary>span:first-child{flex:0 0 29px}.executive-theme .home-rate-row>summary>span:nth-child(2){flex:1}.executive-theme .home-source-logo{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid #979abd25;border-radius:7px;font-size:21px;font-weight:800;background:#080b12;color:#fff}.executive-theme .home-source-logo[data-home-source=cbr]{border-radius:50%;width:23px;height:23px;flex-basis:23px;margin:3px;background:linear-gradient(#fff 0 33.33%,#2854bd 33.33% 66.66%,#e74758 66.66%)}.executive-theme .home-source-logo[data-home-source=investing]{color:#f8d869;font-family:Georgia,serif}.executive-theme .home-source-logo[data-home-source=xe]{background:linear-gradient(130deg,#304cc0,#243778);font-size:17px;font-weight:600;color:#f4f6ff}.executive-theme .home-rate-row small{font-size:8px;color:#8c97b8;margin-top:4px}.executive-theme .home-rate-row>summary>strong{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}.executive-theme .home-rate-change{font-size:10px;min-width:45px;text-align:right;color:#7c87a7;font-variant-numeric:tabular-nums}.executive-theme .home-rate-change[data-direction=up]{color:#58d9a1}.executive-theme .home-rate-change[data-direction=down]{color:#ff6688}.executive-theme .home-rate-chevron{color:#a4acca;font-size:20px;transition:transform .18s}.executive-theme .home-rate-row[open] .home-rate-chevron{transform:rotate(90deg)}.executive-theme [data-home-rates]>.meta{font-size:8px;color:#7d88a9;margin:4px 0 9px}.executive-theme .home-rates .provider-chart-frame{background:#fff;border-color:#8873b438;padding:4px;border-radius:7px;min-height:0}.executive-theme .home-rates .rate-day-chart text{fill:#9ba6c8}.executive-theme .home-rates .rate-day-chart line{stroke:#8c82bd2b}.executive-theme .home-rates .rate-day-chart path:not([data-rate-previous]){stroke:#a576ff}.executive-theme .home-rates .rate-day-chart text[data-price-label]{fill:#d8c7ff}
.executive-theme .home-task-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.4fr) minmax(80px,.5fr);align-items:center;gap:7px;font-size:11px;border-color:#9480bf20;padding:10px 0}.executive-theme .home-task-row b{font-weight:450;color:#d1d7ee}.executive-theme .home-task-row span{font-size:9px;padding:3px 6px;background:#7052c326;color:#bea6ff;border:1px solid #ae8aff22;border-radius:4px;justify-self:start;grid-column:3;grid-row:1}.executive-theme .home-task-row small{font-size:9px;color:#9ca8c7;grid-column:2;grid-row:1}.executive-theme .home-task-row[data-home-task-tone=overdue] span{background:#96324d25;color:#ff829e;border-color:#ec6d7e33}.executive-theme .home-task-row[data-home-task-tone=overdue] small{color:#ff809b}.executive-theme .home-task-row[data-home-task-tone=urgent] span{background:#a56e2325;color:#f9c469;border-color:#c7944033}.executive-theme .home-task-row[data-home-task-tone=working] span{background:#376eb32a;color:#91baff;border-color:#6397ce33}.executive-theme .home-tasks>.meta{font-size:9px;color:#7d88a9;margin:12px 0 0}.executive-theme .home-holiday-row{font-size:11px;border-color:#9480bf20;padding:10px 0;gap:5px}.executive-theme .home-holiday-row b{font-weight:500}.executive-theme .home-holiday-row span{font-size:9px;color:#919dbf}
.executive-theme .home-profit{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 100% 80%,#7c3fc52b,transparent 65%),linear-gradient(140deg,#14172b,#0e1220)!important}.executive-theme .home-profit:after{content:'';position:absolute;width:120px;height:120px;right:0;bottom:-60px;z-index:-1;border-radius:50%;box-shadow:0 0 45px 30px #9651f319}.executive-theme .home-profit-details{gap:12px}.executive-theme .home-profit-details strong{font-size:27px;font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums;text-shadow:0 0 25px #9c6bff16}.executive-theme .home-profit-details>.meta{font-size:10px;color:#9ba5c5}.executive-theme .home-profit-history{width:100%;height:60px;display:block;margin:8px 0;overflow:visible}.executive-theme .home-profit-history path{fill:none;stroke:#b080ff;stroke-width:2.5;filter:drop-shadow(0 0 5px #9f6bff66)}.executive-theme .home-profit-history circle{fill:#d8baff}.executive-theme .home-profit-history-note{font-size:8px;color:#8b94b5}
.executive-theme .worklet-sidebar{background:radial-gradient(ellipse at 0 25%,#5d369124,transparent 65%),#090c17;border-right:1px solid #a28aca26}.executive-theme .sidebar-logo,.executive-theme .mobile-menu .sidebar-logo{background:linear-gradient(145deg,#9f75ed,#5c3e9a);box-shadow:0 0 18px #9c69ec40,inset 0 0 10px #ddc7ff20;border:1px solid #b694fc42;color:#f6edff}.executive-theme .sidebar-brand{margin-bottom:18px}.executive-theme .sidebar-brand small{color:#817f9e}.executive-theme .sidebar-caption{color:#6c7190;font-size:9px}.executive-theme :is(.worklet-sidebar,.mobile-menu) .sidebar-item{min-height:43px;font-size:11px;color:#a7aecb;border:1px solid transparent;gap:10px}.executive-theme :is(.worklet-sidebar,.mobile-menu) .sidebar-item svg{width:18px;height:18px}.executive-theme :is(.worklet-sidebar,.mobile-menu) .sidebar-item:hover{background:#7770a317;color:#efedff}.executive-theme :is(.worklet-sidebar,.mobile-menu) .sidebar-item.active{background:linear-gradient(100deg,#6952b83d,#5a428929);border-color:#ab83fa2c;box-shadow:inset 0 0 16px #9065ec09,0 0 15px #9b62f313;color:#e4d5ff}.executive-theme .sidebar-profile{border-color:#a28aca20;color:#d1d6ec}.executive-theme .sidebar-profile small{color:#8d92ae}.executive-theme .sidebar-avatar{background:#34304e;border:1px solid #aa8ce545;color:#d0b7ff}.executive-theme dialog.mobile-menu{background:radial-gradient(ellipse at 0 15%,#553d8433,transparent 60%),#0d1020;border-right:1px solid #a28aca30}.executive-theme .mobile-menu-close{color:#d8cef2;border-color:#a28aca30;background:#8a6ac316}
.executive-theme .home-search{background:#121628;border-color:#8b79b944;color:#a8b2d1;border-radius:9px;box-shadow:none}.executive-theme .dock{background:#0b0e1df5;border-top:1px solid #a28aca2a}.executive-theme .dock-btn{color:#8c94b2}.executive-theme .dock-btn.on{color:#ba9bff;text-shadow:0 0 12px #a77cff66}.executive-theme .dock-ico{filter:saturate(.65)}
.executive-theme .archive-modal{background:#111528;color:#e0e5fb;border:1px solid #a58ac44a;box-shadow:0 15px 80px #0009}.executive-theme .archive-modal>header{background:#15192e;color:#e0e5fb;border-color:#a28aca2a}.executive-theme .archive-modal .archive-body{background:#111528}.executive-theme .archive-modal .card{background:#161b30;border-color:#a28aca30;color:#e0e5fb}.executive-theme .archive-modal .meta{color:#9ca7c7}.executive-theme .archive-modal .btn,.executive-theme .archive-modal [data-close]{background:#25223e;color:#c5b2f3;border:1px solid #a28aca27}.executive-theme .archive-modal .btn.primary{background:#6947b3;color:#fff}.executive-theme .archive-modal .btn.bad{background:#672c42;color:#ffd5df}.executive-theme input:not([type=checkbox]):not([type=radio]):not([type=range]),.executive-theme select,.executive-theme textarea{background:#1b2036;color:#e5e9fa;border:1px solid #8e7bb83d}.executive-theme input::placeholder,.executive-theme textarea::placeholder{color:#7e88a8}.executive-theme .archive-modal .badge{background:#5e459a2b;color:#c6b3ee}.executive-theme .archive-modal dt{color:#909bbb}.executive-theme .archive-modal .operation-tabs .btn.primary{background:#6843a8;color:white}.executive-theme .hint{background:#7254b223;color:#c2b5e1}.executive-theme .toast{background:#29213d;color:#e5d9ff;border:1px solid #ac86f53b}.executive-theme .home-order-list>div{border-bottom:1px solid #a28aca1f}.executive-theme :focus-visible{outline-color:#b18bf9}
@media(min-width:768px){.executive-theme .shell{border-radius:14px;width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}.executive-theme .top{padding:12px 20px}.executive-theme .top-mid{display:none}.executive-theme .top #globalSearchBtn{display:none}.executive-theme .top-actions{max-width:42%}.executive-theme .top-actions .glbl{display:none}.executive-theme .executive-home>#homeGlobalSearch{display:none}.executive-theme #app{padding:0 16px 22px}}
@media(min-width:1200px){.executive-theme .shell{grid-template-columns:198px minmax(0,1fr)}.executive-theme .worklet-sidebar{padding:20px 10px 12px}.executive-theme .executive-home-grid{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:"requests requests requests requests requests requests requests requests rates rates rates rates" "balances balances balances balances balances balances saldo saldo saldo saldo saldo saldo" "tasks tasks tasks tasks tasks tasks holidays holidays holidays profit profit profit"}.executive-theme .home-wide-finances{grid-template-areas:"requests requests requests requests requests requests requests requests rates rates rates rates" "balances balances balances balances balances balances balances balances balances balances balances balances" "saldo saldo saldo saldo saldo saldo saldo saldo saldo saldo saldo saldo" "tasks tasks tasks tasks tasks tasks holidays holidays holidays profit profit profit"}.executive-theme .home-holidays .home-panel-heading h2,.executive-theme .home-profit .home-panel-heading h2{font-size:12px;letter-spacing:-.02em}.executive-theme .home-holidays .home-panel-heading,.executive-theme .home-profit .home-panel-heading{align-items:flex-start}.executive-theme .home-holidays .home-panel-icon,.executive-theme .home-profit .home-panel-icon{flex-basis:24px;width:24px;height:24px}.executive-theme .home-holidays .home-panel-icon svg,.executive-theme .home-profit .home-panel-icon svg{width:18px;height:18px}.executive-theme .home-profit-details strong{font-size:23px}}
@media(min-width:768px) and (max-width:1199px){.executive-theme .executive-clock{display:none}.executive-theme .top-actions{gap:4px}.executive-theme .executive-home-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.executive-theme .home-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-theme .home-request-columns{display:none}.executive-theme .home-request-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.executive-theme .home-request-identity{grid-column:1;grid-row:1}.executive-theme .home-request-row>div.home-request-money{grid-column:2;grid-row:1}.executive-theme .home-request-action{grid-column:1/-1;grid-row:2}.executive-theme .home-request-manager{grid-column:1;grid-row:3}.executive-theme .home-request-operator{grid-column:2;grid-row:3}.executive-theme .home-request-manager:before,.executive-theme .home-request-operator:before{content:attr(data-label) ': ';font-size:8px;color:#7886a6}.executive-theme .home-company{grid-template-columns:minmax(0,1fr)}.executive-theme .home-task-row{grid-template-columns:minmax(0,1fr) 95px}.executive-theme .home-task-row b{grid-column:1/-1}.executive-theme .home-task-row small{grid-row:2;grid-column:1}.executive-theme .home-task-row span{grid-row:2;grid-column:2}}
@media(max-width:767px){.executive-theme .shell{border:0}.executive-top-tools{display:none}.executive-theme .top{padding-left:14px;padding-right:14px;gap:8px}.executive-theme .executive-home{padding-top:12px}.executive-theme .executive-home-grid{gap:12px}.executive-theme .executive-home-grid>.card{padding:15px;border-radius:13px}.executive-theme .home-search{font-size:11px;padding:12px}.executive-theme .home-panel-heading h2{font-size:15px}.executive-theme .home-counters>:is(div,button){min-height:76px}.executive-theme .home-counters b{font-size:29px}.executive-theme .home-counters .home-counter-label{font-size:11px}.executive-theme .home-request-columns{display:none}.executive-theme .home-request-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:12px;padding:12px 0;gap:8px 10px}.executive-theme .home-request-identity{grid-column:1;grid-row:1}.executive-theme .home-request-row>div.home-request-money{grid-column:2;grid-row:1}.executive-theme .home-request-action{grid-column:1/-1;grid-row:2}.executive-theme .home-request-manager{grid-column:1;grid-row:3}.executive-theme .home-request-operator{grid-column:2;grid-row:3}.executive-theme .home-request-manager:before,.executive-theme .home-request-operator:before{content:attr(data-label) ': ';font-size:9px;color:#7886a6}.executive-theme .home-request-row .meta{font-size:10px}.executive-theme .home-request-manager,.executive-theme .home-request-operator{font-size:11px}.executive-theme .home-request-action .badge,.executive-theme .home-request-row .btn{font-size:10px}.executive-theme .home-request-row .btn{min-height:32px}.executive-theme .home-company{grid-template-columns:minmax(0,1fr);gap:12px}.executive-theme .home-company .home-record-link{font-size:13px}.executive-theme .home-bank,.executive-theme .home-balance-value{font-size:12px}.executive-theme .home-saldo-row{font-size:12px;grid-template-columns:minmax(105px,1fr) 64px minmax(70px,1fr);gap:6px}.executive-theme .home-saldo-row .badge{font-size:9px}.executive-theme .home-rate-row>summary{min-height:62px;font-size:12px}.executive-theme .home-rate-row>summary>strong{font-size:13px}.executive-theme .home-rate-row small{font-size:9px}.executive-theme .home-rate-change{font-size:10px}.executive-theme .home-task-row{grid-template-columns:minmax(0,1fr) 100px;font-size:12px}.executive-theme .home-task-row b{grid-column:1/-1}.executive-theme .home-task-row small{grid-row:2;grid-column:1;font-size:10px}.executive-theme .home-task-row span{grid-row:2;grid-column:2;font-size:10px}.executive-theme .home-holiday-row{font-size:12px}.executive-theme .home-profit-details strong{font-size:29px}.executive-theme .home-profit-details>.meta{font-size:11px}}
@media(prefers-reduced-motion:reduce){.executive-theme *{scroll-behavior:auto!important;transition:none!important}}
.executive-top-alerts{display:grid;place-items:center;position:relative;flex:0 0 30px;width:30px;height:34px;padding:0;border:0;background:transparent;color:#adb5d4;cursor:pointer}.executive-top-alerts svg{width:23px;height:23px}.executive-top-alerts i{position:absolute;right:2px;top:4px;width:6px;height:6px;background:#ff4f78;border-radius:50%;box-shadow:0 0 8px #ff4f7855}.executive-top-alerts[hidden],.executive-top-alerts i[hidden]{display:none}.executive-theme .home-rate-columns{display:grid;grid-template-columns:minmax(0,1fr) 65px 65px;gap:8px;padding:0 17px 8px 0;color:#8b95b8;font-size:9px}.executive-theme .home-rate-columns span:not(:first-child){text-align:right}.executive-theme .home-finance-columns,.executive-theme .home-saldo-columns{display:grid;grid-template-columns:31% 25% 16% 28%;font-size:9px;color:#8c97ba;padding:0 0 8px}.executive-theme .home-finance-columns>span:last-child,.executive-theme .home-saldo-columns>span:last-child{text-align:right}.executive-theme .home-saldo-group{display:grid;grid-template-columns:minmax(95px,31%) minmax(0,1fr);gap:0 10px}.executive-theme .home-saldo-group>.home-company-identity{grid-column:1;grid-row:1/99;align-self:center}.executive-theme .home-saldo-row{grid-column:2;grid-template-columns:minmax(85px,1fr) 54px minmax(60px,1fr)}.executive-theme .home-wide-finances .home-saldo-group{grid-template-columns:minmax(120px,31%) minmax(0,1fr)}.executive-theme .home-wide-finances .home-saldo-row{grid-template-columns:minmax(130px,1fr) 100px minmax(100px,1fr)}
@media(max-width:1199px){.executive-theme .home-finance-columns,.executive-theme .home-saldo-columns{display:none}.executive-theme .home-saldo-group{display:block}.executive-theme .home-wide-finances .home-saldo-row{grid-template-columns:minmax(95px,1fr) 60px minmax(70px,1fr)}.executive-top-search kbd{display:none}}
@media(max-width:767px){.executive-theme .home-balance-value{min-height:40px}.executive-theme .home-company-identity{min-height:40px}.executive-theme .home-saldo-row{grid-template-columns:minmax(95px,1fr) 64px minmax(70px,1fr)}.executive-theme .home-rate-columns{font-size:10px}.executive-theme .home-rate-row>summary{padding:12px 0}}
.executive-theme .shell{overflow:hidden}.executive-theme .home-request-action-button{font:inherit;cursor:pointer;min-height:28px;text-align:left;line-height:1.35!important}.executive-theme .home-request-action-button>span{display:inline;margin-left:3px;opacity:.7}.executive-theme .home-request-action-button:hover{filter:brightness(1.25);box-shadow:0 0 9px #ac80f517}.executive-theme .home-request-row{padding:7px 0}.executive-theme .home-task-row{padding:8px 0}
@media(max-width:767px){.executive-theme .home-request-action-button{min-height:36px}.executive-theme .home-request-row{padding:12px 0}}

/* Shared dark surfaces apply on every route, including staff pages and dialogs. */
.executive-theme :is(.card,.tile,.kb-btn,.more-item,.act,.kpi,.kanban-col){border:1px solid var(--line);box-shadow:inset 0 1px 0 #b89aff09,0 5px 22px #0000001f}
.executive-theme .card{background:linear-gradient(130deg,#14182b,#0e1220 75%)}
.executive-theme :is(.btn,.chip,.crumb){border:1px solid var(--line)}
.executive-theme :is(.btn,.kb-btn).primary,.executive-theme .kb-btn.on{background:var(--primary);color:#fff;border-color:#b59aff4a}
.executive-theme :is(.btn,.chip).ok,.executive-theme .archive-modal .btn.ok{background:var(--mint);color:var(--ok);border-color:#6ce0ad40}
.executive-theme :is(.btn,.chip).bad,.executive-theme .archive-modal .btn.bad{background:var(--blush);color:var(--bad);border-color:#ff8fa640}
.executive-theme .archive-modal .btn.primary{background:var(--primary);color:#fff}
.executive-theme .badge.green{background:var(--mint);color:var(--ok)}
.executive-theme .badge.gold{background:var(--sand);color:var(--warn)}
.executive-theme .warn-line{color:var(--bad)}
.executive-theme :is(.card.warn,.task-overdue){background:#301d2c;border-color:#ff658780}
.executive-theme .card.used{border-color:#ffca7c80}
.executive-theme :is(.saldo-danger-modal>header,.saldo-danger-warning){background:#421f31;color:#ffc2d0;border-color:#ff6587}
.executive-theme .request-close-warning{background:var(--sand);color:var(--warn);border-color:#ffca7c80}
.executive-theme .finance-saldo-notice{background:var(--sand);color:#e6cea6}
.executive-theme .ntf{box-shadow:0 0 0 2px var(--sheet)}
.executive-theme :is(input,select,textarea){caret-color:var(--acc);accent-color:var(--acc)}
.executive-theme option,.executive-theme optgroup{background:var(--card2);color:var(--ink)}
.executive-theme input[type=file]{color:var(--muted)}
.executive-theme input[type=file]::file-selector-button{background:var(--card2);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:9px 12px;margin-right:10px;cursor:pointer}
.executive-theme fieldset{border:1px solid var(--line);border-radius:12px;min-width:0}
.executive-theme legend{color:var(--muted)}
.executive-theme hr{border:0;border-top:1px solid var(--line)}
.executive-theme ::selection{background:#7753be;color:#fff}
.executive-theme :is(.search-combo-options,.search-combo-options button){background:var(--card2);color:var(--ink);border-color:var(--line)}
.executive-theme .search-combo-options{box-shadow:0 12px 32px #0007}
.executive-theme .search-combo-options :is(button:hover,button.active,button[aria-selected=true]){background:#302747;color:#ddccff}
.executive-theme :is(.file-row,.balance-company-list,.request-table-wrap,.request-workspace-list,.saldo-counterparty,.task-drag-ghost){background:var(--sheet);border-color:var(--line)}
.executive-theme :is(.file-row-actions,.saldo-lot-operation,.balance-company-row,.balance-account,.task-member,.search-result,.work-comment,.saldo-kind-group,.saldo-kind-group+.saldo-kind-group){border-color:var(--line)}
.executive-theme :is(.saldo-counterparty-label,.saldo-type-row+.saldo-type-row,.company-card-actions,.company-additional,.company-bank-costs,.company-quotes-grid>div+div){border-color:var(--line)}
.executive-theme :is(.request-table th,.saldo-counterparty-label){background:#15192c;color:var(--muted)}
.executive-theme :is(.request-table tr:hover td,.workspace-request:hover,.balance-company-row.on,.workspace-request.selected){background:#24213c;border-color:#a28aca4f}
.executive-theme .request-table td,.executive-theme .request-table th{border-color:var(--line)}
.executive-theme .balance-company-row.on{box-shadow:inset 3px 0 #a982f5}
.executive-theme :is(.balance-amounts span,.saldo-currency-code,.company-card-address,.company-facts dt,.company-card-actions summary,.company-additional summary,.company-bank-value span,.company-bank-costs span:first-child,.company-quick-open small){color:var(--muted)}
.executive-theme .balance-amounts b{color:var(--ink)}
.executive-theme .saldo-counterparty-label{color:var(--ink)}
.executive-theme :is(.saldo-counterparty-avatar,.company-avatar,.company-info-icon){background:#2a2547;color:#c6afff}
.executive-theme .saldo-kind-badge.nerez{background:#1d304c;border-color:#5776aa44;color:#aacdfb}
.executive-theme .saldo-kind-badge.swift{background:#2a2547;border-color:#ac90db30;color:#c7b5ef}
.executive-theme :is(.saldo-currency-amount:hover,.saldo-currency-more:hover,.company-bank-name.on,.company-bank-amount.on){background:var(--acc-soft);color:#cdb6ff}
.executive-theme :is(.company-bank-name:hover,.company-bank-amount:hover,.company-balance-label:hover,.company-card-open:hover){background:#241f3b}
.executive-theme :is(.saldo-overview-search,.rate-chart-selection,.company-quotes){background:#171c30;border-color:var(--line)}
.executive-theme .company-info-tile{background:linear-gradient(125deg,#1b2440,#171a30)}
.executive-theme :is(.company-bank-card,.company-quick-document){background:#111629;border-color:var(--line)}
.executive-theme :is(.company-card-link,.company-facts a,.company-inline-add){color:var(--acc)}
.executive-theme .company-bank-monogram{background:#25213d;border:1px solid #a78be838;color:#ddccff}
.executive-theme .t-amber,.executive-theme .t-gold{background:#34291f}
.executive-theme .t-lilac{background:#2a2343}
.executive-theme .t-cyan{background:#183237}
.executive-theme .t-navy{background:#212943}
.executive-theme .hero :is(.lbl,.subd){color:#a9d9c6}
.executive-theme .tone-blue{--tone:#8cb5ff;--tone-bg:#1c2b47}
.executive-theme .tone-violet{--tone:#c0a1ff;--tone-bg:#2b2347}
.executive-theme .tone-amber{--tone:#ffca7c;--tone-bg:#392c20}
.executive-theme .tone-green{--tone:#6ce0ad;--tone-bg:#18372f}
.executive-theme .overview-metric{background:linear-gradient(145deg,#14182b 45%,var(--tone-bg));border-color:var(--line)}
.executive-theme :is(.overview-metric-label,.dashboard-blocks .card h3){color:var(--muted)}
.executive-theme .status-donut>div{background:var(--sheet)}
.executive-theme .status-donut.empty{background:#292b43}
.executive-theme .dashboard-blocks .card{background:var(--sheet);border-color:var(--line)}
.executive-theme .dashboard-blocks .card:hover{background:var(--card2);border-color:#a98be856}
.executive-theme .home-section-links .tile .ico{background:var(--acc-soft)}
.executive-theme .home-metrics .metric-link{background:linear-gradient(140deg,#14182b,#1c2948)}
.executive-theme .home-metrics .metric-link:nth-child(2n){background:linear-gradient(140deg,#14182b,#18372f)}
.executive-theme .home-metrics .metric-link:nth-child(3n){background:linear-gradient(140deg,#14182b,#2b2347)}
.executive-theme .column-dragging{background:#29213e}
.executive-theme .task-drop-target{background:#302747!important}
.executive-theme .task-drag-ghost{border-color:#a68be3}
.executive-theme .rate-chart-trigger:hover,.executive-theme .rate-chart-trigger:focus-visible{background:var(--acc-soft)}
.executive-theme .rate-chart-legend{color:#b99bff}
.executive-theme .rate-chart-legend .previous{color:#a0aac7}
.executive-theme .rate-day-chart text{fill:var(--muted)}
.executive-theme .rate-day-chart text[data-price-label]{fill:var(--ink)}
.executive-theme .rate-day-chart rect{fill:var(--sheet);stroke:var(--line)}
.executive-theme .rate-day-chart line[stroke="#dfe5f0"]{stroke:var(--line)}
.executive-theme .rate-day-chart [data-rate-cursor]{stroke:var(--muted)}
.executive-theme .provider-chart-frame{background:var(--sheet);border-color:var(--line)}
.executive-theme [data-rate-time]{color:var(--acc)}
.executive-theme .archive-modal.saldo-danger-modal{border:2px solid #ff6587}
.executive-theme .archive-modal.saldo-danger-modal>header{background:#421f31;color:#ffc2d0}
@media(hover:hover){.executive-theme :is(.btn,.kb-btn,.tile,.more-item,.act):not(:disabled):hover{border-color:#ac8ee466;filter:brightness(1.12)}}

/* Primary task action is separated from scope filters. */
.task-toolbar #taskNew{min-height:56px;padding:15px 24px;font-size:17px;font-weight:750;margin:8px 0 18px;box-shadow:0 5px 20px #8860d62b}
@media(max-width:767px){.task-toolbar #taskNew{width:100%;margin-bottom:16px}}

.saldo-position-currency>summary{display:grid;grid-template-columns:minmax(70px,1fr) minmax(90px,1fr) 20px;align-items:center;gap:8px;min-height:48px;padding:8px 10px;cursor:pointer;list-style:none}.saldo-position-currency>summary::-webkit-details-marker{display:none}.saldo-position-currency>summary .amt{font-size:17px;text-align:right;overflow-wrap:anywhere}.saldo-position-detail{padding:0 12px 12px}.saldo-position-detail .btn{max-width:100%;white-space:normal}.saldo-position-currency+.saldo-position-currency{border-top:1px solid var(--line)}

/* Optional light appearance. Existing dark rules above remain the default. */
:root[data-theme="light"]{color-scheme:light;--bg:#f4f6fb;--sheet:#fff;--card:#fff;--card2:#edf0f8;--ink:#19243a;--muted:#60708b;--line:#dce2ed;--border:#dce2ed;--acc:#6742b0;--primary:#7049bc;--acc-soft:#eee7fb;--ok:#14764e;--warn:#895500;--bad:#b52b49;--mint:#e3f5ec;--sand:#fff3d9;--blush:#fce8ee;--sky:#e8efff}
:root[data-theme="light"] .executive-theme{color-scheme:light;background:var(--bg);color:var(--ink)}
:root[data-theme="light"] .executive-theme .shell{background:var(--bg);border-color:var(--line);box-shadow:0 8px 40px #2437590b}
:root[data-theme="light"] .executive-theme #app{background:var(--bg);scrollbar-color:#b6bfd2 var(--bg)}
:root[data-theme="light"] .executive-theme :is(.top,.dock){background:#f4f6fbf5;border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.top .brand,.top .icon-btn,.top .ghost,.executive-clock b){color:var(--ink)}
:root[data-theme="light"] .executive-theme :is(.top .sub,.executive-clock,.sidebar-caption,.sidebar-brand small,.sidebar-profile small){color:var(--muted)}
:root[data-theme="light"] .executive-theme :is(.top .icon-btn,.top .ghost,.executive-top-search,.home-search){background:var(--sheet);border-color:var(--line);color:var(--muted);box-shadow:none}
:root[data-theme="light"] .executive-theme .executive-top-search kbd{background:var(--acc-soft);color:var(--acc);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .executive-top-alerts{color:var(--muted)}
:root[data-theme="light"] .executive-theme :is(.worklet-sidebar,dialog.mobile-menu){background:var(--sheet);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.worklet-sidebar,.mobile-menu) .sidebar-item{color:var(--muted)}
:root[data-theme="light"] .executive-theme :is(.worklet-sidebar,.mobile-menu) .sidebar-item:is(:hover,.active){color:var(--acc);background:var(--acc-soft);border-color:#d8caef;box-shadow:none}
:root[data-theme="light"] .executive-theme .sidebar-profile{color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.sidebar-avatar,.ava-sm){background:var(--acc-soft);color:var(--acc);border-color:#d8caef;box-shadow:none}
:root[data-theme="light"] .executive-theme .mobile-menu-close{color:var(--ink);background:var(--card2);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .dock-btn{color:var(--muted)}
:root[data-theme="light"] .executive-theme .dock-btn.on{color:var(--acc);text-shadow:none}
:root[data-theme="light"] .executive-theme :is(.card,.tile,.kb-btn,.act,.kpi,.kanban-col,.executive-home-grid>.card,.dashboard-blocks .card){background:var(--sheet);border-color:var(--line);color:var(--ink);box-shadow:0 3px 16px #21345407}
:root[data-theme="light"] .executive-theme :is(.btn,.chip,.crumb){background:var(--card2);border-color:var(--line);color:var(--ink)}
:root[data-theme="light"] .executive-theme :is(.btn,.kb-btn).primary,:root[data-theme="light"] .executive-theme .kb-btn.on{background:var(--primary);border-color:var(--primary);color:#fff}
:root[data-theme="light"] .executive-theme :is(.btn,.chip).ok{background:var(--mint);color:var(--ok);border-color:#b6dfcc}
:root[data-theme="light"] .executive-theme :is(.btn,.chip).bad{background:var(--blush);color:var(--bad);border-color:#edb6c4}
:root[data-theme="light"] .executive-theme :is(.badge,.hint,.toast){background:var(--acc-soft);color:var(--acc);border-color:#d8caef}
:root[data-theme="light"] .executive-theme .badge.green{background:var(--mint);color:var(--ok)}
:root[data-theme="light"] .executive-theme .badge.gold{background:var(--sand);color:var(--warn)}
:root[data-theme="light"] .executive-theme :is(.err,.warn-line){color:var(--bad)}
:root[data-theme="light"] .executive-theme :is(.meta,.lbl,.subd,.overview-metric-label){color:var(--muted)}
:root[data-theme="light"] .executive-theme :is(.card.warn,.task-overdue){background:var(--blush);border-color:#eab4c2}
:root[data-theme="light"] .executive-theme :is(.request-close-warning,.finance-saldo-notice){background:var(--sand);color:var(--warn);border-color:#ebd49b}
:root[data-theme="light"] .executive-theme :is(.saldo-danger-warning,.saldo-danger-modal>header){background:var(--blush);color:var(--bad);border-color:#eab4c2}
:root[data-theme="light"] .executive-theme .archive-modal{background:var(--sheet);color:var(--ink);border-color:var(--line);box-shadow:0 16px 80px #20304a30}
:root[data-theme="light"] .executive-theme :is(.archive-modal>header,.archive-body){background:var(--sheet);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .archive-modal :is(.btn,[data-close]){background:var(--card2);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .archive-modal .btn.primary{background:var(--primary);color:#fff}
:root[data-theme="light"] .executive-theme .archive-modal .btn.bad{background:var(--blush);color:var(--bad)}
:root[data-theme="light"] .executive-theme .archive-modal .btn.ok{background:var(--mint);color:var(--ok)}
:root[data-theme="light"] .executive-theme input:not([type=checkbox]):not([type=radio]):not([type=range]),:root[data-theme="light"] .executive-theme select,:root[data-theme="light"] .executive-theme textarea{background:#f7f8fc;color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(input,textarea)::placeholder{color:#78859c}
:root[data-theme="light"] .executive-theme :is(.search-combo-options,.search-combo-options [role=option],.search-result){background:var(--sheet);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.search-combo-options [role=option]:hover,.search-combo-options [aria-selected=true]){background:var(--acc-soft);color:var(--acc)}
:root[data-theme="light"] .executive-theme :is(.file-row,.file-actions,.work-comment,.task-card,.request-table-wrap,.request-workspace-list,.workspace-request,.company-bank-card,.company-quick-document,.saldo-counterparty,.saldo-position-detail){background:var(--sheet);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.request-table th,.request-table td,.request-table tr,.request-table thead,.request-table tbody){background:var(--sheet);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.workspace-request.on,.company-bank-name.on,.company-bank-amount.on){background:var(--acc-soft);color:var(--acc)}
:root[data-theme="light"] .executive-theme :is(.saldo-counterparty-label,.saldo-currency-amount,.company-balance-label,.company-bank-name,.company-bank-amount,.company-card-open){color:var(--ink)}
:root[data-theme="light"] .executive-theme :is(.saldo-counterparty-avatar,.company-avatar,.company-info-icon,.company-bank-monogram){background:var(--acc-soft);color:var(--acc);border-color:#d8caef}
:root[data-theme="light"] .executive-theme :is(.saldo-kind-badge.nerez,.saldo-kind-badge.swift){background:var(--sky);color:#315792;border-color:#ccd9ee}
:root[data-theme="light"] .executive-theme :is(.saldo-overview-search,.rate-chart-selection,.company-quotes,.company-info-tile){background:#f0f4fc;color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.saldo-currency-amount:hover,.saldo-currency-more:hover,.company-bank-name:hover,.company-bank-amount:hover,.company-balance-label:hover,.company-card-open:hover){background:var(--acc-soft);color:var(--acc)}
:root[data-theme="light"] .executive-theme :is(.tone-blue,.home-counters>:is(div,button)){--tone:#3168bd;--tone-bg:#e8effb}
:root[data-theme="light"] .executive-theme .tone-violet{--tone:#7049bc;--tone-bg:#f0eafb}
:root[data-theme="light"] .executive-theme .tone-amber{--tone:#9c660d;--tone-bg:#fff3dc}
:root[data-theme="light"] .executive-theme .tone-green{--tone:#19805a;--tone-bg:#e5f5ed}
:root[data-theme="light"] .executive-theme :is(.overview-metric,.home-metrics .metric-link){background:linear-gradient(135deg,#fff,var(--tone-bg,var(--sky)));border-color:var(--line);color:var(--ink)}
:root[data-theme="light"] .executive-theme :is(.home-counters>:is(div,button),.home-counters>:is(div,button):nth-child(n)){background:var(--sky);border-color:#d0dcef;color:#315792;box-shadow:none}
:root[data-theme="light"] .executive-theme .home-counters>:is(div,button):nth-child(2){background:var(--acc-soft);color:var(--acc)}
:root[data-theme="light"] .executive-theme .home-counters>:is(div,button):nth-child(3){background:var(--sand);color:var(--warn)}
:root[data-theme="light"] .executive-theme .home-counters>:is(div,button):nth-child(4){background:var(--blush);color:var(--bad)}
:root[data-theme="light"] .executive-theme :is(.home-counter-label,.home-subtitle,.home-request-columns,.home-request-row .meta,.home-request-manager,.home-request-operator,.home-bank-label,.home-currency-label,.home-request-money>span,.home-rate-columns,.home-finance-columns,.home-saldo-columns){color:var(--muted)!important}
:root[data-theme="light"] .executive-theme :is(.home-record-link,.home-balance-value,.home-profit-details strong,.home-task-row,.home-holiday-row,.home-rate-row>summary>strong){color:var(--ink);text-shadow:none}
:root[data-theme="light"] .executive-theme :is(.home-panel-icon,.home-entity-avatar,.home-company:nth-of-type(3n) .home-entity-avatar,.home-saldo-group:nth-of-type(3n) .home-entity-avatar,.home-bank-avatar){background:var(--acc-soft);color:var(--acc);border-color:#d8caef;box-shadow:none}
:root[data-theme="light"] .executive-theme :is(.home-panel-title,.home-section-link,.home-request-row .btn){color:var(--acc);background:transparent}
:root[data-theme="light"] .executive-theme .home-request-action .badge{background:var(--acc-soft);color:var(--acc);border-color:#d8caef}
:root[data-theme="light"] .executive-theme .home-request-action .badge[data-home-action-tone=approval]{background:var(--sand);color:var(--warn)}
:root[data-theme="light"] .executive-theme .home-request-action .badge[data-home-action-tone=payment]{background:var(--blush);color:var(--bad)}
:root[data-theme="light"] .executive-theme .home-request-action .badge[data-home-action-tone=prepare_approval]{background:var(--sky);color:#315792}
:root[data-theme="light"] .executive-theme :is(.home-company,.home-saldo-group,.home-request-row,.home-request-columns,.home-order-list>div){border-color:var(--line)}
:root[data-theme="light"] .executive-theme :is(.t-amber,.t-gold){background:var(--sand)}
:root[data-theme="light"] .executive-theme .t-lilac{background:var(--acc-soft)}
:root[data-theme="light"] .executive-theme .t-cyan{background:#e5f3f4}
:root[data-theme="light"] .executive-theme .t-navy{background:var(--sky)}
:root[data-theme="light"] .executive-theme :is(.task-drop-target,.column-dragging){background:var(--acc-soft)!important}
:root[data-theme="light"] .executive-theme .rate-day-chart text{fill:var(--muted)}
:root[data-theme="light"] .executive-theme .rate-day-chart text[data-price-label]{fill:var(--ink)}
:root[data-theme="light"] .executive-theme .rate-day-chart rect{fill:var(--sheet);stroke:var(--line)}
:root[data-theme="light"] .executive-theme .rate-day-chart line[stroke="#dfe5f0"]{stroke:var(--line)}
:root[data-theme="light"] .executive-theme .provider-chart-frame{background:var(--sheet);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .rate-chart-legend{color:var(--acc)}
:root[data-theme="light"] .executive-theme .rate-chart-legend .previous{color:var(--muted)}
:root[data-theme="light"] .executive-theme :focus-visible{outline-color:var(--acc)}
:root[data-theme="light"] .executive-theme :is(.card,.btn,.kb-btn,.tile,.more-item):hover{filter:none}
:root[data-theme="light"] .executive-theme .sidebar-brand b{color:var(--ink)}
:root[data-theme="light"] .executive-theme .status-donut.empty{background:#e1e7f1}
:root[data-theme="light"] .executive-theme :is(.home-saldo-row b,.home-saldo-row strong,.home-task-row b){color:var(--ink)}
:root[data-theme="light"] .executive-theme .home-rate-row b{color:var(--ink)} :root[data-theme="light"] .executive-theme :is(.home-rate-chevron,.home-rate-row small,.home-task-row small){color:var(--muted)}
:root[data-theme="light"] .executive-theme .home-profit{background:linear-gradient(140deg,#fff,#f1eafb)!important}

/* Object-specific inbox and notification drawer; inherits the selected theme. */
.inbox-bell-count{position:absolute;right:-6px;top:-3px;min-width:17px;height:17px;border-radius:12px;background:#dc325b;color:#fff;font:700 10px/17px system-ui;text-align:center;padding:0 3px;box-sizing:border-box}
.inbox-dot{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#ee4268}
.notification-center{margin:10px 10px 10px auto;width:min(480px,calc(100vw - 20px));max-width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}
.notification-center .archive-body{padding:16px;overflow:auto}.inbox-panel-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.inbox-panel-tools .btn{font-size:12px;padding:10px 12px}
.inbox-items{display:flex;flex-direction:column;gap:9px}.inbox-item{display:flex;flex-direction:column;gap:6px;text-align:left;white-space:normal;width:100%;border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--card);color:var(--ink);font:inherit;cursor:pointer;overflow-wrap:anywhere}.inbox-item small{color:var(--muted)}.inbox-item.is-unread{border-left:3px solid #ee4268}.inbox-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.object-unread-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #ef638759;border-radius:14px;background:#e4355c18;color:var(--ink);padding:4px 8px;font:600 11px/1.2 system-ui;cursor:pointer;margin:0 8px 6px 0;vertical-align:middle}.object-unread{outline:1px solid #e53c6460;outline-offset:-1px}.inbox-focus{box-shadow:0 0 0 3px #9873ef!important;scroll-margin:90px}
.inbox-preferences fieldset{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:14px}.inbox-preferences legend{color:var(--ink);font-weight:600}.inbox-preferences .check{display:flex;align-items:center;gap:9px;padding:8px 0}.inbox-preferences input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}
@media(max-width:767px){.executive-top-tools{display:flex;flex:0 0 auto;gap:0}.executive-top-tools .executive-top-search,.executive-top-tools .executive-clock{display:none}.notification-center{margin:8px;width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.executive-top-alerts{width:28px;flex-basis:28px}}

.inbox-tab-count{display:inline-block;margin-left:7px;min-width:17px;padding:1px 4px;border-radius:10px;background:#d9325c;color:#fff;font:700 10px/15px system-ui;vertical-align:middle}

.notification-center[open]{animation:inbox-slide-in .16s ease-out}@keyframes inbox-slide-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.notification-center[open]{animation:none}}

/* Search lives on the normal page. Only phones have the fixed header field. */
.mobile-global-search{display:none}.executive-top-tools{justify-content:flex-end}.global-search-page{max-width:980px;margin:0 auto}.global-search-form{display:flex;gap:10px;align-items:center;margin:0 0 16px}.global-search-form .search{flex:1;min-width:0;margin:0}.global-search-form .btn{flex:0 0 auto}.global-search-page .search-filters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px}.global-search-page .search-result{display:flex;gap:10px;align-items:stretch;padding:12px 0;border-bottom:1px solid var(--line)}.global-search-page .search-result-open{min-width:0;flex:1;text-align:left;background:none;border:0;color:var(--ink);font:inherit;padding:8px;cursor:pointer;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere}.global-search-page .search-result-open b{color:var(--acc)}.global-search-page .search-favorite{flex:0 0 auto;align-self:center}.global-search-page [data-search-status]{min-height:1.5em}
@media(max-width:767px){.executive-theme .top{flex-wrap:wrap;z-index:50;flex-shrink:0;row-gap:9px}.mobile-global-search{display:flex;align-items:center;gap:8px;order:5;flex:0 0 100%;width:100%;min-width:0;margin:0;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--sheet);color:var(--muted)}.mobile-global-search>span{font-size:24px;line-height:1}.executive-theme .mobile-global-search input{flex:1;min-width:0;width:0;padding:12px 0;margin:0;background:transparent!important;border:0!important;border-radius:0;color:var(--ink);font-size:16px;box-shadow:none!important}.mobile-global-search>button{flex:0 0 auto;border:0;border-radius:8px;background:var(--acc-soft);color:var(--acc);padding:8px;font:600 12px system-ui;cursor:pointer}.global-search-form{display:none}.global-search-page .search-filters{margin-top:0}.global-search-page .search-filters .btn{font-size:12px;padding:9px 11px}}

/* The header lookup expands below the field, over the current screen. */
.mobile-global-search{position:relative}.header-search-panel[hidden]{display:none!important}.header-search-panel{position:absolute;left:-1px;right:-1px;top:calc(100% + 6px);z-index:75;max-height:min(65dvh,calc(var(--app-h) - 165px));overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--sheet);color:var(--ink);box-shadow:0 16px 36px #0005;animation:header-search-down .15s ease-out;cursor:auto}.header-search-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.header-search-heading .btn{min-height:30px;padding:4px 10px}.header-search-panel .search-filters{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.header-search-panel .search-filters .btn{font-size:11px;padding:7px 9px}.header-search-panel .search-result{padding:8px 0}.header-search-panel .search-result-open{font-size:12px}.header-search-panel .search-result-open span{font-size:11px}.header-search-panel [data-search-status]{font-size:11px}.global-search-modal .global-search-form{display:flex}.global-search-modal .search{min-width:0}
.global-search-surface .search-result{display:flex;gap:8px;border-bottom:1px solid var(--line)}.global-search-surface .search-result-open{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;text-align:left;white-space:normal;background:none;border:0;color:var(--ink);padding:9px 3px;font:inherit;overflow-wrap:anywhere;cursor:pointer}.global-search-surface .search-result-open b{color:var(--acc)}.global-search-surface .search-favorite{flex:0 0 auto;align-self:center}.header-search-panel .search-favorite{padding:7px 9px;font-size:16px}@keyframes header-search-down{from{transform:translateY(-8px);opacity:0}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.header-search-panel{animation:none}}

/* Shared dashboard interactions and readable tablet navigation. */
.home-counter-button{font:inherit;text-align:left;cursor:pointer;width:100%;min-width:0}.home-counter-button:hover{filter:brightness(1.1)}.home-counter-button:focus-visible{outline:2px solid var(--acc);outline-offset:3px}.home-collapsible{margin-top:12px}.home-collapsible>summary{cursor:pointer;font-size:13px;font-weight:650;padding:10px 0}.home-scroll-list{max-height:370px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-x pan-y;padding-right:5px;min-width:0}.home-tasks .home-scroll-list{max-height:330px}.home-panel-heading>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 10px}.home-request-columns{position:sticky;top:0;z-index:1;background:var(--card);padding:8px 0}.home-rates [data-home-rate-stamp]{font-size:10px}
@media(min-width:768px) and (max-width:1199px){.shell{grid-template-columns:210px minmax(0,1fr)}.worklet-sidebar{padding:20px 12px 12px}.worklet-sidebar .sidebar-brand{justify-content:flex-start;padding:0 8px}.worklet-sidebar .sidebar-brand>b,.worklet-sidebar .sidebar-caption,.worklet-sidebar .sidebar-item>span,.worklet-sidebar .sidebar-profile>span:last-child{display:block}.worklet-sidebar .sidebar-brand b{font-size:17px}.worklet-sidebar .sidebar-item{justify-content:flex-start;padding:11px 10px}.worklet-sidebar .sidebar-item em{position:static;margin-left:auto}.worklet-sidebar .sidebar-profile{justify-content:flex-start;padding:16px 8px 4px}.executive-theme .worklet-sidebar .sidebar-item{font-size:12px}}
@media(min-width:768px) and (max-width:1100px){.executive-home-grid,.executive-home-grid.home-wide-finances{display:flex;flex-direction:column}.executive-home-grid>.card{width:100%}}
@media(max-width:767px){.home-scroll-list{max-height:45dvh}.home-tasks .home-scroll-list{max-height:40dvh}.home-collapsible>summary{padding:12px 0}.home-panel-heading>div{gap:4px 8px}}

/* Compact appeals overview: ordinary work stays in counters, interventions are listed. */
.home-appeals{grid-area:appeals}.support-kind-choices{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.support-kind-choices .chip{font-size:10px;padding:5px 7px}.support-kind-choices .chip.on{border-color:var(--acc);color:var(--acc)}.support-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}.support-counter{border:1px solid var(--line);border-radius:10px;background:var(--card2);color:var(--ink);padding:9px 7px;min-width:0;text-align:left;font:inherit;cursor:pointer}.support-counter span{display:block;font-size:10px;line-height:1.35;color:var(--muted)}.support-counter b{display:block;font-size:21px;margin-top:5px}.support-counter.needs-action{border-color:var(--acc);background:var(--acc-soft)}.support-counter:focus-visible{outline:2px solid var(--acc);outline-offset:2px}.home-support-attention{max-height:220px}.home-support-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;font-size:11px;text-align:left;cursor:pointer}.home-support-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.home-support-row .badge{font-size:9px;white-space:normal;max-width:48%}.support-approval{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.support-approval .btn{padding:7px 10px;font-size:12px}
@media(min-width:1101px){.executive-home-grid.has-home-appeals{grid-template-areas:"requests rates" "appeals rates" "balances saldo" "tasks holidays" "tasks profit"}.executive-home-grid.home-wide-finances.has-home-appeals{grid-template-areas:"requests rates" "appeals rates" "balances balances" "saldo saldo" "tasks holidays" "tasks profit"}}
@media(min-width:1200px){.executive-theme .executive-home-grid.has-home-appeals{grid-template-areas:"requests requests requests requests requests requests requests requests rates rates rates rates" "appeals appeals appeals appeals appeals appeals appeals appeals rates rates rates rates" "balances balances balances balances balances balances saldo saldo saldo saldo saldo saldo" "tasks tasks tasks tasks tasks tasks holidays holidays holidays profit profit profit"}.executive-theme .executive-home-grid.home-wide-finances.has-home-appeals{grid-template-areas:"requests requests requests requests requests requests requests requests rates rates rates rates" "appeals appeals appeals appeals appeals appeals appeals appeals rates rates rates rates" "balances balances balances balances balances balances balances balances balances balances balances balances" "saldo saldo saldo saldo saldo saldo saldo saldo saldo saldo saldo saldo" "tasks tasks tasks tasks tasks tasks holidays holidays holidays profit profit profit"}}

/* Compact workspaces, queues and file explorer. */
.support-counters{grid-template-columns:repeat(4,minmax(0,1fr))}.support-counter{padding:8px}.support-counter b{font-size:20px}.support-priority[data-priority=urgent]{background:#b52745;color:white}.support-priority[data-priority=high]{background:#f5c353;color:#322900}.home-support-row .support-priority{font-size:9px}.home-support-queue .home-scroll-list{max-height:200px}.file-explorer{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:12px}.file-explorer-head,.file-explorer-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 160px auto;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);font-size:12px}.file-explorer-head{background:var(--card2);font-weight:700}.file-explorer-row:hover{background:var(--acc-soft)}.file-explorer-row .home-record-link{overflow-wrap:anywhere}.database-shortcuts,.compact-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.compact-toolbar .search{margin:0;flex:1;max-width:360px}.holiday-row{display:grid;grid-template-columns:140px minmax(0,1fr) 180px 60px;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line);font-size:12px}.holiday-row small{color:var(--muted)}.holiday-table{border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.task-card{padding:10px!important;margin-bottom:8px!important;font-size:11px}.task-card h3{font-size:13px;margin:0 0 6px}.task-card .meta{font-size:10px;line-height:1.4}.task-card .btn,.task-card .chip{font-size:10px;padding:5px 7px}.task-card>p:not(.meta){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.task-card .task-member{font-size:11px;padding:6px 0}.task-employee-filter{min-width:180px}.task-employee-filter select{font-size:12px;padding:8px}.file-row{border-radius:0!important;border-width:0 0 1px!important;margin:0!important}.file-row .file-tile-trigger{padding:10px 12px!important;font-size:12px}.file-row .file-row-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.6fr);width:100%;gap:12px;align-items:center}.work-feed-row{padding:12px!important;margin-bottom:5px!important;font-size:12px}.work-feed-row p{margin:5px 0}.page:has(#workFeedFilters) #workFeedFilters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;padding:12px}.page:has(#workFeedFilters) #workFeedFilters label{font-size:10px}.page:has(#workFeedFilters) #workFeedFilters :is(input,select){padding:8px;font-size:12px}.page:has(#workFeedFilters) #workFeedFilters button{align-self:end;padding:9px}
@media(min-width:1101px){.workspace-specialist .executive-home-grid.has-home-appeals{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"appeals appeals" "balances balances" "tasks holidays"}}
@media(max-width:767px){.support-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.file-explorer-head{display:none}.file-explorer-row{grid-template-columns:minmax(0,1fr) auto}.file-explorer-row small{grid-column:1/-1}.holiday-row{grid-template-columns:1fr auto;gap:6px}.holiday-row small{grid-column:1}.holiday-row>span:nth-child(2){grid-row:2;grid-column:1/-1}.file-row .file-row-text{grid-template-columns:1fr;gap:3px}.page:has(#workFeedFilters) #workFeedFilters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.accounting-chart-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(80px,2fr) 100px;align-items:center;gap:12px;font-size:12px;padding:8px 0}.accounting-chart-track{height:12px;background:var(--card2);border-radius:5px;overflow:hidden}.accounting-chart-track i{display:block;height:100%;min-width:0;border-radius:5px}.accounting-chart summary{font-weight:700;font-size:13px;margin-bottom:10px}.accounting-chart-row b{text-align:right}.kanban-col{min-width:250px!important;max-width:300px}.workspace-specialist .home-support-queue .support-counter span{font-size:10px}@media(max-width:767px){.accounting-chart-row{grid-template-columns:minmax(90px,1fr) minmax(70px,1fr) 75px;gap:8px}}

/* Dense desktop CRM tables and readable, safely sized mobile controls. */
.executive-theme .request-table th{position:sticky;top:0;z-index:1;background:var(--card2);font-size:11px}.executive-theme .request-table td{padding:11px 12px;font-size:12px;vertical-align:middle}.executive-theme .request-table tbody tr:hover{background:var(--acc-soft)}.executive-theme .operation-tabs,.executive-theme .operation-scopes{gap:6px;margin-bottom:10px}.executive-theme .operation-scopes .btn{padding:8px 12px;font-size:12px}.executive-theme .page>h2{font-size:23px;margin-bottom:16px}.executive-theme .payment-card,.executive-theme .approval-card{padding:13px}.executive-theme .section-group-tabs{gap:6px;flex-wrap:wrap}.executive-theme .section-group-tabs .btn{padding:9px 12px;font-size:12px}.executive-theme .request-close-warning{border-left:3px solid var(--warn);padding:12px}.executive-theme .request-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain}.executive-theme .btn:focus-visible,.executive-theme .chip:focus-visible{outline:2px solid var(--acc);outline-offset:2px}@media(max-width:767px){.executive-theme .operation-scopes .btn,.executive-theme .section-group-tabs .btn{min-height:40px}.executive-theme .request-table td{padding:10px;font-size:12px}.task-card .btn{min-height:36px}}

.task-card>p:not(.meta){display:block;-webkit-line-clamp:unset;overflow:visible}.task-description{font-size:11px}.task-description>summary{cursor:pointer;color:var(--muted);font-size:11px}.task-description .text-lines{max-height:260px;overflow:auto}.database-folder-list{display:block!important;border:1px solid var(--line);border-radius:12px;overflow:hidden}.executive-theme .database-folder-list>.kb-btn{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 16px;background:var(--sheet);font-size:13px;text-align:left}.database-folder-list>.kb-btn::before{content:'📁';font-size:22px}.executive-theme .database-folder-list>.kb-btn:hover{background:var(--acc-soft)}

.home-support-row>span:first-child{min-width:0}.home-support-reason{overflow-wrap:anywhere;color:var(--ink)!important;line-height:1.4}

.executive-theme .page:has(#rReload) .amt.rate-item{font-size:16px;line-height:1.5;padding:8px 10px}.executive-theme .page:has(#rReload) .card{padding:12px;margin-bottom:8px}.executive-theme .page:has(#rReload) h3{font-size:13px;margin:0 0 8px}.rate-chart-trigger small{font-size:10px}

/* Shared header search on phones, tablets and desktop. */
.mobile-global-search{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--sheet);color:var(--muted)}.mobile-global-search>span{font-size:24px;line-height:1}.executive-theme .mobile-global-search input{flex:1;min-width:0;width:0;padding:12px 0;margin:0;background:transparent!important;border:0!important;border-radius:0;color:var(--ink);font-size:16px;box-shadow:none!important}.mobile-global-search>button{flex:0 0 auto;border:0;border-radius:8px;background:var(--acc-soft);color:var(--acc);padding:8px;font:600 12px system-ui;cursor:pointer}
@media(min-width:768px){.executive-theme .top{z-index:50}.mobile-global-search{flex:1 1 260px;order:0;width:auto}.executive-top-tools{flex:0 0 auto;gap:14px}.header-search-panel{max-height:min(70dvh,650px)}}

/* Compact search field with a font-independent magnifier. */
.executive-theme .mobile-global-search{height:40px;box-sizing:border-box;padding:0 8px 0 12px;gap:9px;border-radius:10px;transition:border-color .15s,box-shadow .15s}.executive-theme .mobile-global-search:focus-within{border-color:var(--acc);box-shadow:0 0 0 2px var(--acc-soft)}.executive-theme .mobile-global-search>.header-search-icon{display:flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;font-size:0;line-height:0}.header-search-icon svg{display:block;width:18px;height:18px}.executive-theme .mobile-global-search input{height:36px;min-height:0;max-height:36px;padding:0!important;line-height:20px;font-size:14px}.executive-theme .mobile-global-search>button{display:flex;align-items:center;justify-content:center;height:28px;min-height:28px;margin:0;padding:0 10px;border-radius:7px;font-size:11px;line-height:16px}
@media(max-width:767px){.executive-theme .mobile-global-search{height:44px}.executive-theme .mobile-global-search input{height:40px;max-height:40px;font-size:16px}.executive-theme .mobile-global-search>button{height:32px;min-height:32px;font-size:12px}}

.incoming-appeals-table{max-width:100%;overflow:auto;overscroll-behavior:contain}.incoming-appeals-table table{width:100%;min-width:580px}.incoming-appeals-table td{vertical-align:top}.incoming-appeals-table .meta{max-width:360px;white-space:normal;overflow-wrap:anywhere}.incoming-appeals-table tr[hidden]{display:none}

@media(max-width:767px){.executive-theme .incoming-appeals-table table{display:block;min-width:0}.incoming-appeals-table thead{display:none}.incoming-appeals-table tbody{display:block}.incoming-appeals-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px;border-bottom:1px solid var(--line)}.incoming-appeals-table tr:last-child{border-bottom:0}.incoming-appeals-table td{display:block;min-width:0;padding:0;border:0;white-space:normal;font-size:12px}.incoming-appeals-table td:nth-child(1){grid-column:1;grid-row:1}.incoming-appeals-table td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted)}.incoming-appeals-table td:nth-child(3){grid-column:1/-1;grid-row:3;color:var(--muted)}.incoming-appeals-table td:nth-child(3):empty{display:none}.incoming-appeals-table td:nth-child(4){grid-column:2;grid-row:2;font-size:10px;color:var(--muted);text-align:right}.incoming-appeals-table td:nth-child(5){grid-column:2;grid-row:1;align-self:center}.incoming-appeals-table .meta{margin:4px 0 0;max-width:none;font-size:11px}.incoming-appeals-table .btn{min-height:36px;padding:8px 10px;font-size:11px}.incoming-appeals-table tr[hidden]{display:none}}

/* Management preview remains in the application header in every workspace. */
.role-switch{flex:0 0 auto;align-self:center;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--sheet);color:var(--ink);font-size:12px;font-weight:700;cursor:pointer}.role-switch[hidden]{display:none!important}.role-switch.active{border-color:var(--acc);color:var(--acc)}
#rolePreviewHint{flex:0 0 auto;padding:6px 16px;background:var(--sheet);color:var(--muted);border-bottom:1px solid var(--line);font-size:11px;line-height:1.4}
@media(max-width:767px){.executive-theme .top:has(.role-switch:not([hidden])){column-gap:5px}.role-switch{padding:6px 7px;font-size:11px}.executive-theme .top:has(.role-switch:not([hidden])) .top-mid{min-width:0;flex:1}.executive-theme .top:has(.role-switch:not([hidden])) .top-mid .sub{max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.role-preview .top{flex-wrap:wrap}#rolePreviewHint{order:9;flex-basis:100%;width:100%;padding:4px 0 0;border:0}

/* Compact quote list: one instrument per row, shared finance typography. */
.rates-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}.rates-toolbar .btn{min-height:34px;padding:8px 12px;font-size:12px}.rates-comparison-note{font-size:11px!important;margin:0 0 14px}.rates-quote-board{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.rates-provider{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--card);overflow:hidden}.rates-provider>header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:var(--sheet);gap:8px}.rates-provider h3{font-size:13px;margin:0}.rates-provider small{font-size:10px;color:var(--muted)}.rates-quote-row,.rates-quote-columns{display:grid;grid-template-columns:minmax(75px,1fr) minmax(65px,1fr) minmax(70px,.9fr) 28px;align-items:center;gap:8px;padding:9px 14px}.rates-quote-row+.rates-quote-row{border-top:1px solid var(--line)}.rates-quote-columns{padding-top:7px;padding-bottom:5px;font-size:10px;color:var(--muted)}.rates-quote-columns>span:not(:first-child){text-align:right}.rates-pair{font-size:12px;overflow-wrap:anywhere}.rates-quote-value{font-size:14px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.rates-quote-change{font-size:11px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.rates-quote-change[data-direction=up]{color:var(--ok)}.rates-quote-change[data-direction=down]{color:var(--bad)}.rates-quote-change[data-direction=unknown],.rates-quote-change[data-direction=flat]{color:var(--muted)}.rates-chart-button{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:var(--sheet);color:var(--acc);cursor:pointer}.rates-unavailable{font-size:9px;color:var(--muted);overflow-wrap:anywhere}.rates-workspace>.section-group-tabs{margin-bottom:12px}
@media(max-width:1000px){.rates-quote-board{grid-template-columns:1fr}}@media(max-width:380px){.rates-quote-row,.rates-quote-columns{padding-left:9px;padding-right:9px;gap:5px;grid-template-columns:minmax(65px,1fr) minmax(65px,1fr) 75px 26px}.rates-quote-value{font-size:13px}}

.calendar-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.calendar-toolbar input,.calendar-toolbar select{width:auto;margin:0}.calendar-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:14px}.calendar-grid{padding:12px!important}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekdays{text-align:center;font-size:11px;margin-bottom:8px;color:var(--muted)}.calendar-day{height:84px;min-width:0;text-align:left;background:var(--sheet);border:1px solid var(--line);border-radius:8px;padding:7px;color:var(--ink);overflow:hidden;cursor:pointer}.calendar-day b{font-size:12px}.calendar-day small{display:block;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--acc);margin-top:4px}.calendar-day.today{border-color:var(--acc)}.calendar-day.selected{background:var(--acc-soft);outline:1px solid var(--acc)}.calendar-events article{padding:10px 0;border-bottom:1px solid var(--line)}.calendar-events article b{font-size:13px}.calendar-events .chip{margin:4px}.calendar-events h3{font-size:14px}@media(max-width:1050px){.calendar-layout{grid-template-columns:1fr}.calendar-day{height:70px}}@media(max-width:450px){.calendar-grid{padding:7px!important}.calendar-day{height:60px;padding:4px}.calendar-days{gap:3px}.calendar-day small{font-size:8px}.calendar-toolbar input{max-width:145px}}

/* TZ3: independent compact accounting workspace, six mobile destinations. */
.ledger-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:start}.ledger-folders{display:flex;flex-direction:column;gap:8px;position:sticky;top:12px}.ledger-folders .btn{text-align:left}.ledger-content{min-width:0}.ledger-content .row{margin:12px 0}.ledger-content details{margin:14px 0}.ledger-content table{font-size:13px}.ledger-content label.btn input[type=file]{max-width:210px}
@media(max-width:700px){.dock{grid-template-columns:repeat(6,minmax(0,1fr))}.dock-btn{padding:7px 1px;min-width:0}.dock-btn span:last-child{font-size:9px}.ledger-layout{grid-template-columns:minmax(0,1fr)}.ledger-folders{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-content .home-metrics{grid-template-columns:1fr}}

.worklet-kanban{grid-template-columns:repeat(3,minmax(240px,1fr));align-items:start}.task-card{padding:12px;font-size:13px}.task-card h3{font-size:14px;line-height:1.35;margin:0 0 6px}.task-card>.meta{font-size:11px}.task-card>p:not(.meta){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.task-card-details>summary{cursor:pointer;font-weight:600}.task-card-details .btn{padding:6px 9px;font-size:12px}.task-staff-tabs{display:flex;gap:6px;overflow:auto;margin:10px 0}.task-staff-tabs .btn{flex-shrink:0}.task-checklist label{display:flex;align-items:center;gap:6px}.task-checklist input{width:auto}
@media(max-width:700px){.worklet-kanban{display:block}.worklet-kanban .kanban-col:not(.task-stage-active){display:none}}

.ledger-content label.btn{position:relative;display:inline-flex;align-items:center;min-height:36px;cursor:pointer;padding:9px 14px}.ledger-content label.btn input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}.ledger-content .row.wrap{align-items:center}.ledger-content .btn{font-size:13px;padding:10px 14px;min-height:38px}.analytics-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.analytics-charts figure{margin:0}.analytics-charts svg{width:100%;height:auto}

.analytics-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}.analytics-filters label{min-width:0}.analytics-filters select{width:100%}

.executive-theme .calendar-toolbar input[type=month]{width:185px;flex:0 1 185px;max-width:185px;min-width:130px;margin:0}.executive-theme .calendar-toolbar select{width:auto;max-width:180px;flex:0 1 180px;margin:0}.calendar-toolbar>.btn{flex-shrink:0}.calendar-toolbar input[type=month],.calendar-toolbar select{font-size:13px}
@media(max-width:450px){.executive-theme .calendar-toolbar input[type=month]{width:145px;max-width:145px;flex-basis:145px}.calendar-toolbar>.btn{padding:9px 12px}}

.ledger-matin-folder>summary{font-size:13px;font-weight:650;padding:10px 6px;cursor:pointer}.ledger-matin-folder>.btn{display:block;width:calc(100% - 10px);margin:6px 0 6px 10px;text-align:left}.ledger-folders .ledger-matin-folder{margin:0}

/* Recipient instructions remain a compact, separate request draft. */
.counterparty-request-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.counterparty-request-fields label{min-width:0;margin:0;display:flex;flex-direction:column;gap:6px}
.counterparty-request-fields input,.counterparty-request-fields textarea,.counterparty-request-fields select{width:100%;min-width:0}
@media(max-width:600px){.counterparty-request-fields{grid-template-columns:minmax(0,1fr);gap:10px}}

/* Standalone payment-form builder follows the current theme on every device. */
.payment-form-intro{color:var(--muted);font-size:14px;margin:0 0 14px}.payment-form-tabs{max-width:440px;margin-bottom:18px}.payment-form-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.payment-form-layout>*{min-width:0}.payment-form-editor h3{margin:0 0 18px}.payment-form-editor label{display:block;margin-bottom:14px;font-size:13px}.payment-form-editor input,.payment-form-editor textarea{width:100%;margin-top:6px}.payment-form-editor textarea{resize:vertical;line-height:1.5}.payment-form-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.5fr);gap:12px}.payment-form-actions{margin-top:14px;gap:8px}.payment-form-preview{position:sticky;top:12px}.payment-form-document{border:1px solid #7771a54d;border-radius:18px;padding:26px;background:var(--card,#15162b);overflow-wrap:anywhere}.payment-form-document header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #7771a533;padding-bottom:18px}.payment-document-brand{font-size:19px;font-weight:750;letter-spacing:-.5px}.payment-document-brand>span{display:block;font-size:9px;letter-spacing:1.7px;font-weight:500;margin-top:5px;color:var(--muted)}.payment-form-document h3{font-size:23px;line-height:1.2;margin:24px 0 8px}.payment-document-title{font-size:14px;margin:0 0 18px;color:var(--muted);white-space:pre-wrap}.payment-document-amount{padding:18px;border-radius:12px;background:#8c65e418;margin:20px 0}.payment-document-amount>span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.payment-document-amount strong{font-size:26px;letter-spacing:-.5px;line-height:1.25}.payment-form-document section{margin:22px 0}.payment-form-document h4{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:var(--muted);margin:0 0 9px}.payment-form-document p{font-size:14px;line-height:1.65;white-space:pre-wrap;margin:0}.payment-form-document footer{border-top:1px solid #7771a533;padding-top:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.5fr);gap:18px}.payment-history-list{margin-top:18px}.payment-history-row{display:flex;align-items:center;gap:18px;width:100%;background:none;color:inherit;border:0;border-bottom:1px solid #7771a533;padding:18px 8px;cursor:pointer;text-align:left;font:inherit}.payment-history-row:hover{background:#8c65e412}.payment-history-row>span:first-child{flex:1;min-width:0}.payment-history-row b{font-size:14px;display:block;overflow-wrap:anywhere}.payment-history-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.payment-history-row>strong{font-size:15px;max-width:40%;overflow-wrap:anywhere}.payment-form-history .row input{min-width:0;flex:1}.payment-copy-fallback{width:100%;min-height:55vh;font-size:13px;line-height:1.6}.payment-form-document+.payment-form-actions{margin-top:18px}.payment-form-preview .btn[disabled]{opacity:.45}
html[data-theme=light] .payment-form-document{background:#fff;color:#172238;border-color:#e2e6f0}.payment-form-history{padding:20px}
@media(max-width:1050px){.payment-form-layout{grid-template-columns:minmax(0,1fr)}.payment-form-preview{position:static}.payment-form-editor{padding:20px}}
@media(max-width:600px){.payment-form-document{padding:20px;border-radius:14px}.payment-form-document h3{font-size:21px}.payment-document-amount strong{font-size:24px}.payment-form-actions>.btn{flex:1}.payment-history-row{gap:10px;padding:15px 0}.payment-history-row>strong{font-size:13px}.payment-form-history{padding:14px}}

/* Saldo uses its available panel width, including sidebar and modal layouts. */
.saldo-workspace,.saldo-workspace>*{min-width:0;max-width:100%}
.saldo-counterparty-list{container:saldo-list / inline-size;min-width:0}
.saldo-counterparty{container:saldo-card / inline-size;grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
.saldo-counterparty-label{border-right:0;border-bottom:1px solid var(--line);align-items:center;padding:14px 16px}
.saldo-counterparty-label>div{flex:1;min-width:0}
.saldo-counterparty-label h4{overflow-wrap:anywhere}
.saldo-type-row{grid-template-columns:minmax(120px,28%) minmax(0,1fr);min-width:0}
.saldo-type-label{padding:12px;min-width:0}
.saldo-kind-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.saldo-type-currencies,.saldo-position-currency,.saldo-position-detail,.saldo-lot-operation{min-width:0;max-width:100%}
.saldo-currency-row{grid-template-columns:minmax(64px,.5fr) minmax(0,1.5fr) 32px;gap:8px;padding:4px 10px}
.saldo-currency-code{min-width:0;flex-wrap:wrap;overflow-wrap:anywhere;gap:6px}
.saldo-currency-amount,.saldo-position-currency>summary .amt{min-width:0;max-width:100%;font-size:16px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;word-break:normal;letter-spacing:0;margin:0}
.saldo-currency-amount{padding:6px 0}
.saldo-currency-more{padding:0;min-width:0;width:32px}
.saldo-position-currency>summary{grid-template-columns:minmax(60px,.5fr) minmax(0,1.5fr) 20px;gap:8px;padding:10px;min-width:0}
.saldo-position-currency>summary>*{min-width:0;max-width:100%}
.saldo-position-detail{padding:0 12px 12px;overflow-wrap:anywhere}
.saldo-position-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:12px}
.saldo-position-amounts>div{min-width:0;max-width:100%}
.saldo-position-amounts dd{line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.saldo-flat-list,.saldo-flat-row,.saldo-flat-row dl>div{min-width:0;max-width:100%}
.saldo-flat-row header>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.saldo-flat-row dd{line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.saldo-workspace .amt{max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.4}
.saldo-workspace :is(.btn,.kb-btn),.saldo-position-detail .btn,.saldo-flat-row .btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;height:auto}
.saldo-workspace .row{flex-wrap:wrap;min-width:0}
.archive-modal:has(.saldo-counterparty,.saldo-flat-row)>.archive-body{min-width:0}
.archive-modal:has(.saldo-counterparty,.saldo-flat-row)>header h3{min-width:0;overflow-wrap:anywhere}
@container saldo-list (min-width:680px){
 .saldo-counterparty{grid-template-columns:minmax(150px,23%) minmax(0,1fr)}
 .saldo-counterparty-label{border-right:1px solid var(--line);border-bottom:0;align-items:flex-start;padding:18px 16px}
}
@container saldo-card (max-width:460px){
 .saldo-type-row{grid-template-columns:minmax(0,1fr)}
 .saldo-type-label{padding:10px 12px 3px}
 .saldo-kind-badge{font-size:11px;padding:5px 8px}
 .saldo-currency-row{grid-template-columns:minmax(58px,.45fr) minmax(0,1.55fr) 28px;gap:6px;padding:4px 12px}
 .saldo-currency-more{width:28px}
 .saldo-currency-amount,.saldo-position-currency>summary .amt{font-size:14px}
 .saldo-position-currency>summary{grid-template-columns:minmax(54px,.45fr) minmax(0,1.55fr) 16px;padding:10px 12px;gap:6px}
}
@container saldo-card (max-width:260px){
 .saldo-currency-row{grid-template-columns:minmax(0,1fr) 28px}
 .saldo-currency-code{grid-column:1;grid-row:1}
 .saldo-currency-more{grid-column:2;grid-row:1}
 .saldo-currency-amount{grid-column:1 / -1;grid-row:2;text-align:left;padding:0 0 8px}
 .saldo-position-currency>summary{grid-template-columns:minmax(0,1fr) 16px}
 .saldo-position-currency>summary .amt{grid-column:1;grid-row:2;text-align:left}
 .saldo-position-currency>summary>span:last-child{grid-column:2;grid-row:1}
 .saldo-position-amounts{grid-template-columns:minmax(0,1fr)}
}
:root[data-theme="light"] .executive-theme .saldo-counterparty-label{background:var(--card2);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .saldo-type-row{background:var(--sheet);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .saldo-currency-more{color:var(--muted)}
:root[data-theme="light"] .executive-theme .saldo-kind-badge.nerez{background:var(--sky);color:#315792;border-color:#ccd9ee}
:root[data-theme="light"] .executive-theme .saldo-kind-badge.swift{background:var(--acc-soft);color:var(--acc);border-color:#d8caef}
:root[data-theme="light"] .executive-theme .archive-modal.saldo-danger-modal>header{background:var(--blush);color:var(--bad);border-color:#eab4c2}

.saldo-type-row:has(.saldo-position-currency[open])>.saldo-type-label{align-items:flex-start;padding-top:14px}
.saldo-position-amounts{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.saldo-flat-row dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.saldo-workspace>label{display:block;width:100%}
.saldo-workspace>.btn[data-stab="menu"]{display:inline-flex;margin-bottom:14px}
@supports not (container-type:inline-size){.saldo-type-row{grid-template-columns:minmax(0,1fr)}}

/* Unread decorations belong inside the identity header, never in grid tracks. */
.saldo-counterparty>.saldo-counterparty-label{grid-column:1;grid-row:1}
.saldo-counterparty>.saldo-counterparty-types{grid-column:1;grid-row:2}
.saldo-counterparty-label .object-unread-badge{width:max-content;max-width:100%;justify-self:start;white-space:nowrap}
.saldo-currency-amount,.saldo-position-currency>summary .amt{overflow-wrap:normal;word-break:normal}
@container saldo-list (min-width:680px){.saldo-counterparty>.saldo-counterparty-label{grid-column:1;grid-row:1}.saldo-counterparty>.saldo-counterparty-types{grid-column:2;grid-row:1}}

/* An explicit app close control remains available on Telegram mobile and desktop. */
.executive-theme .top-actions .app-close-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);background:var(--sheet);color:var(--ink);border-radius:50%;cursor:pointer}
.executive-theme .top-actions .app-close-btn[hidden]{display:none}
.app-close-btn svg{width:18px;height:18px;pointer-events:none}
.executive-theme .top-actions .app-close-btn:hover{background:var(--blush);color:var(--bad)}
.app-close-btn:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
@media(max-width:767px){.executive-theme .top-actions .app-close-btn{flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px}.executive-theme .top-mid .brand{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.executive-theme #expandBtn{display:none}}
@media(max-width:380px){.executive-theme .top{gap:6px}.executive-theme .top-actions{gap:3px}.executive-theme .top-actions .ava-sm{width:32px;height:32px}}

/* Readable instructions retain line breaks and native word selection. */
[data-selectable]{user-select:text!important;-webkit-user-select:text!important;cursor:text;touch-action:auto;-webkit-touch-callout:default}
[data-selectable].text-lines{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}

.request-all-statuses{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 12px;min-width:0}
.request-all-statuses .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.request-material-picker{margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:12px}
.request-material-picker .file-pick{display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere}
.request-material-picker input[type=checkbox]{width:auto;flex:0 0 auto}

/* Persistent manual refresh alongside the window controls. */
.executive-theme .top-actions .header-refresh-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);background:var(--sheet);color:var(--ink);border-radius:50%;cursor:pointer}
.header-refresh-btn svg{width:18px;height:18px;pointer-events:none}
.header-refresh-btn:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.header-refresh-btn[aria-busy=true] svg{animation:header-refresh-spin 1s linear infinite}
@keyframes header-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.header-refresh-btn[aria-busy=true] svg{animation:none;opacity:.55}}
@media(max-width:767px){.executive-theme .top-actions .header-refresh-btn{flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px}}

/* Theme-aware interactive states, including keyboard selection in comboboxes. */
:root[data-theme="light"] .executive-theme :is(.workspace-request.selected,.workspace-request:hover,.balance-company-row.on,.company-bank-name:hover,.company-bank-amount:hover,.company-balance-label:hover,.company-card-open:hover){background:var(--acc-soft);color:var(--ink);border-color:var(--line)}
:root[data-theme="light"] .executive-theme .request-table tr:hover td{background:var(--acc-soft);color:var(--ink)}
:root[data-theme="light"] .executive-theme .search-combo-options :is(button:hover,button.active,button[aria-selected=true]){background:var(--acc-soft);color:var(--acc)}
:root[data-theme="light"] .executive-theme :is(.home-panel-title:hover,.home-section-link:hover,.home-record-link:hover,.saldo-currency-amount:hover,.saldo-currency-more:hover){color:var(--acc)}
:root[data-theme="light"] .executive-theme .mobile-menu-close:hover{background:var(--acc-soft);color:var(--acc)}
:root[data-theme="light"] .executive-theme ::selection{background:#ddd1f4;color:#291945}
.request-history-event{padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
.request-history-event:last-child{border-bottom:0}
.request-history-event h4{margin:0 0 8px;line-height:1.5}
.request-history-event h4 .meta{font-weight:400}
.request-history-change{display:flex;flex-direction:column;gap:3px;margin:8px 0;min-width:0}
.request-history-change span{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;color:var(--ink)}

/* Employee profile and role medals. */
.executive-theme .eid-profile{padding:0;border:1px solid var(--line);background:var(--card);box-shadow:none}
.eid-profile-hero{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:254px;padding:32px;background:radial-gradient(ellipse at 85% 0%,#98705333,transparent 60%),linear-gradient(120deg,#111c2e,#172337 60%,#253141);color:#edf2f8}
.eid-profile-hero:after{content:"";position:absolute;inset:12px;border:1px solid #d2b17b33;pointer-events:none;z-index:-1}
.eid-profile-hero .profile-cover{position:absolute;inset:0;width:100%;height:100%;border-radius:0;opacity:.25;z-index:-1}
.eid-profile-identity{display:flex;align-items:center;gap:22px;min-width:0}
.eid-profile-identity>div{min-width:0}
.eid-profile-avatar{flex-shrink:0;width:100px;height:100px;border-radius:22px;object-fit:cover;border:2px solid #c4ac7b;box-shadow:0 0 0 6px #cfb57c13,0 12px 30px #0004}
.eid-profile-initials{display:grid;place-items:center;background:linear-gradient(145deg,#596781,#26364e);color:#fff;font-size:34px;font-weight:700}
.eid-profile-identity h3{font-size:clamp(22px,3vw,34px);line-height:1.15;margin:8px 0 12px;overflow-wrap:anywhere;color:inherit}
.eid-profile-role{color:#b6c8df;font-size:11px;letter-spacing:.08em;margin:0}
.eid-profile-status{margin:0;color:#c1c9d6;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.eid-profile-main-rank{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:174px;text-align:center}
.eid-profile-main-rank>b{font-size:20px;color:#edcf93;margin-top:4px}
.eid-profile-main-rank>span:last-child{font-size:11px;color:#afbdce;margin-top:6px}
.eid-profile-ranks{padding:24px}
.eid-profile-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.eid-profile-section-heading h4{margin:0;font-size:16px}
.eid-profile-section-heading>span{font-size:12px;color:var(--muted)}
.eid-rank-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.eid-rank-card{border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0;background:var(--acc-soft)}
.eid-rank-card-top{display:flex;align-items:center;gap:18px}
.eid-rank-card-top p{margin:0 0 6px;font-size:11px;color:var(--muted)}
.eid-rank-card-top h4{margin:0;font-size:19px;color:var(--ink)}
.eid-rank-stars{display:flex;gap:3px;color:#8993a34d;font-size:13px;margin-top:6px}
.eid-rank-stars .earned{color:#b28b3e}
.eid-rank-progress{margin-top:20px}
.eid-rank-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;flex-wrap:wrap}
.eid-rank-progress>div span{color:var(--muted)}
.eid-rank-progress progress{appearance:none;width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;margin-top:12px;background:var(--line);color:var(--acc)}
.eid-rank-progress progress::-webkit-progress-bar{background:var(--line)}
.eid-rank-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#8f65c9,#c5a76a);border-radius:8px}
.eid-rank-progress progress::-moz-progress-bar{background:#a580c4}
.eid-rank-progress p{margin:6px 0 0;font-size:11px;color:var(--muted)}
.eid-profile .rank-role{padding:16px 0 0;margin-top:16px;border-top:1px solid var(--line);font-size:12px}
.eid-profile summary{cursor:pointer;line-height:1.5}
.eid-profile .rank-radar{margin-top:12px}
.eid-rank-path,.eid-rank-rules{margin-top:22px;font-size:12px}
.eid-rank-ladder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:18px}
.eid-rank-ladder-item{display:flex;align-items:center;flex-direction:column;text-align:center;gap:8px;padding:12px 4px;border:1px solid var(--line);border-radius:12px;min-width:0}
.eid-rank-ladder-item.is-current{border-color:var(--acc);background:var(--acc-soft)}
.eid-rank-ladder-item b{font-size:11px;overflow-wrap:anywhere}
.eid-rank-ladder-item>span:last-child{font-size:10px;color:var(--muted)}
.eid-rank-medal{position:relative;display:inline-block;width:128px;height:128px;flex-shrink:0;filter:drop-shadow(0 5px 8px #0004)}
.eid-rank-medal>img{display:block;width:100%;height:100%;object-fit:contain}
.eid-rank-medal.is-small{width:76px;height:76px}
.eid-profile-main-rank .eid-rank-stars{font-size:16px;margin-top:8px;gap:4px}
.eid-profile-main-rank .eid-rank-stars .earned{color:#e4bc68}
.eid-rank-tier-7.eid-rank-medal{filter:drop-shadow(0 0 12px #d6a54f55)}
:root[data-theme="light"] .executive-theme .eid-profile{background:#fff}
:root[data-theme="light"] .eid-profile-hero{color:#202b3c;background:radial-gradient(ellipse at 85% 0%,#d9c08a55,transparent 60%),linear-gradient(120deg,#f1f4fa,#e5eaf4)}
:root[data-theme="light"] .eid-profile-role,:root[data-theme="light"] .eid-profile-status,:root[data-theme="light"] .eid-profile-main-rank>span:last-child{color:#56647c}
:root[data-theme="light"] .eid-profile-main-rank>b{color:#81612b}
@media(max-width:600px){.eid-profile-hero{padding:24px 18px;gap:18px;min-height:210px;align-items:flex-start}.eid-profile-identity{flex-direction:column;align-items:flex-start;gap:14px}.eid-profile-avatar{width:68px;height:68px;border-radius:16px}.eid-profile-main-rank{width:100px;padding-top:10px}.eid-profile-main-rank .eid-rank-medal{width:94px;height:103px}.eid-profile-main-rank>b{font-size:15px}.eid-profile-main-rank>span:last-child{font-size:10px}.eid-profile-ranks{padding:18px}.eid-rank-card{padding:16px}.eid-rank-ladder{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The avatar fills the existing profile circles in either theme. */
.profile-avatar-wrap{position:relative;flex:none;display:inline-flex}
.profile-avatar-pencil{position:absolute;right:-4px;bottom:-4px;width:32px;height:32px;border-radius:50%;border:2px solid var(--card);background:var(--accent,#7847c7);color:#fff;cursor:pointer;font-size:20px;line-height:1;display:grid;place-items:center}
#whoAva,.sidebar-avatar{overflow:hidden;flex-shrink:0}
#whoAva .eid-profile-avatar,.sidebar-avatar .eid-profile-avatar{width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;border-radius:inherit;border:0;font-size:inherit;display:flex;align-items:center;justify-content:center}
.profile-avatar-upload{display:block;cursor:pointer;margin-bottom:12px;white-space:normal}

/* Eidolons workspace: shared compact surfaces in both themes. */
.workspace-modern body,.workspace-modern button,.workspace-modern input,.workspace-modern textarea,.workspace-modern select{font-family:'Eidolons Inter',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-optical-sizing:auto}
.workspace-modern svg{flex-shrink:0}.workspace-top-control svg,.workspace-setting-card svg,.workspace-setting-button svg,.workspace-filters summary svg,.workspace-files-menu summary svg{width:20px;height:20px}
.workspace-modern .worklet-sidebar{height:100%;max-height:var(--app-h,100dvh);overflow:hidden;display:flex;flex-direction:column;gap:5px}
.workspace-modern .worklet-sidebar>nav{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:space-evenly;gap:4px}
.workspace-modern .worklet-sidebar .sidebar-caption{display:none}.workspace-modern .worklet-sidebar .sidebar-brand{margin-bottom:4px}.workspace-modern .worklet-sidebar .sidebar-search{margin:0}
.workspace-nav-group{margin:0;min-width:0}.workspace-nav-group>h3{font-size:9px;line-height:1.2;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:4px 10px 3px;font-weight:600}.workspace-nav-group>div{display:grid;gap:2px}
.workspace-modern .worklet-sidebar .sidebar-item{min-height:30px;padding:6px 9px;font-size:11px;gap:8px;line-height:1.2}.workspace-modern .worklet-sidebar .sidebar-item svg{width:17px;height:17px}.workspace-modern .worklet-sidebar .sidebar-profile{padding:8px 4px 0;margin-top:0;flex:none}
.workspace-modern .mobile-menu{position:fixed;inset:8px 0 0;margin:0;width:auto;height:auto;max-width:none;max-height:none;border-radius:22px 22px 0 0;padding:18px 18px calc(18px + var(--sab,0px));background:var(--sheet);color:var(--ink);overflow:hidden;box-sizing:border-box}
.workspace-modern .mobile-menu-header{padding:0 0 8px;margin:0}.workspace-modern .mobile-menu-header .sidebar-brand{margin:0}.workspace-modern .mobile-menu .more-list{display:flex;flex-direction:column;gap:8px;overflow:hidden;max-height:none;padding:0}.workspace-modern .mobile-menu .workspace-nav-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.workspace-modern .mobile-menu .workspace-nav-group>h3{margin:3px 2px 5px;font-size:10px}.workspace-modern .mobile-menu .more-item{min-height:40px;padding:8px 10px;gap:8px;font-size:12px;line-height:1.2;border-radius:12px}.workspace-modern .mobile-menu .more-item svg{width:18px;height:18px}.workspace-modern .mobile-menu [data-mobile-search]{min-height:34px;padding:5px 12px}
.workspace-filters{border:1px solid var(--line);background:var(--card);border-radius:14px;margin:12px 0}.workspace-filters>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:11px 14px;font-size:13px;font-weight:650}.workspace-filters>summary::-webkit-details-marker,.workspace-files-menu>summary::-webkit-details-marker{display:none}.workspace-filters>summary small{margin-left:auto;font-size:10px;color:var(--muted);font-weight:400}.workspace-filter-body{padding:0 14px 14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.workspace-filter-body>.search,.workspace-filter-body>form,.workspace-filter-body>.request-filters,.workspace-filter-body>.operation-scopes{flex-basis:100%;min-width:0}.workspace-filter-body label{min-width:0}.workspace-filter-body .request-filters{margin:0}.workspace-filter-body .search{margin:0}
.workspace-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.workspace-setting-card{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);padding:18px;min-height:82px;cursor:pointer}.workspace-setting-card:hover{background:var(--card2);border-color:var(--acc)}.workspace-setting-card>span{margin-left:auto;color:var(--muted)}.workspace-setting-card>b{font-size:13px;line-height:1.4}.workspace-modern .kb-btn:has(svg){display:flex;align-items:center;gap:12px;justify-content:flex-start;text-align:left}.workspace-modern .kb-btn svg{width:22px;height:22px;color:var(--acc)}
.workspace-periods{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.colleagues-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.colleague-card{display:flex;flex-direction:column;align-items:center;position:relative;gap:8px;padding:22px 14px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);cursor:pointer;min-width:0}.colleague-card[hidden]{display:none}.colleague-card:hover{border-color:var(--acc);background:var(--card2)}.colleague-card .eid-rank-medal{width:72px;height:80px}.colleague-card>b{font-size:15px;overflow-wrap:anywhere}.colleague-card>span:last-child{font-size:11px;color:var(--acc)}.colleague-card>small{color:var(--muted);font-size:11px;text-align:center}.colleague-place{position:absolute;top:12px;left:14px;font-weight:750;color:var(--muted)}.colleague-card>.ranking-up{color:var(--ok)}.colleague-card>.ranking-down{color:var(--bad)}
.dock-order{padding-left:24px}.dock-order li{display:flex;align-items:center;gap:8px;margin:6px 0}.dock-order li>span{flex:1}.dock-order .btn{min-height:32px;padding:4px 10px}.dock-settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.admin-report{display:flex;flex-direction:column;gap:10px}.admin-report .text-lines{overflow-wrap:anywhere;margin:0}.admin-report>small{color:var(--muted)}
#workspaceLoadStatus{pointer-events:none;position:fixed;inset:0 0 auto;height:3px;z-index:24000;opacity:0;transition:opacity .15s;overflow:hidden}#workspaceLoadStatus>span{display:block;width:40%;height:100%;background:var(--acc);animation:workspace-progress 1.1s infinite ease-in-out}.workspace-loading #workspaceLoadStatus{opacity:1}@keyframes workspace-progress{from{transform:translateX(-100%)}to{transform:translateX(350%)}}
#workspaceBanners{position:fixed;z-index:18000;right:max(14px,env(safe-area-inset-right));top:calc(var(--sat,0px) + 82px);display:grid;gap:10px;width:min(370px,calc(100vw - 28px));pointer-events:none}.workspace-banner{display:flex;align-items:flex-start;gap:4px;border:1px solid var(--line);border-left:3px solid var(--acc);background:var(--sheet);color:var(--ink);border-radius:15px;box-shadow:0 8px 35px #0002;animation:workspace-banner-in .22s ease-out;pointer-events:auto}.workspace-banner>button:first-child{border:0;background:transparent;color:inherit;display:flex;flex:1;flex-direction:column;gap:5px;text-align:left;padding:15px;font:inherit;min-width:0;cursor:pointer}.workspace-banner b{font-size:13px}.workspace-banner span{font-size:12px;color:var(--muted);overflow-wrap:anywhere;max-height:70px;overflow:hidden}.workspace-banner-close{border:0;background:transparent;color:var(--muted);padding:8px 10px;font-size:22px;cursor:pointer}@keyframes workspace-banner-in{from{transform:translateX(110%);opacity:0}to{transform:translateX(0);opacity:1}}
.workspace-scroll-top{position:fixed;right:20px;bottom:calc(var(--dock-h,64px) + 16px);z-index:9000;border:1px solid var(--line);border-radius:50%;width:42px;height:42px;display:grid;place-items:center;background:var(--sheet);color:var(--acc);box-shadow:0 4px 20px #0002;cursor:pointer}.workspace-scroll-top[hidden]{display:none}.workspace-scroll-top svg{width:22px;height:22px}
.workspace-files{position:relative}.workspace-files-menu{position:absolute;right:0;top:0;z-index:12}.workspace-files-menu>summary{display:grid;place-items:center;list-style:none;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;cursor:pointer;background:var(--card)}.workspace-files-menu>div{position:absolute;right:0;top:45px;min-width:225px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--sheet);box-shadow:0 12px 30px #0002}.workspace-files-menu button{display:block;width:100%;padding:11px;border:0;border-radius:8px;text-align:left;color:var(--ink);background:transparent;cursor:pointer}.workspace-files-menu button:hover{background:var(--card2)}.workspace-files h2{padding-right:48px}.workspace-files [data-file-menu-original]{display:none!important}.workspace-files .doc-folder-entry{border-radius:14px;box-shadow:none}.workspace-files .doc-folder-entry .kb-btn{font-size:13px;padding:14px}
#workspaceSplitPane{position:relative;grid-column:3;grid-row:2;min-width:0;min-height:0;border-left:1px solid var(--line);background:var(--bg);overflow:hidden}
#workspaceSplitPane iframe{display:block;width:100%;height:100%;border:0;min-height:0}
.split-pane-close{position:absolute;top:8px;right:10px;z-index:5;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;font-size:20px;background:var(--sheet)}
.workspace-pane #workspaceAdminButton,.workspace-pane #workspaceSplitButton,.workspace-pane .top,.workspace-pane .worklet-sidebar,.workspace-pane #dock{display:none!important}
.workspace-pane .shell{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;margin:0;border:0;border-radius:0;box-shadow:none;padding:0!important}
.workspace-pane #app{flex:1;min-height:0;min-width:0;padding:0 16px 22px;overflow-y:auto}
.workspace-pane .page>h2{padding-right:40px}
@media(min-width:768px){
 .workspace-split>.shell{width:calc(100% - 20px);max-width:none;grid-template-columns:210px minmax(0,1fr) minmax(0,1fr)}
 .workspace-split>.shell>.top{grid-column:2/-1}
 .workspace-split>.shell>#app{grid-column:2;grid-row:2}
}
@media(min-width:1200px){.workspace-split>.shell{grid-template-columns:198px minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:700px){.workspace-modern .dock{position:fixed;bottom:0;left:0;right:0;transform:none!important;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(0,1fr)}.workspace-modern .dock-btn{min-width:0;overflow:hidden}.workspace-modern .dock-btn>span:last-child{font-size:9px;line-height:1.2;white-space:normal}.workspace-modern .top{gap:5px}.workspace-top-control{width:30px;min-width:30px;padding:5px!important}.workspace-top-control svg{width:17px;height:17px}.workspace-modern #headerSearchPanel{position:fixed;left:12px!important;right:12px!important;width:auto!important;margin:0;max-height:75dvh;overflow:auto}.workspace-modern #headerSearchPanel input{font-size:16px;min-width:0}.workspace-admin-grid{grid-template-columns:1fr}.workspace-setting-card{padding:14px;min-height:65px}.colleagues-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.colleague-card{padding:20px 10px}.colleague-card>b{font-size:13px}.dock-settings-list{grid-template-columns:1fr}.workspace-scroll-top{right:12px}}
@media(max-height:680px){.workspace-modern .mobile-menu{padding:12px 12px calc(12px + var(--sab,0px))}.workspace-modern .mobile-menu .more-list{gap:5px}.workspace-modern .mobile-menu .more-item{min-height:30px;padding:5px 8px;font-size:11px}.workspace-modern .mobile-menu .workspace-nav-group>div{gap:4px}.workspace-modern .mobile-menu .sidebar-brand small{display:none}.workspace-modern .mobile-menu-header .sidebar-brand{font-size:14px}.workspace-modern .worklet-sidebar .sidebar-item{min-height:25px;padding:4px 7px;font-size:10px}.workspace-modern .worklet-sidebar .sidebar-brand{padding-top:0}.workspace-modern .worklet-sidebar .sidebar-brand small{display:none}}
@media(prefers-reduced-motion:reduce){.workspace-banner,#workspaceLoadStatus>span{animation:none}.workspace-scroll-top{scroll-behavior:auto}}

.workspace-modern #workspaceAdminButton{width:auto;min-width:36px;display:inline-flex;align-items:center;gap:6px;padding:5px 9px}.workspace-modern #workspaceAdminButton[hidden]{display:none}.workspace-modern #workspaceAdminButton>span{font-size:11px;white-space:nowrap}.workspace-files .file-row{border:1px solid var(--line);border-radius:12px;box-shadow:none;margin:7px 0}.workspace-files .file-row>.file-tile-trigger{padding:12px 14px}.workspace-files .file-row>.file-tile-trigger b{font-size:13px}.workspace-files .file-row-actions{padding:0 14px 14px}
@media(max-width:700px){.workspace-modern #workspaceAdminButton>span{display:none}.workspace-modern #workspaceAdminButton{min-width:30px;width:30px;padding:5px}}

.workspace-modern .mobile-menu [data-mobile-search]{display:flex;align-items:center;justify-content:center;gap:8px}.workspace-modern .mobile-menu [data-mobile-search] svg{width:15px;height:15px}

@media(max-width:767px){.workspace-modern .worklet-sidebar{display:none!important}}


#appStartup{max-width:360px;margin:clamp(32px,12vh,120px) auto;padding:32px;text-align:center;border-radius:24px}#appStartupTitle{font-size:18px;line-height:1.4;margin:18px 0}.workspace-startup-logo{width:58px;height:58px;margin:auto;border-radius:18px;display:grid;place-items:center;font-size:30px;font-weight:800;color:#fff;background:linear-gradient(145deg,#b28af5,#6b44bd);box-shadow:0 12px 35px #8259c72b;animation:workspace-startup-pulse 1.5s infinite ease-in-out}.workspace-startup-skeleton{display:grid;gap:9px;max-width:230px;margin:24px auto 8px}.workspace-startup-skeleton i{display:block;height:9px;border-radius:6px;background:var(--card2);overflow:hidden}.workspace-startup-skeleton i:nth-child(2){width:82%;justify-self:center}.workspace-startup-skeleton i:nth-child(3){width:60%;justify-self:center}#appStartup:has(#appStartupError:not([hidden])) .workspace-startup-logo{animation:none}#appStartup:has(#appStartupError:not([hidden])) .workspace-startup-skeleton{display:none}@keyframes workspace-startup-pulse{50%{transform:scale(.94);opacity:.72}}@media(prefers-reduced-motion:reduce){.workspace-startup-logo{animation:none}}

/* Reserve scrollable room only for the portion of the dock covering content.
   Flow-layout and hidden desktop docks have zero overlap. Includes safe-area height. */
@media(max-width:767px){
 .workspace-modern #app{padding-bottom:calc(16px + var(--dock-overlay-h,0px));scroll-padding-bottom:calc(16px + var(--dock-overlay-h,0px))}
}

/* A shared touch picker keeps its options inside the visible keyboard viewport. */
dialog.mobile-select-picker{position:fixed;inset:auto;border:1px solid var(--line);border-radius:20px;background:var(--sheet);color:var(--ink);padding:0;overflow:hidden;box-sizing:border-box}
dialog.mobile-select-picker[open]{display:flex;flex-direction:column}.mobile-select-picker>header{flex:none;margin:0;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.mobile-select-picker>header h3{font-size:15px;line-height:1.3;margin:0}.mobile-select-picker>header .btn{min-height:36px;padding:7px 11px;font-size:12px}.mobile-select-picker>.archive-body{display:flex;flex-direction:column;min-height:0;flex:1;padding:0;overflow:hidden;gap:0}
.mobile-picker-search{flex:none;padding:12px 16px 6px;margin:0;display:block}.mobile-picker-search>span{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.mobile-picker-search input{width:100%;font-size:16px;min-height:42px;margin:0}.mobile-picker-status{flex:none;margin:0;padding:4px 16px 8px;color:var(--muted);font-size:11px}.mobile-picker-options{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:0 8px max(8px,env(safe-area-inset-bottom))}.mobile-picker-options>button{display:block;width:100%;text-align:left;font:inherit;font-size:14px;line-height:1.35;min-height:44px;padding:12px 10px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);white-space:normal;overflow-wrap:anywhere;cursor:pointer}.mobile-picker-options>button[aria-selected=true],.mobile-picker-options>button.active{background:var(--acc-soft);color:var(--acc)}
.select-search[readonly]{cursor:pointer;padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat}

@media(max-width:700px),(pointer:coarse){.select-search[readonly]{font-size:16px}}

dialog.keyboard-aware-search[open]{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.keyboard-aware-search>header{flex:none}.keyboard-aware-search>.archive-body{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain}.keyboard-aware-search input{font-size:16px}

/* Maintenance is one screen, outside all workspace routes and dialogs. */
body.maintenance-locked > :not(#maintenanceWindow):not(script):not(style){display:none!important}
#maintenanceWindow{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:24px;background:var(--bg,#101222);color:var(--ink,#eef0fa);overflow:auto}
.maintenance-card{width:min(100%,460px);text-align:center;padding:32px 24px;border-radius:24px;background:var(--card,#202039);border:1px solid var(--line,#43405d);box-shadow:0 18px 70px #0002}
.maintenance-brand{font-weight:700;letter-spacing:.04em;color:#9573de}.maintenance-symbol{font-size:56px;margin:24px 0 12px;color:#9573de}.maintenance-card h1{font-size:26px;line-height:1.2;margin:12px 0}.maintenance-card p{line-height:1.6;margin:18px 0 28px}.maintenance-card small{display:block;margin-top:20px;opacity:.72;line-height:1.5}.maintenance-settings blockquote{margin:20px 0;padding:16px;border-left:3px solid #9573de;line-height:1.5}

/* Per-section maintenance: the pencil is a separate button, never nested. */
.section-menu-item{position:relative;display:grid;min-width:0;align-self:stretch}
.section-menu-item>.sidebar-item,.section-menu-item>.tile{width:100%;height:100%;box-sizing:border-box;margin:0}
.section-menu-admin>.sidebar-item,.section-menu-admin>.tile{padding-right:38px!important}
.section-menu-pencil{position:absolute;right:5px;top:50%;transform:translateY(-50%);z-index:2;width:28px;height:28px;display:grid;place-items:center;padding:5px;border:1px solid #0003;border-radius:7px;background:#f1f1f1;color:#000;cursor:pointer}
.section-menu-pencil svg{width:17px;height:17px}.section-menu-pencil:hover{background:#fff;border-color:#0007}
.section-button-working{position:relative;opacity:.5!important;padding-top:22px!important}
.section-work-label{position:absolute;top:3px;left:8px;right:8px;text-align:center;font-size:10px!important;line-height:1.2;letter-spacing:.03em;font-weight:800;white-space:nowrap;pointer-events:none;color:inherit}
.section-menu-dock{flex:1;min-width:0}.section-menu-dock>.dock-btn{width:100%;height:100%;margin:0}
.section-menu-dock>.section-menu-pencil{top:3px;right:3px;transform:none;width:20px;height:20px;padding:3px}.section-menu-dock>.section-menu-pencil svg{width:13px;height:13px}
.section-menu-dock.section-menu-admin>.dock-btn{padding-right:4px}.section-menu-dock .section-work-label{left:1px;right:1px;font-size:8px!important}
.section-work-screen{max-width:560px;margin:40px auto;padding:28px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:18px;text-align:center}.section-work-screen>span{font-size:40px;color:var(--acc)}.section-work-screen h2{font-size:22px}.section-work-screen p{line-height:1.5}

.app-update-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border-radius:22px;background:var(--card);color:var(--ink);border:1px solid var(--line)}
.app-update-content{padding:28px;text-align:center}.app-update-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 18px;border-radius:18px;background:var(--acc-soft);color:var(--acc);font-size:38px;line-height:1}.app-update-content h2{font-size:22px;line-height:1.3;margin:0 0 12px}.app-update-content p{font-size:14px;color:var(--muted);line-height:1.6;margin:0 0 24px}.app-update-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.app-update-actions .btn{min-height:44px;flex:1}
@media(max-width:420px){.app-update-content{padding:24px 20px}.app-update-content h2{font-size:20px}.app-update-actions{flex-direction:column}}

.eid-rank-roles{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 14px;min-width:0}.eid-rank-roles>span{padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--acc-soft);color:var(--ink);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.eid-combined-rank{min-width:0}.eid-combined-rank>.rank-role{margin-top:18px}.eid-combined-rank .rank-radar{display:block;width:min(100%,420px);margin:0 auto}

/* Search text keeps its own row; file actions cannot squeeze it into a column. */
.global-search-surface .search-result{display:grid;grid-template-columns:minmax(0,1fr) 44px;column-gap:8px;row-gap:8px;align-items:start;min-width:0;max-width:100%}
.global-search-surface .search-result>.search-result-open{grid-column:1;grid-row:1;align-items:stretch;width:100%;min-width:0;max-width:100%;box-sizing:border-box;line-height:1.5;word-break:normal;white-space:normal}
.global-search-surface .search-result-open>*{display:block;min-width:0;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:anywhere;text-overflow:clip}
.global-search-surface .search-result>.search-favorite{grid-column:2;grid-row:1;align-self:start;justify-self:end;width:44px;min-width:44px;min-height:44px;box-sizing:border-box;margin:0;padding:8px}
.global-search-surface .search-result>.document-extra-actions{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:8px;min-width:0;width:100%;margin:0;padding:0 0 4px;box-sizing:border-box}
.global-search-surface .document-extra-actions>.btn{flex:1 1 120px;min-width:0;max-width:100%;min-height:40px;white-space:normal;word-break:normal;line-height:1.4;padding:9px 12px;font-size:12px}
#headerSearchPanel.global-search-surface{max-width:calc(100vw - 16px)}
.header-search-panel.global-search-surface .search-result-open>b{font-size:15px;line-height:1.4}
.header-search-panel.global-search-surface .search-result-open>span{font-size:13px;line-height:1.5}

.files-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:18px 12px;align-items:start;margin:20px 0}
.files-folder{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;min-width:0;padding:12px 8px;border:1px solid transparent;border-radius:16px;background:transparent;color:var(--ink);font:inherit;text-align:center;cursor:pointer;box-sizing:border-box}
.files-folder:hover,.files-folder:focus-visible{background:var(--acc-soft);border-color:var(--line)}
.files-folder>:is(b,small){max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.files-folder>b{font-size:13px;font-weight:650}
.files-folder>small{font-size:11px;color:var(--muted)}
.files-folder-icon{display:block;width:80px;height:68px;flex:none;filter:drop-shadow(0 4px 4px #1768b222)}.files-folder-back{fill:#3693dc}.files-folder-front{fill:#62b9ef}
.files-location{display:flex;flex-wrap:wrap;align-items:center;gap:5px;color:var(--muted);font-size:12px;margin:4px 0 16px;min-width:0}.files-location .btn{font-size:12px;padding:5px 8px;min-height:30px;white-space:normal;overflow-wrap:anywhere}
.files-folder-grid>.section-menu-item>.section-menu-pencil{top:5px;right:5px;transform:none}.files-folder-grid>.section-menu-item>.files-folder{height:100%}
@media(max-width:420px){.files-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 6px}.files-folder{padding:10px 5px}.files-folder-icon{width:72px;height:62px}}

.files-folder[aria-current="true"]{background:var(--acc-soft);border-color:var(--line)}

/* File creation belongs to the current folder's overflow menu. */
.workspace-files [data-file-upload-controls]{display:none!important}
.workspace-files [data-file-telegram-controls]{display:contents}
.workspace-files [data-file-telegram-controls]>h3,.workspace-files [data-file-telegram-controls]>p{display:none}
.workspace-files .library-folder-search{display:block;margin:14px 0;max-width:560px;font-size:12px;color:var(--muted)}
.workspace-files .library-folder-search input{display:block;width:100%;min-width:0;margin-top:5px;box-sizing:border-box}
.workspace-files .files-folder[hidden],.workspace-files .file-row[hidden],.workspace-files .document-name-group[hidden],.workspace-files .doc-folder-entry[hidden]{display:none!important}
.library-root-files{min-width:0}.library-root-files .file-row{overflow-wrap:anywhere}

.workspace-files .section-menu-item[hidden]{display:none!important}

/* Edge-to-edge navigation sheet, sliding in from the bottom. */
.workspace-modern dialog.mobile-menu{border-right:0;animation:mobile-menu-rise .26s cubic-bezier(.22,1,.36,1) both;overscroll-behavior:none}
.workspace-modern .mobile-menu[data-closing]{pointer-events:none}
.workspace-modern dialog.mobile-menu::backdrop{background:transparent;backdrop-filter:none;animation:none}
@keyframes mobile-menu-rise{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.workspace-modern dialog.mobile-menu,.workspace-modern dialog.mobile-menu::backdrop{animation:none}}

/* Telegram's native close/menu controls occupy the top of wide webviews. */
@media(min-width:768px){
 html.tg-wide-controls .shell{padding-top:var(--tg-wide-top,56px);padding-left:var(--sal,0px);padding-right:var(--sar,0px)}
 html.tg-wide-controls .workspace-modern .mobile-menu{top:calc(var(--tg-wide-top,56px) + 8px)}
}

/* Keep every desktop navigation item reachable in a short window. */
@media(min-width:768px){
 .workspace-modern .worklet-sidebar>nav{overflow-x:hidden;overflow-y:auto;justify-content:flex-start;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
 .workspace-modern .worklet-sidebar>nav>.workspace-nav-group{flex-shrink:0}
 .workspace-modern .worklet-sidebar>.sidebar-brand,.workspace-modern .worklet-sidebar>.sidebar-profile{flex-shrink:0}
}

/* Native selection for business content; navigation and action controls are not copy targets. */
#app,.archive-body,.archive-report,.text-lines{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
html.desktop #app{cursor:auto}
button,[role="button"],nav,.top,.dock,.sidebar-profile,.kanban-column-handle{user-select:none;-webkit-user-select:none}
input,textarea,[contenteditable="true"],.file-row-text{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}

.work-copy-menu{position:fixed;inset:auto;margin:0;z-index:25000;min-width:150px;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--sheet);color:var(--ink);box-shadow:0 8px 24px #0003;font:inherit}
.work-copy-menu>button{display:block;width:100%;padding:10px 14px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.work-copy-menu>button:hover,.work-copy-menu>button:focus-visible{background:var(--acc-soft);outline:none}

/* Explicit WebKit selection on text nodes, not only inherited from the workspace. */
:is(#app,.archive-body) :is(p,span,b,strong,small,td,th,li,dt,dd,h1,h2,h3,h4,h5,h6,pre,blockquote,code,.text-lines,[data-selectable]){user-select:text!important;-webkit-user-select:text!important;-webkit-touch-callout:default!important}
:is(#app,.archive-body) :is(button,[role="button"],nav,.dock,.top),:is(#app,.archive-body) :is(button,[role="button"],nav,.dock,.top) *{user-select:none!important;-webkit-user-select:none!important}
#app .task-card[data-task-draggable="true"]>h3{user-select:none!important;-webkit-user-select:none!important}

/* Keep native selected text clearly visible in both themes, including mobile WebViews. */
::selection{background-color:#2f6fed!important;color:#fff!important;text-shadow:none!important}

input,textarea{user-select:text!important;-webkit-user-select:text!important;-webkit-touch-callout:default!important}
.mobile-selection-paint{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;pointer-events:none!important;z-index:26000;overflow:hidden;user-select:none!important;-webkit-user-select:none!important}
.mobile-selection-paint::backdrop{display:none;background:transparent;pointer-events:none}
.mobile-selection-paint>i{position:absolute;display:block;background:rgba(47,111,237,.38);border-radius:1px;pointer-events:none!important}

.request-payment-workspace{margin-top:18px;min-width:0}.request-payment-create{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.request-payment-workflow>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.request-payment-workflow h3{font-size:16px;margin:0}.request-payment-workflow h3 small{font-size:11px;color:var(--muted);font-weight:400}.payment-wait{padding:10px 12px;border-radius:10px;background:var(--acc-soft);font-size:13px;line-height:1.5}.payment-amount-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:10px;margin:12px 0}.payment-amount-grid>div{min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px}.payment-amount-grid small{display:block;color:var(--muted);font-size:11px}.payment-amount-grid strong{display:block;margin-top:5px;font-size:15px;white-space:normal;overflow-wrap:anywhere}.payment-instruction,.payment-full-history{margin:10px 0}.payment-instruction>summary,.payment-full-history>summary,.request-completed-payments>summary{padding:10px 0;cursor:pointer}.payment-next-actions{gap:8px;margin:12px 0}.payment-issue{padding:12px;border:1px solid var(--bad);border-radius:10px;background:var(--blush);font-size:13px}.payment-has-issue{border-color:var(--bad)}.request-payment-workflow .text-lines{overflow-wrap:anywhere}.request-completed-payments>.request-payment-workflow{margin-top:12px}

.inbox-filter-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.inbox-filter-notice>span{flex:1 1 240px}.inbox-filter-notice>.btn{flex:0 1 auto;white-space:normal}

/* The keyboard must never carry bottom navigation up into the form. */
html.keyboard-open .dock,html.keyboard-open .workspace-scroll-top{display:none!important}
html.keyboard-open #app{scroll-behavior:auto;scroll-padding-bottom:16px}
html.keyboard-open dialog.archive-modal:not(.mobile-select-picker):not(.keyboard-aware-search)[open]{top:calc(var(--keyboard-top,0px) + 12px);left:0;right:0;bottom:auto;transform:none;margin:0 auto;max-height:calc(var(--keyboard-visible-h) - 24px)}
@media(pointer:coarse){.workspace-modern input,.workspace-modern textarea,.workspace-modern select{font-size:16px}}

.report-conversation{border-top:1px solid var(--line);margin-top:14px;padding-top:14px;min-width:0}.report-chat-messages{display:flex;flex-direction:column;gap:10px;max-height: min(420px,48dvh);overflow:auto;padding:12px 4px;overscroll-behavior:contain}.report-chat-message{max-width:88%;align-self:flex-start;background:var(--card2);border:1px solid var(--line);padding:10px 12px;border-radius:14px;min-width:0;overflow-wrap:anywhere}.report-chat-message.mine{align-self:flex-end;background:var(--acc-soft)}.report-chat-message>div{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center}.report-chat-message b{font-size:12px}.report-chat-message small{font-size:10px;color:var(--muted)}.report-chat-message p{margin:7px 0 0;white-space:pre-wrap;user-select:text;-webkit-user-select:text}.report-conversation form{margin-top:12px}.report-conversation textarea{width:100%;min-height:88px;resize:vertical}.report-conversation [hidden]{display:none!important}@media(max-width:700px){.report-chat-message{max-width:94%}.report-conversation textarea{font-size:16px}}

.connected-groups-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.connected-groups-grid label{display:flex;flex-direction:column;gap:6px;min-width:0}.connected-groups-grid select{width:100%;min-width:0}.connected-groups-grid small{line-height:1.4}@media(max-width:700px){.connected-groups-grid{grid-template-columns:1fr;gap:14px}}

.required-mark{color:#d92d4b!important;font-weight:800}.approval-required-panel{background:var(--card2);border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:16px}.approval-required-panel p{font-size:12px;color:var(--muted)}.approval-required-panel ul{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:7px 16px;margin:8px 0 0}.approval-required-panel li{font-size:12px}.approval-required-panel .missing{color:#d92d4b;font-weight:600}.approval-required-panel .complete{color:var(--ink)}
.report-list-row{display:flex!important;flex-direction:column;gap:7px;width:100%;text-align:left;min-width:0;color:var(--text);cursor:pointer}.report-row-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.report-row-heading small{margin-left:auto;color:var(--muted)}.report-row-subject{font-size:12px;color:var(--muted)}.report-row-preview{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.report-list-row:hover{border-color:var(--acc)}.report-filters>label{display:block;margin-top:12px}.report-create form{margin-top:14px}.report-create textarea{width:100%;resize:vertical}.report-detail{margin-top:12px}.report-status-filters{margin:12px 0}.report-create summary,.report-filters summary{cursor:pointer;font-weight:600}.report-list-row .meta{overflow-wrap:anywhere}@media(max-width:700px){.report-status-filters{gap:6px}.report-status-filters .btn{padding:9px 10px}.report-row-heading small{margin-left:0}.report-list-row{padding:13px!important}}

.report-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;min-width:0}.report-row-open{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0!important;margin:0;font:inherit}.report-row-open:hover{background:transparent}.report-row-action{min-width:96px;white-space:nowrap;margin:0}.report-list-item:has(.report-row-open:focus-visible){outline:2px solid var(--acc);outline-offset:2px}@media(max-width:700px){.report-list-item{gap:10px;padding:13px!important}.report-row-action{min-width:80px;padding:10px 12px!important}}

.executive-theme .btn.primary:is([data-report-quick="close"],[data-report-action="close"]){background:#198754;color:#fff;border-color:#198754}.executive-theme .btn.primary:is([data-report-quick="close"],[data-report-action="close"]):hover{background:#146c43;border-color:#146c43}

.report-message-tools{position:relative;margin-left:auto;flex-shrink:0}.report-message-more{border:0;border-radius:7px;padding:0 7px;background:transparent;color:var(--muted);font-size:24px;line-height:26px;cursor:pointer}.report-message-more:hover{background:var(--acc-soft);color:var(--acc)}.report-message-menu{position:absolute;right:0;top:100%;z-index:5;background:var(--sheet);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 6px 18px #0003}.report-message-menu .btn{white-space:nowrap;margin:0}.report-edit-banner{display:flex;justify-content:space-between;align-items:center;gap:10px;border-left:3px solid var(--acc);padding:7px 10px;margin-bottom:8px;background:var(--acc-soft);color:var(--ink);font-size:12px}.report-edit-banner .btn{margin:0;padding:5px 9px}

.report-chat-messages{overflow-x:hidden}.report-message-tools{position:static;display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%}.report-message-more{font-size:20px;line-height:24px;padding:0 5px;min-height:24px}.report-message-menu{position:static;display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;box-shadow:none;max-width:100%;flex-wrap:wrap}.report-message-action{font:inherit;font-size:11px;line-height:18px;min-height:26px;padding:3px 7px;margin:0;border:0;border-radius:6px;background:var(--acc-soft);color:var(--acc);cursor:pointer;white-space:nowrap}.report-message-action:hover{filter:brightness(.95)}.report-message-delete{color:var(--bad)}

.report-row-buttons{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}

/* Inbox decorations are real grid children; reserve their own row. */
.admin-report-list{container-type:inline-size}
.report-list-item{grid-template-areas:"notice notice" "content actions";grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:0;align-items:start}
.report-list-item.object-unread{row-gap:10px}
.report-list-item>.object-unread-badge{grid-area:notice;justify-self:start;align-self:start;width:fit-content;max-width:100%;min-width:0;margin:0;white-space:normal}
.report-list-item>.report-row-open{grid-area:content;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;min-width:0;width:100%;color:var(--ink);font-weight:400;line-height:1.45;text-align:left}
.report-row-open>*{min-width:0;max-width:100%;flex-shrink:0}
.report-list-item>.report-row-action,.report-list-item>.report-row-buttons{grid-area:actions;align-self:center;justify-self:end}
.report-row-heading{width:100%;gap:5px 8px;line-height:1.4}
.report-row-heading>b{font-size:14px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.report-row-heading>small{font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.report-row-subject{font-size:11px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.report-row-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;width:100%;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere;word-break:normal;font-size:13px;font-weight:400;line-height:1.5;color:var(--ink)}
.report-row-meta{display:flex;flex-direction:column;gap:3px;padding-top:8px;border-top:1px solid var(--line);font-size:11px;line-height:1.5;text-align:left}
.report-row-meta>span{display:block;overflow-wrap:anywhere}
.report-row-meta .report-row-open-hint{margin-top:2px;color:var(--acc)}
@container (max-width:300px){.report-list-item{grid-template-areas:"notice" "content" "actions";grid-template-columns:minmax(0,1fr);row-gap:10px}.report-row-buttons{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}}

.file-row:is(.request-material-file,.document-file-card){border:1px solid var(--line)!important;border-radius:14px!important;margin:10px 0!important;background:var(--sheet);overflow:hidden;min-width:0}
.file-row:is(.request-material-file,.document-file-card)>.file-tile-trigger{display:flex;align-items:center;gap:12px;padding:14px!important;min-width:0}
:is(.request-material-file,.document-file-card) .material-file-icon{width:48px;min-height:62px;flex:0 0 48px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:var(--acc-soft);color:var(--acc);gap:1px}
.material-file-icon svg{width:30px;height:34px}.material-file-icon small{font-size:9px;font-weight:750;line-height:1.3;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:0 3px}
.file-row:is(.request-material-file,.document-file-card) .file-row-text{display:flex;flex-direction:column;align-items:stretch;gap:4px;grid-template-columns:none;min-width:0;width:auto;flex:1}
.file-row:is(.request-material-file,.document-file-card) .file-row-text b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;overflow:hidden;font-size:14px;line-height:1.4;color:var(--ink)}
:is(.request-material-file,.document-file-card) .material-file-facts{font-size:12px;color:var(--ink)}:is(.request-material-file,.document-file-card) .material-file-author{font-size:11px;line-height:1.45;overflow-wrap:anywhere}.material-file-hint{font-size:11px;line-height:1.4;color:var(--acc)}
:is(.request-material-file,.document-file-card) .file-row-arrow{flex-shrink:0;color:var(--muted)}:is(.request-material-file,.document-file-card) .file-row-actions{padding:14px;border-color:var(--line)}:is(.request-material-file,.document-file-card) .file-row-actions>p{white-space:pre-wrap;overflow-wrap:anywhere}.material-file-actions{gap:8px}.material-file-actions .btn{margin:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;min-width:0}
@media(max-width:500px){.file-row:is(.request-material-file,.document-file-card)>.file-tile-trigger{padding:12px!important;gap:10px}:is(.request-material-file,.document-file-card) .material-file-icon{width:42px;flex-basis:42px;min-height:58px}.material-file-actions{display:grid;grid-template-columns:minmax(0,1fr)}.material-file-actions .btn{width:100%;justify-content:center}}

.library-folder-entry{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:6px}.library-folder-entry>.doc-folder-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;padding:0;margin:0}.library-folder-entry>.doc-folder-actions .btn{font-size:10px;line-height:1.3;min-height:28px;padding:5px 7px;margin:0;white-space:normal;min-width:0}.company-content-folders,.counterparty-content-folders,.counterparty-folders{align-items:start}.document-file-card .material-file-facts{line-height:1.5;overflow-wrap:anywhere}

.document-file-group{padding:0;overflow:hidden;border:1px solid var(--line);border-radius:14px}.document-file-group>summary{display:flex;align-items:center;gap:12px;padding:14px;list-style:none;cursor:pointer}.document-file-group>summary::-webkit-details-marker{display:none}.document-file-group>summary>.material-file-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;width:46px;flex:0 0 46px;min-height:58px;border-radius:10px;background:var(--acc-soft);color:var(--acc)}.document-file-group>summary>span:nth-child(2){flex:1;min-width:0}.document-file-group>summary b{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.document-file-group>summary small{display:block;font-size:11px;color:var(--muted);line-height:1.4;margin-top:4px}.document-file-group-content{padding:0 12px 12px}.document-file-group[open]>summary>.file-row-arrow{transform:rotate(90deg)}

.upload-source-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}.upload-source-options>.btn{min-height:48px;white-space:normal}

.payment-cancel-summary{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card2);margin-bottom:14px}.payment-cancel-summary ul{padding-left:20px;margin:10px 0}.payment-cancel-summary li{padding:7px 0;overflow-wrap:anywhere}.payment-cancel-summary strong{font-size:13px}.payment-cancel-summary small{display:block;color:var(--muted);margin-top:3px}

.workspace-files-menu{position:sticky;top:8px;right:auto;float:right;width:38px;margin:0 0 8px 12px;z-index:30}
.company-directory-grid.files-folder-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.company-folder-entry{min-width:0;text-align:center}.company-folder-entry>.files-folder{width:100%}.company-folder-entry>.btn,.vault-move-button{font-size:10px;padding:5px 9px;min-height:28px;margin:4px 2px}.vault-folder-tile{min-width:0;display:flex;flex-direction:column;align-items:center}.vault-folder-tile>.files-folder{width:100%}.vault-folder-tile:has(>.files-folder[hidden]){display:none}.vault-drop-target{outline:2px solid var(--acc)!important;background:var(--acc-soft)!important;border-radius:12px}.files-folder[draggable=true],.material-file-icon[draggable=true]{cursor:grab}.vault-move-destinations{display:flex;flex-direction:column;gap:7px;max-height:50dvh;overflow:auto}.vault-move-destinations>.btn{text-align:left;white-space:normal;overflow-wrap:anywhere}
.workspace-files [draggable="true"]{-webkit-user-drag:element!important}.company-folder-entry:has(>.files-folder[hidden]){display:none}
.files-folder[draggable="true"] .files-folder-icon,.files-folder[draggable="true"] .files-folder-icon *{pointer-events:none}

.files-folder[data-vault-move-source]{cursor:grab}.files-folder.vault-moving{opacity:.5}.vault-drag-ghost{position:fixed;z-index:30000;pointer-events:none;padding:10px 14px;border:1px solid var(--acc);border-radius:12px;background:var(--sheet);color:var(--ink);box-shadow:0 8px 24px #0003;font-size:13px;max-width:230px;overflow-wrap:anywhere}

/* Consistent Files toolbar and tile alignment at every folder depth. */
.workspace-file-toolbar{position:sticky;top:0;z-index:32;display:flex;align-items:center;gap:8px;padding:8px 0;margin:0 0 12px;background:var(--bg);min-width:0;isolation:isolate}
.workspace-file-toolbar>.workspace-files-menu{position:relative;top:auto;float:none;right:auto;flex:none;margin:0;width:38px;z-index:34}
.workspace-folder-up{display:grid;place-items:center;width:34px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font:inherit;font-size:20px;flex:none;cursor:pointer}
.workspace-file-path{display:flex;align-items:center;gap:5px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:thin;padding:3px 0}
.workspace-file-path>button{white-space:nowrap;border:0;border-radius:7px;padding:6px 7px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;flex:none}
.workspace-file-path>button:hover,.workspace-file-path>button[aria-current=page]{background:var(--acc-soft);color:var(--acc)}
.workspace-file-path>span{color:var(--muted);font-size:12px}
.workspace-files .files-location[hidden],.workspace-files .doc-breadcrumbs[hidden]{display:none!important}
.workspace-files .files-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,148px));gap:16px 12px;justify-content:start;align-items:start;margin:16px 0;width:100%;box-sizing:border-box}
.workspace-files .files-folder-grid>*{min-width:0;margin:0;align-self:start}
.workspace-files .files-folder-grid>.section-menu-item{width:100%;height:100%}
.workspace-files .files-folder,.workspace-files .files-entity-card{justify-content:flex-start;min-height:138px;padding:10px 6px}
.workspace-files .files-folder-grid .doc-folder-entry{padding:0;border:0;background:transparent;box-shadow:none;text-align:center}
.workspace-files .files-folder-icon{width:76px;height:64px}
.files-entity-card .files-card-icon{color:#6d66d9;filter:drop-shadow(0 3px 4px #6554b222)}
@media(max-width:420px){.workspace-files .files-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}.workspace-file-path>button{font-size:11px;padding:6px 4px}}

.workspace-files .workspace-entry-grid>.file-row{margin:0;min-width:0;border:1px solid transparent;background:transparent;border-radius:14px;box-sizing:border-box}
.workspace-files .workspace-entry-grid>.file-row>.file-tile-trigger{display:flex;flex-direction:column;gap:6px;padding:10px 6px;text-align:center;align-items:center;min-height:138px;box-sizing:border-box;list-style:none}
.workspace-entry-grid>.file-row>.file-tile-trigger .material-file-icon{width:76px;height:64px;flex:none}.workspace-entry-grid>.file-row>.file-tile-trigger .material-file-icon svg{width:52px;height:58px}
.workspace-entry-grid>.file-row>.file-tile-trigger .file-row-text{width:100%;min-width:0}.workspace-entry-grid>.file-row>.file-tile-trigger .file-row-text b{font-size:13px;overflow-wrap:anywhere;white-space:normal}.workspace-entry-grid>.file-row>.file-tile-trigger .file-row-arrow,.workspace-entry-grid>.file-row>.file-tile-trigger .material-file-hint{display:none}
.workspace-entry-grid>.file-row>.file-tile-trigger .material-file-facts{display:block;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.workspace-entry-grid>.file-row[open]{grid-column:1/-1;background:var(--card);border-color:var(--line)}
.workspace-entry-grid>.file-row[open]>.file-tile-trigger{min-height:0;flex-direction:row;text-align:left}
.workspace-entry-grid>.empty{grid-column:1/-1}

.workspace-files .workspace-entry-grid>.document-file-card:not([open]){background:transparent!important;border-color:transparent!important}
.workspace-file-toolbar .workspace-files-menu>div{max-height:min(65dvh,520px);overflow-y:auto;overscroll-behavior:contain;max-width:calc(100vw - 36px)}

.workspace-entry-grid>.document-file-card>.file-tile-trigger{padding:10px 6px!important}
.workspace-entry-grid>.document-file-card>.file-tile-trigger .material-file-icon small{display:none}
.workspace-entry-grid>.document-file-card[open]>.file-tile-trigger .material-file-icon{width:48px;height:62px;flex:none}
.workspace-entry-grid>.document-file-card[open]>.file-tile-trigger .material-file-icon svg{width:30px;height:34px}

.workspace-files .workspace-entry-grid>.document-file-card{margin:0!important}

.workspace-files .workspace-entry-grid :is([data-corename],[data-codel],.doc-folder-actions,.vault-move-button,[data-vault-rename],[data-vdel],[data-root-delete]){display:none!important}
.workspace-files>.doc-folder-actions{display:none!important}
.workspace-file-context-menu{position:fixed;z-index:31000;min-width:200px;max-width:min(300px,calc(100vw - 16px));max-height:70dvh;overflow-y:auto;padding:6px;border:1px solid var(--line);border-radius:13px;background:var(--sheet);color:var(--ink);box-shadow:0 10px 35px #0003;box-sizing:border-box;animation:workspace-context-in .12s ease-out}
.workspace-context-title{font-size:11px;color:var(--muted);padding:7px 9px 9px;overflow-wrap:anywhere;border-bottom:1px solid var(--line);margin-bottom:4px}
.workspace-file-context-menu>button{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font:inherit;font-size:13px;cursor:pointer}
.workspace-file-context-menu>button:hover,.workspace-file-context-menu>button:focus-visible{outline:none;background:var(--acc-soft);color:var(--acc)}.workspace-file-context-menu>button.danger{color:var(--bad,#d22)}
.workspace-entry-grid .files-folder{-webkit-touch-callout:none}
@keyframes workspace-context-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.workspace-file-context-menu{animation:none}}

.workspace-files .company-content-folders{justify-content:start!important;justify-items:stretch;align-content:start;margin-left:0!important;margin-right:0!important}
.workspace-files .company-content-folders>.doc-folder-entry,.workspace-files .company-content-folders>.vault-folder-tile{width:100%;justify-self:stretch}

.workspace-files .workspace-entry-grid>.doc-folder-entry{grid-column:auto!important}

.word-document-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.65;font-size:14px;tab-size:4;background:var(--card);color:var(--ink);padding:18px;border-radius:12px}

/* File tiles size from their actual pane, including grouped duplicate names. */
.workspace-files{container-type:inline-size}
.workspace-files .workspace-entry-grid{grid-template-columns:repeat(auto-fill,minmax(min(132px,100%),1fr));justify-content:start;align-items:start;min-width:0}
.workspace-entry-grid>.document-file-card>.file-tile-trigger,.workspace-entry-grid>.document-file-group:not([open])>summary{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;min-height:156px;padding:10px 6px!important;text-align:center;box-sizing:border-box;min-width:0}
.workspace-entry-grid>.document-file-card:not([open]) .file-row-text{display:block!important;flex:none!important;width:100%;min-width:0;max-width:100%}
.workspace-entry-grid>.document-file-card>.file-tile-trigger .material-file-icon,.workspace-entry-grid>.document-file-group:not([open])>summary>.material-file-icon{width:76px;height:64px;min-height:64px;max-width:100%;flex:0 0 64px;box-sizing:border-box}
.workspace-entry-grid>.document-file-card>.file-tile-trigger .material-file-icon svg,.workspace-entry-grid>.document-file-group:not([open])>summary>.material-file-icon svg{width:46px;height:54px;flex-shrink:0}
.workspace-entry-grid>.document-file-group:not([open])>summary>.material-file-icon small{display:none}
.workspace-entry-grid>.document-file-card>.file-tile-trigger b,.workspace-entry-grid>.document-file-group:not([open])>summary b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;white-space:normal;word-break:normal;font-size:13px;line-height:1.4;min-width:0;max-width:100%;margin:0}
.workspace-entry-grid>.document-file-card>.file-tile-trigger .material-file-facts{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:5px;white-space:normal;word-break:normal;font-size:10px;line-height:1.45}
.workspace-entry-grid>.document-file-group{margin:0!important;min-width:0;box-sizing:border-box}
.workspace-entry-grid>.document-file-group:not([open]){background:transparent;border-color:transparent}
.workspace-entry-grid>.document-file-group:not([open])>summary>span:nth-child(2){flex:none;width:100%;min-width:0}
.workspace-entry-grid>.document-file-group:not([open])>summary small{font-size:10px;line-height:1.45;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
.workspace-entry-grid>.document-file-group:not([open])>summary>.file-row-arrow{display:none}
.workspace-entry-grid>.document-file-group[open]{grid-column:1/-1;width:100%;max-width:100%}
.workspace-entry-grid>.document-file-group[open]>summary{min-width:0;gap:10px;padding:12px}
.workspace-entry-grid>.document-file-group[open]>summary>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.workspace-entry-grid>.document-file-group[open]>summary b{font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.workspace-entry-grid .document-file-group-content{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:0 10px 10px;min-width:0}
.workspace-entry-grid .document-file-group-content>.file-row{width:100%;min-width:0;margin:0!important;box-sizing:border-box}
.workspace-entry-grid .document-file-group-content .file-row>summary{min-width:0;gap:10px;padding:10px!important}
.workspace-entry-grid .document-file-group-content .file-row-text{min-width:0;flex:1;width:auto}
.workspace-entry-grid .document-file-group-content .file-row-text b{font-size:13px;overflow-wrap:anywhere;white-space:normal}
.workspace-entry-grid .file-row-actions,.workspace-entry-grid .material-file-actions{min-width:0;max-width:100%;box-sizing:border-box}
.workspace-entry-grid .material-file-actions{display:flex;flex-wrap:wrap;gap:8px}
.workspace-entry-grid .material-file-actions>.btn{min-width:0!important;max-width:100%;flex:1 1 160px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.workspace-entry-grid .doc-preview{max-width:100%;height:auto;object-fit:contain}
@container(max-width:420px){.workspace-files .workspace-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px}.workspace-entry-grid .material-file-actions>.btn{flex-basis:100%;width:100%}}
@container(max-width:260px){.workspace-files .workspace-entry-grid{grid-template-columns:minmax(0,1fr)}}

@media(max-width:420px){.workspace-files .workspace-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px}}
@media(max-width:280px){.workspace-files .workspace-entry-grid{grid-template-columns:minmax(0,1fr)}}

@container(max-width:260px){.workspace-files .workspace-entry-grid{grid-template-columns:minmax(0,1fr)}}

/* Built-in library roots are protected containers, distinct from custom folders. */
.database-root-folders [data-database-open] .files-folder-back{fill:#424954}
.database-root-folders [data-database-open] .files-folder-front{fill:#626b78}
.database-root-folders [data-database-open] .files-folder-icon{filter:drop-shadow(0 3px 3px #11182730)}
[data-theme="dark"] .database-root-folders [data-database-open] .files-folder-back{fill:#5c6572}
[data-theme="dark"] .database-root-folders [data-database-open] .files-folder-front{fill:#7b8593}

/* File tile taps use the quick popup; actions never expand the grid tile. */

.file-row > .file-tile-trigger{appearance:none;background:none;border:0;color:inherit;font:inherit;text-align:inherit;width:100%}
.file-row > .file-row-actions[hidden]{display:none!important}

.home-rate-dialog-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.home-rate-dialog-actions>.btn{margin:0;padding-inline:9px}

.workspace-import-outline{position:fixed;z-index:40;pointer-events:none;box-sizing:border-box;border:2px dashed var(--acc);border-radius:12px;background:color-mix(in srgb,var(--acc) 6%,transparent)}
.workspace-import-status{color:var(--acc);overflow-wrap:anywhere}

.workspace-selection-bar{display:flex;align-items:center;gap:8px;margin:10px 0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card2)}
.workspace-entry-grid .workspace-entry-selected{outline:2px solid var(--acc);outline-offset:-2px;border-radius:10px;background:var(--acc-soft)!important}

.company-banks-grid{align-items:start}
.company-bank-card .company-bank-status{border-radius:999px;padding:4px 8px;font-size:11px;background:color-mix(in srgb,var(--ok) 16%,transparent);color:var(--ok);white-space:nowrap}
.company-bank-card .company-bank-status[data-inactive="true"]{background:var(--card2);color:var(--muted)}
.company-bank-details{margin-top:10px}
.company-bank-details details{border-top:1px solid var(--line);margin:0;padding:0}
.company-bank-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:6px 0;color:var(--acc);font-weight:650;cursor:pointer;list-style:none}
.company-bank-details summary::-webkit-details-marker{display:none}
.company-bank-details summary::after{content:'';flex:none;width:8px;height:8px;margin-right:3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.company-bank-details details[open]>summary::after{transform:rotate(225deg)}
.company-bank-details p{margin:0 0 10px;overflow-wrap:anywhere;white-space:pre-wrap}

.dialog-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.dialog-header-actions>.btn{margin:0;padding-inline:9px}
.company-bank-card .row b{overflow-wrap:anywhere}
.company-bank-card .company-bank-edit-button{margin:8px 0 0;padding:6px 12px}

.company-bank-quick-documents{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.company-bank-quick-documents h4{margin:0}
.company-bank-quick-documents .company-panel-heading{flex-wrap:wrap}
.company-bank-currency-options{display:flex;flex-wrap:wrap;gap:6px 12px;border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.company-bank-currency-options>.check{margin:0}

.company-license-expiry{display:block;margin-top:3px}
.company-license-fields{border:1px solid var(--line);border-radius:8px;padding:4px 10px 0;margin:0 0 12px;min-width:0}
.company-bank-directory [data-assign-bank-currencies]{margin:0 0 8px}


/* Keep the four company sections evenly spaced as the window grows. */
.workspace-files .workspace-entry-grid.company-document-menu{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:680px){
 .workspace-files .workspace-entry-grid.company-document-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container(max-width:600px){
 .workspace-files .workspace-entry-grid.company-document-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container(max-width:270px){
 .workspace-files .workspace-entry-grid.company-document-menu{grid-template-columns:minmax(0,1fr)}
}

.company-bank-details [data-bank-contour] .company-bank-quick-documents{border:0;margin:0;padding:0 0 8px}
