:root
{
    color-scheme:light dark;
    --canvas:#f7f8f5;
    --surface:#ffffff;
    --surface-soft:#f0f3ee;
    --text:#22372d;
    --muted:#68796e;
    --faint:#839087;
    --line:#e8ece5;
    --accent:#276747;
    --accent-soft:#eaf2e9;
    --hero:#173c2b;
    --mint:#d8edb8;
    --warning:#936b22;
    --warning-soft:#faf0dc;
    --danger:#b24b46;
    --danger-soft:#f9eae7;
    --ease-out:cubic-bezier(0.23,1,0.32,1);
    --ease-in-out:cubic-bezier(0.77,0,0.175,1);
    --shadow:0 1px 2px rgb(24 47 30 / 3%),0 4px 18px rgb(24 47 30 / 2%);
}

*,
*::before,
*::after
{
    box-sizing:border-box;
}

[hidden]
{
    display:none !important;
}

html
{
    -webkit-tap-highlight-color:transparent;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
    scroll-padding-top:90px;
    overscroll-behavior-y:none;
}

body
{
    margin:0;
    background:var(--canvas);
    color:var(--text);
    font-family:Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    font-size:14px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
}

button,
input
{
    font:inherit;
}

button,
a,
summary
{
    touch-action:manipulation;
}

button,
summary
{
    -webkit-user-select:none;
    user-select:none;
}

button
{
    cursor:pointer;
    color:inherit;
}

a
{
    color:inherit;
    text-decoration:none;
}

