: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-wait-spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 34%, transparent 35%),
        conic-gradient(from 0deg, var(--teal), #7be4cf, rgba(7, 141, 143, .18), var(--teal));
    box-shadow: 0 0 0 6px rgba(7, 141, 143, .08);
    animation: searchSpin .9s linear infinite;
}
.search-wait .search-wait-spinner {
    color: transparent;
    font-size: 0;
}
.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: grid;
    gap: 14px;
}
.footer-main {
    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);
}
.footer-language-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(23, 32, 38, .08);
}
.footer-language-list a {
    color: #66757d;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}
.footer-language-list a:hover,
.footer-language-list a.active {
    color: var(--teal-dark);
}
.footer-language-list a.active {
    font-weight: 900;
}
.static-article {
    max-width: 860px;
    margin: 0 auto;
}
.static-content {
    color: #34444d;
    font-size: 17px;
    line-height: 1.75;
    white-space: normal;
}
.static-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 32, 38, .08);
}
.static-link-row a {
    padding: 9px 13px;
    border-radius: 999px;
    background: #eef7f5;
    color: var(--teal-dark);
    font-weight: 850;
    font-size: 13px;
}
.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-subject {
    margin: 6px 0 8px;
    color: #1f2d35;
    font-size: 18px;
    line-height: 1.22;
}
.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; }
.discussion-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.discussion-topic-form {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdfc;
}
.discussion-topic-form h2 {
    margin: 0;
    font-size: 19px;
}
.discussion-topic-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
.discussion-topic-card,
.discussion-thread {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
.discussion-topic-card h2,
.discussion-thread h2 {
    margin: 8px 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.08;
}
.discussion-topic-card h2 a {
    color: #17262f;
    text-decoration: none;
}
.discussion-topic-card h2 a:hover {
    color: var(--teal-dark);
}
.discussion-topic-card p {
    margin: 0 0 12px;
}
.discussion-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}
.discussion-topic-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6f4;
}
.latest-discussion-list {
    display: grid;
    gap: 8px;
}
.latest-discussion-entry {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f3;
}
.latest-discussion-entry:last-child {
    border-bottom: 0;
}
.latest-discussion-copy {
    min-width: 0;
}
.latest-discussion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: #60727a;
    font-size: 12px;
}
.latest-discussion-topic {
    display: inline-block;
    margin: 4px 0;
    color: #102a35;
    font-weight: 800;
    text-decoration: none;
}
.latest-discussion-topic:hover {
    color: var(--teal-dark);
}
.latest-discussion-entry p {
    margin: 0;
    color: #50616a;
    font-size: 13px;
    line-height: 1.45;
}
.forum-wrap .article {
    overflow: hidden;
}
.forum-board {
    padding: 0;
}
.forum-head {
    padding: 24px 24px 18px;
    border-bottom: 1px solid #e6eef0;
    background: linear-gradient(180deg, #fbfdfd, #fff);
}
.forum-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e7eff1;
    background: #f7faf9;
}
.forum-search {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: min(100%, 420px);
}
.forum-search input {
    width: 100%;
    border: 1px solid #dce8eb;
    border-radius: 999px;
    padding: 10px 13px;
    background: #fff;
}
.forum-topic-table {
    display: grid;
}
.forum-topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 82px 140px;
    gap: 12px;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid #edf2f3;
}
.forum-topic-header {
    min-height: 38px;
    padding-top: 9px;
    padding-bottom: 9px;
    background: #eef6f4;
    color: #51636b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.forum-topic-main a {
    color: #102a35;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
}
.forum-topic-main a:hover {
    color: var(--teal-dark);
}
.forum-topic-main p {
    margin: 4px 0 0;
    color: #64747b;
    font-size: 13px;
}
.forum-topic-author {
    display: grid;
    gap: 2px;
    color: #26353d;
    font-size: 13px;
}
.forum-topic-author small,
.forum-topic-date {
    color: #667780;
    font-size: 12px;
}
.forum-topic-count {
    width: 38px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eaf5f2;
    color: #075d65;
    font-weight: 900;
}
.forum-empty {
    padding: 22px 18px;
    color: #667780;
}
.forum-pagination {
    padding: 14px 18px;
}
.forum-new-topic,
.forum-reply-form {
    margin: 18px;
}
.forum-thread-title {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border-bottom: 1px solid #e6eef0;
    background: #fbfdfd;
}
.forum-thread-title h2 {
    margin: 0;
    color: #102a35;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.06;
}
.forum-post-list {
    display: grid;
}
.forum-post {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    border-bottom: 1px solid #edf2f3;
    background: #fff;
}
.forum-post-root {
    background: #fbfdfd;
}
.forum-post-author {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 7px;
    padding: 16px;
    border-right: 1px solid #edf2f3;
    background: rgba(239, 247, 245, .7);
    color: #24333b;
}
.forum-post-author small {
    color: #71828a;
    font-size: 12px;
}
.forum-post-body {
    min-width: 0;
    padding: 17px 18px;
}
.forum-post-body h3 {
    margin: 0 0 10px;
    color: #102a35;
    font-size: 22px;
}
.forum-post-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.forum-post-children {
    margin-left: 34px;
    border-left: 3px solid #d9e9e6;
}
.side-topic-list {
    display: grid;
    gap: 10px;
}
.side-topic {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
    color: #26353d;
    text-decoration: none;
}
.side-topic span {
    color: var(--muted);
    font-size: 13px;
}
.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; }
.captcha-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dce8e8;
    border-radius: 14px;
    background: #f7fbfa;
    color: #26353d;
}
.captcha-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.captcha-box strong {
    font-size: 19px;
    letter-spacing: .02em;
}
.captcha-box small {
    color: #b42318;
    font-weight: 700;
}
.captcha-recaptcha {
    overflow-x: auto;
}
.captcha-recaptcha .g-recaptcha {
    min-height: 78px;
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.brand-assets-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.brand-assets-preview article {
    display: grid;
    gap: 8px;
}
.brand-assets-preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.brand-preview {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fbfb;
}
.brand-preview-dark {
    background: linear-gradient(135deg, #17313b, #0f222a);
}
.brand-preview img {
    max-width: min(220px, 100%);
    max-height: 72px;
    object-fit: contain;
}
.brand-preview-favicon img {
    width: 42px;
    height: 42px;
}
.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: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
    box-shadow: 0 12px 30px rgba(19, 38, 45, .05);
}
.video-card h2 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.video-card h2 a { color: var(--ink); text-decoration: none; }
.video-card h2 a:hover { color: var(--teal-dark); }
.video-card p { margin: 0 0 12px; color: var(--muted); }
.video-thumb {
    min-height: 124px;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    position: relative;
    text-decoration: none;
}
.video-thumb::after {
    content: "";
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    position: absolute;
}
.video-thumb::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #087a83;
    position: absolute;
    z-index: 2;
    transform: translateX(2px);
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}
.video-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    color: #60727a;
    font-size: 13px;
}
.video-meta-row span {
    padding: 5px 9px;
    border: 1px solid rgba(8, 122, 131, .14);
    border-radius: 999px;
    background: rgba(8, 122, 131, .05);
}
.video-empty-state {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px dashed rgba(8, 122, 131, .35);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 122, 131, .08), rgba(255, 255, 255, .88));
    color: var(--muted);
}
.video-empty-state strong {
    color: var(--ink);
    font-size: 20px;
}
.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; }
.status-ok,
.status-update-verified,
.status-update-installed {
    background: #ecfdf5;
    color: #05603a;
}
.status-warning,
.status-update-staged,
.status-update-uploaded,
.status-update-installing {
    background: #fffaeb;
    color: #b54708;
}
.status-fail,
.status-update-failed,
.status-update-checksum-failed,
.status-update-invalid-package,
.status-update-rollback-failed,
.status-update-rollback-unavailable {
    background: #fef3f2;
    color: #b42318;
}
.status-update-rolled-back {
    background: #f4f3ff;
    color: #5925dc;
}
.system-health-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.system-health-card {
    display: grid;
    align-content: start;
    gap: 8px;
}
.system-health-card strong {
    overflow-wrap: anywhere;
}
.system-health-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.stats-grid .admin-card strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
}
.progress-track {
    position: relative;
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7efed;
}
.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), #8ef0d2);
}
.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 {
    position: relative;
    display: grid;
    gap: 7px;
    font-weight: 800;
}
.admin-wrap label {
    position: relative;
}
.admin-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 7px;
    vertical-align: middle;
    z-index: 20;
    flex: 0 0 18px;
    text-transform: none;
}
.settings-grid label > .admin-help,
.form-grid label > .admin-help,
.prompt-card label > .admin-help,
.prompt-edit-form label > .admin-help {
    position: absolute;
    top: 1px;
    right: 0;
}
.settings-grid label:has(> .admin-help),
.form-grid label:has(> .admin-help),
.prompt-card label:has(> .admin-help),
.prompt-edit-form label:has(> .admin-help) {
    padding-right: 30px;
}
.toggle-row .admin-help,
.mini-toggle .admin-help {
    position: relative;
    top: auto;
    right: auto;
}
.admin-help-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(7, 141, 143, .25);
    border-radius: 999px;
    background: #eef8f7;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    box-shadow: 0 6px 14px rgba(7, 141, 143, .08);
}
.admin-help-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 25000;
    width: min(320px, calc(100vw - 36px));
    padding: 11px 12px;
    border: 1px solid rgba(7, 141, 143, .2);
    border-radius: 12px;
    background: rgba(18, 35, 42, .96);
    color: #fff;
    box-shadow: 0 18px 42px rgba(17, 36, 44, .22);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, transform .14s ease;
}
.admin-help-popover::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    background: rgba(18, 35, 42, .96);
    transform: translate(-50%, -5px) rotate(45deg);
}
.admin-help:hover .admin-help-popover,
.admin-help:focus .admin-help-popover,
.admin-help:focus-within .admin-help-popover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.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-action-details {
    position: relative;
    display: inline-block;
}
.admin-action-details > summary {
    list-style: none;
    cursor: pointer;
}
.admin-action-details > summary::-webkit-details-marker {
    display: none;
}
.admin-action-panel {
    position: absolute;
    right: 0;
    z-index: 80;
    width: min(760px, calc(100vw - 320px));
    max-height: 72vh;
    margin-top: 10px;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 37, 46, .22);
}
.admin-action-panel .settings-grid {
    min-width: 620px;
}
.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; }
.table:has(.admin-action-details[open]) {
    overflow: visible;
}
@media (max-width: 900px) {
    .admin-action-panel {
        position: static;
        width: 100%;
        max-height: none;
    }
    .admin-action-panel .settings-grid {
        min-width: 0;
    }
}
.admin-wrap nav[aria-label="Pagination Navigation"],
.forum-pagination nav[aria-label="Pagination Navigation"] {
    width: 100%;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.admin-wrap nav[aria-label="Pagination Navigation"] > div,
.forum-pagination nav[aria-label="Pagination Navigation"] > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-wrap nav[aria-label="Pagination Navigation"] > div:first-child,
.forum-pagination nav[aria-label="Pagination Navigation"] > div:first-child {
    display: none;
}
.admin-wrap nav[aria-label="Pagination Navigation"] > div:last-child,
.forum-pagination nav[aria-label="Pagination Navigation"] > div:last-child {
    justify-content: space-between;
}
.admin-wrap nav[aria-label="Pagination Navigation"] p,
.forum-pagination nav[aria-label="Pagination Navigation"] p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.admin-wrap nav[aria-label="Pagination Navigation"] a,
.admin-wrap nav[aria-label="Pagination Navigation"] span span,
.forum-pagination nav[aria-label="Pagination Navigation"] a,
.forum-pagination nav[aria-label="Pagination Navigation"] span span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(20, 40, 45, .06);
}
.admin-wrap nav[aria-label="Pagination Navigation"] a:hover,
.forum-pagination nav[aria-label="Pagination Navigation"] a:hover {
    background: #eef6f4;
    color: var(--teal-dark);
}
.admin-wrap nav[aria-label="Pagination Navigation"] span[aria-current] span,
.forum-pagination nav[aria-label="Pagination Navigation"] span[aria-current] span {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.admin-wrap nav[aria-label="Pagination Navigation"] span[aria-disabled] span,
.forum-pagination nav[aria-label="Pagination Navigation"] span[aria-disabled] span {
    color: #9aa6ad;
    background: #f5f8f8;
    box-shadow: none;
}
.admin-wrap nav[aria-label="Pagination Navigation"] svg,
.forum-pagination nav[aria-label="Pagination Navigation"] svg,
.w-5.h-5 {
    display: block;
    width: 15px !important;
    height: 15px !important;
    max-width: 15px;
    max-height: 15px;
    flex: 0 0 15px;
}
@media (max-width: 640px) {
    .admin-wrap nav[aria-label="Pagination Navigation"] > div:first-child,
    .forum-pagination nav[aria-label="Pagination Navigation"] > div:first-child {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .admin-wrap nav[aria-label="Pagination Navigation"] > div:last-child,
    .forum-pagination nav[aria-label="Pagination Navigation"] > div:last-child {
        display: none;
    }
}
.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; }

.empty-result-wrap {
    min-height: calc(100vh - 218px);
}

.empty-result-document {
    padding-top: 18px;
}

.empty-result-document h1 {
    max-width: 780px;
}

.empty-answer-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.empty-result-intro {
    max-width: 680px;
    font-size: 15px;
}

.empty-query-box {
    display: grid;
    gap: 4px;
    width: min(560px, 100%);
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid #dfe8ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 36, 44, .07);
}

.empty-query-box span {
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.empty-query-box strong {
    color: #202a31;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.22;
}

.empty-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.empty-result-aside {
    padding: 22px;
    border: 1px solid rgba(7, 141, 143, .16);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(123, 228, 207, .28), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 250, 249, .92));
    box-shadow: 0 18px 44px rgba(17, 36, 44, .08);
}

