:root {
    --ink: #172026;
    --muted: #5e6a72;
    --line: rgba(23, 32, 38, .12);
    --glass: rgba(255, 255, 255, .72);
    --glass-strong: rgba(255, 255, 255, .88);
    --teal: #078d8f;
    --teal-dark: #04686b;
    --gold: #d99a18;
    --coral: #e8684a;
    --surface: #ffffff;
    --soft: #f5f8f8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #f6f8f8;
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.home-hero {
    min-height: calc(100vh - 78px);
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.54)), var(--bg);
    background-size: cover;
    background-position: center;
    padding: 22px clamp(18px, 4vw, 56px) 54px;
}
.topbar, .result-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.result-topbar {
    align-items: flex-start;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
}
.brand-logo-link {
    gap: 0;
    flex: 0 0 auto;
    line-height: 0;
}
.brand-logo-image {
    display: block;
    width: auto;
    height: 34px;
    max-width: min(230px, 52vw);
    object-fit: contain;
}
.brand-logo-light {
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .28));
}
.admin-brand-logo {
    gap: 10px;
    line-height: 1;
}
.admin-brand-logo span {
    color: #263640;
    font-size: 16px;
    font-weight: 900;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), #83d8c8 55%, var(--gold));
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip, .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(12px);
    color: var(--ink);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    transition: transform .16s ease, background .16s ease;
}
.tag:hover, .chip:hover { transform: translateY(-1px); background: rgba(255,255,255,.82); }
.button {
    border: 0;
    background: var(--teal);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}