button:disabled
{
    cursor:not-allowed;
    opacity:0.48;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible
{
    outline:3px solid var(--accent);
    outline-offset:4px;
}

button,
a,
input,
summary
{
    -webkit-tap-highlight-color:transparent;
}

button:active:not(:disabled),
.brand:active,
.mobile-brand:active
{
    transform:scale(0.97);
}

h1,
h2,
h3,
p,
dl,
dd
{
    margin:0;
}

h1,
h2,
h3
{
    font-weight:650;
    line-height:1.4;
    text-wrap:balance;
}

h1
{
    font-size:25px;
    letter-spacing:-0.9px;
}

h2
{
    font-size:17px;
    letter-spacing:-0.35px;
}

h3
{
    font-size:15px;
}

svg
{
    flex-shrink:0;
}

.icon
{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.65;
    stroke-linecap:round;
    stroke-linejoin:round;
}

button:focus-visible:active:not(:disabled)
{
    transform:none;
}

.switch:focus-visible span
{
    transition:none;
}

.icon-library
{
    position:absolute;
    width:0;
    height:0;
    overflow:hidden;
    pointer-events:none;
}

.numeric,
.mono
{
    font-variant-numeric:tabular-nums;
}

.mono
{
    font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

.muted,
.subtle-label
{
    color:var(--muted);
    font-size:12px;
}

.value-wrap
{
    overflow-wrap:anywhere;
    min-width:0;
}

.skip-link
{
    position:fixed;
    left:16px;
    top:-80px;
    padding:12px 20px;
    z-index:100;
    background:var(--surface);
}

.skip-link:focus
{
    top:12px;
}

.sidebar
{
    display:none;
}

.brand,
.mobile-brand
{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:44px;
    font-weight:650;
    font-size:19px;
    line-height:1.25;
    transition:transform 140ms var(--ease-out);
}

.brand-symbol
{
    display:grid;
    place-items:center;
    width:37px;
    height:37px;
    border-radius:11px;
    background:var(--accent);
    color:#fff;
}

.brand-symbol .icon
{
    width:25px;
    height:25px;
}

.brand-caption,
.mobile-brand-caption
{
    display:block;
    color:var(--muted);
    font-size:9px;
    font-weight:500;
    letter-spacing:1.4px;
    margin-top:5px;
}

.mobile-brand
{
    font-size:16px;
    gap:9px;
}

.mobile-brand-caption
{
    font-size:10px;
    letter-spacing:0.5px;
    margin-top:3px;
}

.mobile-brand .brand-symbol
{
    width:34px;
    height:34px;
    border-radius:10px;
}

.app-shell
{
    min-height:100dvh;
}

.topbar
{
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:70px;
    padding:calc(9px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) 9px max(18px,env(safe-area-inset-left,0px));
    background:var(--canvas);
    border-bottom:1px solid var(--line);
}

.breadcrumb
{
    display:none;
    color:var(--muted);
    font-size:12px;
}

.breadcrumb-divider
{
    margin:0 14px;
    color:var(--faint);
}

#breadcrumbCurrent
{
    color:var(--text);
}

.topbar-actions
{
    display:flex;
    align-items:center;
    gap:5px;
}

.topbar-actions form
{
    display:flex;
}

.connection-status
{
    display:flex;
    align-items:center;
    gap:6px;
    color:var(--muted);
    font-size:11px;
    white-space:nowrap;
}

.status-dot
{
    display:inline-block;
    flex-shrink:0;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--faint);
}

[data-state="online"] .status-dot,
[data-state="valid"] .status-dot
{
    background:#75a779;
}

[data-state="offline"] .status-dot,
[data-state="expired"] .status-dot
{
    background:#d89870;
}

.icon-button
{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    min-width:44px;
    height:44px;
    padding:0;
    border:0;
    border-radius:11px;
    background:transparent;
    color:var(--muted);
    transition:transform 140ms var(--ease-out);
}

.main-content
{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:28px max(18px,env(safe-area-inset-right,0px)) calc(100px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
}

.page-heading
{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:24px;
}

.eyebrow
{
    margin-bottom:9px;
    color:var(--muted);
    font-size:9px;
    font-weight:600;
    letter-spacing:2px;
}

.page-description
{
    margin-top:10px;
    color:var(--muted);
    font-size:12px;
}

.heading-action
{
    flex-shrink:0;
    width:44px;
    padding:0 !important;
}

.heading-action span
{
    display:none;
}

.button
{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:46px;
    padding:11px 18px;
    border:1px solid transparent;
    border-radius:10px;
    font-size:13px;
    font-weight:600;
    line-height:1.4;
    transition:transform 140ms var(--ease-out),opacity 160ms var(--ease-out);
}

.button .icon
{
    width:18px;
    height:18px;
}

.button-primary
{
    background:var(--accent);
    color:#fff;
}

.button-quiet
{
    background:var(--surface);
    border-color:var(--line);
    color:var(--text);
}

.button-mint
{
    background:var(--mint);
    color:#1c412c;
    border:0;
    min-height:44px;
    padding:10px 15px;
}

.overview-grid,
.metrics-grid
{
    display:grid;
    gap:14px;
}

.credential-hero
{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    display:flex;
    flex-direction:column;
    min-height:260px;
    padding:23px;
    border-radius:18px;
    background:var(--hero);
    color:#fff;
}

.hero-topline,
.hero-bottom,
.panel-topline
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.hero-topline,
.hero-content,
.hero-bottom
{
    position:relative;
    z-index:1;
}

.hero-label
{
    color:#c1d1c4;
    font-size:12px;
    letter-spacing:0.5px;
}

.status-badge
{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    border-radius:6px;
    font-size:10px;
    line-height:1.6;
}

.hero-badge
{
    background:rgb(255 255 255 / 9%);
    color:#e0ebd9;
}

.hero-content
{
    padding:30px 0 28px;
}

.hero-content h2
{
    font-size:28px;
    letter-spacing:-0.8px;
}

.hero-content p
{
    max-width:290px;
    margin-top:10px;
    color:#b6c9bc;
    font-size:12px;
}

.hero-bottom
{
    margin-top:auto;
}

.hero-provider
{
    display:flex;
    align-items:center;
    gap:6px;
    color:#c7d9cc;
    font-size:10px;
    white-space:nowrap;
}

.provider-dot
{
    width:6px;
    height:6px;
    background:#c5e9a8;
    border-radius:50%;
}

.hero-separator
{
    height:10px;
    width:1px;
    background:rgb(255 255 255 / 22%);
    margin:0 2px;
}

.hero-decoration
{
    position:absolute;
    width:225px;
    height:225px;
    top:7px;
    right:-104px;
    color:rgb(216 237 184 / 12%);
    z-index:0;
    pointer-events:none;
}

.hero-decoration span,
.story-art span
{
    position:absolute;
    inset:0;
    border:1px solid currentColor;
    border-radius:50%;
}

.hero-decoration span:nth-child(2),
.story-art span:nth-child(2)
{
    inset:28px;
}

.hero-decoration span:nth-child(3),
.story-art span:nth-child(3)
{
    inset:56px;
}

.hero-decoration .icon
{
    position:absolute;
    width:52px;
    height:52px;
    top:87px;
    left:87px;
}

.panel
{
    min-width:0;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
}

.auto-panel
{
    padding:22px;
}

.feature-symbol,
.small-symbol,
.login-lock
{
    display:inline-grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:11px;
    background:var(--accent-soft);
    color:var(--accent);
}

.auto-panel h2
{
    margin:17px 0 5px;
}

.switch
{
    position:relative;
    width:54px;
    height:44px;
    padding:0;
    border:0;
    background:transparent;
    flex-shrink:0;
}

.switch::before
{
    content:"";
    position:absolute;
    left:1px;
    top:9px;
    width:50px;
    height:28px;
    border-radius:20px;
    background:var(--line);
}

.switch span
{
    position:absolute;
    top:12px;
    left:4px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 3px rgb(0 0 0 / 12%);
    transition:transform 180ms var(--ease-out);
}

.switch[aria-checked="true"]::before
{
    background:var(--accent);
}

.switch[aria-checked="true"] span
{
    transform:translateX(22px);
}

.auto-details
{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:11px;
    color:var(--muted);
    font-size:12px;
}

.auto-details:first-of-type
{
    margin-top:20px;
}

.auto-details strong
{
    color:var(--text);
    font-size:12px;
    font-weight:500;
}

.text-button
{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    margin-top:8px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--accent);
    font-size:12px;
    font-weight:600;
    transition:transform 140ms var(--ease-out);
}

.text-button .icon
{
    width:15px;
    height:15px;
}

.section-heading
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:28px 0 13px;
}