.empty-result-aside h2 {
    margin: 14px 0 6px;
    color: #24313a;
    font-size: 18px;
}

.empty-result-aside p,
.empty-muted {
    margin: 0;
    color: #60707a;
    font-size: 14px;
    line-height: 1.55;
}

.empty-result-visual {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--teal), #7be4cf);
    box-shadow: 0 14px 30px rgba(7, 141, 143, .2);
}

.empty-result-visual img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.empty-result-discovery {
    align-items: start;
}

.empty-search-chip {
    cursor: pointer;
}

.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;
}

.admin-sidebar-divider {
    height: 1px;
    margin: 14px 0 6px;
    background: linear-gradient(90deg, transparent, rgba(7, 141, 143, .36), transparent);
}

.admin-sidebar-label {
    display: block;
    padding: 8px 10px 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-sidebar a.admin-sidebar-special {
    border-color: rgba(93, 52, 214, .28);
    background: linear-gradient(135deg, rgba(93, 52, 214, .12), rgba(7, 141, 143, .10));
    color: #2e176d;
}

.microsite-admin-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.microsite-client-list {
    position: sticky;
    top: 18px;
}

.microsite-client-links {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.microsite-client-links a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.microsite-client-links a.active {
    border-color: rgba(7, 141, 143, .38);
    background: #f0fbfa;
}

.microsite-client-links span,
.microsite-client-links small {
    color: var(--muted);
}

.microsite-sidebar-action {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
}

.microsite-admin-main {
    display: grid;
    gap: 18px;
}

.microsite-area-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 32px rgba(20,40,45,.06);
}

.microsite-area-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.microsite-area-strip a:hover,
.microsite-area-strip a.active {
    border-color: rgba(7, 141, 143, .25);
    background: #eefafa;
    color: var(--teal-dark);
}

.microsite-form-block,
.microsite-mini-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(12, 36, 46, .10);
    border-radius: 14px;
    background: #fbfdfc;
}

.microsite-form-block legend,
.microsite-mini-card h3 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    padding: 0;
    color: #12252d;
    font-size: 14px;
    font-weight: 950;
}

.microsite-form-block .wide-field,
.microsite-mini-card .wide-field {
    grid-column: 1 / -1;
}

.microsite-block-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.microsite-block-grid > .microsite-mini-card {
    grid-column: auto;
}

.microsite-block-grid > .microsite-mini-card:last-child {
    grid-column: 1 / -1;
}

.microsite-mini-card .stats-grid {
    grid-column: 1 / -1;
    margin: 0;
}

.template-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

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

.template-row p {
    margin: 4px 0 0;
}

.template-domain-usage {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.template-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-domain-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #d9e6e7;
    border-radius: 999px;
    background: #f8fcfc;
    color: #145c63;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.template-domain-list small {
    color: #70838a;
    font-size: 11px;
    font-weight: 700;
}

.template-delete-form {
    display: grid;
    gap: 8px;
    max-width: 300px;
}

.template-delete-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #7b2b2b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.template-delete-confirm input {
    margin-top: 2px;
}

.microsite {
    min-height: 100vh;
    background: #f5f7f5;
    color: #182329;
}

.microsite a {
    color: inherit;
}

.microsite-hero {
    min-height: 430px;
    padding: 26px clamp(18px, 5vw, 72px) 62px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 41, 49, .88), rgba(7, 141, 143, .64)),
        url("/assets/kanodle-home-bg.png");
    background-size: cover;
    background-position: center;
}

.microsite-nav,
.microsite-result-topbar,
.microsite-editorial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.microsite-brand {
    font-size: 24px;
    font-weight: 950;
    letter-spacing: 0;
}

.microsite-client-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 20px clamp(18px, 4vw, 56px);
    border-top: 1px solid rgba(23, 32, 38, .08);
    background: rgba(255, 255, 255, .94);
    color: #66757d;
    font-size: 13px;
    font-weight: 700;
}

.microsite-client-footer a {
    color: var(--teal-dark);
    font-weight: 900;
}

.microsite-search-panel {
    width: min(780px, 100%);
    margin: 72px auto 0;
    text-align: center;
}

.microsite-kicker {
    margin: 0 0 8px;
    color: #078d8f;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.microsite-hero .microsite-kicker {
    color: #baf7f0;
}

.microsite-search-panel h1,
.microsite-editorial-lead h1,
.microsite-article h1,
.microsite-empty h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.03;
    letter-spacing: 0;
}

.microsite-search-panel p,
.microsite-editorial-lead p,
.microsite-lead {
    color: inherit;
    opacity: .84;
    font-size: 18px;
    line-height: 1.65;
}

.microsite-search,
.microsite-top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(720px, 100%);
    margin: 26px auto 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 60px rgba(12, 37, 43, .18);
}

.microsite-search input,
.microsite-top-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    outline: 0;
    color: #182329;
}

.microsite-search button,
.microsite-top-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #078d8f;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.microsite-wrap,
.microsite-result-wrap,
.microsite-editorial-article {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 70px;
}

.microsite-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.microsite-card,
.microsite-article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 37, 47, .07);
}

.microsite-card {
    padding: 20px;
}

.microsite-card h2,
.microsite-article h2 {
    margin: 0 0 12px;
}

.microsite-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.microsite-tags a,
.microsite-tags span {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbfa;
    color: #20333a;
    font-size: 13px;
    font-weight: 800;
}

.microsite-result-list,
.microsite-link-list {
    display: grid;
    gap: 10px;
}

.microsite-result-list a,
.microsite-link-list a,
.microsite-news-item {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
}

.microsite-result-list img,
.microsite-news-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(12, 36, 46, .08);
}

.microsite-result-list span,
.microsite-link-list span,
.microsite-news-item span,
.microsite-news-item p {
    color: var(--muted);
}

.microsite-result-topbar {
    padding: 18px clamp(18px, 4vw, 64px);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.microsite-top-search {
    width: min(520px, 100%);
    margin: 0;
    border-color: var(--line);
    box-shadow: none;
}

.microsite-result-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.microsite-article {
    padding: clamp(22px, 4vw, 46px);
}

.microsite-article section {
    margin-top: 28px;
}

.microsite-article p {
    line-height: 1.78;
}

.microsite-result-image {
    margin: 22px 0 30px;
}

.microsite-result-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(12, 36, 46, .08);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
}

.microsite-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.microsite-faq {
    grid-column: 1 / -1;
}

.microsite-faq details {
    border-top: 1px solid var(--line);
    padding: 13px 0;
}

.microsite-faq summary {
    cursor: pointer;
    font-weight: 900;
}

.microsite-editorial {
    background: #fff;
}

.microsite-editorial-header {
    padding: 18px clamp(18px, 5vw, 72px);
    border-bottom: 3px solid #111827;
    background: #fff;
}

