


html { scroll-behavior: smooth; color-scheme: light; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--color-navy); color: #fff; }
input, select, textarea { accent-color: var(--color-navy); }
a { text-underline-offset: 3px; }

h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }

* { scrollbar-width: thin; scrollbar-color: #CDD1D9 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #CDD1D9; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #B3B9C4; background-clip: content-box; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }


@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#content { animation: fade-in .2s ease-out both; }
.modal-mask { animation: fade-in .16s ease-out both; }
.modal { animation: rise-in .2s cubic-bezier(.25, .6, .3, 1) both; }
.dropdown { animation: fade-in .14s ease-out both; }
.toast { animation: rise-in .22s cubic-bezier(.25, .6, .3, 1) both; }
.msg { animation: fade-in .18s ease-out both; }
.genui-card { animation: rise-in .22s cubic-bezier(.25, .6, .3, 1) both; }


.btn { transition: background-color .15s ease, border-color .15s ease, box-shadow .18s ease; }
.btn-primary { box-shadow: 0 1px 2px rgba(15, 23, 42, .10); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 2px 8px rgba(15, 23, 42, .14); }
.btn-primary:active:not(:disabled) { box-shadow: none; }
.btn-danger:hover:not(:disabled) { box-shadow: 0 2px 8px rgba(15, 23, 42, .14); }
.btn-ghost:hover:not(:disabled) { border-color: #CBD0DA; }
.quick-item, .pay-action, .fund-card, .mini-action, .hero-input, .upload-box {
  transition: border-color .15s ease, background-color .15s ease, box-shadow .18s ease;
}
.quick-item:hover:not(.disabled),
.pay-action:hover:not(.disabled),
.fund-card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 3px 14px rgba(15, 23, 42, .07);
}

.quick-item .qi-wrap svg { transition: transform .15s ease; }
.quick-item:hover:not(.disabled) .qi-wrap svg { transform: scale(1.08); }
.pay-action:hover:not(.disabled) .pi {
  background: var(--color-primary-tint);
  box-shadow: inset 0 0 0 1px rgba(30, 42, 120, .18);
}
.hero-input:focus-within { box-shadow: 0 0 0 3px var(--color-primary-tint); }
.bank-card { transition: box-shadow .22s ease; }
.bank-card:hover { box-shadow: 0 4px 18px rgba(15, 23, 42, .09); }
.list-row { transition: background-color .12s ease; }
a.list-row, .list-row[style*="cursor"] { border-radius: var(--r-btn); }
a.list-row:hover, .list-row[style*="cursor"]:hover { background: #FAFBFC; }
.acc-head { transition: background-color .12s ease; }
.acc-head:hover { background: var(--color-surface); }
.drawer-item, .bn-item, .icon-btn, .header-user, .lang-item, .tc-toggle {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.progressbar i { transition: width .3s ease; }
.input { transition: border-color .15s ease, box-shadow .15s ease; }


.app-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

@media (min-width: 768px) {
  .app-header { height: 46px; }
}


.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 540px; }
.card:has(.table) { overflow-x: auto; }
.card:has(.table) .table:not(.table-wrap .table) { min-width: 0; }
.md-table-wrap, .dd-list, .chat-thread, .modal, .trust-console { overscroll-behavior: contain; }


@supports (height: 100dvh) {
  .chat-area { height: calc(100dvh - 160px); }
  .modal { max-height: 88dvh; }
  .cookie-pop { max-height: 70dvh; overflow-y: auto; }
  @media (max-width: 1023px) { .chat-area { height: calc(100dvh - 220px); } }
  @media (min-width: 1200px) { .chat-area { height: calc(100dvh - 170px); min-height: 560px; } }
}


@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .hero-input { padding: 7px 7px 7px 14px; }
  .card { padding: var(--sp-4); }
  .page { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}

.legal-body { line-height: 1.9; }
.legal-body p { margin: 0 0 10px; }
.legal-body h2 { margin: 26px 0 10px; padding-top: 14px; border-top: 1px dashed var(--color-line); }
.legal-body h3 { margin: 14px 0 6px; }
@media (min-width: 768px) {
  .legal-toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  #content, .modal, .msg, .genui-card, .dropdown, .toast { animation: none; }
}


.badge .ic, .task-step .ic, .tc-evt .k .ic, .msg .ic, .md-list .ic { vertical-align: -2px; }
.task-step .ic { margin: 0 2px; }
.tc-evt .k { display: inline-flex; align-items: center; gap: 4px; }
.tc-evt .k .ic { flex: none; }
.tc-evt.fail .k .ic { color: var(--color-red); }
.msg.err .ic { vertical-align: -3px; }




.notif-item .grow { flex: 1; min-width: 0; }
.notif-item .nt { line-height: 1.45; }
.notif-item .muted { word-break: break-word; }

.grow { min-width: 0; }


@media (max-width: 767px) {
  .app-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .auth-wrap { margin-top: var(--sp-4); }
  .brand-banner { padding: var(--sp-6) var(--sp-4); }
}


@media (max-width: 1023px) {
  body[data-page="ai"] .page {
    display: block;
    height: auto;
    overflow: visible;
    padding: var(--sp-3) var(--sp-3) calc(178px + env(safe-area-inset-bottom));
  }
  .ai-layout { display: block; }
  .mobile-tabs { position: sticky; top: 49px; z-index: 60; margin: 0 0 var(--sp-2); box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
  .chat-area { height: auto; min-height: 0; background: transparent; border: none; box-shadow: none; border-radius: 0; } 
  .chat-thread { overflow: visible; height: auto; }
  .composer-hint { display: none; }
  .chat-composer {
    position: fixed;
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: calc(64px + env(safe-area-inset-bottom) + 10px);
    z-index: 90;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .16);
  }
  @media (min-width: 768px) {
    
    .mobile-tabs { top: 64px; }
    
    .chat-thread { padding-left: max(var(--sp-4), calc((100% - 720px) / 2)); padding-right: max(var(--sp-4), calc((100% - 720px) / 2)); }
    .chat-head { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
    .chat-composer { left: max(calc(248px + var(--sp-3)), calc(50% - 348px)); right: max(var(--sp-4), calc(50% - 348px)); bottom: calc(10px + env(safe-area-inset-bottom)); }
    body[data-page="ai"] .page { padding: var(--sp-6) var(--sp-4) calc(120px + env(safe-area-inset-bottom)) calc(248px + var(--sp-6)); }
    .trust-console { top: 64px; }
  }
  
  .trust-console {
    position: fixed;
    top: calc(49px + env(safe-area-inset-top));
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: var(--z-drawer);
    height: auto;
    max-height: none;
    border-radius: 0;
    border: none;
    display: none;
    padding-bottom: 0;
  }
  .trust-console.open { display: flex; animation: fade-in .18s ease-out both; }
  
  @media (min-width: 768px) {
    .trust-console { top: 64px; left: 248px; }
  }
  .tc-head { position: sticky; top: 0; background: #fff; z-index: 2; }
  .tc-events { flex: 1 1 0; min-height: 0; -webkit-overflow-scrolling: touch; }
  .tc-verifiers, .tc-demo, .tc-ir { flex: none; }
  .tc-close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-primary-tint);
    color: var(--color-navy);
    border: none;
    border-radius: var(--r-pill);
    padding: 6px 12px;
    font-size: var(--fs-12);
    font-weight: 600;
    cursor: pointer;
  }
}
@media (min-width: 1024px) { .tc-close { display: none; } }
body.tc-open { overflow: hidden; }


@media (max-width: 767px) {
  body[data-page="ai"] .bottom-nav { z-index: calc(var(--z-drawer) + 10); }
  .trust-console .tc-events { padding-bottom: 12px; }
}


body[data-page="ai"] .app-header { z-index: calc(var(--z-drawer) + 10); }




.auth-wrap .card h2 { margin-bottom: var(--sp-6); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--color-ink-2);
  padding: 7px; display: inline-flex; border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
.pw-eye:hover { color: var(--color-navy); background: var(--color-surface); }


.legal-grid > * { min-width: 0; }
.grid > * { min-width: 0; } 
.legal-body, .legal-toc { overflow-wrap: anywhere; }
@media (max-width: 767px) { .legal-grid { gap: var(--sp-4); } }


.legal-grid .legal-body, .legal-grid .legal-toc { width: 100%; }


.field { display: block; margin-bottom: var(--sp-4); }
.total { white-space: nowrap; }
@media (max-width: 360px) { .assets-block .total { font-size: 30px; } }


@media (max-width: 767px) {
  .pay-actions { gap: var(--sp-2); }
  .pay-action { padding: var(--sp-4) var(--sp-2); font-size: var(--fs-12); }
  .pay-action .pi { width: 44px; height: 44px; }
  .pay-action .pi svg { width: 22px; height: 22px; }
}


.dropdown { text-align: left; }
.lang-item { text-align: left; }


.sim-info { display: inline-flex; align-items: center; justify-content: center; color: var(--color-ink-2); border-radius: 50%; transition: color .15s ease, background-color .15s ease; padding: 2px; }
.sim-info:hover { color: var(--color-navy); background: var(--color-primary-tint); text-decoration: none; }


.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 767px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; gap: var(--sp-3); align-items: flex-start; text-align: left;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--r-card);
  padding: var(--sp-4); text-decoration: none; color: var(--color-ink); min-width: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tool-card:hover { border-color: var(--color-navy); box-shadow: var(--shadow); text-decoration: none; }
.tool-card:active { transform: translateY(1px); }
.tool-card .ti { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--color-primary-tint); color: var(--color-navy); display: inline-flex; align-items: center; justify-content: center; }
.tool-card .tn { font-weight: 600; font-size: var(--fs-14); margin-bottom: 2px; }
.tool-card .td { font-size: var(--fs-12); color: var(--color-ink-2); line-height: 1.5; }