.section-heading h2
{
    font-size:14px;
}

.section-heading > span
{
    color:var(--muted);
    font-size:10px;
}

.metrics-grid
{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.metric-panel
{
    padding:17px 15px 13px;
}

.metric-label
{
    display:flex;
    flex-direction:column;
    gap:3px;
    font-size:12px;
}

.metric-code
{
    color:var(--faint);
    font-size:8px;
    letter-spacing:0.6px;
}

.metric-value
{
    display:flex;
    align-items:baseline;
    gap:5px;
    margin:16px 0;
    font-size:26px;
    font-weight:600;
    line-height:1.15;
    letter-spacing:-1px;
    white-space:nowrap;
}

.metric-unit
{
    font-size:10px;
    font-weight:400;
    color:var(--muted);
    letter-spacing:0;
}

#accessRemaining .metric-unit
{
    display:none;
}

.meter-track
{
    height:4px;
    overflow:hidden;
    background:var(--surface-soft);
    border-radius:3px;
}

.meter-fill
{
    display:block;
    width:100%;
    height:100%;
    background:#789c72;
    transform:scaleX(0);
    transform-origin:left;
    transition:transform 220ms var(--ease-out);
}

[data-state="warning"] .meter-fill
{
    background:#c69e53;
}

[data-state="expired"] .meter-fill
{
    background:#ba7163;
}

.metric-footer
{
    display:flex;
    justify-content:space-between;
    gap:5px;
    margin-top:10px;
    color:var(--muted);
    font-size:9px;
}

.metric-footer .icon
{
    width:13px;
    height:13px;
}

.account-panel
{
    margin-top:18px;
    padding:21px;
}

.panel-heading
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.panel-heading h2
{
    font-size:15px;
}

.panel-heading .muted
{
    margin-top:4px;
    font-size:11px;
}

.file-tag
{
    display:flex;
    align-items:center;
    gap:5px;
    color:var(--muted);
    font-size:10px;
}

.file-tag .icon
{
    width:13px;
    height:13px;
}

.account-details
{
    margin-top:12px;
}

.account-row
{
    padding:15px 0;
    border-bottom:1px solid var(--line);
}

.account-row dt
{
    display:flex;
    align-items:baseline;
    gap:10px;
    font-size:11px;
    color:var(--muted);
}

.account-row dt span
{
    font-size:8px;
    letter-spacing:0.6px;
}

.account-row dd
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:35px;
    font-size:12px;
}