.microsite-editorial-grid {
    width: min(1160px, calc(100% - 32px));
    margin: 34px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.microsite-editorial-lead {
    padding: clamp(28px, 5vw, 70px);
    border-radius: 18px;
    background: #f1f5f9;
}

.microsite-editorial .microsite-search {
    margin-left: 0;
    border-color: var(--line);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.microsite-news-list {
    display: block;
}

.microsite-news-list > div {
    display: grid;
    gap: 12px;
}

.microsite-editorial-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.microsite-empty {
    width: min(760px, calc(100% - 32px));
    margin: 80px auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 48px rgba(16, 37, 47, .08);
}

.analytics-chart-card {
    display: grid;
    gap: 18px;
}

.analytics-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.analytics-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.analytics-legend i {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.analytics-legend i.views {
    background: #078d8f;
}

.analytics-legend i.searches {
    background: #6d43d8;
}

.analytics-chart {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(30, minmax(10px, 1fr));
    gap: 7px;
    align-items: end;
    padding: 18px 12px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(7, 141, 143, .07), rgba(7, 141, 143, 0)),
        repeating-linear-gradient(180deg, transparent 0, transparent 51px, rgba(14, 32, 38, .06) 52px);
    overflow-x: auto;
}

.analytics-day {
    min-width: 12px;
    height: 220px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 6px;
    align-items: end;
}

.analytics-bars {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
}

.analytics-bars span {
    width: 7px;
    min-height: 2px;
    border-radius: 999px 999px 3px 3px;
}

.analytics-bars .views {
    background: linear-gradient(180deg, #1bc5c1, #078d8f);
}

.analytics-bars .searches {
    background: linear-gradient(180deg, #9b7cff, #6d43d8);
}

.analytics-day small {
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.analytics-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .analytics-filter-grid {
        grid-template-columns: 1fr;
    }

    .analytics-chart {
        grid-template-columns: repeat(30, minmax(14px, 1fr));
    }
}

@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; }
    .microsite-admin-layout,
    .microsite-wrap,
    .microsite-result-wrap,
    .microsite-editorial-grid,
    .microsite-editorial-article {
        grid-template-columns: 1fr;
    }
    .microsite-client-list { position: static; }
    .microsite-result-topbar,
    .microsite-editorial-header {
        align-items: stretch;
        flex-direction: column;
    }
    .microsite-top-search,
    .microsite-search {
        border-radius: 18px;
        flex-wrap: wrap;
    }
    .microsite-top-search button,
    .microsite-search button {
        width: 100%;
    }
    .admin-heading, .settings-panel-head { display: grid; }
    .settings-grid { grid-template-columns: 1fr; }
    .microsite-form-block,
    .microsite-mini-card,
    .microsite-block-grid {
        grid-template-columns: 1fr;
    }
    .microsite-block-grid > .microsite-mini-card {
        grid-column: 1 / -1;
    }
    .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 {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #fff;
    line-height: 1;
}

.language-switcher label::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 13px;
    width: 15px;
    height: 15px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat,
        linear-gradient(90deg, transparent 41%, currentColor 41% 59%, transparent 59%) center / 100% 100% no-repeat;
    opacity: .95;
    pointer-events: none;
}

.language-switcher label::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 14px;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .9;
    pointer-events: none;
}

.language-switcher select {
    min-height: 42px;
    width: auto;
    min-width: 100px;
    max-width: 152px;
    field-sizing: content;
    padding: 8px 34px 8px 38px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(17, 42, 54, .26);
    color: inherit;
    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;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: ellipsis;
}

.language-switcher select::-ms-expand {
    display: none;
}

.language-switcher select:focus {
    outline: none;
    border-color: rgba(137, 233, 216, .92);
    box-shadow:
        0 0 0 3px rgba(7, 141, 143, .18),
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 14px 36px rgba(0, 0, 0, .16);
}

.social-home-topbar .language-switcher label,
.news-topbar .language-switcher label {
    color: #075f66;
}

.social-home-topbar .language-switcher select,
.news-topbar .language-switcher select {
    border-color: rgba(7, 95, 102, .16);
    background: rgba(255, 255, 255, .86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 24px rgba(17, 36, 44, .08);
}

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

.language-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 5600;
}

.language-menu[open] {
    z-index: 9400;
}

.language-menu summary {
    list-style: none;
}

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

.language-menu-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 152px;
    padding: 8px 13px;
    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;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.language-menu-toggle:focus-visible {
    outline: none;
    border-color: rgba(137, 233, 216, .92);
    box-shadow:
        0 0 0 3px rgba(7, 141, 143, .18),
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 14px 36px rgba(0, 0, 0, .16);
}

.language-menu-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat,
        linear-gradient(90deg, transparent 41%, currentColor 41% 59%, transparent 59%) center / 100% 100% no-repeat;
    opacity: .95;
}

.language-menu-current {
    min-width: 0;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-menu-chevron {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .9;
    transition: transform .18s ease;
}

.language-menu[open] .language-menu-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.language-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(232px, calc(100vw - 28px));
    max-height: min(360px, calc(100vh - 126px));
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(208, 219, 223, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(17, 36, 44, .18);
    backdrop-filter: blur(20px);
}

.language-menu-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 12px;
    color: #21323a;
    font-size: 14px;
    font-weight: 800;
}

.language-menu-option:hover,
.language-menu-option:focus-visible,
.language-menu-option.active {
    outline: none;
    background: rgba(7, 141, 143, .1);
    color: #055c63;
}

.language-menu-option small {
    flex: 0 0 auto;
    min-width: 34px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(7, 141, 143, .1);
    color: #075f66;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.social-home-topbar .language-menu-toggle,
.news-topbar .language-menu-toggle {
    border-color: rgba(7, 95, 102, .16);
    background: rgba(255, 255, 255, .86);
    color: #075f66;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 24px rgba(17, 36, 44, .08);
}

@media (max-width: 760px) {
    .language-switcher label::before {
        left: 11px;
        width: 14px;
        height: 14px;
    }

    .language-switcher label::after {
        right: 12px;
        width: 6px;
        height: 6px;
    }

    .language-switcher select {
        min-height: 38px;
        min-width: 86px;
        max-width: 120px;
        padding: 7px 30px 7px 32px;
        font-size: 13px;
    }

    .language-menu-toggle {
        min-height: 38px;
        gap: 8px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .language-menu-icon {
        width: 14px;
        height: 14px;
    }

    .language-menu-current {
        max-width: 62px;
    }

    .language-menu-list {
        top: calc(100% + 8px);
        max-height: min(320px, calc(100vh - 108px));
        border-radius: 16px;
    }
}

.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 {
    grid-column: 1;
    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 {
    grid-column: 4;
    background: transparent;
    color: #65737c;
    cursor: pointer;
}

.voice-button[hidden] {
    display: none !important;
}

.voice-button.is-listening {
    background: rgba(7, 141, 143, .12);
    color: var(--teal-dark);
    box-shadow: 0 0 0 6px rgba(7, 141, 143, .11);
}

.search-box.is-listening,
.mini-search.is-listening {
    box-shadow: 0 20px 58px rgba(7, 141, 143, .24), 0 0 0 4px rgba(7, 141, 143, .1);
}

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

.start-search input[name="keyword"] {
    grid-column: 2;
}

.start-search .search-progress {
    grid-column: 3;
}

.start-search.voice-unavailable {
    grid-template-columns: 48px minmax(0, 1fr) auto 48px;
}

.start-search.voice-unavailable .search-submit {
    grid-column: 4;
}

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

.mini-voice-button {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

.mini-voice-button img {
    width: 18px;
    height: 18px;
}

.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) auto 40px 42px;
        min-height: 56px;
    }

    .start-search.voice-unavailable {
        grid-template-columns: 40px minmax(0, 1fr) auto 42px;
    }

    .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;
    position: relative;
}

.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-hero-image {
    width: min(760px, 100%);
    margin: 18px 0 22px;
    overflow: hidden;
    border-radius: 16px;
    isolation: isolate;
}

.result-preview-download {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #17313a;
    box-shadow: 0 14px 30px rgba(17, 36, 44, .18);
    backdrop-filter: blur(14px);
    transition: transform .16s ease, background .16s ease;
}

.result-preview-download:hover {
    transform: translateY(-1px);
    background: #fff;
}

.result-preview-download img {
    width: 19px;
    height: 19px;
    border-radius: 0;
    box-shadow: none;
}

.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) {
    .forum-toolbar,
    .forum-search {
        display: grid;
        width: 100%;
    }

    .forum-topic-header {
        display: none;
    }

    .forum-topic-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
        padding: 15px;
    }

    .forum-topic-author,
    .forum-topic-date {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .forum-topic-count {
        width: auto;
        height: auto;
        justify-self: start;
        padding: 5px 10px;
    }

    .forum-post {
        grid-template-columns: 1fr;
    }

    .forum-post-author {
        display: flex;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid #edf2f3;
    }

    .forum-post-children {
        margin-left: 12px;
    }

    .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;
    }

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

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

    .result-preview-download {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
    }

    .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;
    }
}

.template-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.template-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdfc;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.template-choice-card:has(input:checked) {
    border-color: rgba(7, 141, 143, .42);
    background: #eef8f7;
    box-shadow: 0 14px 34px rgba(7, 141, 143, .1);
}

.template-choice-card input {
    margin-top: 5px;
}

.template-choice-card span {
    display: grid;
    gap: 4px;
}

.template-choice-card small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.45;
}

.template-choice-card em {
    color: var(--teal-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.error-text {
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.social-home-shell {
    background: #f2f6f7;
}

.social-home {
    position: relative;
    min-height: calc(100vh - 72px);
    padding: 78px clamp(16px, 3vw, 34px) 34px;
    overflow: hidden;
    background: var(--bg) center / cover no-repeat;
}

.social-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(246, 250, 251, .82), rgba(246, 250, 251, .62) 32%, rgba(246, 250, 251, .78)),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .52), transparent 34%);
    pointer-events: none;
}

.social-home-topbar {
    position: fixed;
    z-index: 5000;
    top: 14px;
    left: clamp(14px, 2.4vw, 32px);
    right: clamp(14px, 2.4vw, 32px);
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid rgba(219, 229, 232, .88);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 58px rgba(17, 36, 44, .13);
    backdrop-filter: blur(20px);
}

.social-home-topbar .brand-logo-image {
    height: 30px;
    max-width: 168px;
}

.social-language-switcher {
    min-width: 132px;
    margin: 0;
}

.social-home-actions {
    display: inline-flex;
    justify-content: flex-end;
}

.social-home-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(190px, 248px) minmax(420px, 720px) minmax(220px, 300px);
    gap: clamp(14px, 2vw, 22px);
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
}

.social-sidebar,
.social-feed {
    min-width: 0;
}

.social-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 86px;
}

.social-panel,
.social-search-card,
.social-feed-card,
.social-feed-toolbar,
.social-post,
.social-result-card {
    border: 1px solid rgba(222, 231, 233, .88);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 46px rgba(17, 36, 44, .1);
    backdrop-filter: blur(18px);
}

.social-panel {
    padding: 16px;
}

.social-panel h2,
.social-feed-card h2,
.social-result-card h2 {
    margin: 0;
    color: #14242b;
    font-size: 15px;
    line-height: 1.25;
}

.social-feed {
    display: grid;
    gap: 16px;
}

