/* DC 5.12 — a compact blue identity across every settings surface. */
:root{--dc-blue:#315ee8;--dc-navy:#102650;--dc-ink:#182942;--dc-muted:#64748b;--dc-bg:#f2f5fb;--dc-line:#e5ebf5;--dc-card:#fff}
html body dialog.app-screen.app-screen[open]{--settings-bg:var(--dc-bg);--settings-ink:var(--dc-ink);--settings-muted:var(--dc-muted);background:var(--dc-bg)!important;color:var(--dc-ink)!important}
html body .app-screen .settings-head{min-height:66px!important;padding:10px 14px!important;background:var(--dc-bg)!important;border-bottom:1px solid #e6ecf5!important;gap:9px!important}
html body .app-screen .settings-head h2{font-size:21px!important;letter-spacing:-.6px;font-weight:700;color:var(--dc-ink)!important}
html body .app-screen .settings-head .screen-back{background:#fff!important;color:var(--dc-ink)!important;border:1px solid var(--dc-line)!important;border-radius:15px!important;width:42px!important;height:42px!important;flex-basis:42px;padding:10px!important}
html body .app-screen .settings-head::after{content:'DC';display:grid;place-items:center;width:32px;height:32px;margin-left:auto;border-radius:11px;background:#e5ecff;color:#315ee8;font-weight:750;font-size:11px;letter-spacing:.2px;flex:0 0 32px}
html body .app-screen .settings-content{background:var(--dc-bg)!important;padding:16px 16px 32px!important;color:var(--dc-ink)!important}
html body .app-screen h3,html body .app-screen label,html body .app-screen strong{color:var(--dc-ink)!important}
html body .app-screen p,html body .app-screen .fine,html body .app-screen small{color:var(--dc-muted)!important;line-height:1.5!important}
html body .app-screen .profile-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px!important;margin:0 0 18px!important;padding:20px 16px!important;border:0!important;border-radius:23px!important;background:linear-gradient(118deg,#11264b,#1e437d 68%,#2459a7)!important;box-shadow:0 10px 24px #16346718;position:relative;overflow:hidden}
html body .app-screen .profile-card h3{color:#fff!important;font-size:21px!important;letter-spacing:-.4px;margin:0 0 4px!important}
html body .app-screen .profile-card p{color:#c7d9f5!important;font-size:11px!important;margin:0!important}
html body .app-screen .profile-card .profile-avatar{width:54px;height:54px;min-width:54px;border-radius:17px;background:white;padding:4px;box-sizing:border-box;overflow:hidden}
html body .app-screen .profile-avatar img{width:100%;height:100%;object-fit:contain;border-radius:13px}
html body .app-screen .profile-card .profile-edit{width:auto!important;min-height:40px!important;border-radius:12px!important;padding:8px 10px!important;background:#ffffff17!important;color:#fff!important;font-size:11px!important;border:1px solid #ffffff26!important;margin:0!important;grid-column:auto!important;line-height:1.3!important}
html body .app-screen .profile-card .profile-edit::after{content:none!important}
html body .app-screen .local-version{font-size:10px!important;letter-spacing:.3px;margin:0 0 10px!important;padding:0 2px!important;color:#64748b!important}
html body .app-screen .settings-launcher>input[type=search]{border:1px solid var(--dc-line)!important;background:#fff!important;border-radius:16px!important;min-height:48px!important;font-size:14px!important;padding:12px 16px!important;box-shadow:0 2px 5px #18396a03}
html body .app-screen .settings-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:transparent!important;border:0!important;border-radius:0!important;margin:0!important;overflow:visible}
.dc-grid-heading{grid-column:1/-1;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#6e7d95;margin:22px 3px 2px}
html body .app-screen .settings-grid .settings-tile{display:grid;grid-template-columns:38px minmax(0,1fr) 12px;grid-template-rows:auto auto;column-gap:12px!important;row-gap:4px;padding:13px!important;min-height:74px!important;width:100%;border-radius:17px!important;border:1px solid var(--dc-line)!important;background:white!important;grid-column:1/-1;text-align:left;box-shadow:0 2px 4px #23447802}
html body .app-screen .settings-tile .setting-icon{grid-row:1/3;grid-column:1;color:#3561da!important;width:38px!important;height:38px!important;border-radius:12px;background:#eaf0ff;display:grid;place-items:center}
html body .app-screen .setting-icon svg{width:21px!important;height:21px!important;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
html body .app-screen .settings-tile strong{grid-column:2;font-size:14px!important;font-weight:650!important;line-height:1.3!important}
html body .app-screen .settings-tile small{grid-column:2;font-size:11px!important;line-height:1.4!important}
html body .app-screen .setting-chevron{grid-column:3;grid-row:1/3;font-size:20px;color:#8b99ae!important}
html body .app-screen .settings-grid .dc-feature-tile{grid-column:auto;grid-template-columns:minmax(0,1fr) 14px;grid-template-rows:36px auto auto;min-height:132px!important;align-content:start;gap:8px!important;padding:15px!important}
html body .app-screen .dc-feature-tile .setting-icon{grid-column:1;grid-row:1;width:36px!important;height:36px!important}
html body .app-screen .dc-feature-tile strong{grid-column:1/-1;grid-row:2;font-size:14px!important}
html body .app-screen .dc-feature-tile small{grid-column:1/-1;grid-row:3;font-size:11px!important;max-width:170px}
html body .app-screen .dc-feature-tile .setting-chevron{grid-column:2;grid-row:1;align-self:center}
html body .app-screen .settings-tile[data-tone='1'] .setting-icon{background:#e6f6f3;color:#167c70!important}
html body .app-screen .settings-tile[data-tone='2'] .setting-icon{background:#f0eaff;color:#7b50c7!important}
html body .app-screen .settings-tile[data-tone='3'] .setting-icon{background:#fff0e1;color:#ad6b25!important}
html body .app-screen .settings-tile[data-tone='4'] .setting-icon{background:#e8effb;color:#2c66a0!important}
html body .app-screen .settings-grid [hidden],html body .app-screen .dc-search-empty[hidden]{display:none!important}
html body .app-screen.next-dialog>section,html body .app-screen .settings-content>section:not(.profile-card):not(.settings-launcher):not(.detail-page),html body .app-screen .pref-group,html body .app-screen .settings-sections{border:1px solid var(--dc-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 2px 5px #23447802}
html body .app-screen.next-dialog>section{padding:16px!important;margin:16px!important}
html body .app-screen .detail-page{padding:0!important;background:transparent!important;border:0!important}
html body .app-screen .detail-hero{border-radius:20px;background:linear-gradient(110deg,#e3ebff,#eef5ff);padding:18px 16px!important;margin:0 0 22px!important}
html body .app-screen .detail-hero .hero-icon{background:#fff;color:#315ee8;box-shadow:0 5px 12px #345d9910}
html body .app-screen .pref-caption{font-size:10px!important;letter-spacing:1.3px;margin:20px 3px 8px!important;color:#687d9a!important}
html body .app-screen button.pref-row,html body .app-screen .pref-switch,html body .app-screen .flow-row,html body .app-screen .flow-toggle{min-height:64px!important;padding:14px!important;gap:12px!important;background:#fff!important;border-bottom:1px solid #edf1f7!important;color:var(--dc-ink)!important}
html body .app-screen .pref-copy strong,html body .app-screen .flow-copy strong{font-size:14px!important;font-weight:600!important;line-height:1.4!important}
html body .app-screen .pref-copy small,html body .app-screen .flow-copy small{font-size:11px!important;margin-top:4px!important;font-weight:400!important;color:#64748b!important}
html body .app-screen .pref-value,html body .app-screen .flow-value{font-size:11px!important;color:#315ee8!important;max-width:90px}
html body .app-screen .pref-chevron,html body .app-screen .flow-arrow{font-size:22px!important;color:#8e9eb5!important}
html body .app-screen .flow-group{padding:0!important;border-radius:18px!important;overflow:hidden;border:1px solid var(--dc-line)!important}
html body .app-screen .flow-group>h3{font-size:10px!important;font-weight:700!important;letter-spacing:1px;text-transform:uppercase;padding:15px 14px 7px!important;color:#6a7c95!important}
html body .app-screen input:not([type=checkbox]):not([type=radio]):not([type=file]),html body .app-screen textarea,html body .app-screen select{border:1px solid #dae3f1!important;background:#f7f9fd!important;color:var(--dc-ink)!important;border-radius:13px!important}
html body .app-screen button.secondary:not(.screen-back):not(.profile-edit){border-radius:12px!important;color:#3159b9!important;font-weight:500!important}
html body .app-screen .settings-grid button.settings-tile{color:var(--dc-ink)!important}
html body .app-screen button.secondary[data-save-action=true],html body .app-screen .flow-save-button{background:#315ee8!important;color:#fff!important;box-shadow:0 5px 12px #315ee822;border-radius:14px!important}
html body .app-screen .flow-save-dock{background:#f2f5fbf5;border-color:var(--dc-line)}
html body .app-screen .flow-save-state[data-kind=success]{color:#197554!important}
html body .app-screen .flow-save-state[data-kind=error]{color:#b32e42!important}
html body .app-screen .settings-sections{margin:16px!important;overflow:hidden}
html body .app-screen .setting-explanation{background:#f0f4fb!important;border-radius:12px!important}
.dc-dashboard{padding:20px 16px 32px;max-width:680px;margin:0 auto;box-sizing:border-box}
.dc-kicker{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#537ac4;display:block}
html body .app-screen .dc-page-intro h3{font-size:26px!important;letter-spacing:-.8px;line-height:1.17!important;max-width:290px;margin:10px 0!important;font-weight:700!important}
html body .app-screen .dc-page-intro p{font-size:12px!important;line-height:1.6!important;max-width:320px;margin:0 0 20px!important}
.dc-segments{display:flex;background:#e5ebf5;padding:4px;border-radius:13px;gap:3px;margin:0 0 16px}
html body .app-screen .dc-segments button.secondary{display:block;width:auto;flex:1;min-height:36px!important;margin:0!important;border-radius:10px!important;background:transparent!important;padding:8px 4px!important;text-align:center;font-size:12px!important;color:#64748b!important}
html body .app-screen .dc-segments button[aria-pressed=true]{background:white!important;color:#204eaa!important;box-shadow:0 2px 5px #264b7910}
html body .app-screen .dc-segments button::after{content:none!important}
.dc-balance-card{padding:23px 22px 18px;border-radius:23px;background:radial-gradient(ellipse at 100% 0,#3764a9,transparent 75%),#142c55;box-shadow:0 12px 28px #1b396123;position:relative;overflow:hidden}
.dc-balance-card .dc-kicker{color:#bad3fa!important}
html body .app-screen .dc-balance-card .dc-balance{display:block;font-size:36px!important;letter-spacing:-1.3px;line-height:1.2;color:#fff!important;font-weight:650!important;margin:11px 0 20px;overflow-wrap:anywhere}
html body .app-screen .dc-balance-card p{color:#c5d6ef!important;font-size:12px!important}
.dc-money-metrics{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #ffffff22;padding:16px 0;gap:18px}
.dc-money-metrics>div{display:grid;grid-template-columns:22px minmax(0,1fr);gap:5px}
.dc-money-metrics .dc-symbol{grid-row:1/3;color:#89ddb9;align-self:center}.dc-money-metrics .dc-symbol svg{width:17px}
html body .app-screen .dc-money-metrics small{font-size:10px!important;color:#bacde9!important}
html body .app-screen .dc-money-metrics strong{font-size:17px!important;color:#fff!important;font-weight:550!important;overflow-wrap:anywhere}
.dc-range{font-size:10px;color:#b1c8e8;letter-spacing:.2px}
.dc-symbol{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;line-height:1}
.dc-symbol svg{height:22px;width:22px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.dc-dashboard-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 22px}
html body .app-screen button.dc-action{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:15px;background:#fff;color:var(--dc-ink);border:0;border-radius:16px;text-align:left;font-size:14px;box-sizing:border-box}
.dc-action>.dc-symbol:first-child{width:38px;height:38px;flex-basis:38px;background:#edf2ff;color:#3d69cd;border-radius:12px}
.dc-action>.dc-symbol:last-child{color:#91a1b9;flex-basis:16px}.dc-action>.dc-symbol:last-child svg{width:16px}
.dc-action-copy{flex:1;min-width:0}.dc-action-copy strong{display:block;font-size:14px!important;font-weight:600!important;line-height:1.4}.dc-action-copy small{display:block;font-size:11px!important;margin-top:4px;line-height:1.5!important}
html body .app-screen .dc-dashboard-actions .dc-action{flex-wrap:wrap;border:1px solid var(--dc-line);gap:10px;padding:14px}
.dc-dashboard-actions .dc-action>.dc-symbol:last-child{display:none}.dc-dashboard-actions .dc-action-copy{flex-basis:100%}
.dc-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 1px 9px}
html body .app-screen .dc-section-heading h3{font-size:14px!important;font-weight:650!important;margin:0!important}
html body .app-screen .dc-text-button{background:transparent;color:#315ee8;font-size:11px;min-height:36px;padding:8px 4px;margin:0;font-weight:550}
.dc-list{background:#fff;border:1px solid var(--dc-line);border-radius:18px;overflow:hidden}
html body .app-screen .dc-list .dc-action{border-radius:0;border-bottom:1px solid #edf1f7}
html body .app-screen .dc-list .dc-action:last-child{border-bottom:0}
.dc-inline-empty{display:flex;align-items:center;gap:12px;font-size:12px;padding:20px 16px;color:#72829a}
.dc-inline-empty .dc-symbol{color:#6e8cbc}
html body .app-screen .dc-footnote{font-size:11px!important;line-height:1.6!important;margin:16px 4px;color:#6c7f99!important}
html body .app-screen .dc-upload{background:#e7efff;border:1px dashed #adc1e9;padding:18px;margin:0 0 20px}
html body .app-screen .dc-upload>.dc-symbol:first-child{background:white;color:#315ee8}
.dc-document-panel{padding:16px;background:#fff;border:1px solid var(--dc-line);border-radius:18px}
html body .app-screen .dc-document-panel>label{font-size:11px!important;margin:0 0 8px!important;color:#64748b!important}
html body .app-screen .dc-document-panel>select{display:block!important;width:100%;font-size:14px!important;max-width:100%;min-height:48px;margin:0;box-sizing:border-box}
html body .app-screen .dc-filled,html body .app-screen button.dc-filled[type=submit]{display:flex;align-items:center;justify-content:center;background:#315ee8!important;color:#fff!important;border:0;border-radius:12px!important;padding:12px!important;min-height:46px!important;font-size:13px!important;font-weight:600!important;width:100%;margin:12px 0 0!important;text-align:center}
html body .app-screen .dc-filled::after{content:none!important}
html body .app-screen .dc-document-options{padding:12px;background:#f6f8fc;margin-top:14px;border:0;border-radius:12px}
html body .app-screen .dc-document-options summary{font-size:11px;color:#64748b;min-height:24px;line-height:24px}
html body .app-screen .dc-document-options p{font-size:11px!important}
html body .app-screen .dc-document-options .check{font-size:12px!important;min-height:54px}
html body .app-screen .dc-document-search{display:flex;align-items:center;gap:8px;width:100%;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-sizing:border-box}
html body .app-screen .dc-document-search input{flex:1;min-width:0;width:auto!important;min-height:48px!important;font-size:13px!important;padding:12px!important;background:white!important}
html body .app-screen .dc-document-search button.dc-filled{width:auto;min-width:72px;min-height:48px!important;margin:0!important}
.dc-search-result{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;border:1px solid var(--dc-line);border-radius:16px;padding:16px;background:white;margin-top:12px}
.dc-search-result .dc-symbol{color:#315ee8}.dc-search-result a{font-size:13px;font-weight:650;color:#3159b9;overflow-wrap:anywhere}.dc-search-result p{grid-column:1/-1;font-size:12px!important;margin:0}
.dc-welcome-signature{display:flex;align-items:center;gap:9px;justify-content:center;margin:0 auto 24px;color:#819bc8;font-size:9px;font-weight:650;letter-spacing:2.2px}
.dc-welcome-signature img{width:28px;height:28px;border-radius:9px;object-fit:contain;background:white;padding:2px}
html[data-theme=dark] .dc-home #welcome .dc-greeting{color:#f0f5ff!important}
html[data-theme=dark] .bottom-nav .nav-item.active{background:#162a48;color:#dceaff}
html[data-theme=dark] .composer{border-color:#33445f!important;background:linear-gradient(125deg,#131d2b,#1c2635)!important}
html body .app-screen button:focus-visible,html body .app-screen a:focus-visible{outline:3px solid #7fa7ff;outline-offset:2px}
@media(max-width:350px){html body .app-screen .profile-card{grid-template-columns:46px minmax(0,1fr);padding:17px 14px!important}html body .app-screen .profile-card .profile-edit{grid-column:2!important;justify-self:start}.dc-dashboard{padding:18px 12px 28px}html body .app-screen .settings-grid .dc-feature-tile{padding:12px!important}.dc-dashboard-actions{gap:8px}.dc-action-copy strong{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.app-screen *{scroll-behavior:auto!important;transition:none!important}}
/* Deliberate exceptions to legacy full-width secondary-button presentation. */
html body dialog.app-screen.app-screen.app-screen .dc-segments button.secondary{background:transparent!important;color:#64748b!important;min-height:36px!important;margin:0!important;padding:8px 4px!important;box-shadow:none!important}
html body dialog.app-screen.app-screen.app-screen .dc-segments button.secondary[aria-pressed=true]{background:white!important;color:#204eaa!important;box-shadow:0 2px 5px #264b7910!important}
html body dialog.app-screen.app-screen.app-screen .profile-card button.profile-edit{background:#ffffff17!important;color:#fff!important;min-height:40px!important;width:auto!important;margin:0!important;padding:8px 10px!important;border:1px solid #ffffff26!important;font-size:11px!important}
html body dialog.app-screen.app-screen.app-screen .settings-head button.screen-back{background:#fff!important;color:#182942!important;opacity:1!important}
html body dialog.app-screen.app-screen.app-screen .dc-document-panel button.dc-filled{background:#315ee8!important;color:#fff!important;text-align:center;justify-content:center}

html body .app-screen button.dc-action.dc-upload{background:#e7efff;border:1px dashed #adc1e9;padding:18px;margin:0 0 20px}
html body .app-screen .profile-card>div{min-width:0}html body .app-screen .profile-card p{overflow-wrap:anywhere}