.account-row dd .subtle-label
{
    flex-shrink:0;
    font-size:9px;
}

.account-row .icon-button
{
    margin-right:-10px;
}

.account-row .icon-button .icon
{
    width:16px;
    height:16px;
}

.storage-details summary,
.mobile-help summary
{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:46px;
    list-style:none;
    color:var(--muted);
    font-size:11px;
    cursor:pointer;
}

summary::-webkit-details-marker
{
    display:none;
}

summary .icon
{
    width:14px;
    height:14px;
}

details[open] > summary .icon
{
    transform:rotate(90deg);
}

.storage-details dl
{
    padding:8px 12px;
    background:var(--surface-soft);
    border-radius:8px;
    font-size:11px;
}

.storage-details dl > div
{
    display:flex;
    align-items:flex-start;
    padding:5px 0;
}

.storage-details dt
{
    flex-shrink:0;
    color:var(--muted);
}

.page-footnote
{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:22px;
    color:var(--muted);
    font-size:10px;
}

.page-footnote .icon
{
    width:12px;
    height:12px;
}

.bottom-nav
{
    position:fixed;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    bottom:0;
    left:0;
    right:0;
    z-index:30;
    padding:6px max(20px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));
    background:var(--surface);
    border-top:1px solid var(--line);
}

.bottom-nav-item
{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:52px;
    border:0;
    background:transparent;
    color:var(--faint);
    font-size:10px;
    transition:transform 140ms var(--ease-out);
}

.bottom-nav-item .icon
{
    box-sizing:content-box;
    padding:3px 15px;
    border-radius:8px;
}

.bottom-nav-item.is-active
{
    color:var(--accent);
    font-weight:650;
}

.bottom-nav-item.is-active .icon
{
    background:var(--accent-soft);
}

.scan-layout
{
    display:grid;
    gap:25px;
}

.scan-panel
{
    padding:22px 18px 12px;
}

.scan-steps
{
    display:flex;
    justify-content:space-between;
    gap:8px;
    list-style:none;
    padding:0;
    margin:0 0 27px;
}

.scan-steps li
{
    display:flex;
    align-items:center;
    gap:5px;
    color:var(--muted);
    font-size:10px;
    white-space:nowrap;
}

.scan-steps li > span
{
    display:grid;
    place-items:center;
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--surface-soft);
    font-size:9px;
}

.scan-steps[data-step="1"] li:first-child,
.scan-steps[data-step="2"] li:nth-child(-n+2),
.scan-steps[data-step="3"] li
{
    color:var(--accent);
}

.scan-steps[data-step="1"] li:first-child > span,
.scan-steps[data-step="2"] li:nth-child(-n+2) > span,
.scan-steps[data-step="3"] li > span
{
    background:var(--accent-soft);
    color:var(--accent);
}

.qr-surface
{
    position:relative;
    display:grid;
    place-items:center;
    width:min(100%,252px);
    aspect-ratio:1;
    margin:0 auto;
    border:1px solid var(--line);
    border-radius:15px;
    background:var(--surface-soft);
    overflow:hidden;
}

.qr-placeholder,
.qr-overlay
{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:8px;
    padding:18px;
    text-align:center;
    color:var(--muted);
    font-size:11px;
}

.qr-symbol
{
    display:grid;
    place-items:center;
    width:64px;
    height:64px;
    margin-bottom:10px;
    border-radius:18px;
    background:var(--surface);
    box-shadow:var(--shadow);
    color:var(--accent);
}

.qr-symbol .icon
{
    width:31px;
    height:31px;
    stroke-width:1.35;
}

.qr-placeholder strong,
.qr-overlay strong
{
    color:var(--text);
    font-size:14px;
    font-weight:500;
}

.qr-image
{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:15px;
    background:#fff;
}

.qr-overlay
{
    position:absolute;
    inset:0;
    background:var(--surface-soft);
    opacity:0.98;
}

.scan-status
{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:23px;
    font-size:13px;
}