.social-discovery-feed {
    display: grid;
    gap: 14px;
}

.social-feed-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
}

.social-feed-toolbar-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef7f8;
}

.social-feed-toolbar-avatar img {
    width: 32px;
    max-width: 76%;
    object-fit: contain;
}

.social-feed-toolbar h2 {
    margin: 0;
    color: #102127;
    font-size: 17px;
    line-height: 1.2;
}

.social-feed-toolbar p {
    margin: 3px 0 0;
    color: #60717a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.social-search-card {
    display: grid;
    gap: 15px;
    padding: clamp(16px, 2.2vw, 22px);
}

.social-search-head {
    display: grid;
    gap: 4px;
}

.social-search-head h1 {
    margin: 0;
    color: #102127;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
}

.social-search-head span {
    color: #078d8f;
    font-size: 16px;
    font-weight: 900;
}

.social-search-form {
    width: 100%;
    margin: 0;
    box-shadow: inset 0 0 0 1px rgba(224, 232, 234, .95), 0 16px 34px rgba(17, 36, 44, .08);
}

.social-search-form .suggestions {
    z-index: 12000;
}

.social-mode-pills {
    justify-content: flex-start;
    margin: 0;
}

.social-shortcuts {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.social-shortcuts > .shortcut,
.social-shortcuts > .shortcut-wrap {
    width: 100%;
}

.social-shortcut,
.social-shortcuts .shortcut-add {
    min-height: 92px;
    padding: 10px 6px;
    border-radius: 14px;
}

.social-shortcuts .shortcut-icon {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

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

.social-feed-card {
    padding: 16px;
}

.social-feed-card .panel-head {
    margin-bottom: 12px;
}

.social-tag-list,
.social-compact-list {
    gap: 8px;
}

.social-popular-list {
    display: grid;
    gap: 8px;
}

.social-popular-list .popular-row {
    border-radius: 12px;
    background: #f5f9fa;
}

.social-background-panel {
    position: relative;
    z-index: 9000;
}

.social-background-trigger {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
    background: #f4faf9;
    color: #102127;
}

.social-background-trigger span {
    display: inline;
    font-weight: 900;
}

.social-home .background-picker-panel {
    z-index: 16000;
    right: 0;
    width: min(460px, calc(100vw - 36px));
}

.social-result-page {
    min-height: 100vh;
    background: #f1f5f6;
}

.social-result-shell {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(440px, 760px) minmax(220px, 320px);
    gap: clamp(14px, 2vw, 22px);
    align-items: start;
    width: min(100% - 32px, 1320px);
    margin: 24px auto 44px;
}

.social-result-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 96px;
}

.social-result-card {
    padding: 16px;
}

.social-result-nav {
    display: grid;
    gap: 6px;
}

.social-result-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #465861;
    font-weight: 900;
    text-decoration: none;
}

.social-result-nav a.active,
.social-result-nav a:hover {
    background: #e9f6f6;
    color: #056f75;
}

.social-result-feed {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.social-post {
    padding: clamp(18px, 2.5vw, 28px);
}

.social-discovery-post {
    padding: 14px;
}

.social-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.social-post-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eff6f7;
    overflow: hidden;
}

.social-post-avatar img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.social-post-head strong {
    display: block;
    color: #102127;
    font-size: 14px;
}

.social-post-head span {
    color: #71828a;
    font-size: 12px;
    font-weight: 800;
}

.social-discovery-link {
    display: grid;
    overflow: hidden;
    border: 1px solid #e8eff1;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.social-discovery-link:hover {
    border-color: #cfe7e7;
    box-shadow: 0 16px 34px rgba(17, 36, 44, .1);
    transform: translateY(-1px);
}

.social-post-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    background: #edf5f6;
}

.social-post-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-post-image-placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(7, 141, 143, .9), rgba(31, 69, 82, .92)),
        #eef7f8;
}

.social-post-image-placeholder span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.social-post-body {
    display: grid;
    gap: 8px;
    padding: 15px 16px 16px;
}

.social-keyword-pill {
    justify-self: start;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecf8f8;
    color: #057277;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.social-post-body h3,
.social-feed-empty h3 {
    margin: 0;
    color: #102127;
    font-size: 20px;
    line-height: 1.22;
}

.social-post-body p {
    margin: 0;
    color: #4d5f68;
    font-size: 14px;
    line-height: 1.58;
}

.social-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf2f3;
}

.social-post-actions a,
.social-post-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f5f9fa;
    color: #40535c;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.social-post-actions a:hover {
    background: #e8f6f6;
    color: #056f75;
}

.social-feed-empty {
    display: grid;
    gap: 12px;
}

.result-social-post h1 {
    margin: 0 0 10px;
    color: #102127;
    font-size: clamp(30px, 3.7vw, 46px);
    line-height: 1.04;
    letter-spacing: 0;
}

.result-social-post .answer-intro {
    margin: 0 0 18px;
    color: #52646c;
    font-size: 16px;
    line-height: 1.6;
}

.social-result-image {
    width: 100%;
    margin: 0 0 20px;
    border-radius: 18px;
    overflow: hidden;
}

.social-result-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.social-answer-body {
    display: grid;
    gap: 16px;
}

.social-answer-section {
    padding-top: 2px;
}

.social-answer-section h2 {
    margin: 0 0 8px;
    color: #15252c;
    font-size: 20px;
    line-height: 1.25;
}

.social-answer-section p {
    margin: 0;
    color: #40525b;
    font-size: 15px;
    line-height: 1.7;
}

.social-external-results {
    margin-top: 20px;
}

.social-action-strip {
    justify-content: flex-start;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #edf2f3;
}

.social-action-strip .soft-action {
    min-height: 38px;
    border-radius: 999px;
}

.social-discussion-post .comment-title-row {
    margin-bottom: 14px;
}

.social-faq-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.social-faq-list .faq-row {
    border: 1px solid #e6edef;
    border-radius: 12px;
    background: #fbfdfd;
}

.social-faq-list .faq-row summary {
    padding: 11px 12px;
    color: #24343b;
    font-size: 13px;
    font-weight: 900;
}

.social-faq-list .faq-row p {
    margin: 0;
    padding: 0 12px 12px;
    color: #5f6f77;
    font-size: 13px;
    line-height: 1.5;
}

.social-result-card .tags {
    margin-top: 12px;
}

@media (max-width: 1180px) {
    .social-home-layout,
    .social-result-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .social-sidebar,
    .social-result-sidebar {
        position: static;
    }

    .social-left-sidebar {
        order: 2;
    }

    .social-feed,
    .social-result-feed {
        order: 1;
    }

    .social-right-sidebar {
        order: 3;
    }

    .social-result-sidebar:first-child {
        order: 2;
    }

    .social-result-sidebar:last-child {
        order: 3;
    }

    .social-result-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .social-home {
        padding: 86px 12px 24px;
        background-image: var(--bg-mobile);
    }

    .social-home-topbar {
        grid-template-columns: minmax(112px, 1fr) auto;
        gap: 8px;
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 18px;
    }

    .social-home-topbar .brand-logo-image {
        height: 25px;
        max-width: 136px;
    }

    .social-language-switcher {
        grid-column: 2;
        min-width: 98px;
    }

    .social-home-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .social-search-head h1,
    .result-social-post h1 {
        font-size: 30px;
    }

    .social-result-shell {
        width: min(100% - 20px, 760px);
        margin-top: 16px;
    }

    .social-result-nav {
        display: flex;
        overflow-x: auto;
    }

    .social-result-nav a {
        flex: 0 0 auto;
    }

    .social-post,
    .social-search-card,
    .social-panel,
    .social-feed-toolbar,
    .social-feed-card,
    .social-result-card {
        border-radius: 16px;
    }

    .social-action-strip {
        gap: 8px;
    }

    .social-action-strip .soft-action span {
        display: none;
    }
}

.social-home-shell {
    background: #f0f2f5;
}

.social-home {
    min-height: calc(100vh - 72px);
    padding: 82px clamp(12px, 2vw, 28px) 28px;
    overflow: visible;
    background: #f0f2f5;
}

.social-home::before {
    display: none;
}

.social-home-topbar {
    top: 0;
    left: 0;
    right: 0;
    min-height: 58px;
    grid-template-columns: minmax(150px, 220px) minmax(240px, 560px) auto auto;
    gap: 12px;
    padding: 8px clamp(12px, 2.2vw, 28px);
    border-width: 0 0 1px;
    border-color: #dde2e7;
    border-radius: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 8px rgba(25, 38, 52, .08);
    backdrop-filter: blur(14px);
}

.social-home-topbar .brand-logo-image {
    height: 28px;
    max-width: 158px;
}

.social-topbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    max-width: 520px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #64707d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.social-topbar-search img {
    width: 17px;
    height: 17px;
    opacity: .72;
}

.social-home-layout {
    grid-template-columns: minmax(220px, 280px) minmax(430px, 660px) minmax(230px, 310px);
    gap: 18px;
    max-width: 1260px;
}

.social-sidebar {
    top: 76px;
    gap: 12px;
}

.social-panel,
.social-search-card,
.social-feed-card,
.social-feed-toolbar,
.social-post,
.social-result-card {
    border: 1px solid #dde3e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(25, 38, 52, .08);
    backdrop-filter: none;
}

.social-panel {
    padding: 12px;
}

.social-profile-card {
    display: grid;
    gap: 12px;
}

.social-profile-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 4px;
}

.social-profile-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f6;
    color: #24384a;
    font-weight: 900;
}

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

.social-profile-avatar img[src*="kanodle-logo"] {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.social-profile-row strong,
.social-composer-row strong {
    display: block;
    overflow: hidden;
    color: #17212b;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-profile-row span,
.social-composer-row span {
    display: block;
    margin-top: 2px;
    color: #687584;
    font-size: 12px;
    font-weight: 800;
}

.social-side-nav {
    display: grid;
    gap: 4px;
}

.social-side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #253444;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.social-side-nav a:hover {
    background: #f0f2f5;
}

.social-side-nav img {
    width: 18px;
    height: 18px;
}

.social-side-nav span[aria-hidden="true"] {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e7f4f4;
    color: #087e83;
    font-size: 13px;
}

.social-search-card {
    gap: 14px;
    padding: 16px;
}

.social-composer-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f3;
}

.social-search-head h1 {
    font-size: clamp(21px, 2.4vw, 28px);
    line-height: 1.15;
}

.social-search-head span {
    color: #5c35b1;
    font-size: 14px;
}

.social-search-form {
    min-height: 50px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px #dfe5ea;
}

.social-mode-pills .mode-pill {
    border-radius: 8px;
}

.social-feed-toolbar {
    padding: 12px 14px;
}