.button.secondary { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--line); }
.button.danger { background: #b42318; }
.home-center {
    width: min(920px, 100%);
    margin: 10vh auto 0;
    text-align: center;
}
.home-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.72);
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    backdrop-filter: blur(12px);
}
.home-title {
    margin: 0 0 16px;
    font-size: clamp(42px, 8vw, 84px);
    letter-spacing: 0;
    line-height: .94;
}
.home-subtitle {
    width: min(680px, 100%);
    color: rgba(23,32,38,.78);
    margin: 0 auto 24px;
    font-size: 18px;
}
.search-box {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 24px;
    box-shadow: 0 22px 70px rgba(20,40,45,.18);
}
.search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    padding: 13px 14px;
    min-width: 0;
}
.search-box select {
    border: 0;
    outline: 0;
    border-radius: 16px;
    background: #eef6f4;
    color: var(--teal-dark);
    padding: 0 10px;
    font-weight: 900;
}
.mode-pills {
    width: min(640px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px auto 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.54);
    border: 1px solid rgba(255,255,255,.75);
    backdrop-filter: blur(12px);
}
.mode-pill {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
}
.mode-pill.active { background: var(--ink); color: white; }
.home-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px auto 0;
    color: rgba(23,32,38,.78);
    font-size: 13px;
}
.home-meta-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(10px);
}
.search-wait {
    width: min(620px, 100%);
    margin: 14px auto 0;
    display: grid;
    gap: 3px;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 18px 44px rgba(20,40,45,.14);
}
.search-wait[hidden] { display: none; }
.search-wait span { color: var(--muted); font-size: 14px; }
.search-progress {
    align-items: center;
    gap: 8px;
    min-width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(7, 141, 143, .09);
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.search-progress[hidden] {
    display: none;
}
.search-progress:not([hidden]) {
    display: inline-flex;
}
.search-progress-visual {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.search-progress-visual::before,
.search-progress-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}
.search-progress-visual::before {
    inset: 2px;
    border: 2px solid rgba(7, 141, 143, .18);
    border-top-color: var(--teal);
    animation: searchSpin .82s linear infinite;
}
.search-progress-visual::after {
    inset: 7px;
    background: linear-gradient(135deg, #7be4cf, var(--teal));
    box-shadow: 0 0 0 5px rgba(123, 228, 207, .18);
    animation: searchPulse 1.2s ease-in-out infinite;
}
.search-box.is-searching,
.mini-search.is-searching {
    box-shadow: 0 20px 58px rgba(7, 141, 143, .22);
}
.search-box.is-searching .search-submit,
.mini-search.is-searching .search-submit {
    opacity: .74;
    cursor: wait;
}
.search-box.is-searching input,
.mini-search.is-searching input {
    cursor: progress;
}
.home-feedback {
    width: min(620px, 100%);
    margin: 14px auto 0;
    text-align: left;
    box-shadow: 0 18px 44px rgba(20,40,45,.14);
}
.suggestions {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    z-index: 5;
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(20,40,45,.18);
    text-align: left;
}
.suggestions a { display: block; padding: 11px 16px; border-bottom: 1px solid rgba(23,32,38,.08); }
.suggestions a:last-child { border-bottom: 0; }
.shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 14px;
    margin: 32px auto 22px;
    max-width: 720px;
}
.shortcut,
.shortcut-wrap {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
}
.shortcut-wrap .shortcut { width: 100%; }
.shortcut-wrap.user-shortcut {
    cursor: grab;
    touch-action: none;
}
.shortcut-wrap.user-shortcut:active {
    cursor: grabbing;
}
body.shortcut-dragging {
    cursor: grabbing;
    user-select: none;
}
.shortcut-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.8);
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--shortcut-color, var(--teal)), rgba(255,255,255,.68));
    box-shadow: 0 16px 28px rgba(20,40,45,.12);
}
.shortcut-delete {
    position: absolute;
    top: -3px;
    right: 9px;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(23,32,38,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    font-size: 12px;
    color: var(--muted);
}
.shortcut-actions {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 40;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .16s ease, transform .16s ease;
}
.shortcut-wrap:hover .shortcut-actions,
.shortcut-wrap:focus-within .shortcut-actions,
.shortcut-actions[open] {
    opacity: 1;
    transform: translateY(0);
    z-index: 13000;
}
.shortcut-actions summary {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    background: rgba(16, 30, 36, .38);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    backdrop-filter: blur(12px);
}
.shortcut-actions summary::-webkit-details-marker {
    display: none;
}
.shortcut-menu {
    position: absolute;
    right: 0;
    top: 38px;
    z-index: 14000;
    width: min(270px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    background: rgba(20, 34, 40, .86);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .28);
    backdrop-filter: blur(22px);
    color: #fff;
    text-align: left;
}
.shortcut-menu form {
    display: grid;
    gap: 9px;
}
.shortcut-menu label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
}
.shortcut-menu input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}
.shortcut-menu-delete {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(180, 35, 24, .9);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}
.shortcut-add summary {
    display: grid;
    place-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
}
.shortcut-add summary::-webkit-details-marker { display: none; }
.shortcut-form {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 14000;
    width: min(280px, calc(100vw - 36px));
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 50px rgba(20,40,45,.16);
}
.shortcut-add[open] {
    position: relative;
    z-index: 13000;
}
.shortcut-form input {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 10px;
}
.add-choice-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 14000;
    width: min(320px, calc(100vw - 36px));
    transform: translateX(-50%);
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .26);
    background: rgba(20, 34, 40, .88);
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    backdrop-filter: blur(22px);
}
.add-choice-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.add-choice-buttons button,
.add-choice-buttons a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.add-choice-buttons button:hover,
.add-choice-buttons a:hover {
    background: rgba(255, 255, 255, .2);
}
.add-choice-menu .shortcut-form {
    position: static;
    width: 100%;
    transform: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.add-choice-menu .shortcut-form[hidden] {
    display: none;
}
.tag-groups {
    max-width: 980px;
    margin: 26px auto 0;
    display: grid;
    gap: 18px;
}
.tag-group h2 {
    margin: 0 0 9px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(23,32,38,.7);
}
.tags { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.footer {
    padding: 24px clamp(18px, 4vw, 56px);
    background: #fff;
    color: var(--muted);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links a:hover {
    color: var(--teal-dark);
}
.static-article {
    max-width: 860px;
    margin: 0 auto;
}
.static-content {
    color: #34444d;
    font-size: 17px;
    line-height: 1.75;
    white-space: normal;
}
.result-page { background: #f7faf9; min-height: 100vh; }
.result-topbar { padding: 18px clamp(18px, 4vw, 56px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.result-search-stack {
    display: grid;
    gap: 10px;
    width: min(620px, 100%);
}
.mini-search { position: relative; display: flex; gap: 8px; width: 100%; background: #f1f5f4; border-radius: 999px; padding: 6px; }
.mini-search input { flex: 1; border: 0; background: transparent; outline: 0; padding: 8px 12px; min-width: 0; }
.result-wrap { width: min(1180px, calc(100% - 32px)); margin: 30px auto 70px; }
.tabs { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 0 10px; }
.tab {
    position: relative;
    padding: 0 0 9px;
    border-radius: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}
.tab.active { color: var(--teal-dark); }
.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
}
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.article, .side-panel, .comment-box, .admin-card, .auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.article { padding: clamp(22px, 4vw, 42px); }
.article h1 { margin: 0 0 10px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; }
.meta { color: var(--muted); margin-bottom: 22px; }
.article h2 { margin-top: 32px; font-size: 24px; }
.article p { color: #2d3a40; }
.result-hero-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.result-hero-panel > div { min-width: 0; width: 100%; }
.result-cover {
    margin: 20px 0 0;
    width: 100%;
}
.result-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(20,40,45,.12);
}
.result-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}
.result-labels span:not(.status-pill) {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f6f5;
}
.answer-summary {
    margin: 24px 0;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf8f4, #fff8ea);
    border: 1px solid rgba(7,141,143,.18);
}
.answer-summary p {
    margin: 8px 0 0;
    font-size: 18px;
}
.content-section {
    padding: 4px 0;
    border-bottom: 1px solid rgba(23,32,38,.08);
}
.content-section:last-of-type { border-bottom: 0; }
.left-tags { justify-content: flex-start; }
.faq-grid {
    display: grid;
    gap: 12px;
}
.faq-grid h2 { margin-bottom: 0; }
.faq-item {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}
.faq-item h3 { margin: 0 0 6px; font-size: 17px; }
.faq-item p { margin: 0; }
.preview-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; }
.side-panel { padding: 18px; display: grid; gap: 16px; }
.side-panel h2 { margin: 0 0 10px; font-size: 18px; }
.image-card {
    display: grid;
    gap: 9px;
}
.image-card p,
.image-card small { color: var(--muted); margin: 0; }
.side-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}
.side-mini strong { font-size: 24px; }
.side-mini span { color: var(--muted); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 13px; background: #fff; }
.tag-section { margin-top: 30px; }
.tag-section h2 { font-size: 18px; margin-bottom: 12px; }
.comments { margin-top: 34px; display: grid; gap: 14px; }
.comment-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.comment-title-row h2 { margin: 2px 0 0; }
.comment-box { padding: 16px; }
.comment-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #d7e8e4; display: inline-grid; place-items: center; font-weight: 800; }
.comment-body { color: #2d3a40; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { margin-left: 24px; margin-top: 14px; padding-left: 14px; border-left: 2px solid #d9e6e2; }
.form-grid { display: grid; gap: 12px; }
.form-grid input, .form-grid textarea, .form-grid select {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 12px;
    width: 100%;
    background: #fff;
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.image-tile {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
}
.image-tile p { margin: 0; color: var(--muted); font-size: 14px; }
.video-list { display: grid; gap: 14px; }
.video-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
}
.video-card h2 { margin-top: 0; }
.video-thumb {
    min-height: 100px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--coral));
}
.discussion-search {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    padding: 6px;
    border-radius: 18px;
    background: #f1f5f4;
}
.discussion-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 12px;
}
.shortcut-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}
.shortcut-row small { color: var(--muted); }
.auth-wrap, .admin-wrap { width: min(1100px, calc(100% - 32px)); margin: 40px auto; }
.auth-card { width: min(440px, 100%); margin: auto; padding: 26px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.admin-card { padding: 18px; }
.admin-shell {
    width: min(1440px, calc(100% - 28px));
    margin: 26px auto 70px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.admin-shell .admin-wrap { width: 100%; margin: 0; }
.admin-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 6px;
    padding: 12px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(20,40,45,.08);
}
.admin-sidebar a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
}
.admin-sidebar a:hover { background: #eef6f4; color: var(--teal-dark); }
.admin-heading,
.settings-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.admin-heading { margin-bottom: 18px; }
.admin-heading h1,
.settings-panel h2,
.prompt-card h3 { margin: 0; }
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 16px 0 28px;
}
.module-card {
    min-height: 160px;
    padding: 18px;
    background: linear-gradient(180deg, #fff, #f7fbfa);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(20,40,45,.07);
}
.module-card h3 { margin: 10px 0 8px; font-size: 20px; }
.module-card p,
.admin-card p { color: var(--muted); margin: 8px 0 0; }
.module-kicker {
    display: inline-flex;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: #fff7e6;
    color: #a15c00;
}
.status-active { background: #ecfdf5; color: #05603a; }
.status-configured { background: #eef4ff; color: #175cd3; }
.status-needs-setup { background: #fef3f2; color: #b42318; }
.stats-grid .admin-card strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
}
.settings-panel { display: grid; gap: 18px; }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.settings-grid label,
.prompt-card label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}
.settings-grid small,
.prompt-card small,
.toggle-row small { color: var(--muted); font-weight: 500; }
.toggle-row,
.mini-toggle {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}
.toggle-row input,
.mini-toggle input {
    width: auto;
    margin-top: 4px;
}
.prompt-grid,
.prompt-library-grid,
.prompt-type-stack,
.prompt-edit-form { display: grid; gap: 16px; }
.prompt-type-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #eef8f7;
}
.prompt-type-head h3,
.prompt-card h4 {
    margin: 0;
}
.prompt-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.active-prompt-card {
    border-color: rgba(7, 141, 143, .34);
    box-shadow: 0 14px 36px rgba(7, 141, 143, .08);
}
.prompt-card textarea {
    min-height: 130px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.wide-field {
    grid-column: 1 / -1;
}
.widget-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.widget-manager-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
}
.widget-manager-card h2,
.widget-manager-card p {
    margin: 0;
}
.widget-manager-card p {
    color: var(--muted);
}
.weather-preview {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef6f4;
    color: var(--teal-dark);
    font-weight: 800;
}
.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-card code {
    padding: 2px 6px;
    background: #eef6f4;
    border-radius: 6px;
    color: var(--teal-dark);
}
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.notice { background: #ecfdf5; color: #05603a; border: 1px solid #a6f4c5; padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }
.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }

.account-wrap {
    width: min(1260px, calc(100% - 32px));
}

.account-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 94px;
}

.account-card-mini {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.account-card-mini span:not(.avatar) {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar-avatar {
    width: 74px;
    height: 74px;
    font-size: 26px;
}

.account-nav {
    display: grid;
    gap: 5px;
}

.account-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 800;
}

.account-nav a:hover {
    background: #eef8f7;
    color: var(--teal-dark);
}

.account-main {
    display: grid;
    gap: 0;
}

.account-hero {
    padding-bottom: 24px;
}

.account-hero h1 {
    margin-top: 8px;
}

.account-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.account-section {
    scroll-margin-top: 110px;
    padding: 28px 0;
    border-top: 1px solid rgba(23, 32, 38, .1);
}

.account-section h2,
.account-section h3 {
    margin: 4px 0 14px;
}

.account-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.account-settings-form {
    gap: 16px;
}

.account-toggle-row {
    max-width: 540px;
}

.account-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.account-security-grid label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.account-security-grid small {
    color: var(--muted);
    font-weight: 500;
}

.coinodle-balance-card {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(217, 154, 24, .28);
    border-radius: 999px;
    background: #fff8e8;
    color: #8a4d00;
    font-weight: 900;
}

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

.account-widget-actions,
.profile-image-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.account-avatar-preview {
    width: 96px;
    height: 96px;
    font-size: 34px;
}

.danger-zone p {
    color: var(--muted);
}

.favorite-list {
    display: grid;
    gap: 10px;
}

.favorite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}

.favorite-row > a {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.favorite-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.favorite-row form,
.favorite-form {
    margin: 0;
}

.favorite-icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #f1c3b8;
    border-radius: 50%;
    background: #fff7f4;
    cursor: pointer;
}

.favorite-icon-button img {
    width: 21px;
    height: 21px;
}

@media (max-width: 860px) {
    .home-hero { min-height: calc(100vh - 118px); padding: 18px 16px 42px; }
    .home-center { margin-top: 9vh; }
    .search-box { border-radius: 20px; flex-wrap: wrap; }
    .search-box select { max-width: 92px; }
    .search-box input { flex-basis: calc(100% - 106px); }
    .search-box .button { padding: 10px 12px; }
    .mode-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
    .result-topbar { align-items: flex-start; flex-direction: column; }
    .result-grid { grid-template-columns: 1fr; }
    .result-hero-panel { display: grid; }
    .video-card { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; width: min(100% - 24px, 900px); }
    .admin-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-security-grid { grid-template-columns: 1fr; }
    .admin-heading, .settings-panel-head { display: grid; }
    .settings-grid { grid-template-columns: 1fr; }
    .footer { display: block; }
}

.public-shell {
    background: #fff;
}

.home-hero.startpage {
    position: relative;
    min-height: calc(100svh - 74px);
    padding: 28px clamp(22px, 4vw, 64px) 54px;
    overflow: visible;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 24, 34, .08) 0%, rgba(4, 24, 34, .18) 55%, rgba(4, 24, 34, .46) 100%),
        var(--bg);
    background-size: cover;
    background-position: center;
}