.scan-status strong
{
    font-weight:500;
}

.scan-hint
{
    margin-top:5px;
    min-height:20px;
    color:var(--muted);
    font-size:11px;
    text-align:center;
}

.scan-actions
{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin:19px 0 10px;
}

.scan-actions .button-primary
{
    flex:1;
    max-width:252px;
}

.mobile-help
{
    margin-top:18px;
    border-top:1px solid var(--line);
}

.mobile-help p
{
    padding:0 0 12px;
    color:var(--muted);
    font-size:12px;
    line-height:1.9;
}

.scan-notes
{
    padding:8px 8px 0;
}

.scan-notes h2
{
    margin:15px 0 7px;
}

.scan-notes > p
{
    color:var(--muted);
    font-size:12px;
}

.connection-notes
{
    margin:25px 0 0;
    padding:0;
    list-style:none;
}

.connection-notes li
{
    display:flex;
    gap:15px;
    margin-bottom:25px;
}

.connection-notes li > span
{
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:25px;
    height:25px;
    border:1px solid var(--line);
    border-radius:50%;
    color:var(--muted);
    font-size:11px;
}

.connection-notes h3
{
    font-size:13px;
    font-weight:600;
}

.connection-notes p
{
    margin-top:5px;
    color:var(--muted);
    font-size:12px;
    line-height:1.9;
}

.activity-panel
{
    padding:21px;
    min-height:380px;
}

.activity-heading
{
    display:flex;
    align-items:center;
    gap:9px;
}

.count-badge
{
    display:grid;
    place-items:center;
    min-width:23px;
    height:21px;
    padding:0 6px;
    border-radius:5px;
    background:var(--surface-soft);
    color:var(--muted);
    font-size:10px;
}

.empty-state
{
    display:flex;
    align-items:center;
    flex-direction:column;
    padding:48px 12px 32px;
    text-align:center;
}

.empty-symbol
{
    display:grid;
    place-items:center;
    width:60px;
    height:60px;
    margin-bottom:18px;
    border-radius:17px;
    color:var(--muted);
    background:var(--surface-soft);
}

.empty-symbol .icon
{
    width:26px;
    height:26px;
}

.empty-state p
{
    margin-top:9px;
    color:var(--muted);
    font-size:12px;
    line-height:1.9;
}

.empty-state .button
{
    margin-top:22px;
}

.activity-list
{
    padding:0;
    margin:22px 0 0;
    list-style:none;
}

.activity-item
{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:17px 0;
    border-top:1px solid var(--line);
}

.activity-marker
{
    width:8px;
    height:8px;
    margin-top:6px;
    border-radius:50%;
    flex-shrink:0;
    background:var(--faint);
}

.activity-item[data-kind="success"] .activity-marker
{
    background:#789c72;
}

.activity-item[data-kind="warning"] .activity-marker
{
    background:#c69e53;
}

.activity-item[data-kind="error"] .activity-marker
{
    background:#ba7163;
}

.activity-message
{
    flex:1;
    min-width:0;
    overflow-wrap:anywhere;
    font-size:12px;
}

.activity-time
{
    display:block;
    margin-top:5px;
    color:var(--muted);
    font-size:10px;
}

.toast-region
{
    position:fixed;
    z-index:60;
    left:50%;
    bottom:calc(82px + env(safe-area-inset-bottom,0px));
    width:max-content;
    max-width:calc(100% - 36px);
    transform:translateX(-50%);
    pointer-events:none;
}

.toast
{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:8px;
    padding:14px 18px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
    box-shadow:0 6px 28px rgb(0 0 0 / 10%);
    font-size:12px;
    opacity:1;
    transform:translateY(0);
    transition:transform 200ms var(--ease-out),opacity 180ms var(--ease-out);
}

.toast[data-kind="error"]
{
    color:var(--danger);
}

.toast[data-leaving="true"]
{
    opacity:0;
    transform:translateY(8px);
    transition-duration:140ms;
}

.login-layout
{
    display:grid;
    min-height:100dvh;
    padding:0 max(24px,env(safe-area-inset-right,0px)) 0 max(24px,env(safe-area-inset-left,0px));
}