.social-feed-toolbar-avatar,
.social-post-avatar {
    background: #eef2f6;
}

.social-post-avatar span {
    color: #24384a;
    font-size: 16px;
    font-weight: 900;
}

.social-discovery-feed {
    gap: 12px;
}

.social-discovery-post {
    padding: 0;
    overflow: hidden;
}

.social-discovery-post .social-post-head {
    padding: 14px 14px 0;
}

.social-discovery-link {
    border-width: 0;
    border-top: 1px solid #edf0f3;
    border-radius: 0;
}

.social-discovery-link:hover {
    box-shadow: none;
    transform: none;
}

.social-post-cover {
    background: #e9edf2;
}

.social-post-body {
    padding: 14px 16px 16px;
}

.social-keyword-pill {
    background: #f0f2f5;
    color: #5c35b1;
}

.social-post-body h3,
.social-feed-empty h3 {
    color: #17212b;
    font-size: 19px;
}

.social-post-body p {
    color: #465462;
}

.social-post-actions {
    justify-content: space-around;
    gap: 0;
    margin: 0 14px;
    padding: 8px 0;
}

.social-post-actions a,
.social-post-actions span {
    justify-content: center;
    flex: 1 1 auto;
    min-height: 36px;
    border-radius: 8px;
    background: transparent;
    color: #687584;
    font-size: 13px;
}

.social-post-actions a:hover {
    background: #f0f2f5;
    color: #5c35b1;
}

.social-feed-card {
    padding: 14px;
}

.social-background-trigger {
    background: #f0f2f5;
}

.social-result-page {
    background: #f0f2f5;
}

.social-result-shell {
    grid-template-columns: minmax(220px, 280px) minmax(430px, 680px) minmax(230px, 310px);
    gap: 18px;
    width: min(100% - 28px, 1260px);
}

.social-result-sidebar {
    top: 86px;
}

.social-result-nav a {
    border-radius: 8px;
}

.social-result-nav a.active,
.social-result-nav a:hover {
    background: #f0f2f5;
    color: #5c35b1;
}

.result-social-post {
    padding: 0;
    overflow: hidden;
}

.result-social-post .social-post-head {
    padding: 16px 18px 0;
}

.result-social-post h1,
.result-social-post .answer-intro,
.result-social-post .social-answer-body,
.result-social-post .social-external-results,
.result-social-post .social-action-strip {
    margin-left: 18px;
    margin-right: 18px;
}

.result-social-post h1 {
    font-size: clamp(26px, 3vw, 38px);
}

.social-result-image {
    border-radius: 0;
}

.social-action-strip {
    justify-content: space-around;
    padding-bottom: 14px;
}

.social-action-strip .soft-action {
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .social-home-layout,
    .social-result-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 760px;
    }

    .social-profile-card {
        order: -1;
    }
}

@media (max-width: 760px) {
    .social-home {
        padding: 118px 10px 22px;
        background: #f0f2f5;
    }

    .social-home-topbar {
        grid-template-columns: minmax(112px, 1fr) auto;
        min-height: 104px;
    }

    .social-topbar-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: none;
    }

    .social-language-switcher {
        grid-column: 2;
    }

    .social-home-actions {
        grid-column: 1 / -1;
    }

    .social-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-result-shell {
        width: min(100% - 18px, 760px);
    }
}

.news-home-shell,
.news-result-page {
    min-height: 100vh;
    background: #f5f7f8;
    color: #102027;
}

.news-home {
    position: relative;
    min-height: calc(100vh - 72px);
    padding: 132px clamp(14px, 2.6vw, 34px) 36px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(245, 247, 248, .9), rgba(245, 247, 248, .74) 42%, rgba(245, 247, 248, .96)),
        var(--bg) center / cover no-repeat;
}

.news-topbar {
    position: fixed;
    z-index: 5200;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px clamp(16px, 3vw, 38px);
    border-bottom: 1px solid rgba(208, 219, 223, .9);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 42px rgba(15, 31, 38, .08);
    backdrop-filter: blur(18px);
}

.news-topbar .brand-logo-image {
    height: 32px;
    max-width: 176px;
}

.news-language-switcher {
    min-width: 132px;
    margin: 0;
}

.news-home-actions {
    display: inline-flex;
    justify-content: flex-end;
}

.news-topic-bar {
    position: fixed;
    z-index: 5100;
    top: 72px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px clamp(16px, 3vw, 38px);
    border-bottom: 1px solid rgba(214, 224, 227, .86);
    background: rgba(250, 252, 252, .92);
    backdrop-filter: blur(16px);
}

.news-topic-bar button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #42545d;
    font-weight: 900;
    cursor: pointer;
}

.news-topic-bar button.active,
.news-topic-bar button:hover {
    background: #102027;
    color: #fff;
}

.news-hero-grid,
.news-dashboard,
.news-result-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1360px);
    margin: 0 auto;
}

.news-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 18px;
    align-items: stretch;
}

.news-search-lead,
.news-lead-story,
.news-panel,
.news-story-card,
.news-list-section,
.news-widget-panel,
.news-article,
.news-result-card,
.news-result-discussion {
    border: 1px solid rgba(210, 221, 225, .94);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 42px rgba(15, 31, 38, .09);
    backdrop-filter: blur(14px);
}

.news-search-lead {
    display: grid;
    gap: 14px;
    align-content: center;
    min-height: 360px;
    padding: clamp(22px, 4vw, 46px);
}

.news-kicker {
    color: #c7352d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
}

.news-search-lead h1 {
    max-width: 780px;
    margin: 0;
    color: #102027;
    font-size: clamp(36px, 5.3vw, 66px);
    line-height: .98;
    letter-spacing: 0;
}

.news-search-lead p {
    margin: 0;
    color: #51646d;
    font-size: 16px;
    font-weight: 800;
}

.news-search-form {
    width: min(100%, 740px);
    margin: 4px 0 0;
    border: 1px solid #dbe5e8;
    box-shadow: 0 18px 38px rgba(15, 31, 38, .12);
}

.news-search-form .suggestions,
.news-home .suggestions {
    z-index: 17000;
}

.news-mode-pills {
    justify-content: flex-start;
    margin: 0;
}

.news-lead-story {
    overflow: hidden;
}

.news-lead-story a {
    display: grid;
    grid-template-rows: minmax(190px, 1fr) auto;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-lead-story figure {
    position: relative;
    min-height: 220px;
    margin: 0;
    overflow: hidden;
    background: #dfe8ea;
}

.news-lead-story img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.news-lead-story a:hover img {
    transform: scale(1.025);
}

.news-lead-story div,
.news-empty-lead {
    display: grid;
    gap: 9px;
    padding: 18px;
}

.news-lead-story h2,
.news-empty-lead h2 {
    margin: 0;
    color: #102027;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.06;
}

.news-lead-story p,
.news-empty-lead p {
    margin: 0;
    color: #54666e;
    font-size: 14px;
    line-height: 1.55;
}

.news-dashboard {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) minmax(240px, 315px);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.news-rail {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 128px;
    min-width: 0;
}

.news-panel {
    padding: 15px;
}

.news-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #102027;
}

.news-panel-head h2 {
    margin: 0;
    color: #102027;
    font-size: 16px;
    line-height: 1.25;
}

.news-shortcuts {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}

.news-shortcuts > .shortcut,
.news-shortcuts > .shortcut-wrap {
    width: 100%;
}

.news-shortcut,
.news-shortcuts .shortcut-add {
    min-height: 86px;
    padding: 9px 6px;
    border-radius: 8px;
    background: #f5f8f9;
}

.news-shortcuts .shortcut-icon {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.news-add-launcher,
.news-home .shortcut-actions {
    position: relative;
    z-index: 15000;
}

.news-background-panel {
    position: relative;
    z-index: 14500;
}

.news-background-trigger {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
    border-radius: 8px;
    background: #102027;
    color: #fff;
}

.news-background-trigger img {
    filter: brightness(0) invert(1);
}

.news-background-trigger span {
    display: inline;
    font-weight: 900;
}

.news-home .background-picker {
    width: 100%;
    z-index: 14500;
}

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

.news-home .background-picker-panel {
    z-index: 18000;
    right: auto;
    left: 0;
    width: min(460px, calc(100vw - 36px));
}

.news-main-feed {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-story-card {
    overflow: hidden;
}

.news-story-card a,
.fallback-news-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.news-story-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    background: #dfe8ea;
}

.news-story-card h2 {
    margin: 0;
    color: #102027;
    font-size: 20px;
    line-height: 1.18;
}

.news-story-card p {
    margin: 0;
    color: #53666f;
    font-size: 14px;
    line-height: 1.52;
}

.news-list-section {
    padding: 16px;
}

.news-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #e6eef0;
}

.news-list-item:first-of-type {
    border-top: 0;
}

.news-list-item a:first-child {
    display: grid;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.news-list-item strong {
    color: #102027;
    font-size: 16px;
    line-height: 1.25;
}

.news-list-item span {
    color: #5f7078;
    font-size: 13px;
    line-height: 1.45;
}

.news-list-item .share {
    align-self: start;
}

.news-widget-stack.startpage-panels {
    display: grid;
    width: 100%;
    margin: 0;
    gap: 14px;
}

.news-widget-panel {
    width: 100%;
    padding: 14px;
}

.news-widget-panel .panel-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5edf0;
}

.news-widget-panel .phrase-chip,
.news-widget-panel .popular-row {
    border-radius: 999px;
    background: #f3f7f8;
    color: #273942;
}

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

.news-home:has(.background-picker-panel:not([hidden])) .news-background-panel,
.news-home:has(.shortcut-add[open]) .news-add-launcher,
.news-home:has(.shortcut-actions[open]) .shortcut-actions {
    pointer-events: auto;
}

.news-result-shell {
    display: grid;
    grid-template-columns: minmax(0, 880px) minmax(250px, 340px);
    gap: 22px;
    align-items: start;
    margin-top: 24px;
    margin-bottom: 46px;
}

.news-result-notice {
    grid-column: 1 / -1;
}

.news-article {
    grid-column: 1;
    overflow: hidden;
}

.news-article-header {
    display: grid;
    gap: 12px;
    padding: clamp(22px, 4vw, 42px) clamp(20px, 3.2vw, 38px) 18px;
}

.news-article-header h1 {
    margin: 0;
    color: #102027;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.news-article-header p {
    max-width: 760px;
    margin: 0;
    color: #4f626b;
    font-size: 17px;
    line-height: 1.62;
}

.news-article-hero {
    width: calc(100% - clamp(40px, 6.4vw, 76px));
    margin: 0 clamp(20px, 3.2vw, 38px) 26px;
    border-radius: 8px;
    overflow: hidden;
}

