/* Office visual system. Business controls and their IDs remain in the base views. */
:root {
  --blue: #087f68;
  --green: #087f68;
  --muted: #62716f;
  --line: #dce4e1;
  --surface: #fff;
  color: #182d29;
  background: #f2f5f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {font-size:16px; -webkit-font-smoothing:antialiased}
.platform-check {display:flex!important;align-items:center;gap:10px}
.platform-check input {width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}
#platform-list {margin-top:22px}
button, a, input, select, textarea {touch-action:manipulation}
:focus-visible {outline:3px solid #26b394;outline-offset:3px}
.sidebar {width:260px;padding:30px 18px 20px;background:#122b27;border:0;color:#eaf5f1}
.brand {padding:0 12px;gap:12px;margin-bottom:30px;color:#9db6af}
.brand-mark {width:44px;height:44px;background:#c9f272;color:#16322c;border-radius:14px;font-size:20px;letter-spacing:-1px;box-shadow:none}
.brand>span:last-child {font-size:12px;line-height:1.6}
.brand strong {font-size:22px;color:#fff;letter-spacing:-.6px}
.office-geo {padding:14px 12px;margin:0 0 15px;background:#1c3631;border:1px solid #345047;border-radius:12px}
.office-geo strong {font-size:14px;color:#f1f7f4}
.office-geo small {font-size:12px;color:#a4bab2;margin-top:5px}
.geo-flag {width:34px;height:30px;border-radius:6px;color:#375569}
.sidebar nav {gap:4px;scrollbar-color:#46645a transparent}
.nav-caption {font-size:11px;letter-spacing:1.7px;color:#8ca99f;margin:18px 0 7px;padding-left:13px}
.nav-item {position:relative;min-height:43px;padding:11px 13px;font-size:14px;font-weight:500;color:#bacfc7;border-radius:9px;gap:11px}
.nav-item:hover {background:#203e35;color:#fff}
.nav-item.active {background:#c9f272;color:#18362b;font-weight:650}
.nav-item .svg-icon {width:18px;height:18px}
.nav-child {padding-left:30px;font-size:13px}
.nav-count {background:#173c2e;color:#d8f79c;border:0;font-size:12px;padding:3px 7px}
.sidebar-bottom {border-top:1px solid #345047;margin-top:22px;padding:19px 12px 0}
.local-label {font-size:13px;color:#d9e8e2}
.sidebar-bottom p {font-size:12px;color:#9cb7ac;margin:8px 0 10px 13px}
.logout {font-size:13px;color:#c1d3cc}
main {margin-left:260px;width:calc(100% - 260px);padding:28px 40px 0;max-width:none}
.office-breadcrumb {font-size:13px;margin-bottom:30px;color:#657a72}
.office-breadcrumb span {color:#9daea6}
.office-breadcrumb strong {color:#263f35}
.topbar {gap:22px;padding-bottom:27px;margin-bottom:26px;border-bottom:1px solid #d8e1db}
.eyebrow,.office-breadcrumb+header .eyebrow {font-size:11px;font-weight:700;letter-spacing:1.8px;color:#637c70}
.topbar h1 {font-size:36px;font-weight:650;letter-spacing:-1.3px;margin:9px 0 10px}
.topbar p {font-size:14px;line-height:1.65;color:#65766f;max-width:650px}
.header-actions {flex-shrink:0;gap:10px}
.button {min-height:44px;border-radius:9px;padding:11px 17px;font-size:14px;font-weight:600;box-shadow:none}
.primary {background:#087f68;color:#fff;box-shadow:none}
.primary:hover {background:#056451;box-shadow:0 4px 12px #0a59471a}
.secondary {background:#fff;border-color:#d4dfd9;color:#344e43}
.secondary:hover {background:#edf5f0;border-color:#9db5a7}
.summary {gap:0;margin-bottom:28px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}
.metric {position:relative;flex-direction:row-reverse;justify-content:space-between;gap:12px;border:0;border-right:1px solid var(--line);border-radius:0;padding:24px;box-shadow:none}
.metric:last-child {border-right:0}
.metric-label {font-size:13px;color:#61756a;margin-bottom:15px;white-space:normal;line-height:1.4}
.metric strong {font-size:34px;font-weight:600;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}
.metric-icon {width:40px;height:40px;border-radius:50%;align-self:flex-start}
.blue,.green-tint {background:#e3f1e9;color:#218267}
.violet {background:#eeedf8;color:#7564a4}
.orange {background:#faf0df;color:#b17a2f}
.automation-caption {padding:5px 0 22px;gap:14px;margin:0}
.automation-caption p {font-size:13px;line-height:1.6;color:#687b70}
.office-pill {font-size:11px;background:#e3ece6;color:#35614a;padding:7px 10px;border-radius:5px;letter-spacing:1px;white-space:nowrap}
.section-toolbar {margin-bottom:22px;gap:18px;flex-wrap:wrap}
.section-heading h2 {font-size:20px;letter-spacing:-.5px}
.count-label {font-size:12px;background:#e2ebe4;color:#536e5e;border-radius:6px;padding:5px 8px}
.search {height:44px;border-color:#d4dfd9;border-radius:9px;padding:0 13px;color:#657d70}
.search input {font-size:14px;color:#243d30;width:180px}
.search input::placeholder {color:#6e8075}
select {height:44px;border-color:#d4dfd9;border-radius:9px;color:#334f3f;font-size:14px}
.account-grid,.proxy-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:24px;align-items:start}
.account-card {border:1px solid #cfddd3;border-radius:16px;box-shadow:0 5px 20px #123b2306;overflow:hidden}
.card-header {padding:21px 22px;background:#fff;border-bottom:1px solid #e1e9e3;flex-wrap:wrap;gap:12px}
.account-avatar {width:42px;height:42px;background:#e5eedf;color:#385d36;font-size:15px;border-radius:50%}
.account-name {font-size:15px;color:#203b2c}
.account-model {font-size:12px;color:#718277;line-height:1.5}
.account-model .account-bank {font-size:11px;color:#087f68;margin-right:8px}
.badge {font-size:12px;padding:6px 8px;border-radius:6px}
.badge.success {background:#e1f3e9;color:#136346}
.badge.neutral {background:#edf1ee;color:#52665b}
.badge.warning {background:#fff2d8;color:#865c10}
.badge.error {background:#fce7e4;color:#a33631}
.card-flip-bar {padding:10px 22px;background:#fff;border-bottom:0}
.card-side-label {font-size:12px;color:#6f8075}
.card-flip {font-size:12px;background:#f3f6f3;border-color:#dce6de;color:#3c634b;min-height:36px}
.card-flip:hover {background:#e6efe8}
.balance-block {margin:0 16px 20px;padding:22px;border-radius:12px;min-height:142px;background:#173e32;color:#fff;position:relative;overflow:hidden}
.balance-label {font-size:11px;color:#b9d1bf;letter-spacing:1px;margin-bottom:18px}
.unit-note {font-size:11px;color:#ddeddf;border-color:#496a52;padding:4px 7px}
.balance-value {font-size:38px;font-weight:550;letter-spacing:-1.5px;color:#f6fff4}
.balance-value.long {font-size:25px}
.currency {font-size:14px;color:#c7e48d;margin-left:9px}
.frozen {font-size:12px;color:#b0cbb5;margin-top:13px}
.no-balance {font-size:14px;color:#c5d8c8}
.turnover-block {margin:0 16px 18px;padding:16px;background:#f4f7f3;border:1px solid #e1e8de;gap:18px;border-radius:10px}
.turnover-label {font-size:12px;color:#677b66}
.turnover-count {font-size:13px;color:#344e37}
.turnover-count-split,.turnover-split {font-size:12px;color:#61765f;line-height:1.7}
.turnover-value {font-size:17px;color:#203d27;letter-spacing:-.4px}
.turnover-day,.turnover-note {font-size:12px;color:#66795e;line-height:1.6}
.history-shortcuts {padding:12px 17px;border-color:#dfe7dc;background:#fff;gap:12px}
.history-shortcuts button {font-size:13px;border:1px solid #d9e6d9;border-radius:7px;padding:9px;min-height:40px;color:#26734c}
.history-shortcuts .history-out {color:#65558a;border-color:#e2ddec}
.card-actions {padding:16px;gap:8px;border-color:#e0e8dc}
.card-actions .button {font-size:12px;min-height:38px;padding:9px}
.card-actions .transfer-button {min-height:42px;background:#e9f2e1;border-color:#d4e4c6;color:#365b26}
.card-details {padding:5px 22px 18px}
.detail-row {font-size:13px;padding:12px 0;border-color:#e4eae0;align-items:flex-start}
.detail-label {color:#6c7c66}
.detail-value,.holder-name {color:#354d35;line-height:1.6}
.device-copy,.cvu-copy,.text-button {font-size:12px;color:#3e7951}
.card-status-line {padding:14px 22px;background:#f4f7f1;border-color:#e0e7d8;flex-wrap:wrap}
.poll-state {font-size:12px;color:#657b5f}
.card-warning,.identity-note {font-size:12px;line-height:1.7}
.office-hero {position:relative;overflow:hidden;padding:36px;border:0;border-radius:16px;background:#173e32;margin-bottom:24px;color:#f8fff5;min-height:190px}
.office-hero h2 {font-size:42px;letter-spacing:-1.6px;margin:15px 0 10px}
.office-hero p {font-size:15px;color:#b9cebc;line-height:1.7;max-width:580px}
.office-hero .office-pill {background:#30533f;color:#dcf1c1}
.office-hero .primary {background:#c9f272;color:#233c1d;white-space:nowrap}
.office-hero .primary:hover {background:#b9e861}
.office-stats {gap:16px;margin-bottom:24px}
.office-stat {border-color:var(--line);border-radius:12px;padding:24px}
.office-stat-label {font-size:14px;color:#617562;margin-bottom:17px;line-height:1.5}
.office-stat strong {font-size:36px;color:#203a29;font-weight:550;letter-spacing:-1px}
.office-stat small {font-size:12px;color:#657960;line-height:1.6;margin-top:12px}
.office-panel {padding:28px;border-color:var(--line);border-radius:14px;margin-bottom:24px}
.office-section-heading h2 {font-size:20px;letter-spacing:-.5px;color:#20392b}
.office-section-heading p {font-size:14px;color:#677b67;margin-top:8px}
.office-bank-row {padding:18px;border-color:#e0e8dd;border-radius:10px;gap:16px}
.office-bank-logo {width:46px;height:46px;border-radius:12px;background:#e9efe4;color:#375f39;font-size:14px}
.office-bank-text h3 {font-size:16px;color:#2c462f}
.office-bank-text p {font-size:13px;color:#677b64}
.office-module-grid {gap:16px}
.office-module {padding:24px;border-color:#dae5d5;border-radius:12px;gap:17px;transition:background .15s,border-color .15s}
.office-module:hover {background:#f0f6e9;border-color:#adc397}
.office-module>.svg-icon {color:#588247;width:26px;height:26px}
.office-module strong {font-size:16px;color:#2d482e}
.office-module span {font-size:13px;color:#667b60;line-height:1.7}
.office-source-card {padding:26px;border-color:var(--line);border-radius:12px}
.office-source-card h3 {font-size:18px;color:#2a432e}
.office-source-card p,.office-empty-inline {font-size:14px;color:#63795f;line-height:1.8}
.office-source-card>.svg-icon {color:#5b8450}
.office-money-card {background:#f1f6ec;border-color:#dce7d4;padding:24px}
.office-money-card strong {font-size:28px;color:#2c4c2c}
.office-money-split {font-size:14px;color:#5b7854}
.office-employees-empty {padding:60px 24px}
.office-employees-empty h2 {font-size:26px;color:#344e35}
.office-employees-empty p {font-size:14px;color:#687d62;line-height:1.8}
.table-surface {border-color:var(--line);border-radius:12px}
th {background:#edf2e9;color:#58704f;font-size:12px;padding:17px 18px;font-weight:650}
td,.office-table td {font-size:14px;color:#445e3f;padding:18px;line-height:1.65;border-color:#e6ece1}
tbody tr:hover {background:#f5f8f1}
td.number {font-size:14px;color:#263f25}
.bank-time {font-size:12px}
.table-footer {font-size:12px;color:#617758;line-height:1.6}
.history-directions {gap:8px;margin-bottom:20px}
.history-directions button {font-size:14px;min-height:44px;border-color:#d7e3d0;color:#596f50}
.history-directions button.active {background:#183e2e;color:#e2f4c8;border-color:#183e2e}
.history-directions button span {font-size:12px;background:#e6efdc;color:#34542b}
.history-note,.proxy-summary {font-size:14px;color:#687d60}
.proxy-card {padding:24px;border-color:#d9e4d3;border-radius:14px}
.proxy-card h3 {font-size:18px;color:#30482d}
.proxy-card p,.proxy-renewal {font-size:13px;color:#677e5b}
.proxy-card .proxy-address {font-size:14px;color:#436737}
.empty-state {font-size:14px;color:#6a7e60;padding:64px 24px}
.empty-state strong {font-size:18px;color:#395432}
.full-empty {background:#fff;border-color:#b8cba9}
.main-footer {font-size:12px;color:#71816c;line-height:1.6;padding:28px 0 22px;margin-top:auto}
.icon-button {color:#5d7750;border-color:#dce6d5;border-radius:7px;min-width:32px;min-height:32px}
.icon-button:hover {background:#edf4e5}
dialog {color:#263c2b;border:1px solid #d8e4d3;border-radius:18px;box-shadow:0 30px 100px #102b2940}
dialog::backdrop {background:#0c211fb3;backdrop-filter:blur(5px)}
.dialog-form {padding:30px}
.dialog-header h2 {font-size:26px;color:#243d29;letter-spacing:-.7px}
.dialog-form label,.unlock-form label {font-size:14px;color:#465e41;line-height:1.6}
.dialog-form input:not([type=checkbox]):not([type=file]),.dialog-form textarea,.unlock-form input {background:#f8faf6;border-color:#cddbc5;color:#2d472a;font-size:16px;padding:13px;border-radius:9px}
.dialog-form input::placeholder,.dialog-form textarea::placeholder,.unlock-form input::placeholder {font-size:14px;color:#728467}
.dialog-form input:focus,.dialog-form textarea:focus,.unlock-form input:focus {border-color:#087f68;box-shadow:0 0 0 3px #087f6815}
.dialog-form small,.form-note,.file-row,.file-row small {font-size:12px;color:#657d5a;line-height:1.8}
.dialog-form>p {font-size:14px;line-height:1.8}
.dialog-form textarea {font-size:13px}
.dialog-form input[type=file] {font-size:13px;max-width:100%}
.form-error {font-size:14px;color:#ac3c32}
.receipt-fields dt {font-size:12px;color:#6b7d62}
.receipt-fields dd,.receipt-dialog .receipt-fields dd {font-size:14px;color:#31472e}
.receipt-total,.transfer-amount-preview {background:#edf4e7;border-color:#d9e6cf}
.receipt-total strong {color:#25452b}
.toast {background:#183e30;border:1px solid #45634b;border-radius:12px;font-size:14px;box-shadow:0 8px 30px #142c2920}
.toast.error {background:#823e34;border-color:#a05e53}
.unlock-screen {grid-template-columns:1fr 1fr;background:#f6f8f3}
.unlock-art {background:#132f27;padding:48px;color:#ebf8df;min-height:100vh}
.art-logo {display:flex;align-items:center;gap:20px;font-size:36px;letter-spacing:-2px}
.art-logo>span {font-size:12px;font-weight:500;letter-spacing:2px;color:#a4bc9a}
.art-caption {font-size:clamp(38px,4.7vw,76px);line-height:1.08;letter-spacing:-3px;font-weight:500;margin:auto 0;position:relative}
.art-kicker {display:block;font-size:11px;letter-spacing:2px;line-height:1.8;color:#c9f272;margin-bottom:28px}
.art-caption p {font-size:16px;letter-spacing:0;color:#b3c8a7;margin-top:30px}
.art-bottom {font-size:12px;letter-spacing:2px;color:#a9c09d;position:relative;z-index:1}
.orbit {border-color:#c9f27225;width:680px;height:680px;right:-410px;top:25%;transform:rotate(-25deg);border-radius:30%}
.orbit-one:after {border-color:#c9f27230;border-radius:30%}
.orbit-two {width:850px;height:850px;right:-470px;top:14%;border-color:#c9f27215}
.unlock-content {padding:50px}
.unlock-form {max-width:390px}
.unlock-form h1 {font-size:44px;line-height:1.13;letter-spacing:-2px;font-weight:600;margin:20px 0}
.unlock-form>p:first-of-type {font-size:16px;color:#687b5f;line-height:1.8;margin-bottom:32px}
.unlock-form .button {height:50px;justify-content:center;font-size:16px}
.unlock-note {font-size:12px;color:#697d60;line-height:1.7;margin-top:24px;align-items:flex-start}
.tiny-lock {color:#588449}
.unlock-footer {font-size:12px;color:#718469}
@media(min-width:1600px) {main {padding-right:56px;padding-left:56px}.account-grid {grid-template-columns:repeat(auto-fill,minmax(370px,1fr))}}
@media(max-width:1200px) {.metric {padding:20px 16px}.metric-icon {width:32px;height:32px}.metric-label {font-size:12px}main {padding:26px 26px 0}.office-stats {grid-template-columns:repeat(2,minmax(0,1fr))}.office-module-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.header-actions {flex-direction:column}.office-hero {padding:28px}}
@media(max-width:1000px) {
  .sidebar {width:76px;padding:24px 10px}.brand {padding:0;justify-content:center;margin-bottom:26px}
  .sidebar .brand>span:last-child,.sidebar .office-geo,.sidebar .nav-caption,.sidebar .nav-count,.sidebar .nav-error,.sidebar-bottom p,.sidebar-bottom .local-label {display:none}
  .sidebar .nav-item {font-size:0;padding:13px;justify-content:center;min-height:46px}.sidebar .nav-child {padding-left:13px}
  .sidebar .logout {display:flex;font-size:0;padding:12px;justify-content:center}.sidebar-bottom {padding:12px 0 0}
  main {margin-left:76px;width:calc(100% - 76px)}.summary {grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric:nth-child(2) {border-right:0}.metric:nth-child(-n+2) {border-bottom:1px solid var(--line)}
}
@media(max-width:650px) {
  .sidebar {width:60px;padding:18px 6px}.sidebar .brand {padding:0;margin-bottom:20px}.sidebar .brand-mark {width:36px;height:36px;border-radius:11px;font-size:17px}
  .sidebar .nav-item {padding:12px;min-height:44px}.sidebar .logout {padding:10px}
  main {margin-left:60px;width:calc(100% - 60px);padding:22px 16px 0}.office-breadcrumb {display:none}
  .topbar {flex-wrap:wrap;padding-bottom:22px;gap:20px;margin-bottom:22px}.topbar h1 {font-size:30px}.topbar .eyebrow {font-size:10px}
  .topbar p {font-size:14px;max-width:none;line-height:1.6}.header-actions {flex-direction:row;width:100%;gap:8px;flex-wrap:wrap}
  .header-actions .button {font-size:13px;width:auto;min-height:44px;padding:10px 12px;flex:1;white-space:nowrap}
  .metric {padding:18px 13px;gap:6px}.metric-icon {display:none}.metric-label {font-size:12px;min-height:34px;margin-bottom:12px}.metric strong {font-size:30px}
  .automation-caption {gap:10px}.automation-caption p {font-size:13px}.section-heading {flex-wrap:wrap;gap:8px}.section-heading h2 {font-size:19px}.count-label {font-size:12px}
  #page-accounts .filter-actions {display:flex;width:100%;gap:10px;align-items:stretch}.filter-actions select {height:44px;font-size:14px;max-width:100%}
  .filter-actions .search {flex:1;min-width:0;height:44px}.filter-actions .search input {font-size:14px;width:100%;min-width:0}
  .account-grid,.proxy-grid {grid-template-columns:minmax(0,1fr);gap:18px}.card-header {padding:18px;gap:12px}.card-header>.badge {white-space:normal}
  .card-flip-bar {padding:10px 16px}.balance-block {padding:20px;margin:0 12px 16px}.balance-value {font-size:34px}.balance-value.long {font-size:22px}
  .turnover-block {margin:0 12px 16px;padding:14px;gap:12px;grid-template-columns:1fr}.turnover-period+.turnover-period {border-top:1px solid #dce6d4;padding-top:12px}
  .card-actions .button {font-size:13px;min-height:42px}.card-actions .icon-button {min-height:42px}.card-actions .icon-button::after {font-size:12px}
  .office-hero {padding:24px;min-height:0;gap:22px}.office-hero h2 {font-size:34px}.office-hero p {font-size:14px}.office-hero>.button {width:100%}
  .office-stat {padding:16px}.office-stat-label {font-size:13px;min-height:40px;line-height:1.5}.office-stat strong {font-size:30px}.office-stat small {font-size:12px}
  .office-stats {gap:12px}.office-panel {padding:20px}.office-section-heading h2 {font-size:19px}.office-section-heading p {font-size:13px}
  .office-module-grid,.office-source-grid,.office-money-grid {grid-template-columns:1fr}.office-module {padding:22px}.office-bank-row {padding:14px;gap:12px;flex-wrap:wrap}
  .office-bank-text p {font-size:13px}.office-bank-row>.button {width:100%;margin:0}.office-bank-row>.badge {white-space:normal}
  .main-footer {font-size:12px;align-items:flex-start;gap:10px;flex-direction:column}.office-table td {font-size:13px}
  .dialog-form {padding:24px 20px}.dialog-header h2 {font-size:23px}.dialog-actions {flex-wrap:wrap}.dialog-actions .button {flex:1}
  .form-columns {grid-template-columns:1fr}.history-directions button {font-size:13px;padding:10px}.table-footer {font-size:12px}
  .unlock-screen {grid-template-columns:1fr}.unlock-art {display:none}.unlock-content {padding:32px 25px;min-height:100svh}.unlock-form h1 {font-size:38px}.unlock-footer {font-size:12px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}}
