@import url('./vendor/phosphor/style.css');

html[data-platform="web"] #view-home > .pocket-home[hidden],
html[data-platform="web"] #view-home > .home-shell[hidden] { display: none !important; }
html[data-platform="web"] #view-home > .home-shell .pocket-link-icon { display: none; }
html[data-platform="web"] .home-footer-credit {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(18px, 1.5vw, 28px);
}
html[data-platform="web"] .pocket-layout-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}
html[data-platform="web"] .pocket-layout-toggle:hover { color: var(--pocket-accent, var(--primary)); }

/* Only the web homepage gets this skin; secondary routes and Electron retain their UI. */
html[data-platform="web"].pocket-home-enabled body:not(.web-secondary-page) {
    --pocket-paper: #FFF5F7;
    --pocket-ink: #2d210f;
    --pocket-accent: #c96016;
    --pocket-rule: #887b56;
    --pocket-strip: #c8cca0;
    --pocket-window: #FFF5F7;
    --pocket-title: #d27b2b;
    --web-topbar-height: 72px;
    --web-fixed-content-height: calc(var(--web-viewport-height) - var(--web-topbar-height));
    background: var(--pocket-paper) !important;
    background-image: none !important;
    color: var(--pocket-ink);
    font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}

/* The saved custom wallpaper is injected later as an !important html/body rule.
   Override both roots whenever the modern homepage is active. */
html[data-platform="web"].pocket-home-route,
html[data-platform="web"].pocket-home-enabled,
html[data-platform="web"].pocket-home-route body,
html[data-platform="web"].pocket-home-enabled body {
    background-color: #FFF5F7 !important;
    background-image: none !important;
}

html[data-platform="web"].pocket-home-route[data-theme="dark"],
html[data-platform="web"].pocket-home-enabled[data-theme="dark"],
html[data-platform="web"].pocket-home-route[data-theme="dark"] body,
html[data-platform="web"].pocket-home-enabled[data-theme="dark"] body {
    background-color: #21191C !important;
    background-image: none !important;
}

html[data-platform="web"].pocket-home-route .web-background-layer,
html[data-platform="web"].pocket-home-enabled .web-background-layer {
    display: none !important;
}