.login-story
{
    display:none;
}

.login-form-section
{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-width:0;
    min-height:100dvh;
    padding-top:calc(26px + env(safe-area-inset-top,0px));
    padding-bottom:calc(23px + env(safe-area-inset-bottom,0px));
}

.login-mobile-brand
{
    display:flex;
    align-items:center;
    gap:11px;
    font-size:14px;
    font-weight:600;
}

.login-form
{
    width:100%;
    max-width:370px;
    margin:58px auto;
}

.login-lock
{
    width:48px;
    height:48px;
    border-radius:14px;
    margin-bottom:30px;
}

.login-form h2
{
    font-size:32px;
    letter-spacing:-1px;
}

.login-form .eyebrow
{
    font-size:9px;
    margin-bottom:10px;
}

.login-description
{
    margin-top:12px;
    margin-bottom:36px;
    color:var(--muted);
    font-size:13px;
}

.field-label
{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    font-weight:600;
}

.password-field
{
    display:flex;
    align-items:center;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--surface);
    padding-right:4px;
}

.password-field:focus-within
{
    outline:3px solid var(--accent-soft);
    border-color:var(--accent);
}

.password-field[data-error="true"]
{
    border-color:var(--danger);
}

.password-field input
{
    min-width:0;
    width:100%;
    min-height:52px;
    padding:13px 15px;
    border:0;
    background:transparent;
    outline:none;
    color:var(--text);
    font-size:16px;
    border-radius:10px;
}

.password-field input::placeholder
{
    color:var(--faint);
    font-size:14px;
}

.login-error
{
    margin-top:10px;
    color:var(--danger);
    font-size:12px;
}

.login-submit
{
    justify-content:space-between;
    width:100%;
    min-height:51px;
    margin-top:20px;
    padding-inline:19px;
}

.login-assurance
{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:22px;
    color:var(--muted);
    font-size:10px;
}

.login-assurance .icon
{
    width:13px;
    height:13px;
}

.login-footer
{
    display:flex;
    justify-content:space-between;
    gap:16px;
    color:var(--faint);
    font-size:10px;
}

.noscript-message
{
    padding:14px;
    background:var(--warning-soft);
    color:var(--warning);
}

@starting-style
{
    .toast
    {
        opacity:0;
        transform:translateY(10px);
    }
}

@media(hover:hover) and (pointer:fine)
{
    .button-primary:hover:not(:disabled)
    {
        background:#205c3d;
    }

    .button-mint:hover:not(:disabled)
    {
        background:#e6f5ce;
    }

    .button-quiet:hover:not(:disabled),
    .icon-button:hover:not(:disabled)
    {
        background:var(--surface-soft);
    }

    .nav-item:hover:not(.is-active)
    {
        background:var(--surface-soft);
    }

    .text-button:hover,
    .storage-details summary:hover,
    .mobile-help summary:hover
    {
        color:var(--accent);
    }
}

@media(min-width:600px)
{
    .main-content
    {
        padding-inline:30px;
    }

    h1
    {
        font-size:29px;
    }

    .hero-content h2
    {
        font-size:34px;
    }

    .heading-action
    {
        width:auto;
        padding:11px 15px !important;
    }

    .heading-action span
    {
        display:inline;
    }

    .metric-panel
    {
        padding:23px;
    }

    .metric-label
    {
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }

    .metric-value
    {
        font-size:33px;
    }

    .metric-footer
    {
        font-size:11px;
    }

    .account-row
    {
        display:grid;
        grid-template-columns:170px minmax(0,1fr);
        align-items:center;
    }

    .account-row dt
    {
        flex-direction:column;
        gap:3px;
    }

    .scan-panel
    {
        padding:30px;
    }

    .scan-steps li
    {
        font-size:12px;
        gap:8px;
    }

    .activity-item
    {
        padding-block:20px;
    }
}