.news-article-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.news-article-body {
    display: grid;
    gap: 18px;
    padding: 0 clamp(20px, 3.2vw, 38px) 26px;
}

.news-article-section {
    display: grid;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid #e6eef0;
}

.news-article-section:first-child {
    border-top: 3px solid #102027;
}

.news-article-section h2 {
    margin: 0;
    color: #102027;
    font-size: 24px;
    line-height: 1.2;
}

.news-article-section p {
    margin: 0;
    color: #32464f;
    font-size: 16px;
    line-height: 1.75;
}

.news-external-results {
    margin: 0 clamp(20px, 3.2vw, 38px) 26px;
}

.news-action-strip {
    justify-content: flex-start;
    margin: 0 clamp(20px, 3.2vw, 38px) 30px;
    padding-top: 18px;
    border-top: 1px solid #e6eef0;
}

.news-action-strip .soft-action {
    min-height: 38px;
    border-radius: 999px;
}

.news-result-aside {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 96px;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.news-result-card {
    padding: 16px;
}

.news-result-card h2,
.news-result-discussion h2 {
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid #102027;
    color: #102027;
    font-size: 16px;
    line-height: 1.25;
}

.news-result-card .tags {
    margin-top: 0;
}

.news-faq-list {
    display: grid;
    gap: 8px;
}

.news-faq-list .faq-row {
    border: 1px solid #e5edf0;
    border-radius: 8px;
    background: #fbfdfd;
}

.news-faq-list .faq-row summary {
    padding: 11px 12px;
    color: #263942;
    font-size: 13px;
    font-weight: 900;
}

.news-faq-list .faq-row p {
    margin: 0;
    padding: 0 12px 12px;
    color: #60717a;
    font-size: 13px;
    line-height: 1.5;
}

.news-result-discussion {
    grid-column: 1;
    padding: clamp(18px, 3vw, 28px);
}

.news-result-discussion .comment-title-row {
    margin-bottom: 14px;
}

@media (max-width: 1180px) {
    .news-hero-grid,
    .news-dashboard,
    .news-result-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-rail,
    .news-result-aside {
        position: static;
    }

    .news-left-rail {
        order: 2;
    }

    .news-main-feed,
    .news-article {
        order: 1;
    }

    .news-right-rail,
    .news-result-aside {
        order: 3;
    }

    .news-result-discussion {
        order: 4;
    }

    .news-article,
    .news-result-aside,
    .news-result-discussion {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .news-home {
        padding: 126px 10px 24px;
        background:
            linear-gradient(180deg, rgba(245, 247, 248, .93), rgba(245, 247, 248, .78) 42%, rgba(245, 247, 248, .98)),
            var(--bg-mobile) center / cover no-repeat;
    }

    .news-topbar {
        grid-template-columns: minmax(112px, 1fr) auto;
        gap: 8px;
        min-height: 72px;
        padding: 10px;
    }

    .news-topbar .brand-logo-image {
        height: 26px;
        max-width: 136px;
    }

    .news-language-switcher {
        grid-column: 2;
        min-width: 98px;
    }

    .news-home-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .news-topic-bar {
        top: 92px;
        padding: 8px 10px;
    }

    .news-search-lead {
        min-height: auto;
        padding: 20px 14px;
    }

    .news-search-lead h1,
    .news-article-header h1 {
        font-size: 34px;
    }

    .news-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-list-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-result-shell {
        width: min(100% - 20px, 760px);
        gap: 16px;
        margin-top: 16px;
    }

    .news-article-header,
    .news-article-body,
    .news-result-discussion {
        padding-left: 16px;
        padding-right: 16px;
    }

    .news-article-hero,
    .news-external-results,
    .news-action-strip {
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    .news-action-strip {
        gap: 8px;
    }

    .news-action-strip .soft-action span {
        display: none;
    }
}

/* Template stability overrides: keep Social and News layouts from overlapping. */
.social-home *,
.social-result-page *,
.news-home *,
.news-result-page * {
    min-width: 0;
}

.social-home h1,
.social-home h2,
.social-home h3,
.social-result-page h1,
.social-result-page h2,
.social-result-page h3,
.news-home h1,
.news-home h2,
.news-home h3,
.news-result-page h1,
.news-result-page h2,
.news-result-page h3,
.social-post-body p,
.news-story-card p,
.news-list-item span,
.news-article-section p {
    overflow-wrap: anywhere;
}

.social-home {
    padding-top: 18px;
}

.social-home-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: min(1320px, 100%);
    margin: 0 auto 18px;
    grid-template-columns: minmax(130px, 190px) minmax(180px, 1fr) auto auto;
}

.social-topbar-search {
    min-width: 0;
}

.social-home-layout {
    width: min(1320px, 100%);
    grid-template-columns: minmax(0, 248px) minmax(0, 720px) minmax(0, 300px);
}

.social-sidebar {
    max-width: 100%;
}

.social-search-form,
.news-search-form {
    flex-wrap: nowrap;
}

.social-search-form input,
.news-search-form input {
    min-width: 90px;
}

.social-mode-pills,
.news-mode-pills {
    max-width: 100%;
    overflow-x: auto;
}

.social-discovery-link,
.social-post,
.social-result-card,
.news-story-card,
.news-panel,
.news-result-card,
.news-article {
    max-width: 100%;
}

.social-post-cover,
.news-story-card img,
.news-lead-story figure,
.news-article-hero {
    contain: layout paint;
}

.social-result-shell {
    grid-template-columns: minmax(0, 232px) minmax(0, 760px) minmax(0, 300px);
}

.result-social-post {
    overflow: hidden;
}

.news-home {
    padding-top: 18px;
    overflow: visible;
}

.news-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: min(1360px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(130px, 1fr) auto auto;
}

.news-topic-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(1360px, 100%);
    margin: 0 auto 18px;
}

.news-hero-grid,
.news-dashboard,
.news-result-shell {
    width: min(1360px, 100%);
}

.news-result-shell {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.news-article {
    max-width: 100%;
}

.news-article-hero {
    aspect-ratio: 16 / 10;
}

.news-article-hero img {
    height: 100%;
}

.news-widget-stack.startpage-panels {
    grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
    .social-home-layout,
    .social-result-shell,
    .news-hero-grid,
    .news-dashboard,
    .news-result-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .social-result-sidebar,
    .news-result-aside,
    .news-rail {
        position: static;
    }
}

@media (max-width: 920px) {
    .social-home-topbar {
        grid-template-columns: minmax(120px, 1fr) auto;
    }

    .social-topbar-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: none;
    }

    .social-language-switcher {
        grid-column: 2;
    }

    .social-home-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .social-home-actions > * {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .social-home,
    .news-home {
        padding-left: 10px;
        padding-right: 10px;
    }

    .social-home-topbar,
    .news-topbar {
        border-radius: 14px;
    }

    .news-topbar {
        grid-template-columns: minmax(112px, 1fr) auto;
        margin-bottom: 8px;
    }

    .news-topic-bar {
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .news-search-form,
    .social-search-form {
        flex-wrap: wrap;
    }

    .news-search-form input,
    .social-search-form input {
        flex-basis: calc(100% - 112px);
    }

    .news-search-form .search-leading,
    .social-search-form .search-leading {
        display: none;
    }

    .news-search-form .voice-button,
    .social-search-form .voice-button,
    .news-search-form .search-submit,
    .social-search-form .search-submit {
        flex: 0 0 auto;
    }

    .news-article-hero,
    .news-external-results,
    .news-action-strip {
        width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
    }

    .result-social-post,
    .news-article,
    .news-result-card,
    .news-result-discussion {
        border-radius: 14px;
    }
}

.microsite-social-shell .social-home,
.microsite-social-home {
    background: #f0f2f5;
}

.microsite-social-shell .brand-logo-link strong,
.microsite-social-result-topbar .brand-logo-link strong {
    color: #102127;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.microsite-social-result-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: min(1320px, calc(100% - 28px));
    margin: 14px auto 18px;
}

.microsite-social-top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 12px;
}

.microsite-social-top-search input {
    flex: 1 1 auto;
    min-width: 90px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #102127;
    font: inherit;
    font-weight: 800;
}

.microsite-social-top-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: #5c35b1;
    color: #fff;
    font-weight: 900;
    padding: 8px 12px;
    cursor: pointer;
}

.microsite-social-shell .social-feed-toolbar-avatar,
.microsite-social-shell .social-post-avatar,
.microsite-social-result-page .social-post-avatar {
    color: #fff;
    font-weight: 900;
}

@media (max-width: 760px) {
    .microsite-social-result-topbar {
        width: min(100% - 20px, 760px);
    }

    .microsite-social-top-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: none;
        width: 100%;
    }
}

.microsite-default-shell,
.microsite-default-result-page,
.microsite-news-shell,
.microsite-news-result-page {
    min-height: 100vh;
}

.microsite-client-logo span:last-child,
.microsite-result-brand span:last-child,
.microsite-news-brand strong {
    display: inline-block;
    max-width: min(360px, 48vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.microsite-default-home {
    min-height: calc(100svh - 1px);
}

.microsite-default-topbar {
    align-items: flex-start;
}

.microsite-default-actions .nav-pill {
    color: #fff;
}

.microsite-start-center {
    margin-top: clamp(38px, 9vh, 92px);
}

.microsite-start-center .microsite-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 999px;
    background: rgba(17, 42, 54, .28);
    color: #d8fffb;
    backdrop-filter: blur(14px);
}

.microsite-start-copy {
    width: min(660px, 100%);
    margin: 14px auto 0;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.55;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.microsite-default-search {
    width: min(720px, 100%);
    margin: 22px auto 0;
}

.microsite-mode-pills .mode-pill,
.microsite-news-topicbar a,
.microsite-news-home .mode-pill,
.microsite-result-tabs .tab {
    text-decoration: none;
}

.microsite-mode-pills .mode-pill,
.microsite-news-home .mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.microsite-start-links {
    margin-top: clamp(24px, 6vh, 58px);
}

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

.microsite-default-panels {
    align-items: stretch;
}

.microsite-default-panels .phrase-panel {
    color: #fff;
}

.microsite-default-panels .phrase-chip,
.microsite-default-panels .popular-row {
    color: #fff;
}

.microsite-default-result-header {
    z-index: 120;
}

.microsite-result-brand {
    gap: 9px;
    min-width: 0;
    color: #1d3138;
    line-height: 1.1;
}

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

.microsite-result-search {
    width: min(620px, 100%);
}

.microsite-default-hero-image {
    width: min(840px, 100%);
}

.microsite-default-answer-layout {
    margin-top: 8px;
}

.microsite-default-side-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e2eaed;
    border-radius: 16px;
    background: #f8fbfb;
}

.microsite-default-side-card h2,
.microsite-default-side-card p {
    margin: 0;
}

.microsite-default-side-card p {
    color: #52616a;
    font-size: 13px;
    line-height: 1.55;
}

.microsite-result-note {
    min-height: 160px;
    padding: 18px;
    border: 1px solid #e2eaed;
    border-radius: 14px;
    background: #fff;
}

.microsite-news-shell .news-home,
.microsite-news-home {
    min-height: calc(100svh - 1px);
}

.microsite-news-topbar {
    z-index: 5300;
}

.microsite-news-brand {
    color: #102027;
    line-height: 1;
}

.microsite-news-brand strong {
    font-size: 20px;
    font-weight: 950;
    letter-spacing: 0;
}

.microsite-news-topicbar a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #42545d;
    font-weight: 900;
}

