/* The index page: styles only it uses, split out of site.css by scripts/split-css.mjs. */
.see-all { font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 600px) {
    .category-panel-head .see-all { flex-basis: 100%; }
}
.home-banner {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px) clamp(28px, 4vw, 40px); border-radius: 28px; text-align: center;
    background: linear-gradient(120deg, #FF5A1F 0%, #F43F5E 42%, #8B5CF6 100%); color: #fff;
}
.home-banner h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); margin: 0 auto 12px; max-width: 18ch; }
.home-banner > p { max-width: 60ch; margin: 0 auto 26px; color: rgb(255 255 255 / 0.92); font-size: 1.08rem; }
.banner-blob { position: absolute; z-index: -1; border-radius: 50%; background: rgb(255 255 255 / 0.14); pointer-events: none; }
.banner-b1 { width: 380px; height: 380px; top: -170px; right: -90px; }
.banner-b2 { width: 260px; height: 260px; bottom: -140px; left: -60px; background: rgb(255 255 255 / 0.1); }
.home-search {
    display: flex; align-items: center; gap: 10px; max-width: 660px; margin: 0 auto; padding: 7px 7px 7px 18px;
    background: #fff; border-radius: 999px; box-shadow: 0 12px 30px -10px rgb(15 29 58 / 0.45);
}
.home-search > .icon { color: var(--signal); width: 22px; height: 22px; }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1.06rem var(--text); color: var(--ink); padding: 8px 0; }
.home-search .btn { border-radius: 999px; padding-inline: 22px; }
.quick-tasks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px auto 0; padding: 0; max-width: 760px; }
.quick-tasks a {
    display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none;
    color: #fff; background: rgb(255 255 255 / 0.18); border: 1px solid rgb(255 255 255 / 0.32);
}
.quick-tasks a:hover { background: rgb(255 255 255 / 0.3); color: #fff; }
@media (max-width: 600px) {
    .home-banner { border-radius: 22px; text-align: left; }
    .home-banner h1, .home-banner > p { margin-left: 0; }
    .home-search .btn { display: none; }
    .quick-tasks { justify-content: flex-start; }
}
.section-circles { display: flex; gap: 6px; justify-content: space-between; margin: 26px 0 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.section-circles::-webkit-scrollbar { display: none; }
.circle-link {
    flex: 1 0 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 84px;
    color: var(--ink); text-decoration: none; font-size: 0.84rem; font-weight: 600; text-align: center; line-height: 1.2;
}
.circle-link:hover { color: var(--ink); }
.circle-link:hover .circle { transform: translateY(-3px); box-shadow: 0 12px 22px -10px var(--c1); }
@media (max-width: 600px) { .circle-link { flex-basis: 74px; min-width: 74px; font-size: 0.78rem; } }
.shelf-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.shelf-head h2 { margin: 0; font-size: 1.35rem; }
.shelf-note { margin: 0; color: var(--slate); font-size: 0.92rem; }
.shelf-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.shelf-arrow {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
    color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.shelf-arrow:disabled { opacity: 0.35; cursor: default; }
.shelf-arrow .icon { width: 18px; height: 18px; }
@media (hover: none) { .shelf-arrow { display: none !important; } }
.gcard { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gcard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gcard-art { display: flex; align-items: flex-end; height: 72px; padding: 12px 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.gcard-art .icon { width: 28px; height: 28px; }
.gcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.gcard-body strong { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.gcard-body span { color: var(--slate); font-size: 0.82rem; margin-top: auto; }
.shelf-guides { grid-auto-columns: minmax(240px, 270px); }

.trust-strip { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 48px 0 0; padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.trust-strip li { display: flex; gap: 12px; align-items: flex-start; }
.trust-strip .icon { flex: none; width: 26px; height: 26px; color: var(--signal); }
.trust-strip strong { display: block; font-family: var(--display); }
.trust-strip span { color: var(--slate); font-size: 0.92rem; }
@media (max-width: 600px) {
    .shelf-arrow { display: none !important; }
    .shelf-head h2 { font-size: 1.2rem; }
    .shelf-note { order: 3; flex-basis: 100%; font-size: 0.85rem; }
    .shelf-guides { grid-auto-columns: 78%; }
}

@media (max-width: 600px) {
    .home-banner { padding: 24px 18px 20px; border-radius: 22px; }
    .home-banner h1 { font-size: 1.75rem; margin-bottom: 14px; }
    .home-banner > p { display: none; }
    .home-search { padding: 5px 5px 5px 14px; }
    .home-search input { font-size: 1rem; padding: 7px 0; }
    .quick-tasks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 0; padding: 0 18px; max-width: none; }
    .quick-tasks::-webkit-scrollbar { display: none; }
    .quick-tasks li { flex: none; }
    .section-circles { margin-top: 16px; }
    .banner-b1 { width: 240px; height: 240px; top: -110px; right: -90px; }
}
.wcard-kind { position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px; background: rgb(255 255 255 / 0.9); color: var(--ink); font-size: 0.72rem; font-weight: 700; }
.wcard small { color: var(--slate-2); font-size: 0.78rem; }
.wcard-img { position: absolute; left: 14px; right: 14px; top: 14px; bottom: 0; width: calc(100% - 28px); height: calc(100% - 14px); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 14px rgb(15 29 58 / 0.25)); }
.wcard-img ~ .wcard-kind, .wcard-kind { z-index: 1; }
.work-empty { margin: 26px 0; padding: 28px; border: 2px dashed var(--line-strong); border-radius: 20px; text-align: center; }
.work-empty p { max-width: 56ch; margin: 0 auto 16px; color: var(--slate); }
.work-empty strong { color: var(--ink); }
.wcard-item { position: relative; }
.wcard-more {
    position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); box-shadow: var(--shadow-1); cursor: pointer;
}
.wcard-more .icon { width: 18px; height: 18px; }
.wcard-more:hover, .wcard-more[aria-expanded="true"] { background: #fff; box-shadow: var(--shadow-2); }
.wcard-menu {
    position: absolute; top: 48px; right: 8px; z-index: 5; min-width: 200px; max-width: calc(100% - 16px); padding: 6px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-3);
}
.wcard-menu a, .wcard-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none;
    color: var(--ink); font: 500 0.92rem var(--text); text-align: left; text-decoration: none; cursor: pointer;
}
.wcard-menu a:hover, .wcard-menu button:hover { background: var(--canvas); color: var(--ink); }
.wcard-menu .icon { width: 18px; height: 18px; color: var(--slate); }
.wcard-menu .wcard-delete, .wcard-menu .wcard-delete .icon { color: var(--bad); }
.wcard-menu p { margin: 4px 10px 6px; color: var(--slate); font-size: 0.78rem; line-height: 1.4; }
.undo-bar {
    position: fixed; left: 50%; bottom: calc(var(--tabbar-h, 0px) + 16px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
    display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 12px;
    background: var(--ink); color: #fff; box-shadow: var(--shadow-3); font-size: 0.92rem;
}
.undo-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-bar button { flex: none; padding: 7px 14px; border: 0; border-radius: 8px; background: rgb(255 255 255 / 0.14); color: #fff; font: 700 0.9rem var(--text); cursor: pointer; }
.undo-bar button:hover { background: rgb(255 255 255 / 0.24); }
@media (min-width: 1100px) { .undo-bar { left: calc(50% + var(--side-w) / 2); } }