@media(min-width:960px)
{
    .sidebar
    {
        position:fixed;
        inset:0 auto 0 0;
        display:flex;
        flex-direction:column;
        width:222px;
        padding:32px 20px 24px;
        background:var(--surface);
        border-right:1px solid var(--line);
        z-index:25;
    }

    .sidebar .brand
    {
        margin-left:6px;
    }

    .nav-caption
    {
        margin:55px 14px 13px;
        color:var(--faint);
        font-size:10px;
        letter-spacing:1px;
    }

    .desktop-nav
    {
        display:grid;
        gap:7px;
    }

    .nav-item
    {
        display:flex;
        align-items:center;
        gap:12px;
        width:100%;
        min-height:47px;
        padding:12px 14px;
        border:0;
        border-radius:9px;
        background:transparent;
        color:var(--muted);
        font-size:12px;
        transition:transform 140ms var(--ease-out);
    }

    .nav-item .icon
    {
        width:18px;
        height:18px;
    }

    .nav-item.is-active
    {
        background:var(--accent-soft);
        color:var(--accent);
        font-weight:600;
    }

    .nav-indicator
    {
        width:5px;
        height:5px;
        border-radius:50%;
        margin-left:auto;
        background:var(--accent);
    }

    .sidebar-note
    {
        margin-top:auto;
        padding:22px 12px 0;
    }

    .sidebar-note .small-symbol
    {
        width:29px;
        height:29px;
        border-radius:8px;
    }

    .small-symbol .icon
    {
        width:15px;
        height:15px;
    }

    .sidebar-note strong
    {
        display:block;
        margin-top:13px;
        font-size:11px;
        font-weight:600;
    }

    .sidebar-note p
    {
        margin-top:8px;
        color:var(--muted);
        font-size:10px;
        line-height:1.9;
    }

    .version-label
    {
        display:block;
        margin-top:28px;
        font-size:8px;
        color:var(--faint);
        letter-spacing:1.5px;
    }

    .app-shell
    {
        margin-left:222px;
    }

    .mobile-brand,
    .bottom-nav
    {
        display:none;
    }

    .topbar
    {
        min-height:76px;
        padding:12px 38px;
    }

    .breadcrumb
    {
        display:block;
    }

    .topbar-actions
    {
        gap:18px;
    }

    .connection-status
    {
        font-size:11px;
    }

    .main-content
    {
        padding:36px 38px 35px;
    }

    .page-heading
    {
        margin-bottom:28px;
    }

    .page-description
    {
        font-size:13px;
    }

    .overview-grid
    {
        grid-template-columns:minmax(0,1.55fr) minmax(245px,1fr);
        gap:18px;
    }

    .credential-hero
    {
        min-height:285px;
        padding:27px;
    }

    .hero-content
    {
        padding:36px 0 32px;
    }

    .hero-content h2
    {
        font-size:31px;
    }

    .hero-decoration
    {
        right:-95px;
        top:22px;
    }

    .auto-panel
    {
        padding:24px;
    }

    .auto-panel h2
    {
        font-size:18px;
    }

    .metrics-grid
    {
        gap:18px;
    }

    .account-panel
    {
        padding:23px 26px 12px;
    }

    .scan-layout
    {
        grid-template-columns:minmax(0,1.25fr) minmax(220px,0.8fr);
        gap:42px;
    }

    .scan-notes
    {
        padding-top:24px;
    }

    .activity-panel
    {
        padding:27px;
        min-height:420px;
    }

    .toast-region
    {
        bottom:28px;
    }

    .login-layout
    {
        max-width:1280px;
        margin:auto;
        grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
        align-items:center;
        gap:70px;
        padding:40px;
    }

    .login-story
    {
        position:relative;
        display:flex;
        flex-direction:column;
        align-self:stretch;
        min-height:620px;
        max-height:850px;
        padding:42px;
        margin:auto 0;
        overflow:hidden;
        isolation:isolate;
        border-radius:24px;
        background:var(--hero);
        color:#f5f9f0;
    }

    .login-story .brand-symbol
    {
        background:var(--mint);
        color:var(--hero);
    }

    .login-story .brand-caption
    {
        color:#b6c9bc;
    }

    .story-content
    {
        position:relative;
        z-index:1;
        padding:95px 0 100px;
    }

    .story-content .eyebrow
    {
        color:#a1b79c;
        font-size:8px;
        letter-spacing:2px;
        margin-bottom:25px;
    }

    .story-content h1
    {
        font-size:53px;
        line-height:1.4;
        letter-spacing:-1.5px;
    }

    .story-content > p:last-child
    {
        margin-top:23px;
        color:#bfd1c1;
        font-size:13px;
        line-height:1.9;
    }

    .story-art
    {
        position:absolute;
        width:300px;
        height:300px;
        right:-133px;
        bottom:88px;
        color:rgb(216 237 184 / 19%);
        pointer-events:none;
    }

    .story-art .icon
    {
        position:absolute;
        width:72px;
        height:72px;
        left:114px;
        top:114px;
    }

    .story-footer
    {
        display:flex;
        align-items:center;
        gap:24px;
        margin-top:auto;
        color:#bfcebd;
        font-size:11px;
    }

    .story-footer span
    {
        border-top:1px solid rgb(255 255 255 / 18%);
        padding-top:15px;
    }

    .login-form-section
    {
        min-height:620px;
        justify-content:center;
        padding:50px 0 28px;
    }

    .login-mobile-brand
    {
        display:none;
    }

    .login-form
    {
        margin:auto;
    }

    .login-footer
    {
        width:100%;
        max-width:370px;
        margin:60px auto 0;
    }
}