.microsite-news-topicbar a.active,
.microsite-news-topicbar a:hover {
    background: #102027;
    color: #fff;
}

.microsite-news-search {
    width: min(100%, 740px);
    margin: 4px 0 0;
}

.microsite-news-top-search {
    width: min(560px, 42vw);
    margin: 0;
    border: 1px solid #dbe5e8;
    box-shadow: 0 10px 28px rgba(17, 36, 44, .08);
}

.microsite-news-top-search input {
    min-width: 90px;
    padding: 7px 8px;
}

.microsite-news-result-shell {
    margin-top: 22px;
}

.microsite-news-result-page .news-topic-bar {
    margin-top: 0;
}

.microsite-news-result-page .news-article-hero {
    width: calc(100% - clamp(36px, 6vw, 68px));
}

@media (max-width: 920px) {
    .microsite-default-result-header {
        display: grid;
    }

    .microsite-default-result-header .result-header-main {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .microsite-default-result-header .result-user-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .microsite-news-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .microsite-news-top-search {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .microsite-client-logo span:last-child,
    .microsite-result-brand span:last-child,
    .microsite-news-brand strong {
        max-width: min(230px, 58vw);
    }

    .microsite-default-topbar {
        display: grid;
        gap: 12px;
    }

    .microsite-default-actions {
        flex-wrap: wrap;
    }

    .microsite-start-center h1 {
        font-size: 42px;
    }

    .microsite-default-search {
        flex-wrap: wrap;
    }

    .microsite-default-search .search-leading {
        display: none;
    }

    .microsite-default-search input {
        flex-basis: calc(100% - 58px);
    }

    .microsite-default-panels {
        grid-template-columns: minmax(0, 1fr);
    }

    .microsite-default-answer-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .microsite-news-result-page .news-article-hero {
        width: calc(100% - 24px);
    }
}

.client-fb-page {
    min-height: 100vh;
    background: #eef2f6;
    color: #17212b;
}

.client-fb-page *,
.client-fb-page *::before,
.client-fb-page *::after {
    box-sizing: border-box;
    min-width: 0;
}

.client-fb-topbar {
    position: sticky;
    z-index: 60;
    top: 0;
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(260px, 520px) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 10px 18px;
    border-bottom: 1px solid #dce3eb;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 10px rgba(27, 39, 54, .08);
    backdrop-filter: blur(12px);
}

.client-fb-brand,
.client-fb-tabs,
.client-fb-account,
.client-fb-top-search,
.client-fb-menu a,
.client-fb-post-actions a,
.client-fb-post-actions span,
.client-fb-topic-list a,
.client-fb-topic-list span,
.client-fb-status-list span {
    text-decoration: none;
}

.client-fb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #182738;
}

.client-fb-brand span,
.client-fb-avatar,
.client-fb-large-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #246bfe, #6d35c6);
    color: #fff;
    font-weight: 900;
}

.client-fb-brand span {
    width: 40px;
    height: 40px;
    font-size: 19px;
}

.client-fb-brand strong {
    overflow: hidden;
    color: #17212b;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-fb-top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    background: #f2f5f8;
}

.client-fb-top-search img {
    width: 17px;
    height: 17px;
    opacity: .68;
}

.client-fb-top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17212b;
    font: inherit;
    font-size: 14px;
}

.client-fb-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.client-fb-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 42px;
    border-radius: 8px;
    color: #576575;
    font-size: 14px;
    font-weight: 850;
}

.client-fb-tabs a.active,
.client-fb-tabs a:hover {
    background: #e8f0ff;
    color: #246bfe;
}

.client-fb-account {
    display: inline-flex;
    justify-content: flex-end;
}

.client-fb-account span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    background: #fff;
    color: #334253;
    font-size: 12px;
    font-weight: 850;
}

.client-fb-layout,
.client-fb-result-layout {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(430px, 720px) minmax(220px, 320px);
    gap: 18px;
    width: min(1320px, calc(100% - 32px));
    margin: 18px auto 42px;
}

.client-fb-left,
.client-fb-right {
    display: grid;
    align-content: start;
    gap: 14px;
    position: sticky;
    top: 84px;
}

.client-fb-feed,
.client-fb-result-feed {
    display: grid;
    gap: 14px;
}

.client-fb-profile,
.client-fb-menu,
.client-fb-panel,
.client-fb-composer,
.client-fb-post {
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(27, 39, 54, .06);
}

.client-fb-profile {
    overflow: hidden;
}

.client-fb-cover {
    height: 74px;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, .92), rgba(109, 53, 198, .8)),
        linear-gradient(45deg, #e8f0ff, #f5f7fb);
}

.client-fb-profile-body {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 0 16px 16px;
    text-align: center;
}

.client-fb-large-avatar {
    width: 72px;
    height: 72px;
    margin-top: -36px;
    border: 4px solid #fff;
    font-size: 26px;
}

.client-fb-profile-body strong {
    color: #17212b;
    font-size: 16px;
    font-weight: 900;
}

.client-fb-profile-body span {
    color: #677687;
    font-size: 12px;
    font-weight: 750;
}

.client-fb-menu {
    display: grid;
    padding: 8px;
}

.client-fb-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px;
    border-radius: 8px;
    color: #24384a;
    font-size: 14px;
    font-weight: 850;
}

.client-fb-menu a:hover {
    background: #edf2f7;
}

.client-fb-menu a span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8f0ff;
    color: #246bfe;
    font-size: 12px;
    font-weight: 900;
}

.client-fb-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.client-fb-panel h2,
.client-fb-section-head h2 {
    margin: 0;
    color: #17212b;
    font-size: 16px;
    font-weight: 900;
}

.client-fb-topic-list,
.client-fb-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-fb-topic-list a,
.client-fb-topic-list span,
.client-fb-status-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    background: #f7f9fb;
    color: #334253;
    font-size: 12px;
    font-weight: 800;
}

.client-fb-topic-list a:hover {
    border-color: #b9cdfd;
    background: #eef4ff;
    color: #246bfe;
}

.client-fb-composer {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.client-fb-composer-head,
.client-fb-post-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-fb-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.client-fb-composer-head strong,
.client-fb-post-head strong {
    display: block;
    color: #17212b;
    font-size: 14px;
    font-weight: 900;
}

.client-fb-composer-head span,
.client-fb-post-head span,
.client-fb-section-head span {
    display: block;
    color: #69798a;
    font-size: 12px;
    font-weight: 750;
}

.client-fb-composer-search {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #edf1f5;
}

.client-fb-composer-search input {
    flex: 1 1 auto;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    background: #f2f5f8;
    color: #17212b;
    font-size: 14px;
}

.client-fb-composer-search button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #246bfe;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.client-fb-composer-actions,
.client-fb-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #edf1f5;
    padding-top: 10px;
}

.client-fb-composer-actions span,
.client-fb-post-actions a,
.client-fb-post-actions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f3f6f9;
    color: #44576a;
    font-size: 12px;
    font-weight: 850;
}

.client-fb-post {
    overflow: hidden;
}

.client-fb-post-head {
    padding: 14px 14px 0;
}

.client-fb-post-menu {
    margin-left: auto;
    color: #758494;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
}

.client-fb-post-link {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.client-fb-post-copy {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.client-fb-kicker {
    color: #246bfe;
    font-size: 12px;
    font-weight: 900;
}

.client-fb-post-copy h2,
.client-fb-result-copy h1 {
    margin: 0;
    color: #17212b;
    font-size: 23px;
    line-height: 1.15;
}

.client-fb-result-copy h1 {
    font-size: 34px;
}

.client-fb-post-copy p {
    margin: 0;
    color: #4d5d6d;
    font-size: 14px;
    line-height: 1.55;
}

.client-fb-post-image,
.client-fb-result-image {
    display: grid;
    width: 100%;
    margin: 0;
    background: #e5ebf1;
}

.client-fb-post-image {
    aspect-ratio: 16 / 9;
}

.client-fb-post-image img,
.client-fb-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-fb-result-image img {
    max-height: 470px;
}

.client-fb-image-fallback {
    place-items: center;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, .18), rgba(109, 53, 198, .16)),
        #eef2f6;
}

.client-fb-image-fallback span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #fff;
    color: #246bfe;
    font-size: 30px;
    font-weight: 900;
}

.client-fb-post-actions {
    margin: 0 14px 14px;
}

.client-fb-post-actions a:hover {
    background: #e8f0ff;
    color: #246bfe;
}

.client-fb-empty {
    padding: 18px;
}

.client-fb-empty h2,
.client-fb-empty p {
    margin: 0;
}

.client-fb-empty p {
    margin-top: 8px;
    color: #5d6c7c;
}

.client-fb-result-layout {
    align-items: start;
}

.client-fb-answer-post {
    display: grid;
    gap: 0;
}

.client-fb-answer-body,
.client-fb-links-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.client-fb-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.client-fb-answer-section {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfcfe;
}

.client-fb-answer-section h3 {
    margin: 0;
    color: #17212b;
    font-size: 17px;
}

.client-fb-answer-section p,
.client-fb-faq p {
    margin: 0;
    color: #48596a;
    font-size: 14px;
    line-height: 1.6;
}

.client-fb-link-results {
    display: grid;
    gap: 10px;
}

.client-fb-link-results a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #f7f9fb;
    color: #17212b;
    text-decoration: none;
}

.client-fb-link-results a:hover {
    border-color: #b9cdfd;
    background: #eef4ff;
}

.client-fb-link-results span,
.client-fb-link-results small {
    color: #607184;
    font-size: 12px;
}

.client-fb-faq {
    display: grid;
    gap: 8px;
}

.client-fb-faq details {
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #f8fafc;
}

.client-fb-faq summary {
    cursor: pointer;
    padding: 10px;
    color: #24384a;
    font-size: 13px;
    font-weight: 850;
}

.client-fb-faq p {
    padding: 0 10px 10px;
}