.home-hero.startpage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 42%);
}

.home-hero.startpage > * {
    position: relative;
    z-index: 1;
}

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.home-brand {
    color: #fff;
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: 0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}

.home-brand .brand-logo-image {
    height: clamp(36px, 4.4vw, 52px);
    max-width: min(320px, 62vw);
}

.brand-star {
    width: 28px;
    height: 28px;
    position: relative;
    display: inline-block;
}

.brand-star::before,
.brand-star::after {
    content: "";
    position: absolute;
    inset: 12px 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

.brand-star::after {
    transform: rotate(90deg);
}

.brand-star {
    transform: none;
}

.home-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-pill,
.profile-bubble {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(17, 42, 54, .26);
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 34px rgba(0, 0, 0, .12);
    font-size: 14px;
    font-weight: 800;
}

.language-switcher {
    margin: 0;
}

.language-switcher label {
    display: block;
}

.language-switcher select {
    min-height: 42px;
    width: clamp(92px, 10vw, 136px);
    min-width: 0;
    padding: 8px 18px 8px 12px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(17, 42, 54, .26);
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 34px rgba(0, 0, 0, .12);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    appearance: auto;
}

.language-switcher option {
    color: var(--ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.coin-dot {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f5a900;
    color: #fff;
    font-size: 12px;
    position: relative;
}

.coin-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(20, 34, 40, .9);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.coin-dot[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.join-pill {
    background: rgba(7, 141, 143, .72);
}

.profile-bubble {
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    justify-content: center;
}

.profile-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-menu {
    position: relative;
    z-index: 16000;
}

.account-menu summary {
    list-style: none;
    cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 17000;
    width: min(340px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(23, 32, 38, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 26px 80px rgba(17, 36, 44, .22);
    backdrop-filter: blur(22px);
}

.account-popover-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 4px 4px 10px;
    border-bottom: 1px solid var(--line);
}

.account-popover-head div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.account-popover-head strong,
.account-popover-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-popover-head span {
    color: var(--muted);
    font-size: 13px;
}

.account-popover-avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), #77d8c9);
    color: #fff;
    font-weight: 900;
    overflow: hidden;
}

.account-popover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-popover-action {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    background: transparent;
    color: #26343c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.account-popover-action:hover,
.account-popover-action.primary {
    background: #eef8f7;
    color: var(--teal-dark);
}

.account-popover form {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.account-popover-action.signout {
    color: #b42318;
}

.startpage-center {
    width: min(900px, 100%);
    margin: clamp(74px, 13vh, 150px) auto 0;
    text-align: center;
    position: relative;
    z-index: 300;
}

.home-hero.startpage > .startpage-center {
    z-index: 300;
}

.home-hero.startpage.overlay-open .startpage-center,
.home-hero.startpage:has(.background-picker-panel:not([hidden])) .startpage-center,
.home-hero.startpage:has(.shortcut-add[open]) .startpage-center,
.home-hero.startpage:has(.shortcut-actions[open]) .startpage-center {
    z-index: 12000;
}

.home-hero.startpage.overlay-open .start-search-row,
.home-hero.startpage.overlay-open .start-shortcuts,
.home-hero.startpage:has(.background-picker-panel:not([hidden])) .start-search-row,
.home-hero.startpage:has(.shortcut-add[open]) .start-shortcuts,
.home-hero.startpage:has(.shortcut-actions[open]) .start-shortcuts {
    z-index: 13000;
}

.startpage-center h1 {
    margin: 0 0 32px;
    color: #fff;
    font-size: clamp(44px, 5.6vw, 78px);
    line-height: 1.06;
    font-weight: 850;
    text-shadow: 0 14px 44px rgba(0, 0, 0, .24);
}

.startpage-center h1 span {
    color: #7be4cf;
}

.start-search-row {
    width: min(806px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 720px) 56px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 2000;
}

.start-search {
    width: 100%;
    min-height: 62px;
    margin: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 46px 48px;
    gap: 4px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 24px 64px rgba(9, 37, 48, .22);
    position: relative;
    z-index: 2;
}

.start-search input {
    color: var(--ink);
    font-size: 16px;
    padding: 0 4px;
}

.search-leading,
.voice-button,
.search-submit {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 0;
    font-size: 11px;
    font-weight: 800;
}

.search-leading {
    color: transparent;
    border: 2px solid #9aa6ad;
    width: 22px;
    height: 22px;
    justify-self: center;
    position: relative;
    overflow: visible;
}

.search-leading::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: #9aa6ad;
    right: -7px;
    bottom: -4px;
    transform: rotate(45deg);
}

.voice-button {
    background: transparent;
    color: #65737c;
    cursor: pointer;
}

.search-submit {
    background: #078d8f;
    color: #fff;
    cursor: pointer;
}

.voice-button img,
.search-submit img {
    width: 22px;
    height: 22px;
}

.start-suggestions {
    left: 34px;
    right: 34px;
    top: calc(100% + 8px);
    z-index: 15000;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(9, 37, 48, .22);
}

.suggestions:empty {
    display: none;
}

.start-modes {
    display: none;
}

.start-shortcuts {
    width: min(720px, 100%);
    margin-top: 56px;
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    position: relative;
    z-index: 500;
}

.start-shortcuts:has(.shortcut-add[open]) {
    z-index: 13000;
}

.start-shortcuts > .shortcut,
.start-shortcuts > .shortcut-wrap {
    min-height: 116px;
    padding: 11px 8px 10px;
    border-radius: 20px;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.start-shortcuts > .shortcut:hover,
.start-shortcuts > .shortcut-wrap:hover,
.start-shortcuts > .shortcut-wrap:focus-within {
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 16px 36px rgba(0, 0, 0, .12);
}

.start-shortcuts > .shortcut-wrap.dragging {
    opacity: .62;
    transform: scale(.96);
}

.start-shortcuts > .shortcut-wrap.drag-over {
    background: rgba(123, 228, 207, .18);
    box-shadow: inset 0 0 0 2px rgba(123, 228, 207, .52);
}

.start-shortcuts .shortcut {
    color: #fff;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

.start-shortcuts .shortcut-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    color: #fff;
    background: var(--shortcut-color, rgba(255, 255, 255, .22));
    border-color: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.start-shortcuts .shortcut-logo {
    background: rgba(255, 255, 255, .94);
    color: var(--shortcut-color, #078d8f);
    font-weight: 900;
}

.start-shortcuts .shortcut-add .shortcut-icon {
    background: rgba(28, 43, 52, .28);
    color: #fff;
}

.startpage-panels {
    width: min(1180px, 100%);
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    position: relative;
    z-index: 1;
}

.home-hero.startpage.overlay-open .startpage-panels,
.home-hero.startpage:has(.background-picker-panel:not([hidden])) .startpage-panels,
.home-hero.startpage:has(.shortcut-add[open]) .startpage-panels,
.home-hero.startpage:has(.shortcut-actions[open]) .startpage-panels {
    z-index: 0;
    pointer-events: none;
}

.phrase-panel {
    min-height: 212px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(26, 38, 34, .38);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 58px rgba(0, 0, 0, .18);
    color: #fff;
}

.phrase-panel.user-widget {
    cursor: grab;
    touch-action: none;
}

.phrase-panel.user-widget:active,
body.widget-dragging {
    cursor: grabbing;
}

.phrase-panel.widget-dragging {
    opacity: .64;
    transform: scale(.985);
}

.phrase-panel.widget-drag-over {
    box-shadow: inset 0 0 0 2px rgba(123, 228, 207, .56), 0 20px 58px rgba(0, 0, 0, .18);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.panel-head h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.panel-head a,
.panel-head button {
    border: 0;
    background: transparent;
    color: #7be4cf;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.panel-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.panel-head-actions form {
    margin: 0;
}

.panel-head-actions button,
.panel-action-menu summary {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
}

.panel-action-menu {
    position: relative;
    z-index: 20;
}

.panel-action-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.panel-action-menu summary::-webkit-details-marker {
    display: none;
}

.panel-action-menu form {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    min-width: 130px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(20, 34, 40, .88);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.panel-action-menu form button {
    width: 100%;
    height: auto;
    min-height: 34px;
    display: flex;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 8px 10px;
    color: #fff;
    background: transparent;
    text-align: left;
}

.panel-action-menu form button:hover {
    background: rgba(255, 255, 255, .12);
}

.phrase-list {
    display: grid;
    gap: 9px;
}

.phrase-chip,
.popular-row {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
}

.phrase-chip span {
    opacity: .68;
}

.popular-row {
    justify-content: flex-start;
}

.popular-row span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.popular-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.popular-row em {
    color: #7be4cf;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.weather-widget {
    display: grid;
    gap: 14px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weather-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 28px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 22px 46px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
    overflow: visible;
}

.weather-icon-art {
    width: 66px;
    height: 66px;
    overflow: visible;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18));
}

.weather-sun-halo {
    fill: rgba(255, 210, 90, .2);
}

.weather-sun-fill {
    fill: #ffd25a;
    stroke: rgba(255, 255, 255, .74);
    stroke-width: 2;
}

.weather-sun-rays {
    fill: none;
    stroke: #ffd25a;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: .92;
}

.weather-cloud-fill {
    fill: rgba(255, 255, 255, .9);
}

.storm-cloud {
    fill: rgba(214, 223, 235, .94);
}

.weather-cloud-stroke {
    fill: none;
    stroke: rgba(255, 255, 255, .72);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weather-rain-stroke,
.weather-snow-stroke,
.weather-fog-stroke {
    fill: none;
    stroke: #7be4cf;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weather-soft-stroke {
    opacity: .66;
}

.weather-snow-stroke {
    stroke: #e9fbff;
    stroke-width: 3.5;
}

.weather-fog-stroke {
    stroke: rgba(255, 255, 255, .72);
    stroke-width: 4.5;
}

.weather-lightning {
    fill: #ffd25a;
    stroke: rgba(255, 255, 255, .72);
    stroke-width: 2;
    stroke-linejoin: round;
}

.weather-temp {
    display: grid;
    gap: 3px;
}

.weather-temp strong {
    font-size: 42px;
    line-height: 1;
}

.weather-temp span {
    color: rgba(255, 255, 255, .82);
    font-weight: 800;
}

.weather-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weather-meta span,
.weather-empty a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
}

.weather-hourly {
    display: grid;
    grid-template-columns: repeat(8, minmax(54px, 1fr));
    gap: 7px;
    padding-top: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.weather-hour {
    min-width: 54px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
}

.weather-hour-time {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 800;
}

.weather-hour-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
}

.weather-hour-icon .weather-icon-art {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 7px 9px rgba(0, 0, 0, .16));
}

.weather-hour strong {
    color: #fff;
    font-size: 13px;
}

.weather-empty {
    display: grid;
    gap: 10px;
}

.weather-empty strong {
    color: rgba(255, 255, 255, .88);
}

.background-picker {
    position: relative;
    z-index: 13000;
}

.background-picker:has(.background-picker-panel:not([hidden])) {
    z-index: 14000;
}

.background-picker-trigger {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.background-picker-trigger img {
    width: 28px;
    height: 28px;
}

.background-picker-panel {
    position: absolute;
    right: 0;
    top: 70px;
    z-index: 15000;
    width: min(470px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 22px;
    background: rgba(18, 31, 36, .7);
    color: #fff;
    backdrop-filter: blur(24px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.background-picker-panel[hidden] {
    display: none;
}

.background-panel-head {
    align-items: center;
}

.background-panel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.background-panel-controls select {
    width: 150px;
    max-width: 38vw;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.background-panel-controls option {
    color: var(--ink);
}

.background-empty {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.background-option {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.background-option[hidden] {
    display: none;
}

.background-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.background-option img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
}

.background-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}

.background-option:has(input:checked),
.background-option.is-selected {
    border-color: #7be4cf;
    box-shadow: 0 0 0 2px rgba(123, 228, 207, .22);
}

.guest-background-option {
    border: 1px solid rgba(255, 255, 255, .2);
    font: inherit;
}

@media (max-width: 980px) {
    .home-hero.startpage {
        min-height: calc(100svh - 110px);
        padding: 22px 18px 40px;
        background:
            linear-gradient(180deg, rgba(4, 24, 34, .08) 0%, rgba(4, 24, 34, .2) 52%, rgba(4, 24, 34, .5) 100%),
            var(--bg-mobile);
        background-size: cover;
        background-position: center;
    }

    .home-topbar {
        align-items: flex-start;
    }

    .home-actions {
        gap: 7px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .coin-pill span:not(.coin-dot) {
        display: none;
    }

    .startpage-center {
        margin-top: 64px;
    }

    .startpage-center h1 {
        font-size: clamp(32px, 10vw, 48px);
        margin-bottom: 22px;
    }

    .start-search-row {
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 10px;
    }

    .start-search {
        grid-template-columns: 40px minmax(0, 1fr) 40px 42px;
        min-height: 56px;
    }

    .voice-button {
        font-size: 0;
    }

    .start-shortcuts {
        grid-template-columns: repeat(4, minmax(58px, 1fr));
        gap: 16px;
        margin-top: 34px;
    }

    .start-shortcuts .shortcut-icon {
        width: 58px;
        height: 58px;
    }

    .startpage-panels {
        width: 100%;
        margin-top: 28px;
        grid-template-columns: 1fr;
    }

    .phrase-panel {
        min-height: auto;
    }

    .background-picker {
        position: relative;
    }

    .background-picker-panel {
        right: -4px;
        top: 64px;
        width: min(420px, calc(100vw - 28px));
    }
}

@media (max-width: 560px) {
    .home-hero.startpage {
        padding-bottom: 36px;
    }

    .home-brand {
        font-size: 24px;
    }

    .home-brand .brand-logo-image {
        height: 34px;
        max-width: 190px;
    }

    .brand-star {
        width: 24px;
        height: 24px;
    }

    .nav-pill {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .profile-bubble {
        width: 40px;
        height: 40px;
    }

    .startpage-center {
        margin-top: 48px;
    }

    .start-search-row {
        grid-template-columns: 1fr 48px;
        gap: 8px;
    }

    .start-search input {
        font-size: 14px;
    }

    .start-shortcuts {
        grid-template-columns: repeat(3, minmax(58px, 1fr));
    }

    .start-shortcuts > .shortcut,
    .start-shortcuts > .shortcut-wrap {
        min-height: 104px;
    }

    .background-grid {
        grid-template-columns: 1fr;
    }

    .background-panel-head {
        align-items: flex-start;
    }

    .background-panel-controls select {
        width: 138px;
        max-width: 46vw;
    }
}

.search-result-page {
    background: #fff;
    color: #1f2933;
}

.search-result-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px clamp(18px, 3vw, 42px) 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e7ecef;
    backdrop-filter: blur(18px);
}

.result-header-main {
    display: grid;
    grid-template-columns: max-content minmax(320px, 620px);
    align-items: start;
    gap: 20px;
    min-width: 0;
}

.back-link {
    width: 34px;
    height: 42px;
    display: grid;
    place-items: center;
    color: transparent;
    position: relative;
}

.back-link::before {
    content: "<";
    color: #24313a;
    font-size: 26px;
    line-height: 1;
}

.result-brand {
    display: inline-flex;
    min-height: 46px;
    color: #1d3138;
    font-size: 24px;
    text-decoration: none;
    align-self: center;
}

.result-brand .brand-logo-image {
    height: 31px;
    max-width: min(210px, 34vw);
}

.result-brand .brand-star {
    width: 22px;
    height: 22px;
}

.result-brand .brand-star::before,
.result-brand .brand-star::after {
    background: #078d8f;
}

.search-result-header .result-search-stack {
    width: min(620px, 100%);
    gap: 0;
}

.result-search-form {
    min-height: 46px;
    padding: 5px 5px 5px 17px;
    border: 1px solid #dce4e7;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 36, 44, .08);
}

.result-search-form input {
    padding: 7px 8px;
    font-size: 15px;
}

.search-clear {
    width: 32px;
    border: 0;
    background: transparent;
    color: #7a8790;
    cursor: pointer;
}

.compact-submit {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.search-result-header .tabs {
    gap: 28px;
    margin: 12px 0 0;
}

.search-result-header .tab {
    padding-bottom: 12px;
    font-size: 13px;
    font-weight: 650;
}

.result-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.light-pill {
    min-height: 40px;
    color: #24313a;
    background: #fff;
    border-color: #e1e8eb;
    box-shadow: 0 8px 22px rgba(17, 36, 44, .07);
}

.result-profile {
    width: 42px;
    height: 42px;
    color: #24313a;
    background: #fff;
    border-color: #e1e8eb;
}

.search-result-wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 20px auto 48px;
}

.result-document {
    padding: 4px 0 18px;
    border-bottom: 1px solid #e7ecef;
}

.result-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: #078d8f;
    font-size: 13px;
    font-weight: 800;
}

.result-document h1 {
    max-width: 720px;
    margin: 0 0 12px;
    color: #202a31;
    font-size: clamp(23px, 2.6vw, 31px);
    line-height: 1.15;
}

.answer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 30px;
    align-items: start;
}

.answer-intro {
    margin: 0 0 12px;
    color: #41515a;
    font-size: 14px;
    line-height: 1.45;
}

.answer-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
}

.answer-steps li::marker {
    color: #63727b;
    font-weight: 800;
}

.answer-steps h2 {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.28;
}

.answer-steps p {
    margin: 0;
    color: #52616a;
    font-size: 13px;
    line-height: 1.42;
}

.external-results {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #edf1f3;
}

.external-results h2 {
    margin: 0 0 14px;
    font-size: 17px;
    color: #24313a;
}

.external-results-list {
    display: grid;
    gap: 16px;
}

.external-result-item {
    display: grid;
    gap: 5px;
}

.external-result-item a {
    display: inline-grid;
    gap: 2px;
    justify-items: start;
    color: #153d8a;
    text-decoration: none;
}

.external-result-item a:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.external-result-item small {
    color: #0d7b4b;
    font-size: 12px;
}

.external-result-item p {
    margin: 0;
    color: #53616a;
    font-size: 13px;
    line-height: 1.5;
}

.result-preview-card {
    margin: 0;
}

.result-preview-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(17, 36, 44, .13);
}

.result-action-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #edf1f3;
}

.soft-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe7ea;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    color: #34444d;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.soft-action-icon {
    width: 17px;
    height: 17px;
    display: block;
    flex: 0 0 auto;
}

.favorite-action {
    border-color: #f1c3b8;
}

.favorite-action.is-active {
    background: #fff7f4;
    color: #b42318;
    border-color: #f2aaa0;
}

.favorite-action.is-active .soft-action-icon {
    filter: saturate(1.2);
}

.processing-document {
    min-height: 440px;
}

.processing-state {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(7, 141, 143, .16);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(7, 141, 143, .07), rgba(255, 255, 255, .86));
}

.processing-state h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.processing-state p {
    margin: 0;
    color: #58676f;
}

.processing-state small {
    display: inline-flex;
    margin-top: 12px;
    color: var(--teal-dark);
    font-weight: 800;
}

.processing-orbit {
    position: relative;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 228, 207, .24), rgba(7, 141, 143, .08) 58%, transparent 62%);
}

.processing-orbit::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 3px solid rgba(7, 141, 143, .16);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: searchSpin .9s linear infinite;
}

.processing-orbit span {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 8px rgba(7, 141, 143, .1);
}

.processing-orbit span:nth-child(1) { left: 43px; top: 7px; }
.processing-orbit span:nth-child(2) { right: 12px; bottom: 22px; background: #7be4cf; }
.processing-orbit span:nth-child(3) { left: 15px; bottom: 18px; background: var(--gold); }

.result-discovery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    padding: 20px 0;
    border-bottom: 1px solid #e7ecef;
}

.result-discovery h2,
.result-lower-grid h2 {
    margin: 0 0 12px;
    color: #2b3840;
    font-size: 16px;
}

.search-result-page .tag {
    min-height: 30px;
    border-color: #e0e7ea;
    background: #fff;
    color: #4b5962;
    backdrop-filter: none;
    font-size: 13px;
    box-shadow: none;
}

.result-lower-grid {
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: 38px;
    padding-top: 20px;
}

.result-faq {
    display: grid;
    align-content: start;
    gap: 10px;
}

.faq-row {
    border: 1px solid #e2e9ec;
    border-radius: 10px;
    background: #fff;
}

.faq-row summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    color: #39474f;
    font-size: 13px;
    font-weight: 700;
}

.faq-row summary::-webkit-details-marker {
    display: none;
}

.faq-row summary::marker {
    content: "";
}

.faq-summary-content {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: calc(100% - 8px);
    vertical-align: middle;
}

.faq-question-text,
.faq-question-link {
    min-width: 0;
}

.faq-question-link {
    color: #2b3840;
    text-decoration: none;
}

.faq-question-link:hover {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-row p {
    margin: 0;
    padding: 0 14px 12px;
    color: #5b6971;
    font-size: 13px;
}

.result-comments {
    margin-top: 0;
}

.compact-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
}

.compact-comment-form textarea {
    min-height: 42px;
    max-height: 90px;
    resize: vertical;
    border: 1px solid #e1e8eb;
    border-radius: 10px;
    padding: 10px 12px;
}

.search-result-page .comment-box {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #edf1f3;
    padding: 14px 0;
}

.search-result-page .comment-box:first-of-type {
    border-top: 1px solid #edf1f3;
}

.search-result-page .comment-body {
    color: #495860;
    font-size: 14px;
}

.search-result-page .reply {
    border-left-color: #e0eaec;
}

@media (max-width: 980px) {
    .search-result-header {
        display: grid;
        padding: 14px 16px 0;
    }

    .result-header-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-right: 62px;
    }

    .result-brand {
        display: inline-flex;
        min-height: 34px;
        font-size: 21px;
    }

    .result-brand .brand-logo-image {
        height: 27px;
        max-width: min(182px, 58vw);
    }

    .result-search-stack {
        grid-column: 1;
    }

    .result-user-actions {
        position: absolute;
        right: 16px;
        top: 12px;
    }

    .result-user-actions .light-pill {
        display: none;
    }

    .answer-layout,
    .result-discovery,
    .result-lower-grid {
        grid-template-columns: 1fr;
    }

    .result-preview-card {
        order: -1;
    }

    .processing-state {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .search-result-wrap {
        width: min(100% - 24px, 1040px);
    }

    .search-result-header .tabs {
        gap: 18px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }

    .compact-comment-form {
        grid-template-columns: 1fr;
    }

    .search-progress {
        padding: 7px;
    }

    .search-progress-label {
        display: none;
    }
}

@keyframes searchSpin {
    to { transform: rotate(360deg); }
}

@keyframes searchPulse {
    0%, 100% { transform: scale(.82); opacity: .72; }
    50% { transform: scale(1.08); opacity: 1; }
}

.cookie-consent {
    position: fixed;
    left: clamp(14px, 3vw, 32px);
    right: clamp(14px, 3vw, 32px);
    bottom: clamp(14px, 3vw, 28px);
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(7, 141, 143, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 70px rgba(17, 36, 44, .18);
    backdrop-filter: blur(18px);
    color: #26343c;
}

.cookie-consent-copy {
    display: grid;
    gap: 4px;
}

.cookie-consent-copy strong {
    font-size: 15px;
}

.cookie-consent-copy p {
    margin: 0;
    max-width: 760px;
    color: #58676f;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.cookie-consent-actions a {
    color: #078d8f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.cookie-consent-actions .button {
    min-height: 38px;
    padding-inline: 18px;
}

@media (max-width: 720px) {
    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        border-radius: 16px;
    }

    .cookie-consent-actions {
        justify-content: space-between;
    }
}