.tc-result { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: flex-end; }
.tc-result .kv { min-width: 0; }
.tc-result .kv .lb { font-size: var(--fs-12); color: var(--color-ink-2); margin-bottom: 4px; }
.tc-result .kv .v { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.tc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 767px) { .tc-duo { grid-template-columns: 1fr; } }
.tc-duo .card { margin: 0; }
.tc-bar { height: 14px; border-radius: 7px; overflow: hidden; display: flex; background: var(--color-surface); margin: var(--sp-2) 0; }
.tc-bar i { display: block; height: 100%; transition: width .18s ease; }
.tc-bar .p-p { background: var(--color-navy); }
.tc-bar .p-i { background: #B7C0E8; }
.tc-warn { background: var(--color-red-bg); color: var(--color-red); border-radius: var(--r-btn); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-12); display: flex; gap: 8px; align-items: flex-start; }
.tc-warn svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }


.cookie-pop .ck-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--color-line); }
.cookie-pop .ck-row:first-of-type { border-top: none; }
.cookie-pop .ck-row .grow { flex: 1; min-width: 0; }
.cookie-pop .modal-actions { flex-wrap: wrap; }
.cookie-pop .modal-actions .btn-sm { flex: 1 1 auto; padding: 8px 10px; }


.help-search { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: var(--sp-4) 0 var(--sp-3); }
.help-search .hs-ic { color: var(--color-ink-2); display: inline-flex; }
.help-search .input { border: none; box-shadow: none; padding: 6px 0; flex: 1; background: transparent; }
.help-search .input:focus { box-shadow: none; }
.help-search:focus-within { border-color: var(--color-navy); box-shadow: 0 0 0 3px var(--color-primary-tint); }
.help-pills { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 72px; z-index: 60; background: linear-gradient(#fff 82%, rgba(255,255,255,0)); padding: 8px 16px 12px; margin: 0 -16px 0; }
.hpill { font-size: var(--fs-12); padding: 5px 12px; border: 1px solid var(--color-line); border-radius: 999px; background: #fff; color: var(--color-ink); text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease; white-space: nowrap; }
.hpill:hover { border-color: var(--color-navy); color: var(--color-navy); background: var(--color-primary-tint); }
.help-sec { margin: var(--sp-8) 0 var(--sp-3); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.help-sec.in { opacity: 1; transform: none; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.help-step { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: var(--sp-4); }
.hs-num { width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary-tint); color: var(--color-navy); font-weight: 700; font-size: var(--fs-12); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.help-step .btn { margin-top: auto; }
.faq-cat-name { margin: var(--sp-6) 0 var(--sp-2); font-size: var(--fs-16); }

.faq-cat-name .pye-gh { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; font-size: var(--fs-14); }
.faq-cat-name .pye-gh .ic-c { width: 20px; height: 20px; }
.hpill.on { background: var(--color-navy); border-color: var(--color-navy); color: #fff; font-weight: 600; }
.help-sec-h { scroll-margin-top: 128px; }
.faq-cat { scroll-margin-top: 128px; }
.help-ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--color-ink); font-size: var(--fs-14); }
.help-cta { margin-top: var(--sp-8); display: flex; align-items: center; gap: 12px; }
.help-cta .btn { flex: none; margin-left: auto; }

.acc-item.hacc { border: 1px solid var(--color-line); border-radius: var(--r-btn); background: #fff; margin-bottom: 8px; overflow: hidden; }
.acc-item.hacc .acc-head { border-radius: 0; }
.acc-item.hacc .acc-head svg { transition: transform .25s cubic-bezier(.25,.6,.3,1); flex: none; color: var(--color-ink-2); }
.acc-item.hacc.open .acc-head svg { transform: rotate(90deg); color: var(--color-navy); }
.acc-item.hacc .acc-body { max-height: 0; overflow: hidden; transition: max-height .32s cubic-bezier(.25,.6,.3,1); }
@media (max-width: 900px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .help-grid { grid-template-columns: 1fr; } .help-pills { top: 53px; } .help-cta { flex-wrap: wrap; } .help-cta .btn { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .help-sec { opacity: 1; transform: none; transition: none; } }


.acc-item.hacc.open .acc-body { max-height: 900px; }


@media (min-width: 768px) {
  .side-drawer { overflow-y: auto; }
  .drawer-group { margin-bottom: 6px; }
  .drawer-ai { display: flex; align-items: center; gap: 11px; padding: 12px 12px; border-radius: var(--r-btn); position: relative; }
  .drawer-ai img { width: 34px; height: 34px; }
  .drawer-ai .ai-txt { flex: 1; min-width: 0; }
  .drawer-ai .t { font-size: var(--fs-16); font-weight: 700; margin: 0; line-height: 1.35; }
  .drawer-ai .s { font-size: 11.5px; line-height: 1.4; }
  .drawer-ai:hover { text-decoration: none; }
  .drawer-group.open > .drawer-ai { background: var(--color-primary-tint); }
  .drawer-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-btn); font-size: var(--fs-14); border-left: 3px solid transparent; color: var(--color-ink); font-weight: 500; }
  .drawer-item:hover { background: var(--color-surface); text-decoration: none; }
  .drawer-item.active { color: var(--color-navy); border-left-color: var(--color-navy); background: var(--color-primary-tint); }
  .drawer-item > span:first-of-type { flex: 1; }
  .drawer-item svg:first-child { width: 18px; height: 18px; }
  .drawer-chev { flex: none; display: inline-flex; align-items: center; margin-left: auto; color: var(--color-ink-2); }
  .drawer-chev svg { width: 13px; height: 13px; transition: transform .28s cubic-bezier(.25,.6,.3,1); }
  .drawer-group.open > .drawer-item .drawer-chev svg,
  .drawer-group.open > .drawer-ai .drawer-chev svg { transform: rotate(90deg); color: var(--color-navy); }
  .drawer-recents { background: var(--color-surface); border-radius: var(--r-btn); padding: 8px 6px 6px; margin-bottom: 6px; }
  .rec-head { font-size: 10.5px; color: var(--color-ink-2); letter-spacing: .08em; padding: 0 10px 6px; }
  .drawer-sub { display: flex; align-items: center; gap: 9px; padding: 6px 10px; margin: 2px 0; font-size: var(--fs-14); color: var(--color-ink); border-radius: 8px; text-decoration: none; transition: color .12s ease, background-color .12s ease; }
  .drawer-sub svg { width: 15px; height: 15px; opacity: .8; }
  .drawer-sub:hover { color: var(--color-navy); background: var(--color-primary-tint); text-decoration: none; }
  .drawer-sub.cur { color: var(--color-navy); font-weight: 600; background: var(--color-primary-tint); }
  .drawer-recents .drawer-sub.cur { background: #fff; }
  .drawer-subs .ds-inner { overflow: hidden; max-height: none; }
  .drawer-group:not(.open) .drawer-subs { display: none; }
  .drawer-group.open .drawer-sub { margin: 3px 0; padding: 5px 10px; font-size: var(--fs-14); color: var(--color-ink-2); }
  .drawer-group.open .drawer-sub svg { width: 14px; height: 14px; }
}


.insight-li { display: flex; align-items: flex-start; gap: 6px; }
.insight-li svg { flex: none; margin-top: 2px; color: var(--color-navy); }
.help-ul { list-style: none; padding-left: 0 !important; }
.help-ul li { display: flex; align-items: flex-start; gap: 8px; }
.help-ul li svg { flex: none; margin-top: 3px; color: var(--color-navy); }

.help-ul li .ic-c { width: 20px; height: 20px; margin-top: 1px; }
.task-step .st .ic-c { width: 24px; height: 24px; }


.th-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 12px; }
.th-stat { background: #fff; border: 1px solid var(--color-line); border-radius: var(--r-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.th-stat .lb { font-size: 12px; color: var(--color-ink-2); }
.th-stat .n { font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-search { margin: 0 0 10px; }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.th-chips .hpill { cursor: pointer; font-family: inherit; }

@media (min-width: 361px) { .th-chips { flex-wrap: nowrap; overflow-x: auto; } .th-chips .hpill { flex: none; } }
.tl-head { display: flex; align-items: center; padding: 10px 0 2px; } 
.tl-head .ctl-select { width: auto; min-width: 150px; }

#tx-summary { margin-top: 14px; } 

.wh-total { font-size: 32px; font-weight: 700; white-space: nowrap; }
.wh-total-row { gap: 10px; align-items: center; }
@media (max-width: 600px) {
  .wh-total { font-size: 21px; }
  .wh-total-row .wh-manage { font-size: 13px; padding: 8px 12px; flex: none; }
}
.tx-main-change { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--color-navy); background: var(--color-primary-tint); border-radius: 999px; padding: 4px 12px; }
.tx-main-change svg { color: var(--color-navy); width: 12px; height: 12px; }

.tx-cat-title { display: flex; align-items: baseline; justify-content: space-between; }
.tx-legend-row { display: inline-flex; align-items: center; gap: 12px; }
.tx-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-ink-2); }
.tx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
@media (max-width: 600px) { .th-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .th-stat { padding: 10px 10px; } .th-stat .n { font-size: 16px; } }

.notif-item.unread { box-shadow: none !important; }


@media (max-width: 600px) {
  .hscroll { flex-direction: column; overflow-x: visible; }
  .hscroll .fund-card { min-width: 0; width: 100%; }
}

@media (max-width: 767px) {
  .hscroll { margin: 0 -16px; padding: 0 16px var(--sp-2); }
}


.app-header .logo-link img { height: 27px; transition: height .2s ease; }
.app-header .avatar { line-height: 1; } 
@media (min-width: 768px) { .app-header .avatar { width: 29px; height: 29px; font-size: 12.5px; } } 
@media (max-width: 767px) { .app-header .logo-link img { height: 27px; } .app-header .avatar { width: 28px; height: 28px; font-size: 12px; } }
@media (max-width: 380px) { .app-header .logo-link img { height: 24px; } .app-header .avatar { width: 27px; height: 27px; font-size: 12px; } }


.acc-item.hacc .acc-body { padding: 0 16px !important; max-height: 0 !important; }
.acc-item.hacc .acc-inner { padding-bottom: 14px; }
.acc-item.hacc.open .acc-body { max-height: none !important; padding-bottom: 0; }
.acc-item.hacc.open .acc-inner { padding-bottom: 14px; }


.list-row.unread, .notif-item.unread {
  background: var(--color-primary-tint) !important;
  border-radius: 12px;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

.list-row.unread { margin: 3px 0; }
.notif-item.unread { margin: 3px 0; }



.msg.thinking .dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.msg.thinking .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-ink-2); opacity: .4; animation: think-bounce 1.2s infinite; }
.msg.thinking .dots i:nth-child(2) { animation-delay: .15s; }
.msg.thinking .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes think-bounce { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

.insight-li { align-items: center; }
.insight-li svg { width: 11px; height: 11px; margin-top: 0; color: var(--color-ink-2); }

@media (max-width: 767px) {
  .header-right { gap: 2px; }
  .v-sep { margin: 0 2px; }
  .icon-btn { padding: 6px; }
}


@media (max-width: 600px) {
  
  .hscroll.deps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); overflow-x: visible; }
  .hscroll.deps .fund-card { min-width: 0; width: auto; }
  
  .hscroll.payees { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); overflow-x: visible; }
  .hscroll.payees .fund-card { min-width: 0; width: auto; }
  .hscroll.deps .fund-card, .hscroll.payees .fund-card { min-width: 0 !important; max-width: none !important; }
  .hscroll.payees .fund-card[style] { min-width: 0 !important; }
  
  .hscroll.payees .payee-card { min-width: 0; max-width: none; width: auto; }
}