@media (max-width: 1120px) {
    .client-fb-topbar {
        grid-template-columns: minmax(160px, 240px) minmax(250px, 1fr) auto;
    }

    .client-fb-tabs {
        display: none;
    }

    .client-fb-layout,
    .client-fb-result-layout {
        grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
        width: min(960px, calc(100% - 24px));
    }

    .client-fb-right {
        position: static;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .client-fb-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 9px 10px;
    }

    .client-fb-brand strong {
        max-width: 190px;
    }

    .client-fb-top-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .client-fb-layout,
    .client-fb-result-layout {
        grid-template-columns: minmax(0, 1fr);
        width: min(100% - 18px, 720px);
        margin-top: 12px;
    }

    .client-fb-left,
    .client-fb-right {
        position: static;
    }

    .client-fb-right {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-fb-profile {
        display: none;
    }

    .client-fb-menu {
        display: flex;
        overflow-x: auto;
    }

    .client-fb-menu a {
        flex: 0 0 auto;
    }

    .client-fb-composer-search {
        align-items: stretch;
        flex-direction: column;
    }

    .client-fb-result-copy h1 {
        font-size: 28px;
    }

    .client-fb-section-head {
        display: grid;
    }
}

.client-interia-page {
    min-height: 100vh;
    background: #f3f4f6;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
}

.client-interia-page *,
.client-interia-page *::before,
.client-interia-page *::after {
    box-sizing: border-box;
    min-width: 0;
}

.client-interia-page a {
    color: inherit;
    text-decoration: none;
}

.client-interia-header {
    position: sticky;
    z-index: 70;
    top: 0;
    border-bottom: 1px solid #d7dbe2;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}

.client-interia-utility {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 28px));
    min-height: 32px;
    margin: 0 auto;
    padding: 7px 0 5px;
    color: #5f6672;
    font-size: 12px;
    font-weight: 800;
}

.client-interia-utility nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.client-interia-utility a:hover {
    color: #d01818;
}

.client-interia-brand-row {
    display: grid;
    grid-template-columns: minmax(210px, 320px) minmax(260px, 560px);
    gap: 22px;
    align-items: center;
    width: min(1180px, calc(100% - 28px));
    min-height: 70px;
    margin: 0 auto;
    padding: 10px 0 13px;
}

.client-interia-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.client-interia-brand span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, #f8d800 0 42%, #e21b1b 42% 72%, #1457d9 72% 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.client-interia-brand strong {
    display: block;
    overflow: hidden;
    color: #111;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-interia-search {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 2px solid #ffc400;
    border-radius: 3px;
    background: #fff;
}

.client-interia-search input {
    flex: 1 1 auto;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: #1d1d1d;
    font: inherit;
    font-size: 14px;
}

.client-interia-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    align-self: stretch;
    min-width: 118px;
    border: 0;
    background: #ffc400;
    color: #111;
    font-weight: 900;
    cursor: pointer;
}

.client-interia-search button img {
    width: 16px;
    height: 16px;
}

.client-interia-topicbar {
    display: flex;
    gap: 2px;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    overflow-x: auto;
    border-top: 1px solid #eef0f3;
}

.client-interia-topicbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 43px;
    padding: 0 17px;
    color: #171717;
    font-size: 13px;
    font-weight: 900;
}

.client-interia-topicbar a.active,
.client-interia-topicbar a:hover {
    background: #d71920;
    color: #fff;
}

.client-interia-shell,
.client-interia-article-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 46px;
}

.client-interia-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    border-bottom: 4px solid #ffc400;
}

.client-interia-section-title h1 {
    margin: 0;
    padding: 0 0 8px;
    color: #111;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.client-interia-section-title span {
    color: #5f6672;
    font-size: 13px;
    font-weight: 800;
}

.client-interia-front-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, .9fr);
    gap: 18px;
    align-items: stretch;
}

.client-interia-lead,
.client-interia-newsline,
.client-interia-box,
.client-interia-board,
.client-interia-card,
.client-interia-article,
.client-interia-link-block {
    border: 1px solid #dce1e7;
    background: #fff;
}

.client-interia-lead {
    min-height: 430px;
}

.client-interia-lead a,
.client-interia-empty-lead {
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto;
    height: 100%;
}

.client-interia-lead figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #d9dde4;
}

.client-interia-lead img,
.client-interia-card img,
.client-interia-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-interia-lead div,
.client-interia-empty-lead {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.client-interia-label {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    background: #d71920;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-interia-lead h2,
.client-interia-empty-lead h2 {
    margin: 0;
    color: #111;
    font-size: 38px;
    line-height: 1.06;
    font-weight: 900;
}

.client-interia-lead p,
.client-interia-empty-lead p,
.client-interia-card p,
.client-interia-article-head p,
.client-interia-article-body p,
.client-interia-link-block p {
    margin: 0;
    color: #4d5561;
    font-size: 15px;
    line-height: 1.55;
}

.client-interia-newsline {
    display: grid;
    align-content: start;
}

.client-interia-newsline h2,
.client-interia-box h2,
.client-interia-board header h2,
.client-interia-link-block h2 {
    margin: 0;
    padding: 13px 14px 10px;
    border-bottom: 3px solid #ffc400;
    color: #111;
    font-size: 20px;
    font-weight: 900;
}

.client-interia-newsline a {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf0f3;
}

.client-interia-newsline a:hover,
.client-interia-digest a:hover,
.client-interia-card a:hover h3 {
    color: #d71920;
}

.client-interia-newsline strong {
    color: #111;
    font-size: 15px;
    line-height: 1.28;
}

.client-interia-newsline span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.client-interia-lower-grid {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(210px, 270px);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.client-interia-left-rail,
.client-interia-right-rail,
.client-interia-article-rail {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 158px;
}

.client-interia-chip-list,
.client-interia-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

.client-interia-chip-list a,
.client-interia-chip-list span,
.client-interia-service-list span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #dce1e7;
    background: #f7f8fa;
    color: #242b35;
    font-size: 12px;
    font-weight: 850;
}

.client-interia-chip-list a:hover {
    border-color: #ffc400;
    background: #fff8d7;
}

.client-interia-board {
    padding-bottom: 14px;
}

.client-interia-board header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #ffc400;
}

.client-interia-board header h2 {
    border-bottom: 0;
}

.client-interia-board header a {
    margin-right: 14px;
    color: #d71920;
    font-size: 12px;
    font-weight: 900;
}

.client-interia-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
}

.client-interia-card {
    min-height: 100%;
}

.client-interia-card a {
    display: grid;
    grid-template-rows: 150px auto auto auto;
    height: 100%;
}

.client-interia-topic-card a {
    grid-template-rows: auto auto 1fr;
    padding: 14px;
}

.client-interia-card img {
    background: #dde2e8;
}

.client-interia-card .client-interia-label {
    margin: 12px 12px 0;
}

.client-interia-card h3 {
    margin: 10px 12px 0;
    color: #111;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.client-interia-card p {
    padding: 8px 12px 14px;
    font-size: 13px;
}

.client-interia-digest {
    align-content: start;
}

.client-interia-digest a,
.client-interia-digest span {
    display: block;
    padding: 11px 14px;
    border-bottom: 1px solid #edf0f3;
    color: #1f2937;
    font-size: 13px;
    font-weight: 850;
}

.client-interia-article-shell {
    display: grid;
    grid-template-columns: minmax(0, 790px) minmax(250px, 320px);
    gap: 22px;
    align-items: start;
}

.client-interia-article {
    overflow: hidden;
}

.client-interia-article-head {
    display: grid;
    gap: 12px;
    padding: clamp(20px, 4vw, 34px);
}

.client-interia-article-head h1 {
    margin: 0;
    color: #111;
    font-size: 54px;
    line-height: 1.02;
    font-weight: 900;
}

.client-interia-article-image {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    margin: 0;
    background: #d9dde4;
}

.client-interia-article-body {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 4vw, 34px);
}

.client-interia-article-body section {
    display: grid;
    gap: 8px;
}

.client-interia-article-body h2 {
    margin: 0;
    color: #111;
    font-size: 24px;
    line-height: 1.15;
}

.client-interia-article-body p {
    color: #2f3742;
    font-size: 17px;
}

.client-interia-link-block {
    margin: 0 clamp(20px, 4vw, 34px) clamp(20px, 4vw, 34px);
}

.client-interia-link-block > div {
    display: grid;
}

.client-interia-link-block article {
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    border-bottom: 1px solid #edf0f3;
}

.client-interia-link-block a {
    display: grid;
    gap: 4px;
}

.client-interia-link-block strong {
    color: #111;
    font-size: 15px;
}

.client-interia-link-block span {
    color: #d71920;
    font-size: 12px;
    font-weight: 900;
}

.client-interia-faq {
    display: grid;
    gap: 0;
}

.client-interia-faq details {
    border-bottom: 1px solid #edf0f3;
}

.client-interia-faq summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #111;
    font-size: 14px;
    font-weight: 900;
}

.client-interia-faq p {
    margin: 0;
    padding: 0 14px 12px;
    color: #4d5561;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1040px) {
    .client-interia-brand-row {
        grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    }

    .client-interia-front-grid,
    .client-interia-article-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-interia-lower-grid {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    }

    .client-interia-right-rail {
        position: static;
        grid-column: 1 / -1;
    }

    .client-interia-article-rail {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .client-interia-utility,
    .client-interia-brand-row,
    .client-interia-topicbar,
    .client-interia-shell,
    .client-interia-article-shell {
        width: min(100% - 18px, 680px);
    }

    .client-interia-utility {
        display: grid;
        gap: 6px;
    }

    .client-interia-brand-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .client-interia-search {
        flex-wrap: wrap;
    }

    .client-interia-search input {
        flex-basis: calc(100% - 112px);
    }

    .client-interia-front-grid,
    .client-interia-lower-grid,
    .client-interia-card-grid,
    .client-interia-article-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-interia-left-rail,
    .client-interia-article-rail {
        position: static;
    }

    .client-interia-section-title {
        display: grid;
    }

    .client-interia-brand strong {
        font-size: 28px;
    }

    .client-interia-section-title h1 {
        font-size: 34px;
    }

    .client-interia-lead h2,
    .client-interia-empty-lead h2 {
        font-size: 30px;
    }

    .client-interia-article-head h1 {
        font-size: 38px;
    }

    .client-interia-lead {
        min-height: 0;
    }

    .client-interia-lead a,
    .client-interia-empty-lead {
        grid-template-rows: auto auto;
    }

    .client-interia-lead figure {
        aspect-ratio: 16 / 10;
    }

    .client-interia-card a {
        grid-template-rows: 180px auto auto auto;
    }

    .client-interia-article-image {
        aspect-ratio: 16 / 10;
    }
}