@media(max-width:959px)
{
    .auto-panel
    {
        display:grid;
        grid-template-columns:38px minmax(0,1fr) 52px;
        column-gap:10px;
        padding:17px 19px;
    }

    .auto-panel .panel-topline
    {
        display:contents;
    }

    .auto-panel .feature-symbol
    {
        grid-area:1 / 1 / 3 / 2;
        align-self:center;
    }

    .auto-panel .switch
    {
        grid-area:1 / 3 / 3 / 4;
        align-self:center;
    }

    .auto-panel h2
    {
        grid-area:1 / 2 / 2 / 3;
        align-self:end;
        margin:0 0 3px;
        font-size:14px;
    }

    .auto-panel > .muted
    {
        grid-area:2 / 2 / 3 / 3;
        align-self:start;
        font-size:10px;
    }

    .auto-panel .auto-details
    {
        grid-column:1 / -1;
        margin-top:12px;
        padding-top:10px;
        border-top:1px solid var(--line);
        font-size:11px;
    }

    .auto-panel .auto-details:nth-of-type(2),
    .auto-panel > .text-button
    {
        display:none;
    }
}

@media(max-width:359px)
{
    .main-content
    {
        padding-inline:14px;
    }

    h1
    {
        font-size:22px;
    }

    .credential-hero
    {
        padding:20px;
    }

    .hero-content h2
    {
        font-size:25px;
    }

    .hero-provider
    {
        font-size:9px;
        gap:4px;
    }

    .hero-bottom .button
    {
        padding-inline:10px;
        font-size:11px;
    }

    .metric-value
    {
        font-size:23px;
    }

    .metric-panel
    {
        padding-inline:12px;
    }

    .scan-steps li
    {
        font-size:9px;
        gap:4px;
    }

    .account-panel
    {
        padding-inline:17px;
    }
}

@media(prefers-color-scheme:dark)
{
    :root
    {
        --canvas:#111815;
        --surface:#19221d;
        --surface-soft:#202c24;
        --text:#e2e9df;
        --muted:#a0b1a2;
        --faint:#7d9082;
        --line:#2b382e;
        --accent:#79ab83;
        --accent-soft:#263c2c;
        --hero:#203f2d;
        --warning:#dfbe79;
        --warning-soft:#3c3324;
        --danger:#df9a8d;
        --danger-soft:#3c2925;
        --shadow:none;
    }

    .button-primary,
    .brand-symbol
    {
        color:#101c14;
    }

    .switch span
    {
        background:#e2ecdf;
    }

    .login-story .brand-symbol
    {
        color:#173c2b;
    }
}

@media(prefers-reduced-motion:reduce)
{
    *,
    *::before,
    *::after
    {
        animation:none !important;
        scroll-behavior:auto !important;
        transition:none !important;
    }

    button:active:not(:disabled),
    .brand:active,
    .mobile-brand:active
    {
        transform:none;
    }

    .toast,
    .toast[data-leaving="true"]
    {
        transform:none;
    }
}