html[data-platform="web"].pocket-home-enabled[data-theme="dark"] body:not(.web-secondary-page) {
    --pocket-paper: #21191C;
    --pocket-ink: #f5e9cc;
    --pocket-accent: #e89750;
    --pocket-rule: #92836a;
    --pocket-strip: #464b37;
    --pocket-window: #302b20;
    --pocket-title: #96551e;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-app-topbar {
    height: var(--web-topbar-height);
    padding: 0 clamp(22px, 2.6vw, 44px);
    background: var(--pocket-paper);
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-app-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 3.2%;
    right: 3.2%;
    border-bottom: 1px solid var(--pocket-rule);
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand {
    height: auto;
    color: var(--pocket-ink);
    padding: 0;
    gap: 12px;
    align-items: center;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand img { width: 46px; height: 46px; border-radius: 4px; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand-text { justify-content: center; gap: 2px; line-height: 1; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-title { font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: 1px; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-subtitle { margin-top: 0; color: var(--pocket-ink); font-size: 13px; line-height: 1.1; letter-spacing: 1px; opacity: 1; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-actions {
    gap: 12px;
    align-items: center;
    overflow: visible;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-btn,
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button {
    color: var(--pocket-ink); background: transparent; border: 0; box-shadow: none; border-radius: 0;
    min-width: auto; height: 36px; padding: 0 14px; font-size: 15px; font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-btn:hover,
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button:hover {
    color: var(--pocket-accent);
    background: transparent !important;
    transform: none;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-pbc-btn,
html.pocket-home-enabled body:not(.web-secondary-page) .web-invoice-btn {
    display: none;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-login-label {
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-theme-toggle {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 22px;
    color: var(--pocket-accent);
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-theme-toggle::before {
    display: none !important;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-theme-toggle .ph {
    display: block;
    line-height: 1;
}
html.pocket-home-enabled body:not(.web-secondary-page) .main-content.home-mode { padding: 0 !important; background: transparent !important; }
html.pocket-home-enabled body:not(.web-secondary-page) .app-container { background: transparent; }
html[data-platform="web"] #view-home.pocket-home-ready { display: block !important; padding: 0 !important; background: transparent !important; }
html[data-platform="web"] #view-home.pocket-home-ready > .home-shell[hidden] { display: none !important; }
.pocket-home { position: relative; width: 100%; min-height: 100%; box-sizing: border-box; color: var(--pocket-ink); padding-bottom: 20px; }
.pocket-home *, .pocket-home *::before, .pocket-home *::after { box-sizing: border-box; }
.pocket-home button { font: inherit; cursor: pointer; touch-action: manipulation; }
.pocket-home button:focus-visible, html.pocket-home-enabled .web-topbar-actions button:focus-visible { outline: 3px solid var(--pocket-accent); outline-offset: 5px; }
.pocket-home [hidden] { display: none !important; }
.pocket-hero { display: grid; grid-template-columns: .36fr .64fr; gap: 40px; padding: 28px 6.2% 28px 5.5%; align-items: start; max-width: 1680px; margin: auto; }
.pocket-intro { min-width: 0; padding-top: 8px; align-self: center; }
.pocket-headline { font-size: clamp(42px, 5.7vw, 88px); line-height: 1.35; font-weight: 900; letter-spacing: -2px; margin: 0 0 27px; color: var(--pocket-ink); white-space: nowrap; }
.pocket-headline > span { text-decoration: underline; text-decoration-color: var(--pocket-accent); text-decoration-thickness: 5px; text-underline-offset: 12px; }
.pocket-categories { display: grid; gap: 0; padding-top: 0; max-width: 400px; }
.pocket-category { display: grid; grid-template-columns: 66px 1fr 25px; align-items: center; gap: 25px; border: 0; background: transparent; padding: 8px 22px 8px 0; text-align: left; color: var(--pocket-ink); min-height: 48px; }
.pocket-category-number { font: 700 26px/1.25 ui-sans-serif, system-ui, sans-serif; border-right: 1px dashed var(--pocket-rule); }
.pocket-category-label { font-size: 26px; font-weight: 700; letter-spacing: 2px; }
.pocket-category .ph { visibility: hidden; font-size: 23px; }
.pocket-category.is-active { color: var(--pocket-accent); }
.pocket-category.is-active .ph { visibility: visible; }
.pocket-category:hover { color: var(--pocket-accent); transform: translateX(3px); }
.pocket-stage { min-width: 0; padding-bottom: 9px; }
.pocket-window { border: 3px solid var(--pocket-ink); border-radius: 6px; box-shadow: 11px 12px 0 var(--pocket-ink); background: var(--pocket-window); overflow: hidden; }
.pocket-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 5px 9px; background: var(--pocket-title); border-bottom: 2px solid var(--pocket-ink); color: #281d0c; }
.pocket-window-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pocket-window-brand img { width: 23px; height: 23px; border: 1px solid #3b2c15; border-radius: 2px; }
.pocket-window-caption { font: 500 15px/1 system-ui, sans-serif; letter-spacing: 1.2px; }
.pocket-window-controls { display: flex; gap: 6px; }
.pocket-window-control { background: #f3cc82; width: 27px; height: 27px; border: 2px solid #33240e; color: #33240e; padding: 0; display: grid; place-items: center; }
.pocket-window-control .ph { font-size: 20px; }
.pocket-window-control:hover { background: #FFF5F7; }
.pocket-artwork { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-bottom: 1px solid var(--pocket-rule); }
.pocket-window-content { padding: 19px 32px 23px; }
.pocket-window-heading { font-size: clamp(23px, 2.5vw, 36px); line-height: 1.25; font-weight: 800; letter-spacing: 2px; padding: 0 0 13px; margin: 0 0 19px; border-bottom: 1px dashed var(--pocket-rule); color: var(--pocket-ink); }
.pocket-window.is-minimized .pocket-artwork { display: none; }
.pocket-hero.is-expanded { grid-template-columns: 1fr; }
.pocket-hero.is-expanded .pocket-intro { display: none; }
.pocket-hero.is-expanded .pocket-artwork { max-height: 520px; }
.pocket-restore { border: 1px dashed var(--pocket-rule); background: transparent; color: var(--pocket-ink); min-height: 320px; width: 100%; font-size: 22px !important; }
/* Reset legacy card styling only inside this new layout. */
html[data-platform="web"] .pocket-home .home-panel {
    display: block; margin: 0; padding: 0; min-width: 0; border: 0 !important; border-radius: 0;
    background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; overflow: visible;
}
html[data-platform="web"] .pocket-home .home-panel::before,
html[data-platform="web"] .pocket-home .home-panel::after,
html[data-platform="web"] .pocket-home .home-card::before,
html[data-platform="web"] .pocket-home .home-card::after { display: none !important; }
html[data-platform="web"] .pocket-home .home-panel-subtitle,
html[data-platform="web"] .pocket-home .home-card-desc { display: none; }
html[data-platform="web"] .pocket-home .home-panel-actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
html[data-platform="web"] .pocket-home .home-card {
    display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 0; height: auto; aspect-ratio: auto;
    min-height: 44px; margin: 0; padding: 7px 13px; border: 0 !important; border-radius: 0;
    background: transparent !important; color: var(--pocket-ink); box-shadow: none !important; text-align: center;
    transform: none; transition: color .15s ease, background-color .15s ease;
}
html[data-platform="web"] .pocket-home .home-card:hover { color: var(--pocket-accent); background: transparent !important; }
html[data-platform="web"] .pocket-home .home-card-title { color: inherit; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: 1px; white-space: nowrap; }
html[data-platform="web"] .pocket-home .home-panel-title { font-size: 19px; font-weight: 700; color: var(--pocket-accent); margin: 0 0 4px; line-height: 1.5; }
html[data-platform="web"] .pocket-main-slot .home-panel-title { display: none; }
html[data-platform="web"] .pocket-main-slot .home-panel-actions { justify-content: space-between; gap: 4px; }
html[data-platform="web"] .pocket-main-slot .home-card { padding: 8px 6px; }
html[data-platform="web"] .pocket-main-slot .home-card-title { text-decoration: underline; text-underline-offset: 9px; text-decoration-color: var(--pocket-rule); }
html[data-platform="web"] .pocket-main-slot .home-card:first-child { background: var(--pocket-ink) !important; color: var(--pocket-paper); padding: 12px 22px; border-radius: 4px; }
html[data-platform="web"] .pocket-main-slot .home-card:first-child .home-card-title { text-decoration: none; font-weight: 700; font-size: 24px; }
html[data-platform="web"] .pocket-main-slot .home-card:first-child:hover { background: var(--pocket-accent) !important; }
.pocket-main-slot .pocket-link-icon { display: none; }
.pocket-main-slot { min-height: 65px; display: flex; align-items: center; }
.pocket-main-slot > .home-panel { width: 100%; }
.pocket-primary-arrow { font-size: 26px; margin-left: 12px; }
.pocket-live-strip { position: relative; background: var(--pocket-strip); border-block: 1px solid var(--pocket-rule); padding: 16px 12%; margin-top: 0; }
.pocket-stamp { position: absolute; left: 1.5%; top: -41px; width: 104px; height: 141px; object-fit: contain; transform: rotate(-11deg); pointer-events: none; }
html[data-platform="web"] .pocket-strip-slot .home-panel { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 36px; }
html[data-platform="web"] .pocket-strip-slot .home-panel-title { font-size: 27px; color: var(--pocket-ink); margin: 0; white-space: nowrap; letter-spacing: 2px; }
html[data-platform="web"] .pocket-strip-slot .home-panel-actions { flex: 1; justify-content: space-evenly; }
html[data-platform="web"] .pocket-strip-slot .home-card { padding: 0 25px; border-left: 1px solid var(--pocket-rule) !important; gap: 22px; }
.pocket-strip-slot .ph { font-size: 35px; }
html[data-platform="web"] .pocket-strip-slot .home-card-title { font-size: 23px; }
.pocket-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 27px 4.2% 0; padding: 0 0 25px; border-bottom: 1px solid var(--pocket-rule); gap: 24px 0; }
html[data-platform="web"] .pocket-directory .home-panel { flex: 1 1 auto; padding: 0 20px; }
html[data-platform="web"] .pocket-directory .home-panel + .home-panel { border-left: 1px solid var(--pocket-rule) !important; }
html[data-platform="web"] .pocket-directory > .home-panel:nth-child(3n + 1) { border-left: 0 !important; }
.pocket-directory .pocket-link-icon { display: none; }
html[data-platform="web"] .pocket-directory .home-panel-title { margin-bottom: 3px; }
html[data-platform="web"] .pocket-directory .home-card { min-height: 35px; padding: 3px 12px; }
html[data-platform="web"] .pocket-directory .home-card:first-child { padding-left: 0; }
html[data-platform="web"] .pocket-directory .home-card + .home-card { position: relative; }
html[data-platform="web"] .pocket-directory .home-card + .home-card { border-left: 1px solid color-mix(in srgb, var(--pocket-accent) 50%, transparent) !important; }
.pocket-external { padding: 4px 4%; background: var(--pocket-strip); border-block: 1px solid var(--pocket-rule); }
html[data-platform="web"] .pocket-external .home-panel-title { display: none; }
html[data-platform="web"] .pocket-external .home-panel-actions {
    width: min(100%, 920px);
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 18px);
}
html[data-platform="web"] .pocket-external .home-card {
    flex: 1 1 0;
    flex-direction: column;
    min-width: 110px;
    max-width: 170px;
    min-height: 54px;
    gap: 3px;
    padding: 4px 10px;
}
html[data-platform="web"] .pocket-external .home-card-desc {
    display: block;
    color: color-mix(in srgb, var(--pocket-ink) 70%, transparent);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}
.pocket-external .pocket-link-icon { display: none; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button { width: auto; flex: 0 0 auto; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-login-label { white-space: nowrap; width: auto; font-size: inherit; }
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button.is-logged-in {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}
html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button.is-logged-in .web-account-avatar {
    border-radius: 50%;
}
.pocket-home .home-footer-credit { color: var(--pocket-rule); padding: 9px; font-size: 12px; }
.pocket-footer-tools {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) 133px;
    align-items: center;
    gap: 24px;
    margin: 10px 4.2% 0;
}
.pocket-footer-tools::after { content: ''; width: 133px; }
html[data-platform="web"] .pocket-home .web-limit-notice { justify-self: center; width: fit-content; max-width: 100%; min-height: 0; padding: 0; margin: 0; color: var(--pocket-rule); gap: 12px; font-size: 12px; font-weight: 400; }
html[data-platform="web"] .pocket-home .web-desktop-download-btn { color: var(--pocket-ink); background: transparent; box-shadow: none; border: 1px solid var(--pocket-rule); border-radius: 2px; font-size: 12px; min-height: 26px; min-width: 0; padding: 2px 8px; }
html[data-platform="web"].pocket-home-enabled body:not(.web-secondary-page) .web-language-dock {
    display: block;
    position: static;
    width: fit-content;
    max-width: 100%;
    margin: 0;
}
@media (min-width: 1550px) { .pocket-hero { padding-top: 44px; padding-bottom: 44px; } }
@media (max-width: 1150px) {
    .pocket-hero { gap: 26px; padding-inline: 4%; }
    .pocket-category-label { font-size: 22px; }
    .pocket-category { gap: 17px; grid-template-columns: 46px 1fr 22px; }
    .pocket-window-content { padding: 18px; }
    html[data-platform="web"] .pocket-main-slot .home-card:first-child { padding: 10px 12px; }
    html[data-platform="web"] .pocket-main-slot .home-card:first-child .home-card-title { font-size: 20px; }
    html[data-platform="web"] .pocket-home .home-card-title { font-size: 16px; }
    .pocket-directory { margin-inline: 3%; }
    html[data-platform="web"] .pocket-directory .home-panel { padding-inline: 14px; }
    html[data-platform="web"] .pocket-directory .home-card { padding-inline: 8px; }
}
@media (max-width: 800px) {
    html[data-platform="web"].pocket-home-enabled body:not(.web-secondary-page) { --web-topbar-height: 80px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-app-topbar { padding-inline: 20px; gap: 6px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-title { font-size: 22px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand img { width: 40px; height: 40px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-actions { gap: 4px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-btn,
    html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button { font-size: 14px; padding-inline: 9px; }
    .pocket-hero { grid-template-columns: 1fr; padding: 24px 6% 38px; gap: 22px; }
    .pocket-intro { padding: 0; }
    .pocket-headline { font-size: 47px; line-height: 1.3; letter-spacing: 0; margin-bottom: 27px; }
    .pocket-headline br { display: none; }
    .pocket-headline > span { text-decoration-thickness: 3px; text-underline-offset: 8px; }
    .pocket-categories { max-width: none; display: flex; flex-wrap: wrap; gap: 5px 18px; padding-top: 14px; }
    .pocket-category { display: flex; padding: 4px 0; min-height: 40px; gap: 8px; }
    .pocket-category-number { font-size: 15px; border: none; }
    .pocket-category-label { font-size: 16px; letter-spacing: 0; }
    .pocket-category .ph { display: none; }
    .pocket-window { box-shadow: 7px 8px 0 var(--pocket-ink); }
    .pocket-window-heading { font-size: 28px; }
    .pocket-live-strip { padding: 15px 5% 15px 17%; }
    .pocket-stamp { left: 1%; top: -22px; width: 72px; height: 108px; }
    html[data-platform="web"] .pocket-strip-slot .home-panel { gap: 12px; }
    html[data-platform="web"] .pocket-strip-slot .home-panel-title { font-size: 21px; }
    html[data-platform="web"] .pocket-strip-slot .home-card { padding: 0 12px; gap: 8px; }
    .pocket-strip-slot .ph { font-size: 25px; }
    html[data-platform="web"] .pocket-strip-slot .home-card-title { font-size: 17px; }
    .pocket-directory { grid-template-columns: 1fr; gap: 15px; margin: 23px 6% 0; }
    html[data-platform="web"] .pocket-directory .home-panel { padding: 0; flex: 1 1 100%; }
    html[data-platform="web"] .pocket-directory .home-panel + .home-panel { border-left: 0 !important; }
    .pocket-footer-tools { grid-template-columns: 1fr; gap: 8px; margin-inline: 6%; }
    .pocket-footer-tools::after { display: none; }
    html[data-platform="web"] .pocket-external .home-panel-actions { gap: 2px 8px; }
    html[data-platform="web"] .pocket-external .home-card-title { font-size: 14px; }
    html[data-platform="web"] .pocket-external .home-card { min-height: 58px; padding: 4px 9px; }
    html[data-platform="web"] .pocket-external .home-card-desc { font-size: 9px; }
}
@media (max-width: 520px) {
    html[data-platform="web"].pocket-home-enabled body:not(.web-secondary-page) { --web-topbar-height: 72px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-app-topbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-inline: 6%;
    }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand { gap: 9px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand img { width: 36px; height: 36px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-brand-text {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
    }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-title { font-size: 21px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-subtitle { font-size: 11px; }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-actions {
        display: flex;
        width: auto;
        gap: 2px;
    }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-topbar-btn,
    html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button {
        width: auto;
        min-width: 44px;
        height: 44px;
        padding: 0 8px;
        font-size: 13px;
    }
    html.pocket-home-enabled body:not(.web-secondary-page) .web-account-button.is-logged-in,
    html.pocket-home-enabled body:not(.web-secondary-page) .web-theme-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        justify-self: center;
    }
    .pocket-hero { padding-top: 18px; padding-bottom: 28px; gap: 18px; }
    .pocket-headline { font-size: clamp(32px, 9.7vw, 48px); margin-bottom: 21px; }
    .pocket-headline br { display: block; }
    .pocket-categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
    .pocket-category { justify-content: center; min-width: 0; min-height: 44px; gap: 4px; }
    .pocket-category-number { display: none; }
    .pocket-category-label { font-size: 15px; }
    .pocket-artwork { aspect-ratio: 16 / 9; }
    .pocket-titlebar { gap: 4px; }
    .pocket-window-caption { font-size: 11px; letter-spacing: .8px; }
    .pocket-window-brand { gap: 6px; }
    .pocket-window-control {
        position: relative;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
    }
    .pocket-window-control::before {
        content: '';
        position: absolute;
        inset: 6px;
        border: 2px solid #33240e;
        background: #f3cc82;
    }
    .pocket-window-control .ph { position: relative; z-index: 1; }
    .pocket-window-control:hover { background: transparent; }
    .pocket-window-control:hover::before { background: #FFF5F7; }
    .pocket-window-content { padding: 16px; }
    .pocket-main-slot { min-height: 102px; }
    .pocket-window-heading { font-size: 24px; padding-bottom: 11px; margin-bottom: 14px; }
    html[data-platform="web"] .pocket-main-slot .home-panel-actions { justify-content: flex-start; gap: 5px 12px; }
    html[data-platform="web"] .pocket-main-slot .home-card:first-child { flex-basis: 100%; margin-bottom: 4px; }
    html[data-platform="web"] .pocket-main-slot .home-card { min-width: 44px; min-height: 44px; padding: 5px 3px; }
    html[data-platform="web"] .pocket-main-slot .home-card-title { font-size: 16px; }
    .pocket-live-strip { padding: 11px 3% 11px 18%; }
    html[data-platform="web"] .pocket-strip-slot .home-panel { gap: 7px; }
    html[data-platform="web"] .pocket-strip-slot .home-panel-title { font-size: 18px; letter-spacing: 0; }
    html[data-platform="web"] .pocket-strip-slot .home-card { padding: 0 9px; gap: 5px; min-height: 44px; }
    .pocket-strip-slot .ph { font-size: 20px; }
    html[data-platform="web"] .pocket-strip-slot .home-card-title { font-size: 15px; }
    .pocket-strip-slot .home-panel-actions { row-gap: 4px !important; }
    .pocket-stamp { width: 60px; height: 90px; top: -16px; }
    html[data-platform="web"] .pocket-directory .home-card { min-height: 44px; padding-inline: 10px; }
    html[data-platform="web"] .pocket-directory .home-card-title { font-size: 16px; }
    html[data-platform="web"] .pocket-external .home-card { min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
    .pocket-home *, .pocket-home *::before, .pocket-home *::after { transition: none !important; animation: none !important; }
}

html[data-platform="web"] .pocket-home .home-card.web-home-card-disabled,
html[data-platform="web"] .pocket-home .home-card.web-home-card-disabled:hover,
html[data-platform="web"] .pocket-main-slot .home-card.web-home-card-disabled:first-child,
html[data-platform="web"] .pocket-main-slot .home-card.web-home-card-disabled:first-child:hover {
    background: transparent !important;
    color: color-mix(in srgb, var(--pocket-ink) 45%, var(--pocket-paper)) !important;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

html[data-platform="web"] .pocket-home .home-card.web-home-card-disabled .home-card-title {
    text-decoration: none;
}