.dl-hero { background: linear-gradient(135deg, var(--color-navy) 0%, #0b1220 100%); color: #fff; border-radius: 16px; padding: 28px 24px; margin-bottom: 16px; text-align: center; }
.dl-hero h1 { color: #fff; font-size: 22px; margin: 10px 0 4px; }
.dl-hero p { color: rgba(255, 255, 255, .72); margin: 0; }
.dl-badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-12); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 4px 12px; }
.dl-lock .input { text-align: center; font-size: 16px; letter-spacing: .06em; }
.dl-payees { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dl-payee { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--color-line); border-radius: 10px; background: #fff; }
.dl-payee.low { opacity: .68; background: var(--color-surface); }
.dl-verify { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }


body[data-page="demo-lab"] #content > .card { margin-bottom: 16px; }
body[data-page="demo-lab"] #content > .card:last-child { margin-bottom: 0; }
.dl-doc { display: flex; flex-direction: column; margin-top: 4px; }
.dl-doc-item { padding: 12px 2px 12px 0; border-bottom: 1px dashed var(--color-line); }
.dl-doc-item:first-child { padding-top: 6px; }
.dl-doc-item:last-child { border-bottom: none; padding-bottom: 2px; }
.dl-doc-t { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--color-navy); margin-bottom: 6px; }
.dl-doc-t .ic { flex: none; }
.dl-doc-b { margin: 0 0 0 23px; color: var(--color-ink-2); font-size: var(--fs-14); line-height: 1.72; }
@media (max-width: 767px) {
  .dl-doc-b { margin-left: 0; }
  body[data-page="demo-lab"] #content > .card { margin-bottom: 16px; }
}


.dl-sec { margin-top: 14px; }
.dl-sec-lb { font-size: var(--fs-13); font-weight: 700; color: var(--color-navy); margin-bottom: 8px; }
.dl-dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dl-dim-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.dl-opt-card { display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fff; border: 1.5px solid var(--color-line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dl-opt-card:hover { border-color: var(--color-navy, #233a6b); }
.dl-opt-card.on { border-color: var(--color-navy, #233a6b); background: var(--color-primary-tint, #eef2fa); }
.dl-opt-t { font-weight: 700; font-size: var(--fs-14); color: var(--color-ink, #1c2333); }
.dl-opt-d { font-size: var(--fs-12); line-height: 1.6; color: var(--color-ink-2, #5a6478); }
.dl-prof-select { max-width: 420px; }
.dl-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.dl-block { display: flex; align-items: center; gap: 7px; font-size: var(--fs-13); color: var(--color-ink, #1c2333); cursor: pointer; }
.dl-preview { border: 1px solid var(--color-line); border-radius: 12px; padding: 4px 14px; background: var(--color-surface, #f7f8fb); }
.dl-pkv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--color-line); font-size: var(--fs-13); }
.dl-pkv:last-child { border-bottom: none; }
.dl-pkv .v { font-weight: 600; }
.dl-pkv-h { font-weight: 700; color: var(--color-navy); border-bottom: 1px solid var(--color-line); }
.dl-vtable { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: var(--fs-13); }
.dl-vtable th { text-align: right; font-weight: 700; color: var(--color-navy); padding: 6px 8px; border-bottom: 1px solid var(--color-line); }
.dl-vtable th:first-child { text-align: left; }
.dl-vtable td { text-align: right; padding: 6px 8px; border-bottom: 1px dashed var(--color-line); }
.dl-vtable td:first-child { text-align: left; color: var(--color-ink-2, #5a6478); }

.ctl-list .ctl-opt-header { font-size: var(--fs-11); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-2, #5a6478); padding: 10px 12px 4px; pointer-events: none; background: transparent; }
.ctl-list .ctl-opt-header:not(:first-child) { border-top: 1px solid var(--color-line); margin-top: 4px; }
@media (max-width: 767px) {
  .dl-dim-grid, .dl-dim-grid.cols2 { grid-template-columns: 1fr; } 
  .dl-prof-select { max-width: none; }
}


.chat-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--color-line); flex: none; }

.chat-head #hist-btn { margin-left: -6px; }
.chat-head #ch-more { margin-right: -6px; }
.chat-head .ch-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--color-primary-tint); color: var(--color-navy); border: none; border-radius: var(--r-pill); padding: 6px 12px; font-size: var(--fs-12); font-weight: 600; cursor: pointer; white-space: nowrap; }
.chat-head .ch-btn:hover { filter: brightness(.96); }
.chat-head .ch-btn .ic { flex: none; }
.chat-head .ch-title { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.chat-head .hh-short { display: none; }
@media (max-width: 1023px) {
  .chat-head .hh-full { display: none; }
  .chat-head .hh-short { display: inline; }
}


.prod-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--color-green-bg); color: var(--color-green); font-size: var(--fs-12); font-weight: 600; margin-right: 10px; white-space: nowrap; }
.bench-method { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .bench-method { grid-template-columns: 1fr 1fr; } }
.bm-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--r-btn); background: var(--color-surface); }
.bm-item b { font-size: var(--fs-14); }
.bm-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-tint); color: var(--color-navy); }


.chat-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--color-line); flex: none; position: relative; z-index: 5; }

.chat-head .ch-round { width: 29.5px; height: 29.5px; padding: 0; justify-content: center; border-radius: 50%; }
.ch-more { position: relative; width: 29.5px; height: 29.5px; flex: none; z-index: 6; }
.ch-more-morph {
  position: absolute; right: 0; top: 50%; width: 29.5px; height: 29.5px; border-radius: 999px;
  background: var(--color-primary-tint); color: var(--color-navy);
  transform: translateY(-50%); overflow: hidden;
  transition: width .26s cubic-bezier(.5, 0, .75, .2), height .26s cubic-bezier(.5, 0, .75, .2),
    border-radius .26s cubic-bezier(.5, 0, .75, .2), transform .26s cubic-bezier(.5, 0, .75, .2),
    background-color .22s ease, box-shadow .22s ease;
}
.ch-more.open .ch-more-morph {
  width: 208px; height: 154px; border-radius: 16px; background: #fff;
  transform: translateY(-14.75px);
  box-shadow: 0 3px 6px rgba(23, 27, 64, .05), 0 16px 40px rgba(23, 27, 64, .16);
  transition: width .38s cubic-bezier(.22, 1.18, .36, 1), height .38s cubic-bezier(.22, 1.18, .36, 1),
    border-radius .38s cubic-bezier(.22, 1.18, .36, 1), transform .38s cubic-bezier(.22, 1.18, .36, 1),
    background-color .26s ease, box-shadow .3s ease;
}
.ch-more-face {
  all: unset; cursor: pointer; position: absolute; top: 0; right: 0; bottom: 0; left: 0; 
  display: flex; align-items: center; justify-content: center;
  transition: opacity .16s ease .08s, transform .26s cubic-bezier(.5, 0, .75, .2) .08s;
}
.ch-more.open .ch-more-face { opacity: 0; transform: rotate(120deg) scale(.55); pointer-events: none; transition: opacity .12s ease, transform .18s ease; }
.ch-more-item {
  position: absolute; left: 0; right: 0; height: 46px; padding: 0 16px; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  color: var(--color-ink); font-size: var(--fs-14); font-weight: 600; text-decoration: none;
  opacity: 0; transform: translateX(12px); pointer-events: none; 
  transition: opacity .14s ease, transform .14s ease;
}
.ch-more-item:nth-child(2) { top: 6.5px; }
.ch-more-item:nth-child(3) { top: 56px; }
.ch-more-item:nth-child(4) { bottom: 5px; }
.ch-more.open .ch-more-item { opacity: 1; transform: none; pointer-events: auto; transition: opacity .24s ease .13s, transform .32s cubic-bezier(.22, 1, .36, 1) .13s; }
.ch-more.open .ch-more-item:nth-child(3) { transition-delay: .19s, .19s; }
.ch-more-item:active { background: var(--color-primary-tint); }
.ch-more-item .ic { color: var(--color-navy); flex: none; }

.ch-more-item span { position: relative; top: 0.5px; }
@media (prefers-reduced-motion: reduce) { .ch-more-morph, .ch-more-face, .ch-more-item { transition: none; } }


.page { overflow-x: clip; }


@media (max-width: 767px) {
  body[data-page="ai"] .page { padding-left: 10px; padding-right: 10px; }
  .chat-thread { padding-left: 12px; padding-right: 12px; }
}


@media (max-width: 767px) { .chat-head { border-bottom: none; } }


.hist-drop { display: none; }
@media (min-width: 1024px) {
  .chat-area { position: relative; }
  .hist-drop { display: block; position: absolute; top: 44px; left: 50%; right: auto; transform: translateX(-50%); width: min(100%, 768px); z-index: var(--z-dropdown); background: #fff; border: 1px solid var(--color-line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; padding: 6px 0; animation: fade-in .15s ease-out both; }
}


.hist-drawer { display: none; }
@media (max-width: 1023px) {
  .hist-drawer { position: fixed; top: calc(49px + env(safe-area-inset-top)); bottom: calc(64px + env(safe-area-inset-bottom)); left: 0; right: 0; z-index: var(--z-drawer); background: #fff; flex-direction: column; }
  .hist-drawer.open { display: flex; animation: fade-in .18s ease-out both; }
}
.hist-drawer .hd-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--color-line); flex: none; }
.hist-drawer .hd-title { font-size: var(--fs-14); }
.hist-drawer .hd-list { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 0 12px; }
@media (min-width: 1024px) { .hist-drawer { display: none !important; } }


.hs-group { padding: 10px 16px 4px; font-weight: 600; }
.hs-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; cursor: pointer; border-left: 2px solid transparent; }
.hs-item:hover { background: var(--color-primary-tint); }
.hs-item.cur { border-left-color: var(--color-navy); background: var(--color-primary-tint); }
.hs-main { flex: 1; min-width: 0; }
.hs-l1 { display: flex; align-items: center; gap: 6px; }
.hs-title { font-weight: 600; font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-cur { flex: none; font-size: 11px; color: var(--color-green, #16a34a); font-weight: 600; }
.hs-meta { margin-top: 2px; }
.hs-prev { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-acts { display: flex; gap: 2px; flex: none; opacity: 0; }
.hs-item:hover .hs-acts, .hist-drawer .hs-acts { opacity: 1; }
.hs-act { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; background: none; border-radius: 8px; color: var(--color-ink-2); cursor: pointer; }
.hs-act:hover { background: #fff; color: var(--color-ink); }
.hs-del:hover { color: var(--color-red, #dc2626); }
.hs-rename { height: 28px; padding: 2px 8px; font-size: var(--fs-14); flex: 1; }
.hs-empty { padding: 28px 16px; text-align: center; }
.hs-loading { padding: 12px 16px; }
.hs-badge { margin-left: 6px; }


.hist-divider { text-align: center; font-size: 11px; color: var(--color-ink-2); margin: 14px 0 10px; }
.hist-card-note { align-self: flex-start; margin: 2px 0; }


.cont-bar { display: flex; align-items: center; gap: 4px; margin: 0 var(--sp-4) var(--sp-2); background: var(--color-primary-tint); border-radius: var(--r-btn); padding: 4px 6px 4px 12px; }
.cont-bar .cb-go { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; border: none; background: none; color: var(--color-navy); font-size: var(--fs-12); font-weight: 600; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
.cont-bar .cb-x { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: none; background: none; color: var(--color-ink-2); border-radius: 6px; cursor: pointer; }
.cont-bar .cb-x:hover { color: var(--color-ink); }



.pp-anchor { position: relative; }
.pp-count { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--color-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff; animation: ppPulse 240ms cubic-bezier(.25,.6,.3,1) 1 both; pointer-events: none; }
@keyframes ppPulse { 0% { transform: scale(.6); opacity: 0; } 55% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }

.drawer-sub.pp-anchor .pp-count { position: static; margin-left: 2px; }

.ch-more-item .pp-count { position: static; position: relative; top: 0.5px; }

.pp-bubble { position: fixed; z-index: 120; display: inline-flex; align-items: center; gap: 6px; max-width: min(320px, 86vw);
  padding: 8px 12px; background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06));
  color: var(--color-navy); font-size: var(--fs-12); font-weight: 600; text-decoration: none; white-space: nowrap;
  animation: ppRise 200ms cubic-bezier(.25,.6,.3,1) 1 both; }
.pp-bubble > span { overflow: hidden; text-overflow: ellipsis; }
@keyframes ppRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pp-bubble.pp-out { opacity: 0; transition: opacity 160ms ease; pointer-events: none; }

.pp-chip { display: inline-flex; align-items: center; margin-right: 8px; padding: 1px 8px; border-radius: 10px;
  background: var(--c-gold-tint); color: var(--c-gold-deep); font-size: 10px; font-weight: 600; vertical-align: 1px; }

.ai-pp-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 14px; border-radius: 16px;
  background: var(--c-sky-tint); color: var(--color-navy); font-size: var(--fs-12); font-weight: 600; text-decoration: none; }
.ai-pp-pill[hidden] { display: none; }
.ai-pp-pill:hover { background: #d8ecfa; }

.notif-link { color: var(--color-navy); text-decoration: underline; word-break: break-all; }
@media (prefers-reduced-motion: reduce) { .pp-count, .pp-bubble { animation: none !important; } .pp-bubble.pp-out { transition: none; } }


.cal-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0;  z-index: 320; display: flex; align-items: center; justify-content: center; background: rgba(120, 120, 128, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cal-in .2s ease both; }
@keyframes cal-in { from { opacity: 0; } to { opacity: 1; } }
.cal { width: min(316px, calc(100vw - 48px)); background: #fff; border-radius: 16px; box-shadow: 0 16px 44px rgba(16, 24, 81, .24); padding: 14px 16px 16px; animation: cal-pop .26s cubic-bezier(.22, 1.18, .36, 1) both; }
@keyframes cal-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-ym { display: inline-flex; align-items: baseline; gap: 3px; font-size: 15px; font-weight: 700; }
.cal-ym i { font-style: normal; font-size: 12px; color: var(--color-ink-2); font-weight: 400; }
.cal-y, .cal-m { font: inherit; border: none; background: none; cursor: pointer; padding: 2px 6px; border-radius: 6px; color: var(--color-ink); transition: background-color .12s ease; }
.cal-y:hover, .cal-m:hover { background: var(--color-primary-tint); }
.cal-nav { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--color-line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--color-ink-2); transition: background-color .12s ease, color .12s ease; }
.cal-nav:hover { background: var(--color-primary-tint); color: var(--color-navy); }
.cal-edit { width: 58px; font: inherit; font-weight: 700; border: none; border-bottom: 2px solid var(--color-navy); outline: none; text-align: center; background: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wk { text-align: center; font-size: 11px; color: var(--color-ink-2); padding: 4px 0 8px; }
.cal-grid button { aspect-ratio: 1; border: none; background: none; border-radius: 8px; font-size: 13px; font-family: var(--font-mono); color: var(--color-ink); cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.cal-grid button:hover { background: var(--color-primary-tint); }
.cal-grid button.today { color: var(--color-navy); font-weight: 700; box-shadow: inset 0 0 0 1px var(--color-navy); }
.cal-grid button.sel { background: var(--color-navy); color: #fff; font-weight: 700; }

.cal.cal-time { width: min(336px, calc(100vw - 40px)); }
.cal-timerow { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--color-line); }
.cal-timerow i { font-style: normal; font-size: 12px; color: var(--color-ink-2); padding: 0 4px 0 1px; }
.cal-t { font: inherit; font-family: var(--font-mono); font-size: 15px; font-weight: 700; border: none; background: none; cursor: pointer; padding: 3px 8px; border-radius: 6px; color: var(--color-ink); transition: background-color .12s ease; }
.cal-t:hover { background: var(--color-primary-tint); }
.cal-timerow .cal-edit { width: 44px; padding: 3px 0; font-size: 15px; }
.cal-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cal-foot .grow { flex: 1; }
.cal-quick, .cal-cancel { font: inherit; font-size: 13px; border: 1px solid var(--color-line); background: #fff; color: var(--color-ink-2); cursor: pointer; padding: 6px 12px; border-radius: 8px; transition: background-color .12s ease, color .12s ease; }
.cal-quick:hover, .cal-cancel:hover { background: var(--color-surface); color: var(--color-ink); }
.cal-ok { font: inherit; font-size: 13px; font-weight: 600; border: none; background: var(--color-navy); color: #fff; cursor: pointer; padding: 6px 18px; border-radius: 8px; transition: background-color .12s ease; }
.cal-ok:hover { background: var(--color-primary); }
@media (prefers-reduced-motion: reduce) { .cal-mask, .cal { animation: none; } }


.btn[hidden] { display: none; }


.tool-embed { margin: 8px 0 4px; padding: 14px 16px 16px; background: #fff; border: 1px solid var(--color-line); border-radius: 12px; max-width: 100%; overflow-x: hidden; }
.tool-embed[hidden] { display: none; }
.tool-embed > h1 { font-size: 18px; margin: 0 0 10px; }
.tool-embed .section-title { margin-top: 14px; }
.tool-embed .section-title h2 { font-size: 15px; }
.tool-embed .tc-duo { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .tool-embed { padding: 12px 12px 14px; border-radius: 10px; }
  .tool-embed .card { padding: 12px 14px; }
  .tool-embed .md-table-wrap, .tool-embed .table { font-size: 12px; }
}


.sol-lines { margin: 10px 0 2px; border: 1px solid var(--color-line); border-radius: 10px; padding: 4px 12px; background: var(--color-surface); }
.sol-line { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--color-line); font-size: 13px; }
.sol-line:last-child { border-bottom: none; }
.sol-pct { min-width: 44px; color: var(--color-navy); font-weight: 600; }
.sol-name i { font-style: normal; margin-left: 8px; }
.sol-total { font-weight: 600; }


@media (max-width: 768px) {
  .tc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .tc-result .kv:first-child { grid-column: 1 / -1; }
}


.modal .np-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.modal .np-head h2 { margin: 0; }
.np-x { flex: none; border: 0; background: var(--color-surface); border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--color-ink-2); cursor: pointer; padding: 0; }
.np-x:hover { background: var(--color-primary-tint); color: var(--color-navy); }
.np-hint { margin: 8px 0 4px; }
.np-list { margin: 4px calc(-1 * var(--sp-6)) 0; }
.np-row { display: flex; align-items: center; gap: 12px; padding: 13px var(--sp-6); border-top: 1px solid var(--color-line); cursor: pointer; }
.np-row:first-child { border-top: none; }
.np-row:active { background: var(--color-surface); }
.np-row .nt-ico { width: 28px; height: 28px; border-radius: 9px; margin-top: 0; }
.np-row .np-name { flex: 1; min-width: 0; font-size: 14px; }


.proc-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px 24px 20px; width: 100%; max-width: 340px; text-align: center; animation: proc-in .22s ease both; }
@keyframes proc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.proc-spin { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--color-primary-tint); border-top-color: var(--color-navy); animation: proc-rot .8s linear infinite; }
.proc-spin.sm { width: 15px; height: 15px; border-width: 2px; vertical-align: -3px; margin-right: 7px; }
@keyframes proc-rot { to { transform: rotate(360deg); } }
.proc-title { font-weight: 600; font-size: 15px; margin-top: 14px; }
.proc-hint { font-size: 12.5px; color: var(--color-ink-2); margin-top: 6px; }
.proc-steps { margin-top: 14px; text-align: left; border-top: 1px solid var(--color-line); padding-top: 10px; }
.proc-step { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: 13px; color: var(--color-ink-2); }
.proc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-line); flex: none; }
.proc-step.on { color: var(--color-navy); font-weight: 500; }
.proc-step.on .proc-dot { background: var(--color-navy); animation: proc-pulse 1s ease infinite; }
.proc-step.done .proc-dot { background: #059669; }
@keyframes proc-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .proc-spin { animation-duration: 1.6s; }
  .proc-card { animation: none; }
  .proc-step.on .proc-dot { animation: none; }
}


.apk-hero { margin: 8px 0 20px; border-radius: 20px; background: linear-gradient(135deg, #1E2A78 0%, #2B3CA0 55%, #1E2A78 100%); color: #fff; overflow: hidden; }
.apk-hero-in { display: flex; align-items: center; gap: 28px; padding: 34px 36px; }
.apk-icon { width: 96px; height: 96px; border-radius: 24px; background: #fff; padding: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); flex: none; }
.apk-hero-txt h1 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.apk-hero-txt p { color: rgba(255, 255, 255, .82); margin: 0 0 18px; max-width: 560px; line-height: 1.7; }
.apk-dl-btn { background: #fff; color: #1E2A78; border: 0; font-weight: 600; padding: 12px 26px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.apk-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.apk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apk-card { margin: 0; padding: 22px 24px; }
.apk-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.apk-kv:last-of-type { border-bottom: none; }
.apk-vc { color: var(--color-ink-2); font-weight: 400; font-size: 12.5px; }
.apk-sha { margin-top: 4px; } 
.apk-sha .lb { display: block; color: var(--color-ink-2); font-size: 12.5px; margin-bottom: 6px; }
.apk-sha-row { display: flex; align-items: center; gap: 10px; }
.apk-sha-row code { flex: 1; min-width: 0; font-size: 11.5px; word-break: break-all; background: var(--color-surface); border-radius: 8px; padding: 8px 10px; color: var(--color-ink-2); }
.apk-h2 { display: flex; align-items: center; gap: 7px; font-size: 16px; margin: 0 0 12px; }
.apk-steps { list-style: none; margin: 0; padding: 0; }
.apk-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 14px; line-height: 1.6; }
.apk-step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--color-primary-tint); color: var(--color-navy); font-weight: 600; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.apk-sec { margin-top: 16px; padding: 18px 24px; }
.apk-sec p { margin: 0; font-size: 13.5px; line-height: 1.8; }
@media (max-width: 820px) {
  .apk-hero-in { flex-direction: column; text-align: center; padding: 28px 20px; gap: 18px; }
  .apk-hero-txt p { margin-left: auto; margin-right: auto; } 
  .apk-hero-txt h1 { font-size: 22px; }
  .apk-icon { width: 76px; height: 76px; }
  .apk-grid { grid-template-columns: 1fr; }
  .apk-dl-btn { width: 100%; justify-content: center; }
}


.dl-hero .apk-hero-txt p { margin-bottom: 0; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
@media (min-width: 1081px) {
  .dl-grid { grid-template-columns: repeat(3, 1fr); }
}
.dl-grid.dl-grid-cards { grid-template-columns: 1fr; } 
.dl-card { margin: 0; padding: 18px 22px 16px; display: flex; flex-direction: column; }
.dl-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.dl-pf-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--color-primary-tint); color: var(--color-navy); }
.dl-pf-ico svg { width: 26px; height: 26px; }
.dl-card-t { flex: 1; min-width: 0; }
.dl-card-t b { font-size: 16px; line-height: 1.3; }
.dl-pf-sub { display: block; color: var(--color-ink-2); font-size: 12.5px; margin-top: 3px; }

.dl-kv-flow { display: flex; flex-wrap: wrap; column-gap: 28px; padding: 2px 0 2px; }
.dl-kv-flow .apk-kv { display: inline-flex; align-items: baseline; gap: 8px; border-bottom: none; padding: 5px 0; font-size: 13.5px; }
.dl-card .apk-kv { font-size: 13.5px; padding: 8px 0; }

.dl-card-head .dl-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-basis: 100%; margin: 8px 0 0; }
@media (min-width: 821px) {
  .dl-card-head .dl-actions { flex-basis: auto; margin: 0 0 0 auto; align-self: center; justify-content: flex-end; }
}
.dl-card-head .dl-actions .btn { flex: 0 1 auto; justify-content: center; min-height: 44px; }
.dl-note { margin: 10px 0 0; font-size: 12px; color: var(--color-ink-2); line-height: 1.65; }
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-kv-flow { column-gap: 18px; }
  .dl-card-head .dl-actions { flex-direction: column; }
  .dl-card-head .dl-actions .btn { flex: 1 1 auto; width: 100%; }
}


.dl-hero { margin: 8px 0 14px; border-radius: 16px; padding: 0; } 
.dl-hero .apk-hero-in { flex-direction: row; text-align: left; padding: 14px 20px; gap: 16px; }
.dl-hero .apk-icon { width: 54px; height: 54px; border-radius: 14px; padding: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.dl-hero .apk-hero-txt h1 { font-size: 19px; margin: 0 0 2px; line-height: 1.35; }
.dl-hero .apk-hero-txt p { font-size: 13px; line-height: 1.5; margin: 0; max-width: 640px; }
@media (max-width: 820px) {
  .dl-hero .apk-hero-in { padding: 12px 14px; gap: 13px; }
  .dl-hero .apk-icon { width: 46px; height: 46px; border-radius: 12px; padding: 4px; }
  .dl-hero .apk-hero-txt h1 { font-size: 17px; }
  .dl-hero .apk-hero-txt p { font-size: 12.5px; }
}


.l-expired {
  display: flex; align-items: center; gap: 7px;
  margin: -10px 0 14px; padding: 9px 12px; 
  border-radius: 10px; background: rgba(234, 149, 37, 0.12); color: #8a5a10;
  font-size: 13px; line-height: 1.45;
}
.l-expired svg { flex: none; }


.upd-card { max-width: 360px; }
.upd-h { font-size: 17px; margin: 0 0 16px; }
.upd-checking { display: flex; align-items: center; gap: 10px; justify-content: center; min-height: 72px; color: var(--color-ink-2, #475569); font-size: 14px; }
.upd-ok { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.upd-ok-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(34, 154, 22, .12); color: #1F7A14; }
.upd-ok-t { font-weight: 650; font-size: 15px; margin-bottom: 3px; }
.upd-found { background: linear-gradient(135deg, rgba(30, 42, 120, .06), rgba(53, 71, 158, .10)); border: 1px solid rgba(30, 42, 120, .14); border-radius: 14px; padding: 14px 16px; }
.upd-badge { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: .4px; color: var(--color-navy, #1E2A78); background: rgba(30, 42, 120, .10); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.upd-ver { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.upd-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; }
.upd-kv span:nth-child(odd) { color: var(--color-ink-2, #64748b); }
.upd-err { background: rgba(234, 149, 37, .12); color: #8a5a10; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.55; }
.upd-actions { display: flex; gap: 10px; margin-top: 18px; }
.upd-actions .btn { flex: 1; }
.upd-dl-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 14px; } 
.upd-bar { height: 8px; border-radius: 999px; background: rgba(30, 42, 120, .10); overflow: hidden; }
.upd-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #1E2A78, #35479E); transition: width .25s linear; }
.upd-dl-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--color-ink-2, #64748b); font-variant-numeric: tabular-nums; }
.upd-dl-meta #upd-pct { font-weight: 700; color: var(--color-navy, #1E2A78); font-size: 13px; }


.upd-force { position: fixed; top: 0; right: 0; bottom: 0; left: 0;  z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, rgba(16, 24, 81, .97), rgba(30, 42, 120, .97)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.upd-force-card { background: #fff; border-radius: 18px; max-width: 380px; width: 100%; padding: 26px 22px 22px; box-shadow: 0 24px 64px rgba(6, 10, 40, .5); }
.upd-force-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(30, 42, 120, .10); color: var(--color-navy, #1E2A78); margin-bottom: 12px; }
.upd-force-card h3 { font-size: 19px; margin: 0 0 8px; }
.upd-force-card p { font-size: 13.5px; line-height: 1.65; margin: 0 0 14px; }
.upd-force-card .upd-kv { background: rgba(30, 42, 120, .05); border-radius: 12px; padding: 10px 12px; }



.fd-h1 { margin: 0 0 var(--sp-4); }
.fd-h1 .fd-risk { margin-left: 8px; vertical-align: 3px; }

.fd-navrow { flex-wrap: nowrap !important; }
.fd-navrow > div:first-child { min-width: 0; }
.fd-navrow > div:last-child { flex: none; max-width: 54%; font-size: 12.5px; line-height: 1.55; }
@media (max-width: 380px) {
  .fd-navrow > div:last-child { font-size: 11.5px; max-width: 50%; }
  .fd-navrow .total { font-size: 26px !important; }
}

.ch-more-face svg { display: block; }


.ph-cc { flex: none; width: 58px; text-align: center; background: var(--color-bg-2, #F1F5F9); color: var(--color-ink-2, #64748b); font-size: 14px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.ph-banner { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(234, 90, 37, .08); border: 1px solid rgba(234, 90, 37, .25); color: #B54708; font-size: 13px; }
.ph-banner svg { flex: none; color: #C2410C; }
.ph-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(30, 42, 120, .05); } 
.ph-switch-btn { border: none; background: none; color: var(--color-navy, #1E2A78); font-weight: 600; cursor: pointer; font-size: 12.5px; text-decoration: underline; padding: 0; }
