:root {
  --exchange: #BA14BA;
  --job: #14BA14;
  --historical: #BABA14;
  --hospitality: #14BABA;
  --transport: #BA0014;
  --hermitage: #0014BA;
  --ink: #f7f3f3;
  --muted: #a9a6a6;
  --panel: #151515;
  --window: #1b1b1b;
  --surface: #121212;
  --line: rgba(225, 225, 225, .16);
  --soft-line: rgba(255, 255, 255, .18);
  --accent-color: var(--exchange);
  --header-orange: #d4641e;
  --header-orange-deep: #7f330f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--ink); background: #101010; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 700; overflow: hidden; }
a { color: inherit; text-decoration: none; }
input, textarea, select { width: 100%; border: 1px solid #444; border-radius: 6px; color: var(--ink); background: #242424; padding: 9px 10px; font: inherit; font-weight: 600; }
textarea { resize: vertical; }

* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-color: transparent;
}

.is-scrolling {
  scrollbar-color: rgba(255, 255, 255, .38) transparent;
}

.is-scrolling::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, .38);
}

.is-scrolling::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, .56);
}

.app-window { width: 100vw; height: 100vh; margin: 0; background: #101010; border-radius: 0; overflow: hidden; box-shadow: none; display: flex; flex-direction: column; }
.topbar { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; min-height: 52px; margin: 0; padding: 4px 12px 8px; background: linear-gradient(180deg, var(--header-orange) 0%, var(--header-orange-deep) 100%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.18), 0 4px 18px rgba(0,0,0,.24); }
.brand { display: inline-flex; align-items: center; min-width: 128px; line-height: 1; }
.brand img { width: min(132px, 14vw); height: 40px; object-fit: contain; object-position: left center; display: block; }
.topnav { display: flex; align-items: flex-end; justify-content: flex-end; gap: clamp(12px, 1.3vw, 22px); color: #f4f4f4; font-size: clamp(13px, 1vw, 17px); white-space: nowrap; min-width: 0; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.pwa-install-button { width: fit-content; border: 1px solid rgba(255,255,255,.34); border-radius: 4px; padding: 7px 10px; background: rgba(0,0,0,.22); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.pwa-install-button[hidden] { display: none; }
.auth-form { margin: 0; display: flex; align-items: flex-end; }
.auth-link { border: 1px solid rgba(255,255,255,.24); background: var(--accent-color); color: white; padding: 9px 14px; border-radius: 4px; font-size: clamp(13px, 1vw, 17px); font-weight: 800; box-shadow: 0 2px 10px rgba(0,0,0,.28); transition: background-color .18s ease, box-shadow .18s ease; }
.button-reset { font: inherit; cursor: pointer; }
.flash { margin: 14px 46px 0; padding: 10px 14px; color: #fff; background: rgba(255,255,255,.07); }
.mobile-control-bar, .mobile-drawer-backdrop, .mobile-panel-close, .mobile-back-to-timeline { display: none; }

.suni-shell { flex: 1 1 auto; display: grid; grid-template-areas: "left center right"; grid-template-columns: 300px minmax(460px, 600px) 350px; justify-content: center; gap: 28px; min-height: 0; margin: 14px 26px 0; overflow: hidden; }
.left-column { grid-area: left; height: 100%; overflow: hidden; padding: 10px 0 14px; display: flex; flex-direction: column; background: #101010; }
.timeline-column { grid-area: center; height: 100%; min-height: 0; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.right-column { grid-area: right; height: 100%; min-height: 0; overflow: hidden; padding: 10px 0 0; display: flex; flex-direction: column; }
.left-column, .right-column, .timeline-column { min-width: 0; }
.locked-panel { display: grid; gap: 12px; align-content: center; min-height: 100%; padding: 22px; color: #f4f4f4; text-align: left; }
.locked-panel h2 { margin: 0; font-size: 24px; }
.locked-panel p { margin: 0; color: var(--muted); line-height: 1.7; }
.right-locked-panel { height: 100%; background: transparent; border: 0; }
.suni-shell.is-guest .left-column, .suni-shell.is-guest .right-column { opacity: .96; }

.account-mini, .profile-card, .composer, .post-card, .category-search { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.account-mini, .profile-card, .category-search { padding: 0; }
.left-scroll-area { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 0; }
.account-mini { display: grid; gap: 8px; margin-bottom: 20px; color: #f6f6f6; }
.left-account { font-size: clamp(18px, 1.6vw, 26px); }
.account-switch { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.account-switch small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.left-account .avatar-dot { width: 48px; height: 48px; }
.avatar-dot { width: 28px; height: 28px; border-radius: 50%; background: #ff8a8a; display: inline-block; vertical-align: middle; object-fit: cover; }
.avatar-dot.large { width: 52px; height: 52px; }
.side-menu { display: grid; gap: 4px; margin: 8px 0 16px 56px; font-size: clamp(18px, 1.35vw, 23px); }
.side-menu a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 0; background: transparent; border-left: 0; color: #f6f6f6; }
.side-menu a.is-current { color: var(--accent-color); }
.side-menu-badge { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent-color); color: #fff; padding: 0 7px; font-size: 12px; line-height: 1; }

.category-search { min-height: 0; display: flex; flex-direction: column; }
.category-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; padding-bottom: 10px; }
.category-tabs.vertical { position: sticky; top: 0; z-index: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; padding-top: 8px; background: #101010; }
.tab { position: relative; padding: 0 0 8px; text-align: center; font-size: clamp(16px, 1.35vw, 23px); background: transparent; border-radius: 0; color: #f2f2f2; white-space: nowrap; -webkit-text-stroke: .75px rgba(0,0,0,.92); text-shadow: -1px 0 rgba(0,0,0,.95), 1px 0 rgba(0,0,0,.95), 0 -1px rgba(0,0,0,.95), 0 1px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.9), 0 0 9px rgba(255,255,255,.84), 0 0 18px rgba(255,255,255,.56); }
.tab::after { content: ""; display: none; position: absolute; left: 50%; bottom: -2px; width: min(72px, 86%); height: 16px; transform: translateX(-50%); background: currentColor; opacity: .95; -webkit-mask: url(/assets/markBASE-e39065819779f5166e133cdb6b60ed110d660cdad1ac7973d1f65c6bc259b20a.png) center / contain no-repeat; mask: url(/assets/markBASE-e39065819779f5166e133cdb6b60ed110d660cdad1ac7973d1f65c6bc259b20a.png) center / contain no-repeat; }
.tab.is-active::after { filter: drop-shadow(0 0 4px rgba(0,0,0,.82)) drop-shadow(0 0 8px rgba(255,255,255,.95)) drop-shadow(0 0 16px rgba(255,255,255,.62)); }
.tab.is-active::after { display: block; }
.tab-exchange { color: var(--exchange); }
.tab-job { color: var(--job); }
.tab-historical { color: var(--historical); }
.tab-hospitality { color: var(--hospitality); }
.tab-transport { color: var(--transport); }
.tab-hermitage { color: var(--hermitage); }

.timeline-fixed-controls { flex: 0 0 auto; position: relative; z-index: 3; background: #101010; padding-bottom: 12px; }
.central-search, .category-search, .side-search { position: relative; }
.side-search { width: 240px; max-width: 100%; align-self: center; }
.central-search { width: min(380px, 78%); margin: 0 auto 14px; }
.central-search form { margin: 0; }
.central-search input, .side-search input { height: 38px; border: 0; border-radius: 999px; background: #bfbfbf; color: #1d1d1d; padding: 0 18px; }
.left-results-scroll { flex: 0 0 560px; height: 560px; min-height: 320px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; margin-top: 14px; padding: 8px 0 0; }
.left-pickups { display: grid; gap: 12px; }
.mini-pickup { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; color: #f6f6f6; }
.mini-pickup .avatar-dot { width: 34px; height: 34px; }
.mini-pickup-detail { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.35; }
.mini-pickup-image { grid-column: 1 / -1; width: 100%; height: 86px; object-fit: cover; border-radius: 7px; background: #bcd5f4; }
.left-empty { color: var(--muted); margin: 8px 0; line-height: 1.5; }
.support-button { flex: 0 0 auto; align-self: center; display: inline-block; margin: 14px auto 10px; border: 0; padding: 10px 14px; border-radius: 3px; background: var(--accent-color); color: #fff; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease; }
.support-modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; }
.support-modal.is-open { display: grid; }
.support-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); cursor: default; }
.support-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 230px); width: min(620px, calc(100vw - 32px)); min-height: 280px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: #171717; box-shadow: 0 24px 70px rgba(0,0,0,.56); }
.support-dialog-content { display: grid; align-content: center; gap: 12px; padding: 28px; }
.support-dialog-kicker { width: fit-content; padding: 4px 8px; border-radius: 4px; background: var(--accent-color); color: #fff; font-size: 12px; font-weight: 900; }
.support-dialog h2 { margin: 0; color: #fff; font-size: 22px; line-height: 1.45; }
.support-dialog p { margin: 0; color: #bfc1cb; font-size: 13px; line-height: 1.6; }
.support-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.support-dialog-actions button, .support-dialog-actions a { display: grid; place-items: center; min-height: 40px; border: 0; border-radius: 5px; font: inherit; font-weight: 900; cursor: pointer; }
.support-dialog-no { background: rgba(255,255,255,.12); color: #fff; }
.support-dialog-yes { background: var(--accent-color); color: #fff; }
.support-dialog-image { align-self: end; width: 100%; height: 270px; object-fit: contain; object-position: center bottom; }
.parliament-support-button { width: calc(100% - 28px); margin: auto 14px 10px; background: var(--parliament-blue); font-size: 14px; }

.timeline-compose-button { width: min(220px, 64%); padding: 10px 18px; text-align: center; justify-content: center; }
.hermitage-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(420px, 92%); margin: 12px auto 0; }
.hermitage-switch a { display: grid; place-items: center; min-height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f6f6f6; background: rgba(255,255,255,.06); font-size: 14px; }
.hermitage-switch a.is-active { border-color: var(--hermitage); background: color-mix(in srgb, var(--hermitage) 42%, #111); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.force-off-notices { display: grid; gap: 8px; margin-top: 12px; }
.force-off-notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-left: 5px solid var(--job); border-radius: 6px; background: rgba(20, 186, 20, .08); }
.force-off-notice strong { display: block; color: #f2f2f2; font-size: 14px; }
.force-off-notice p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.notice-ack-button { border: 0; border-radius: 4px; background: var(--job); color: #fff; padding: 8px 12px; font: inherit; font-weight: 900; cursor: pointer; }
.timeline-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 24px; }
.hermitage-account-list { display: grid; gap: 12px; padding-bottom: 24px; }
.hermitage-account-card { display: grid; gap: 8px; padding: 12px 0 14px; border-bottom: 1px solid rgba(255,255,255,.14); color: #f6f6f6; }
.hermitage-account-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.hermitage-account-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.hermitage-account-main .avatar-dot { width: 44px; height: 44px; }
.hermitage-account-main span:last-child { display: grid; gap: 2px; min-width: 0; }
.hermitage-account-main strong { font-size: clamp(18px, 1.6vw, 24px); overflow-wrap: anywhere; }
.hermitage-account-main small { color: var(--muted); }
.hermitage-account-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 13px; }
.hermitage-account-meta strong { color: #fff; }
.hermitage-account-card p { margin: 0; color: #e8e4e4; line-height: 1.6; font-size: 14px; }
.hermitage-reason { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; width: fit-content; max-width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 10px; color: #dedede; background: rgba(255,255,255,.05); font-size: 12px; line-height: 1.4; }
.hermitage-reason span { color: var(--hermitage); font-weight: 900; }
.hermitage-account-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.hermitage-account-actions form { margin: 0; }
.hermitage-empty { margin: 28px 0; color: var(--muted); text-align: center; }
.composer { padding: 0; margin: 0; }
.post-composer-form { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #111; }
.composer-main { display: grid; gap: 10px; min-width: 0; }
.image-input-panel { display: grid; grid-template-columns: 1fr; gap: 10px; }
.image-slot { position: relative; display: grid; place-items: center; min-height: 94px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: #bdd4f1; color: #111; font-size: 18px; font-weight: 900; overflow: hidden; cursor: pointer; }
.image-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-slot-ghost { cursor: default; }
.image-preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.image-preview-item { display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid var(--composer-color, rgba(255,255,255,.2)); border-radius: 6px; background: #bdd4f1; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.composer-body-wrap { display: grid; gap: 6px; }
.composer-body-wrap textarea { min-height: 106px; border-color: rgba(255,255,255,.2); background: #181818; }
.composer-note-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.composer-category-area { display: grid; gap: 8px; }
.composer-category-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.category-tab-button { min-height: 42px; border: 1px solid rgba(255,255,255,.14); border-left: 5px solid var(--cat-color); border-radius: 5px; background: rgba(255,255,255,.06); color: #f5f5f5; cursor: pointer; font: inherit; font-size: 14px; font-weight: 900; }
.category-tab-button.is-open { box-shadow: inset 0 -4px 0 var(--cat-color); background: rgba(255,255,255,.12); }
.category-tab-button.is-confirmed { background: color-mix(in srgb, var(--cat-color) 38%, #111); }
.category-tab-button:disabled { opacity: .45; cursor: default; }
.category-tab-button small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.category-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.checks { display: grid; gap: 7px; }
.composer-checks { align-content: start; }
.check-heading { color: #f2f2f2; font-size: 13px; }
.composer-checks small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check-row input { width: auto; }
.category-check { padding: 7px 8px; border-left: 4px solid var(--cat-color); background: rgba(255,255,255,.04); }
.category-check.is-disabled { opacity: .45; filter: grayscale(.35); }
.category-check small { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.detail-forms { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
fieldset { display: none; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 10px; margin: 0; }
fieldset.is-visible { display: grid; gap: 8px; }
legend { padding: 0 6px; color: #ddd; }
.detail-fieldset { position: relative; overflow: hidden; border-color: var(--cat-color); border-width: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 58%, transparent), rgba(17,17,17,.92) 42%); }
.detail-fieldset legend { color: #111; background: rgba(255,255,255,.72); border-radius: 3px; padding: 3px 10px; font-weight: 900; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field-grid textarea { grid-column: 1 / -1; }
.field-line { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.field-line-wide { grid-column: 1 / -1; grid-template-columns: 120px repeat(2, minmax(0, 1fr)); }
.field-line-wide input:nth-child(2):last-child, .field-line-wide textarea:nth-child(2):last-child { grid-column: 2 / -1; }
.field-line span { color: #f2f2f2; font-size: 13px; white-space: nowrap; }
.confirm-category-button { justify-self: end; min-width: 128px; border: 0; border-radius: 4px; background: var(--cat-color); color: #fff; padding: 9px 14px; font: inherit; font-weight: 900; cursor: pointer; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.04); }
.switch-row input { width: auto; }
.primary-button { display: inline-block; border: 0; border-radius: 4px; color: white; background: var(--accent-color); padding: 10px 18px; margin-top: 10px; cursor: pointer; font-weight: 800; transition: background-color .18s ease, box-shadow .18s ease; }
.secondary-button { border: 1px solid rgba(255,255,255,.22); }
.timeline-action-row { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; }
.timeline-compose-button { display: block; margin: 0 auto; }
.ended-job-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); max-width: 150px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 10px; color: #f2f2f2; background: rgba(255,255,255,.06); font-size: 12px; line-height: 1.2; text-align: center; }
.composer-submit-button { width: 100%; margin-top: 0; }
.composer-submit-button:disabled { opacity: .62; cursor: wait; }

.composer-modal { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 28px; }
.composer-modal.is-open { display: flex; }
.composer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.composer-dialog { position: relative; z-index: 1; width: min(720px, calc(100vw - 40px)); max-height: min(86vh, 820px); overflow-y: auto; border: 2px solid rgba(225,225,225,.32); border-radius: 10px; background: #161616; box-shadow: 0 22px 70px rgba(0,0,0,.48); padding: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.composer-modal.has-category-color .composer-dialog { border-color: var(--composer-color); box-shadow: 0 22px 70px rgba(0,0,0,.48), 0 0 0 1px var(--composer-color); }
.composer-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 4px solid rgba(225,225,225,.42); padding: 0 0 12px; margin-bottom: 12px; }
.composer-dialog-head h2 { margin: 0; font-size: 22px; }
.modal-close-button { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.timeline { display: grid; gap: 12px; }
.post-card { position: relative; overflow: hidden; border: 2px solid var(--cat-color); border-radius: 7px; background: #111; }
.post-collection-tools { position: absolute; top: 8px; right: 9px; z-index: 5; }
.favorite-toggle { display: grid; place-items: center; min-width: 34px; min-height: 34px; margin: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(10,10,10,.82); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.favorite-toggle.is-active { color: #ffe66b; border-color: #ffe66b; }
.repost-attribution { display: flex; align-items: center; gap: 7px; padding: 8px 12px 0; color: #8be19a; font-size: 12px; font-weight: 900; }
.repost-attribution .avatar-dot { width: 22px; height: 22px; }
.repost-tools { display: flex; justify-content: flex-end; padding: 0 12px 12px; }
.repost-tools form, .share-actions form { margin: 0; }
.repost-toggle { min-height: 32px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #f3f3f3; background: rgba(255,255,255,.07); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.repost-toggle.is-active { border-color: #00ba14; color: #72e780; background: rgba(0,186,20,.12); }
.open-favorite-toggle { margin-left: auto; width: auto; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.application-state { color: var(--job); font-weight: 900; }
.post-card.is-ended-job, .account-post-card.is-ended-job { filter: saturate(.72); }
.ended-ribbon { position: absolute; z-index: 12; top: 38px; left: -84px; width: 300px; transform: rotate(-38deg); display: grid; place-items: center; padding: 12px 0; background: linear-gradient(180deg, #d80f24 0%, #8f0715 100%); color: #fff; border: 2px solid rgba(255,255,255,.52); box-shadow: 0 6px 18px rgba(0,0,0,.42); font-size: 30px; font-weight: 900; letter-spacing: 0; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ended-ribbon.small { top: 26px; left: -70px; width: 220px; padding: 8px 0; font-size: 22px; }
.post-link { display: grid; gap: 8px; padding: 12px; }
.post-content-link { padding-top: 8px; }
.post-image-frame { position: relative; overflow: hidden; border-radius: 6px; background: #252525; isolation: isolate; }
.post-card > .post-image-frame { margin: 12px 12px 0; }
.open-image-stack .post-image-frame { margin: 0; }
.post-image-link { display: block; }
.post-image { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #252525; }
.evaluation-toggle { position: absolute; top: 10px; right: 10px; z-index: 8; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(0,0,0,.48); color: #fff; padding: 7px 10px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; backdrop-filter: blur(8px); }
.post-author { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0; }
.author-switch { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.author-switch span:last-child { display: inline-grid; gap: 2px; min-width: 0; }
.post-author small, .post-meta, .account-mini small, .profile-card p { color: var(--muted); }
.post-body { white-space: pre-wrap; line-height: 1.6; margin: 0; font-weight: 700; }
.post-meta { display: flex; justify-content: space-between; border-top: 1px solid #444; padding-top: 8px; font-size: 12px; }
.timeline-post-card .post-body { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.timeline-post-card .post-meta { display: none; }
.pagination-link { display: block; width: max-content; max-width: 100%; margin: 12px auto; padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 900; text-align: center; }
.pagination-link:hover { border-color: var(--accent-color); background: rgba(255,255,255,.13); }
.pagination-link.is-loading { opacity: .56; pointer-events: none; }
.pagination-link.is-loading::after { content: " …"; }
.detail-card { position: relative; overflow: hidden; border: 0; border-radius: 0; background: transparent; padding: 0; }
.account-panel { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.account-panel-static { flex: 0 0 auto; }
.right-profile-head { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; }
.right-profile-head .avatar-dot { width: 72px; height: 72px; }
.right-profile-head h2 { margin: 0 0 4px; font-size: clamp(22px, 1.9vw, 30px); }
.right-profile-head p { margin: 0; font-size: clamp(18px, 1.55vw, 26px); color: #f2f2f2; }
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
.follow-row strong { color: #fff; font-size: 15px; }
.follow-count-link { color: var(--muted); transition: color .16s ease; }
.follow-count-link:hover { color: #fff; }
.follow-row form { margin: 0 0 0 auto; }
.follow-button { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: var(--accent-color); color: #fff; padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.follow-button.is-following { background: rgba(255,255,255,.09); color: #f4f4f4; }
.right-profile-text { display: grid; gap: 6px; margin: 12px 0; font-size: clamp(16px, 1.25vw, 21px); }
.right-profile-text p { margin: 0; color: #f2f2f2; }
.right-profile-text a, .right-profile-text span { color: #f2f2f2; }
.right-profile-text .profile-link { color: #8fd6ff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rating-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 0; padding-bottom: 0; margin: 8px 0; font-size: clamp(15px, 1.12vw, 19px); color: #f2f2f2; }
.fixed-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.fixed-card-thumb { display: block; height: 66px; overflow: hidden; border-radius: 5px; background: #bdd4f1; }
.fixed-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fixed-card-empty { display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.2); color: var(--muted); background: rgba(255,255,255,.05); font-size: 12px; }
.reflected-tabs { margin-top: 8px; margin-bottom: 10px; }
.reflected-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.account-post-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding-right: 0; }
.account-post-scroll > * { flex: 0 0 auto; }
.reflected-post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; color: #f2f2f2; }
.right-column .reflected-post { grid-auto-flow: row; align-items: start; }
.account-post-card { position: relative; overflow: hidden; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.account-post-card .ended-ribbon { grid-area: 1 / 1; pointer-events: none; }
.reflected-image { grid-column: 1 / -1; width: 100%; height: 136px; max-height: none; border: 2px solid var(--cat-color); border-radius: 2px; background: #bdd4f1; object-fit: cover; }
.reflected-body { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; align-items: center; padding-top: 0; min-width: 0; }
.reflected-body .avatar-dot { width: 28px; height: 28px; }
.reflected-body strong { justify-self: start; text-align: left; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(16px, 1.25vw, 21px); }
.reflected-body p { grid-column: 1 / -1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f2f2f2; font-size: 14px; line-height: 1.4; }
.reflected-empty { padding: 24px 0; color: var(--muted); border-top: 1px solid rgba(225,225,225,.2); }

.post-detail-shell { flex: 1 1 auto; min-height: 0; overflow-y: auto; width: min(720px, calc(100% - 24px)); margin: 18px auto 0; padding-bottom: 48px; }
.post-detail-column { display: grid; gap: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: #d8d8d8; padding: 8px 0; }
.post-card-open { border-width: 2px; }
.open-post-header { display: flex; align-items: center; gap: 10px; padding: 18px 18px 0; }
.open-post-header div { display: grid; gap: 2px; }
.open-post-header small { color: var(--muted); }
.open-image-stack { display: grid; gap: 10px; padding: 16px 18px 0; }
.open-image-frame { display: flex; align-items: center; justify-content: center; border: 1px solid #333; }
.open-post-image { width: auto; max-width: 100%; height: auto; max-height: min(75vh, 760px); object-fit: contain; }
.open-image-frame .open-post-image { width: auto; }
.secondary-image { justify-self: center; border: 1px solid #333; object-fit: contain; }
.secondary-image { opacity: .95; }
.open-post-body { padding: 16px 18px; font-size: 18px; line-height: 1.8; }
.post-owner-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 16px; }
.post-owner-tools form { margin: 0; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 18px 16px; }
.profile-card > .share-actions { padding: 8px 0 0; }
.share-actions .quiet-button { margin: 0; text-decoration: none; }
.share-feedback { min-height: 1em; color: var(--muted); font-size: 12px; }
.public-participation-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border: 1px solid #444; border-radius: 8px; }
.public-participation-gate p { margin: 0; }
.danger-button { border: 1px solid #e34255; background: rgba(186,0,20,.22); color: #fff; }
.danger-button:hover { background: rgba(186,0,20,.42); }
.post-detail-info { display: grid; gap: 12px; margin: 0 18px 16px; padding: 14px; border-top: 4px solid var(--cat-color); background: rgba(255,255,255,.04); border-radius: 6px; }
.detail-info-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #f2f2f2; }
.detail-info-head strong { font-size: 20px; }
.detail-info-head span { color: var(--muted); font-size: 13px; }
.detail-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-chip-row span { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 4px 10px; color: #f2f2f2; font-size: 13px; }
.detail-section { display: grid; gap: 10px; padding: 12px; border-left: 5px solid currentColor; border-radius: 5px; background: rgba(0,0,0,.26); color: var(--cat-color); }
.detail-section summary { cursor: pointer; color: #f2f2f2; font-size: 18px; font-weight: 900; list-style: none; }
.detail-section summary::-webkit-details-marker { display: none; }
.detail-section summary::after { content: "▶"; margin-left: 8px; color: currentColor; }
.detail-section[open] summary::after { content: "▼"; }
.detail-section h2 { margin: 0; color: #f2f2f2; font-size: 18px; }
.detail-section p { margin: 0; color: #f2f2f2; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; color: #f2f2f2; }
.detail-grid div { display: grid; grid-template-columns: minmax(104px, .8fr) minmax(0, 1.2fr); align-items: stretch; min-width: 0; }
.detail-grid div.wide { grid-column: 1 / -1; }
.detail-grid dt, .detail-grid dd { margin: 0; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.detail-grid dt { background: #bfbfbf; color: #171717; border-radius: 4px 0 0 4px; font-weight: 800; }
.detail-grid dd { border-bottom: 1px solid rgba(255,255,255,.22); color: #f2f2f2; font-weight: 700; }
.detail-section.cat-job { color: var(--job); }
.detail-section.cat-historical { color: var(--historical); }
.detail-section.cat-hospitality { color: var(--hospitality); }
.detail-section.cat-transport { color: var(--transport); }
.detail-section.cat-exchange { color: var(--exchange); }
.open-post-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); border-top: 1px solid #444; padding: 12px 18px 16px; font-size: 13px; }
.job-application-panel { display: grid; gap: 12px; border: 1px solid rgba(255,255,255,.16); border-top: 5px solid var(--job); border-radius: 8px; background: #111; padding: 16px; }
.job-application-panel header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.job-application-panel h2 { margin: 0; font-size: 18px; }
.job-application-panel header span { color: var(--job); font-size: 13px; }
.job-application-form { display: grid; gap: 10px; }
.job-apply-button { justify-self: end; margin-top: 0; }
.job-application-note { margin: 0; color: var(--muted); line-height: 1.6; }
.job-worker-rating { display: grid; gap: 10px; }
.job-applicant-list { display: grid; gap: 12px; }
.job-applicant { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.job-applicant:first-child { padding-top: 0; border-top: 0; }
.job-applicant .avatar-dot { width: 32px; height: 32px; }
.job-applicant-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.job-applicant small { display: block; color: var(--muted); margin-top: 2px; }
.job-applicant p { margin: 6px 0 0; color: #f2f2f2; line-height: 1.5; overflow-wrap: anywhere; }
.job-rating-form { display: grid; gap: 8px; justify-items: end; }
.job-rating-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.rating-private-note { color: var(--muted); font-size: 11px; line-height: 1; }
.star-rating { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.star-rating label { display: inline-flex; align-items: center; cursor: pointer; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating span { min-width: 72px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 8px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.04); font-size: 12px; text-align: center; line-height: 1; }
.star-rating label:hover span, .star-rating label.is-selected span, .star-rating input:checked + span { color: #fff7a3; border-color: var(--job); background: rgba(20,186,20,.14); }
.job-rating-submit { padding: 6px 10px; font-size: 12px; }
.rating-complete, .rating-waiting { justify-self: end; color: var(--muted); font-size: 12px; }
.rating-complete { color: var(--job); }
.comment-panel { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #111; padding: 16px; }
.comment-panel h2 { margin: 0 0 12px; font-size: 18px; }
.comment-composer { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; }
.comment-composer .primary-button { margin-top: 0; }
.comment-empty { color: var(--muted); margin-bottom: 0; }
.comment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.comment-item { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.025); }
.comment-item > div { min-width: 0; }
.comment-card-link { grid-column: 1 / -1; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.comment-card-link:hover .comment-card-content > strong { text-decoration: underline; text-underline-offset: 3px; }
.comment-card-content { min-width: 0; }
.comment-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-left: 42px; font-size: 12px; }
.comment-reply-link, .comment-replies-count { color: #9fd8ff; font-weight: 900; }
.comment-item small { display: block; color: var(--muted); margin-top: 2px; }
.comment-item p { margin: 8px 0 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-list > .comment-empty { grid-column: 1 / -1; }
.comment-thread-shell { width: min(780px, calc(100% - 24px)); }
.comment-thread-origin { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.15); border-left: 5px solid var(--cat-color); border-radius: 8px; color: inherit; background: #111; text-decoration: none; }
.comment-thread-origin span { color: var(--muted); font-size: 11px; font-weight: 900; }
.comment-thread-origin p { margin: 0; color: #ddd; line-height: 1.5; }
.comment-ancestor-trail { display: grid; gap: 6px; }
.comment-ancestor-trail a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 8px 11px; border-left: 2px solid rgba(159,216,255,.42); color: #dfefff; background: rgba(255,255,255,.035); font-size: 12px; }
.comment-ancestor-trail span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.comment-thread-focus, .comment-reply-panel, .comment-thread-replies { display: grid; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #111; }
.comment-thread-focus h1, .comment-reply-panel h2, .comment-thread-replies > h2 { margin: 0; font-size: 18px; }
.comment-thread-focus .comment-item { border-color: rgba(159,216,255,.38); background: rgba(159,216,255,.055); }
.comment-thread-replies { overflow: hidden; }
.comment-thread-branch { position: relative; display: grid; gap: 8px; margin-left: min(calc(var(--thread-depth) * 18px), 108px); }
.comment-thread-branch::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 2px; border-radius: 99px; background: rgba(159,216,255,.26); }
.comment-thread-children { display: grid; gap: 10px; }
.notification-shell { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 20px 36px 34px; }
.notification-panel { width: min(760px, 100%); height: 100%; min-height: 0; margin: 0 auto; display: flex; flex-direction: column; }
.notification-head { margin: 8px 0 18px; }
.notification-head h1 { margin: 0; font-size: clamp(26px, 3vw, 42px); }
.notification-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.notification-list { display: grid; gap: 12px; min-height: 0; overflow-y: auto; padding-right: 0; }
.notification-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-left: 5px solid var(--cat-color, var(--accent-color)); border-radius: 8px; background: #111; color: #f6f6f6; }
.notification-card .avatar-dot { width: 36px; height: 36px; }
.notification-follow { grid-template-columns: 36px minmax(0, 1fr) auto; border-left-color: var(--exchange); }
.notification-follow .avatar-dot { width: 36px; height: 36px; }
.notification-card strong { display: block; font-size: 16px; }
.notification-card p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.notification-empty { margin: 28px 0 0; color: var(--muted); text-align: center; }
.chat-shell { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 680px); gap: 24px; justify-content: center; overflow: hidden; padding: 18px 26px 28px; }
.chat-list-panel, .chat-room-panel { min-height: 0; display: flex; flex-direction: column; background: #111; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 16px; }
.chat-head { margin: 4px 0 14px; }
.chat-head h1, .chat-room-head h2, .chat-room-empty h2 { margin: 0; }
.chat-head p, .chat-room-head p, .chat-room-empty p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.mutual-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.mutual-search-form input[type="search"] { width: 100%; border: 0; border-radius: 999px; padding: 9px 12px; background: #c8c8c8; color: #171717; font-weight: 800; }
.mutual-search-form .primary-button { margin-top: 0; padding: 9px 12px; }
.mutual-user-panel { flex: 0 1 auto; min-height: 0; display: grid; gap: 8px; padding: 10px 0 12px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.mutual-user-panel h2, .chat-thread-list h2 { margin: 0; font-size: 14px; color: #fff; }
.mutual-user-list { min-height: 0; max-height: 210px; overflow-y: auto; display: grid; gap: 8px; }
.mutual-user-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border-radius: 7px; background: rgba(255,255,255,.045); }
.mutual-user-row strong, .mutual-user-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mutual-user-row small { color: var(--muted); }
.mutual-user-row form { margin: 0; }
.chat-thread-list, .chat-message-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 10px; padding-right: 0; }
.chat-thread-list { flex: 1 1 auto; align-content: start; }
.chat-thread { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.04); }
.chat-thread.is-active { border-color: var(--accent-color); background: rgba(255,255,255,.09); }
.chat-thread strong, .chat-thread small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread small { color: var(--muted); margin-top: 2px; }
.chat-room-head { flex: 0 0 auto; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.chat-room-head .avatar-dot { width: 46px; height: 46px; }
.chat-message-list { flex: 1 1 auto; padding: 14px 0; }
.chat-message { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; max-width: 82%; }
.chat-message.is-own { justify-self: end; grid-template-columns: minmax(0, 1fr) 30px; }
.chat-message.is-own .avatar-dot { grid-column: 2; grid-row: 1; }
.chat-message.is-own div { grid-column: 1; grid-row: 1; text-align: right; }
.chat-message div { padding: 9px 11px; border-radius: 8px; background: rgba(255,255,255,.07); }
.chat-message.is-own div { background: color-mix(in srgb, var(--accent-color) 38%, #111); }
.chat-message p { margin: 4px 0; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message small { color: var(--muted); font-size: 11px; }
.chat-message-form { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.chat-message-form textarea { min-height: 64px; }
.chat-message-form .primary-button { margin-top: 0; }
.chat-empty, .chat-room-empty { color: var(--muted); line-height: 1.6; }
.chat-room-empty { margin: auto; text-align: center; }
.chat-start-button { background: rgba(255,255,255,.12); }
.static-shell { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 36px 34px; }
.static-panel { width: min(820px, 100%); margin: 0 auto; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-left: 6px solid var(--cat-color, var(--accent-color)); border-radius: 10px; background: #111; box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.static-head { margin: 12px 0 24px; }
.static-head p { margin: 0 0 4px; color: var(--cat-color, var(--accent-color)); font-size: 14px; }
.static-head h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
.static-section { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.static-section h2 { margin: 0 0 8px; font-size: clamp(19px, 2vw, 28px); }
.static-section p { margin: 0; color: #e7e2e2; line-height: 1.9; font-weight: 650; }
.legal-shell, .of-article-shell { padding-top: 14px; }
.legal-document, .of-article { width: min(980px, 100%); padding: clamp(18px, 3vw, 40px); }
.legal-head, .of-article-head { margin: 18px 0 26px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 58px); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: #aeb0b8; font-size: 12px; font-weight: 750; }
.legal-lead { max-width: 760px; margin: 20px 0 0; color: #f4f4f4; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.9; font-weight: 700; }
.legal-toc { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0 -8px 8px; padding: 9px 8px; background: rgba(17,17,17,.94); backdrop-filter: blur(8px); scrollbar-width: none; }
.legal-toc::-webkit-scrollbar { display: none; }
.legal-toc a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; color: #f1f1f1; font-size: 12px; font-weight: 850; }
.legal-toc a:hover, .legal-toc a:focus-visible { border-color: var(--cat-color, var(--accent-color)); color: #fff; }
.toc-label { margin: 0 0 2px; color: #c9cbd4; font-size: 12px; font-weight: 900; }
.legal-section { scroll-margin-top: 58px; padding: 24px 0; }
.legal-section h2 { margin: 0 0 10px; font-size: clamp(19px, 2.4vw, 27px); }
.legal-section h2:not(:first-child) { margin-top: 26px; }
.legal-section p, .legal-section li, .legal-definition-list dd { color: #dedee2; font-size: 14px; line-height: 1.9; font-weight: 600; }
.legal-section p + p { margin-top: 12px; }
.legal-section ol, .legal-section ul { display: grid; gap: 9px; margin: 12px 0 0; padding-left: 1.45em; }
.legal-section li::marker { color: var(--cat-color, var(--accent-color)); font-weight: 900; }
.legal-definition-list { display: grid; gap: 0; margin: 12px 0 0; }
.legal-definition-list > div { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); }
.legal-definition-list dt { color: #fff; font-size: 14px; font-weight: 900; }
.legal-definition-list dd { margin: 0; }
.legal-footer { display: grid; gap: 9px; margin-top: 18px; padding: 20px; border-top: 3px solid var(--cat-color, var(--accent-color)); background: rgba(255,255,255,.035); }
.legal-footer h2, .legal-footer p { margin: 0; }
.legal-footer p { color: #dedee2; line-height: 1.7; overflow-wrap: anywhere; }
.legal-footer a { width: fit-content; color: #7edaff; font-weight: 850; }
.legal-contact-form { width: fit-content; margin: 2px 0; }
.legal-contact-button { color: #fff; border-color: #7edaff; background: #152631; font-weight: 850; }
.of-article { --cat-color: var(--job); }
.of-article-head h1 { max-width: 850px; font-size: clamp(30px, 5vw, 58px); line-height: 1.2; letter-spacing: 0; }
.of-article-head h1 span { color: var(--job); }
.of-article-deck { max-width: 720px; margin: 18px 0 0; color: #ececf0; font-size: clamp(16px, 2vw, 21px); line-height: 1.75; font-weight: 750; }
.of-editor-note { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 16px; margin: 8px 0 18px; padding: 15px 17px; border-left: 4px solid var(--job); background: rgba(20,186,20,.07); }
.of-editor-note strong { color: var(--job); }
.of-editor-note p { margin: 0; color: #d8d8dc; font-size: 12px; line-height: 1.75; }
.of-toc { --cat-color: var(--job); }
.of-prose { scroll-margin-top: 58px; padding: clamp(25px, 4vw, 44px) 0; }
.of-prose h2 { max-width: 760px; margin-bottom: 20px; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.35; }
.of-prose p { max-width: 760px; color: #e2e2e5; font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; font-size: clamp(15px, 1.65vw, 18px); line-height: 2.05; font-weight: 500; }
.of-prose p + p { margin-top: 19px; }
.of-prose .section-kicker { margin: 0 0 7px; color: var(--job); font-family: inherit; font-size: 12px; line-height: 1.4; font-weight: 950; }
.of-prose .of-callout { max-width: 850px; margin: 28px 0 2px; padding: clamp(18px, 3vw, 28px); border-left: 5px solid var(--job); background: rgba(255,255,255,.045); color: #fff; font-size: clamp(18px, 2.5vw, 25px); line-height: 1.7; font-weight: 750; }
.of-article-figure { width: min(900px, 100%); margin: clamp(28px, 5vw, 52px) 0 8px; }
.of-article-figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.16); }
.of-article-figure figcaption { padding-top: 9px; color: #aeb0b8; font-size: 12px; line-height: 1.7; }
.of-prose .of-end-mark { margin-left: auto; text-align: right; }
.of-article-footer { display: grid; gap: 10px; margin-top: 14px; padding: clamp(18px, 3vw, 28px); border-top: 4px solid var(--job); background: rgba(20,186,20,.06); }
.of-article-footer strong { font-size: clamp(17px, 2vw, 22px); }
.of-article-footer p { margin: 0; color: #d8d8dc; line-height: 1.8; }
.of-article-footer .primary-button { width: fit-content; margin-top: 3px; }
.parliament-guide-shell { padding-top: 14px; }
.parliament-guide { --cat-color: #0014ba; width: min(980px, 100%); padding: clamp(18px, 3vw, 40px); border-left-color: #0014ba; }
.parliament-guide-head { margin: 12px 0 26px; }
.parliament-guide-logo { display: block; width: min(360px, 78vw); height: auto; max-height: 82px; margin: 0 0 22px; object-fit: contain; object-position: left center; }
.parliament-guide-head > p:first-of-type { color: #7180ff; }
.parliament-guide-head h1 { font-size: clamp(36px, 5vw, 60px); }
.parliament-guide-toc { --cat-color: #7180ff; }
.guide-prose { scroll-margin-top: 58px; padding: clamp(25px, 4vw, 42px) 0; }
.guide-prose h2 { max-width: 800px; margin: 0 0 18px; font-size: clamp(25px, 3.6vw, 39px); line-height: 1.35; }
.guide-prose h3 { max-width: 760px; margin: 28px 0 8px; color: #fff; font-size: clamp(17px, 2vw, 21px); }
.guide-prose > p, .guide-prose > ul { max-width: 780px; }
.guide-prose p, .guide-prose li { color: #dedee4; font-size: clamp(14px, 1.55vw, 17px); line-height: 1.95; font-weight: 570; }
.guide-prose p + p { margin-top: 16px; }
.guide-prose .section-kicker { margin: 0 0 7px; color: #7180ff; font-size: 12px; line-height: 1.4; font-weight: 950; }
.guide-prose blockquote { max-width: 850px; margin: 28px 0; padding: 20px 24px; border-left: 5px solid #0014ba; background: rgba(0,20,186,.1); color: #fff; font-size: clamp(18px, 2.5vw, 25px); line-height: 1.75; font-weight: 850; }
.guide-prose > ul { display: grid; gap: 9px; padding-left: 1.4em; }
.guide-prose li::marker { color: #7180ff; font-weight: 900; }
.guide-steps { display: grid; gap: 0; max-width: 840px; margin: 22px 0 26px; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-steps li { counter-increment: guide-step; display: grid; grid-template-columns: 36px minmax(120px, 170px) minmax(0, 1fr); gap: 12px; align-items: start; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.11); }
.guide-steps li::before { content: counter(guide-step, decimal-leading-zero); color: #7180ff; font-size: 12px; font-weight: 950; }
.guide-steps strong { color: #fff; }
.guide-steps span { color: #d5d6df; }
.guide-anatomy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; max-width: 880px; margin: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); }
.guide-anatomy > div { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.guide-anatomy strong { color: #fff; font-size: 16px; }
.guide-anatomy p { margin: 6px 0 0; color: #cfd0d9; font-size: 13px; line-height: 1.8; }
.guide-tier-table { max-width: 850px; margin: 22px 0 26px; border-top: 2px solid #0014ba; }
.guide-tier-table > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.11); }
.guide-tier-table strong { color: #fff; }
.guide-tier-table span { color: #d4d5df; line-height: 1.7; }
.parliament-guide-footer { display: grid; gap: 10px; margin-top: 14px; padding: clamp(18px, 3vw, 28px); border-top: 4px solid #0014ba; background: rgba(0,20,186,.09); }
.parliament-guide-footer strong { font-size: clamp(17px, 2vw, 22px); }
.parliament-guide-footer p { margin: 0; color: #d8d8dc; line-height: 1.8; }
.parliament-guide-footer .primary-button { width: fit-content; margin-top: 3px; background: #0014ba; }
.service-guide-shell { padding-top: 14px; }
.service-guide { --cat-color: var(--exchange); width: min(1020px, 100%); padding: clamp(18px, 3vw, 40px); }
.service-guide-head { margin: 12px 0 26px; }
.service-guide-brand { display: flex; align-items: center; justify-content: center; width: 219px; height: 68px; max-width: 100%; margin: 0 0 18px; padding: 0; border-radius: 7px; overflow: hidden; background: #fff; }
.service-guide-brand img { display: block; flex: none; width: auto; max-width: none; height: 67.5px; max-height: none; object-fit: contain; object-position: center; }
.service-guide-head h1 { font-size: clamp(36px, 5vw, 60px); }
.service-guide-toc { --cat-color: var(--exchange); }
.service-feature-grid { max-width: 940px; }
.service-category-list { max-width: 900px !important; margin-top: 20px; padding: 0 !important; list-style: none; border-top: 2px solid var(--exchange); }
.service-category-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.11); }
.service-category-list strong { color: #fff; }
.service-category-list span { color: #d4d5df; }
.service-guide figure { max-width: 940px; margin: 30px 0 12px; }
.service-guide figcaption { margin-top: 11px; color: #aeb0b8; font-size: 12px; line-height: 1.7; }
.service-map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 12px; padding: 22px; border: 1px solid rgba(255,255,255,.12); background: #151515; }
.service-map::before, .service-map::after { content: ""; position: absolute; z-index: 0; background: rgba(255,255,255,.15); }
.service-map::before { top: 27%; bottom: 27%; left: 50%; width: 1px; }
.service-map::after { top: 50%; left: 20%; right: 20%; height: 1px; }
.service-map-core, .service-map-node { position: relative; z-index: 1; display: grid; place-content: center; min-height: 86px; padding: 12px; border: 1px solid rgba(255,255,255,.16); background: #111; text-align: center; font-weight: 950; }
.service-map-core span, .service-map-node span { display: block; margin-top: 4px; color: #aeb0b8; font-size: 11px; font-weight: 750; }
.service-map-core { grid-column: 2; grid-row: 2; border: 2px solid var(--exchange); color: #fff; font-size: 23px; }
.service-map-node-post { grid-column: 1; grid-row: 2; border-color: var(--exchange); }
.service-map-node-work { grid-column: 2; grid-row: 1; border-color: var(--job); }
.service-map-node-people { grid-column: 3; grid-row: 2; border-color: var(--hermitage); }
.service-map-node-parliament { grid-column: 2; grid-row: 3; border-color: #7180ff; }
.service-map figcaption { grid-column: 1 / -1; grid-row: 4; }
.evaluation-diagram { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: minmax(300px, auto) auto auto auto; }
.service-evaluation-plane { position: relative; display: grid; grid-column: 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(140px, 1fr)); border: 2px solid rgba(255,255,255,.4); background: #101010; }
.service-evaluation-plane::before, .service-evaluation-plane::after { content: ""; position: absolute; background: rgba(255,255,255,.5); }
.service-evaluation-plane::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.service-evaluation-plane::after { top: 50%; left: 0; right: 0; height: 1px; }
.service-evaluation-quadrant { display: grid; place-content: center; gap: 5px; min-width: 0; padding: 18px; text-align: center; }
.service-evaluation-quadrant:nth-child(1) { background: rgba(186,0,20,.1); }
.service-evaluation-quadrant:nth-child(2) { background: rgba(20,186,186,.1); }
.service-evaluation-quadrant:nth-child(3) { background: rgba(186,20,186,.08); }
.service-evaluation-quadrant:nth-child(4) { background: rgba(20,186,20,.1); }
.service-evaluation-quadrant strong { color: #fff; font-size: 14px; }
.service-evaluation-quadrant span { color: #aeb0b8; font-size: 11px; }
.evaluation-point { position: absolute; z-index: 2; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.15); transform: translate(-50%, -50%); }
.evaluation-average-point { left: 70%; top: 33%; background: #f3df47; }
.evaluation-own-point { left: 60%; top: 42%; background: #ff8fa3; }
.evaluation-coordinate-label { position: absolute; z-index: 1; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 950; }
.evaluation-coordinate-y { top: 5px; left: calc(50% + 7px); }
.evaluation-coordinate-x { right: 7px; top: calc(50% + 5px); }
.service-evaluation-axis { display: flex; justify-content: space-between; color: #cfd0d8; font-size: 11px; font-weight: 850; }
.service-evaluation-axis-y { grid-column: 1; grid-row: 1; flex-direction: column; align-items: center; padding: 4px 12px 4px 0; }
.service-evaluation-axis-y span { writing-mode: vertical-rl; }
.service-evaluation-axis-x { grid-column: 2; grid-row: 2; padding-top: 9px; }
.evaluation-legend { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 11px; color: #d4d5dd; font-size: 12px; font-weight: 800; }
.evaluation-legend span { display: inline-flex; align-items: center; gap: 7px; }
.evaluation-legend i { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; }
.evaluation-average-swatch { background: #f3df47; }
.evaluation-own-swatch { background: #ff8fa3; }
.evaluation-diagram figcaption { grid-column: 1 / -1; grid-row: 4; }
.of-cycle-diagram { padding: 20px; border: 1px solid rgba(20,186,20,.4); background: rgba(20,186,20,.05); }
.of-cycle-track { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.of-cycle-track > div { display: grid; place-content: center; min-height: 82px; padding: 10px; border: 1px solid rgba(255,255,255,.15); background: #111; text-align: center; }
.of-cycle-track span { color: var(--job); font-size: 12px; font-weight: 950; }
.of-cycle-track strong { margin-top: 5px; color: #fff; font-size: 13px; }
.of-cycle-track i { color: var(--job); font-style: normal; font-size: 20px; }
.service-start-steps { max-width: 900px; }
.theory-comparison { max-width: 940px; margin: 22px 0 26px; border-top: 2px solid var(--exchange); }
.theory-comparison > div { display: grid; grid-template-columns: 150px minmax(170px, .8fr) minmax(0, 1.4fr); gap: 16px; padding: 15px 9px; border-bottom: 1px solid rgba(255,255,255,.12); }
.theory-comparison strong { color: #fff; }
.theory-comparison span { color: #d4d5df; font-size: 13px; line-height: 1.75; }
.service-guide-footer { display: grid; gap: 10px; margin-top: 14px; padding: clamp(18px, 3vw, 28px); border-top: 4px solid var(--exchange); background: rgba(186,20,186,.08); }
.service-guide-footer strong { font-size: clamp(17px, 2vw, 22px); }
.service-guide-footer p { margin: 0; color: #d8d8dc; line-height: 1.8; }
.service-guide-footer .primary-button { width: fit-content; margin-top: 3px; }
.historical-publication-fields { display: grid; gap: 8px; grid-column: 1 / -1; margin-top: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--historical) 55%, transparent); background: rgba(186,186,20,.06); }
.historical-publication-fields .field-line { margin: 0; }
.publication-help { margin: 0; color: #c8c8b6; font-size: 11px; line-height: 1.65; }
.publication-status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; color: #cfcfc0; font-size: 12px; }
.publication-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; font-style: normal; font-weight: 900; line-height: 1; white-space: nowrap; }
.publication-badge.status-public { color: #dede54; }
.publication-badge.status-private_archive { color: #9fc8ff; }
.publication-badge.status-temporary_public { color: #ffcf70; }
.publication-badge.status-withdrawn_archive { color: #c1c1c8; }
.archive-locked-panel { border-top-color: var(--historical); }
.archive-locked-panel p { color: #c8c8cc; line-height: 1.7; }
.historical-vault-shell { padding-top: 14px; }
.historical-vault { --cat-color: var(--historical); width: min(980px, 100%); padding: clamp(18px, 3vw, 34px); }
.historical-vault-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.historical-vault-head p, .historical-vault-head h1 { margin: 0; }
.historical-vault-head > div > p:first-child { color: var(--historical); font-size: 12px; font-weight: 900; }
.historical-vault-head h1 { margin: 3px 0 7px; font-size: clamp(30px, 4vw, 48px); }
.historical-vault-head > div > p:last-child { color: #c8c8cf; line-height: 1.7; }
.vault-status-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; padding: 10px 0; border-block: 1px solid rgba(255,255,255,.1); }
.historical-vault-list { min-height: 0; }
.historical-vault-list [data-infinite-list] { display: grid; gap: 12px; }
.historical-vault-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 150px; border: 1px solid rgba(255,255,255,.13); border-left: 4px solid var(--historical); background: #151515; }
.historical-vault-image { display: block; min-height: 150px; overflow: hidden; background: #0c0c0c; }
.historical-vault-image .post-image { width: 100%; height: 100%; object-fit: cover; }
.historical-vault-card-body { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px; }
.historical-vault-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.historical-vault-card-head time, .historical-vault-card-body small { color: #aaa; font-size: 11px; }
.historical-vault-card-body > strong { color: #fff; font-size: 17px; }
.historical-vault-card-body > p { margin: 0; color: #d5d5d8; line-height: 1.6; }
.historical-vault-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.historical-vault-actions .primary-button { margin: 0; }
.historical-vault-empty { display: grid; justify-items: start; gap: 9px; min-height: 230px; align-content: center; padding: 20px; border: 1px dashed rgba(255,255,255,.2); }
.historical-vault-empty p { margin: 0; color: #bfc0c8; }
.materials-guide-shell { padding-top: 14px; }
.materials-guide { --cat-color: var(--historical); width: min(1000px, 100%); padding: clamp(18px, 3vw, 40px); }
.materials-guide-actions { display: flex; justify-content: flex-end; margin-top: -36px; }
.materials-guide-actions .primary-button { width: fit-content; }
.materials-guide-head { margin: 12px 0 26px; }
.materials-guide-mark { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 17px; border-radius: 9px; overflow: hidden; }
.materials-guide-mark img { width: 100%; height: 100%; object-fit: cover; }
.materials-guide-head h1 { font-size: clamp(34px, 5vw, 58px); }
.materials-guide-head > p:first-of-type { color: var(--historical); }
.materials-guide-toc { --cat-color: var(--historical); }
.materials-record-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 23px 0 27px; }
.materials-record-map > div { display: grid; gap: 6px; min-height: 110px; padding: 16px; border: 1px solid rgba(186,186,20,.35); background: rgba(186,186,20,.045); }
.materials-record-map strong { color: var(--historical); font-size: 16px; }
.materials-record-map span { color: #d5d5d8; font-size: 13px; line-height: 1.7; }
.materials-status-table { max-width: 940px; margin: 22px 0 26px; border-top: 2px solid var(--historical); }
.materials-status-table > div { display: grid; grid-template-columns: 120px minmax(220px, 1.3fr) minmax(160px, .7fr); gap: 15px; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.11); }
.materials-status-table strong { color: #fff; }
.materials-status-table span { color: #d5d5dc; font-size: 13px; line-height: 1.7; }
.materials-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 7px; align-items: center; max-width: 940px; margin: 26px 0; }
.materials-flow span { display: grid; place-items: center; min-height: 72px; padding: 10px; border: 1px solid rgba(255,255,255,.15); background: #151515; color: #fff; font-size: 12px; font-weight: 900; text-align: center; }
.materials-flow i { color: var(--historical); font-style: normal; }
.materials-guide-footer { display: grid; gap: 10px; margin-top: 14px; padding: clamp(18px, 3vw, 28px); border-top: 4px solid var(--historical); background: rgba(186,186,20,.06); }
.materials-guide-footer strong { font-size: clamp(17px, 2vw, 22px); }
.materials-guide-footer p { margin: 0; color: #d8d8dc; line-height: 1.8; }
.materials-guide-footer .primary-button { width: fit-content; margin-top: 3px; }
.parliament-shell { --parliament-blue: #0014BA; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 260px minmax(520px, 1fr) 340px; overflow: hidden; background: #101010; }
.parliament-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 18px 12px; border-right: 1px solid rgba(255,255,255,.08); background: #101010; overflow-y: auto; overscroll-behavior: contain; }
.parliament-main { min-width: 0; min-height: 0; overflow-y: auto; padding: 10px 16px 18px; background: radial-gradient(circle at 18% 0%, rgba(0,20,186,.11), transparent 32%), #111; }
.parliament-right { min-width: 0; min-height: 0; overflow-y: auto; padding: 10px 16px 12px; border-left: 1px solid rgba(255,255,255,.08); background: #101010; }
.parliament-brand { display: flex; align-items: center; margin: 0 0 9px; }
.parliament-logo { width: 222px; height: 50px; object-fit: contain; object-position: left center; display: block; }
.parliament-menu { display: grid; gap: 4px; margin-top: 2px; }
.parliament-menu a { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-radius: 7px; color: #d9d9e2; font-size: 14px; font-weight: 800; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
.parliament-menu a span { color: #b7bdd8; font-size: 18px; text-align: center; }
.parliament-menu a:hover, .parliament-menu a:focus-visible { background: rgba(255,255,255,.07); color: #fff; outline: 0; }
.parliament-menu a.is-active { background: linear-gradient(90deg, rgba(0,20,186,.88), rgba(0,20,186,.32)); color: #fff; box-shadow: inset 3px 0 0 rgba(255,255,255,.72); }
.parliament-menu a.is-active span { color: #fff; }
.parliament-new-topic { display: grid; place-items: center; flex: 0 0 auto; min-height: 36px; margin-top: 0; border: 1px solid rgba(0,20,186,.9); border-radius: 6px; color: #dfe4ff; background: rgba(0,20,186,.1); font-size: 14px; font-weight: 900; }
.parliament-new-topic:hover, .parliament-new-topic:focus-visible { background: rgba(0,20,186,.32); outline: 0; }
.parliament-board-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.parliament-board-head h1 { margin: 0; font-size: 27px; letter-spacing: 0; }
.parliament-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.parliament-filter-row a, .parliament-filter-row span { min-height: 30px; display: grid; place-items: center; padding: 0 14px; border-radius: 6px; background: rgba(255,255,255,.06); color: #cfd0d8; font-size: 13px; }
.parliament-filter-row a.is-active { background: var(--parliament-blue); color: #fff; }
.parliament-filter-row span { margin-left: 11px; border: 1px solid rgba(255,255,255,.18); background: transparent; }
.parliament-issue-list { display: grid; gap: 7px; }
.parliament-issue-card { display: grid; grid-template-columns: minmax(0, 1fr) 224px; min-height: 168px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); overflow: hidden; }
.parliament-issue-body { min-width: 0; display: flex; flex-direction: column; padding: 10px 14px; }
.parliament-status-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 5px; }
.parliament-status, .parliament-badge { display: inline-grid; place-items: center; min-height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; color: #fff; }
.parliament-status.is-active { background: color-mix(in srgb, var(--job) 82%, #111); }
.parliament-status.is-upcoming { background: color-mix(in srgb, var(--historical) 70%, #111); }
.parliament-status.is-closed { background: rgba(130,135,150,.8); }
.parliament-badge { background: rgba(255,255,255,.12); }
.badge-exchange { background: color-mix(in srgb, var(--exchange) 70%, #111); }
.badge-blue { background: color-mix(in srgb, var(--parliament-blue) 78%, #111); }
.badge-job { background: color-mix(in srgb, var(--job) 70%, #111); }
.badge-hospitality { background: color-mix(in srgb, var(--hospitality) 70%, #111); }
.badge-historical { background: color-mix(in srgb, var(--historical) 70%, #111); }
.badge-transport { background: color-mix(in srgb, var(--transport) 70%, #111); }
.badge-other { background: rgba(255,255,255,.16); }
.badge-neutral { background: rgba(255,255,255,.16); }
.parliament-issue-body h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.28; }
.parliament-issue-body p { margin: 0; color: #c8c9d2; font-size: 14px; line-height: 1.55; font-weight: 650; }
.parliament-meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 8px; color: #aeb0bd; font-size: 13px; }
.parliament-empty-state { display: grid; gap: 3px; padding: 14px 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(255,255,255,.03); text-align: center; }
.parliament-empty-state h2 { margin: 0; font-size: 19px; }
.parliament-empty-state p { margin: 0; color: #aeb0bd; }
.parliament-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.parliament-tool-card { display: grid; align-content: start; gap: 7px; min-height: 168px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: linear-gradient(180deg, rgba(0,20,186,.08), rgba(255,255,255,.025)); }
.parliament-tool-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.parliament-tool-card h2 { margin: 0; font-size: 18px; }
.parliament-tool-card header a, .parliament-tool-card header span { display: inline-grid; place-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0,20,186,.8); color: #fff; font-size: 12px; font-weight: 900; }
.parliament-tool-card p { margin: 0; color: #b8bdcf; line-height: 1.65; font-size: 13px; font-weight: 750; }
.parliament-tool-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 48px; padding: 7px 8px; border-radius: 6px; background: rgba(255,255,255,.055); }
.parliament-tool-row div { min-width: 0; display: grid; gap: 3px; }
.parliament-tool-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.25; }
.parliament-tool-row small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aeb0bd; font-size: 12px; font-weight: 760; }
.parliament-mini-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 30px; padding: 0 9px; border-radius: 5px; background: var(--parliament-blue); color: #fff; font-size: 12px; font-weight: 900; }
.parliament-tool-row form { margin: 0; }
.parliament-about-card { min-height: 0; }
.parliament-new-issue-panel { display: grid; gap: 8px; margin-top: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.035); }
.parliament-new-issue-panel header { display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.parliament-new-issue-panel h2 { margin: 0; font-size: 20px; }
.parliament-new-issue-panel p { margin: 0; color: #aeb0bd; font-size: 13px; }
.parliament-new-issue-form { display: grid; gap: 6px; }
.parliament-new-issue-form input[type="text"], .parliament-new-issue-form textarea, .parliament-new-issue-form select, .parliament-new-issue-form input[type="datetime-local"] { border: 0; border-radius: 6px; background: #c9c9c9; color: #101010; padding: 7px 10px; font: inherit; font-weight: 800; }
.parliament-new-issue-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.parliament-tier-lock { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 7px; background: rgba(255,255,255,.055); color: #d8dbe8; }
.parliament-tier-lock strong { color: #fff; }
.parliament-vote-panel, .parliament-countdown { display: grid; align-content: start; gap: 6px 10px; padding: 10px 12px; border-left: 1px solid rgba(255,255,255,.1); }
.parliament-vote-panel { grid-template-columns: minmax(0, 1fr) 118px; }
.parliament-vote-panel h3, .parliament-countdown p { margin: 0; color: #cfd2dd; font-size: 14px; }
.parliament-donut { grid-column: 2; grid-row: 1 / span 3; justify-self: end; align-self: start; width: 117px; height: 117px; border-radius: 50%; background: conic-gradient(var(--job) 0 calc(var(--agree) * 1%), #e36454 0 calc((var(--agree) + var(--oppose)) * 1%), #699dd8 0 100%); box-shadow: inset 0 0 0 27px #101010; }
.parliament-vote-panel dl { display: grid; gap: 3px; margin: 0; }
.parliament-vote-panel dl div { display: flex; justify-content: space-between; gap: 10px; }
.parliament-vote-panel dt, .parliament-vote-panel dd { margin: 0; font-size: 13px; }
.parliament-vote-panel .agree { color: var(--job); }
.parliament-vote-panel .oppose { color: #e36454; }
.parliament-vote-panel .hold { color: #80b7f1; }
.parliament-vote-panel p { margin: 0; color: #b3b5c0; font-size: 13px; }
.parliament-vote-panel a, .parliament-countdown a, .parliament-side-card article a { display: grid; place-items: center; min-height: 34px; border-radius: 5px; background: var(--parliament-blue); color: #fff; font-size: 13px; }
.parliament-vote-panel a { grid-column: 1 / -1; min-height: 30px; }
.parliament-countdown strong { color: #f2f3fb; font-size: 28px; }
.parliament-account, .parliament-side-card { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #121212; padding: 16px; margin-bottom: 16px; }
.parliament-account { transition: opacity .16s ease; }
.parliament-account.is-loading { opacity: .48; pointer-events: none; }
.parliament-account header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.parliament-account h2 { margin: 0; font-size: 24px; }
.parliament-account header p, .parliament-account > p { margin: 3px 0 0; color: #d6d6df; line-height: 1.6; }
.parliament-account-return { grid-column: 1 / -1; justify-self: end; min-height: 28px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dfe4ff; background: rgba(0,20,186,.18); font-size: 12px; font-weight: 900; }
.parliament-account-return:hover, .parliament-account-return:focus-visible { background: rgba(0,20,186,.42); outline: 0; }
.parliament-profile-text { display: grid; gap: 4px; margin-top: 12px; }
.parliament-profile-text p { margin: 0; color: #d6d6df; line-height: 1.55; font-size: 14px; font-weight: 750; }
.parliament-profile-text span { color: #8e94a8; font-weight: 850; }
.parliament-rating-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; color: #f2f2f2; font-size: 13px; font-weight: 950; }
.parliament-rating-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parliament-fixed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.parliament-fixed-card-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.09); color: #b8becf; font-size: 12px; font-weight: 900; }
.parliament-fixed-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.parliament-fixed-card-empty { border: 1px dashed rgba(255,255,255,.18); }
.parliament-side-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.parliament-side-card h2 { margin: 0; font-size: 17px; }
.parliament-side-card header span { display: inline-grid; place-items: center; min-width: 34px; min-height: 24px; border-radius: 999px; background: var(--parliament-blue); color: #fff; font-size: 12px; }
.parliament-side-card > p { margin: 0 0 12px; color: #aeb0bd; font-size: 13px; }
.parliament-side-card article { position: relative; display: grid; gap: 7px; padding: 12px; border-radius: 7px; background: rgba(255,255,255,.055); margin-top: 10px; }
.parliament-side-card article strong { font-size: 14px; line-height: 1.45; }
.parliament-side-card article small { display: flex; gap: 8px; align-items: center; color: #aeb0bd; }
.parliament-side-card article small span { padding: 2px 6px; border-radius: 4px; background: var(--parliament-blue); color: #fff; }
.parliament-side-card article a { position: absolute; right: 10px; bottom: 10px; min-height: 30px; padding: 0 9px; }
.parliament-personal-card article { padding-right: 60px; }
.parliament-news article { background: transparent; border-top: 1px solid rgba(255,255,255,.09); border-radius: 0; padding: 12px 0; }
.parliament-news time { color: #9fa1ad; font-size: 12px; }
.parliament-chamber-head { align-items: start; }
.parliament-back-link { display: inline-grid; min-height: 28px; place-items: center; margin-bottom: 8px; color: #aeb8ff; font-size: 13px; font-weight: 800; }
.parliament-chamber-owner { display: flex; align-items: center; gap: 10px; }
.parliament-chamber-owner .avatar-dot { width: 38px; height: 38px; flex: 0 0 auto; }
.parliament-user-switch-link { display: inline-grid; color: inherit; }
.parliament-chamber-owner-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.parliament-chamber-top-actions { display: grid; justify-items: end; gap: 10px; align-content: start; }
.parliament-follow-form { margin: 0; }
.parliament-follow-button { min-height: 32px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 0 14px; background: var(--parliament-blue); color: #fff; font-weight: 900; cursor: pointer; }
.parliament-follow-button.is-following { background: rgba(255,255,255,.12); }
.parliament-vote-summary { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.parliament-vote-summary span { display: inline-grid; place-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: #eef1ff; font-size: 12px; font-weight: 850; }
.parliament-chamber { position: sticky; top: -189px; z-index: 6; min-height: 520px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: linear-gradient(180deg, #bb5f21 0%, #d7834f 38%, #ffd0cb 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.chamber-stand { position: absolute; top: 12px; z-index: 5; display: grid; gap: 3px; place-items: center; width: 22%; min-height: 70px; padding: 8px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(42,46,55,.63); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.chamber-stand strong { font-size: 18px; line-height: 1; }
.chamber-stand span { font-size: 30px; line-height: 1.05; font-weight: 950; }
.chamber-stand-agree { left: 4%; }
.chamber-stand-oppose { right: 4%; }
.chamber-topic-card { position: absolute; top: 12px; left: 28%; z-index: 6; width: 44%; min-width: 0; height: 106px; transform: none; display: grid; align-content: center; gap: 5px; padding: 10px 18px; border-radius: 8px; background: rgba(255,255,255,.96); color: #050505; text-align: center; box-shadow: 0 14px 24px rgba(0,0,0,.2); overflow: hidden; }
.chamber-topic-card span { font-size: 17px; font-weight: 950; letter-spacing: .35em; text-indent: .35em; }
.chamber-topic-card h2 { margin: 0; font-size: 21px; line-height: 1.18; }
.chamber-topic-card .evaluation-plane { border-radius: 8px; }
.chamber-topic-evaluation-toggle { top: 8px; right: 8px; color: #fff; }
.chamber-vote-arc { position: absolute; left: 24%; right: 24%; top: 132px; z-index: 1; height: 92px; border-radius: 92px 92px 0 0; overflow: hidden; background: conic-gradient(from 270deg at 50% 100%, rgba(220,65,66,.9) 0 calc(var(--agree) * .5%), rgba(58,119,207,.9) calc(var(--agree) * .5%) 50%, transparent 0 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 -8px 18px rgba(0,0,0,.12); }
.chamber-vote-arc::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 36%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 120px 120px 0 0; background: #d7834f; }
.arc-label { position: absolute; z-index: 1; bottom: 18px; min-width: max-content; color: #fff; font-size: 12px; font-weight: 950; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.arc-label-agree { left: 11%; }
.arc-label-oppose { right: 11%; }
.chamber-own-focus-toggle { position: absolute; left: 50%; top: 178px; z-index: 8; transform: translateX(-50%); display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 6px; min-height: 28px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 2px 10px 2px 4px; background: rgba(18,18,18,.76); color: #fff; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.chamber-own-focus-toggle .avatar-dot { width: 24px; height: 24px; }
.chamber-own-focus-toggle.is-active { background: rgba(0,20,186,.88); box-shadow: 0 0 0 2px rgba(255,255,255,.32), 0 0 22px rgba(255,255,255,.34); }
.chamber-opinion-field { position: absolute; left: 3%; right: 3%; bottom: 66px; z-index: 4; height: 240px; border: 10px solid rgba(220,65,66,.74); border-right-color: rgba(58,104,196,.74); border-radius: 20px; background: linear-gradient(90deg, rgba(213,37,41,.78), rgba(122,82,150,.75) 48%, rgba(27,91,204,.8)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 12px 24px rgba(0,0,0,.12); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chamber-opinion-field::before { display: none; }
.opinion-edge { position: absolute; top: 12px; z-index: 1; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 950; text-shadow: 0 1px 2px rgba(0,0,0,.42); pointer-events: none; }
.opinion-edge-agree { left: 16px; }
.opinion-edge-oppose { right: 16px; }
.chamber-user-dot { position: absolute; z-index: 5; left: var(--x); top: var(--y); width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 0; border-radius: 50%; background: transparent; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.24), 0 0 0 2px rgba(255,255,255,.22); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chamber-user-dot > .avatar-dot { width: 100%; height: 100%; display: block; border: 2px solid rgba(255,255,255,.8); pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.chamber-user-dot > span:not(.avatar-dot) { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); min-width: max-content; padding: 4px 7px; border-radius: 5px; background: rgba(8,8,10,.88); color: #fff; font-size: 11px; opacity: 0; pointer-events: none; }
.chamber-user-dot:hover > span:not(.avatar-dot), .chamber-user-dot:focus > span:not(.avatar-dot) { opacity: 1; }
.chamber-user-dot.is-mine { z-index: 10; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; box-shadow: 0 0 0 4px rgba(255,255,255,.72), 0 0 20px rgba(255,255,255,.32); }
.chamber-user-dot.is-own-comment { box-shadow: 0 0 0 4px rgba(255,255,255,.84), 0 0 22px rgba(255,255,255,.36); }
.chamber-user-dot.is-selected { z-index: 20; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 24px rgba(255,255,255,.42); transform: scale(1.08); }
.parliament-chamber.is-own-focus-mode .chamber-user-dot:not(.is-own-comment):not(.is-mine) { opacity: .22; filter: grayscale(.4); }
.parliament-chamber.is-own-focus-mode .chamber-user-dot.is-own-comment, .parliament-chamber.is-own-focus-mode .chamber-user-dot.is-mine { z-index: 9; opacity: 1; transform: scale(1.14); box-shadow: 0 0 0 5px rgba(255,255,255,.9), 0 0 30px rgba(255,255,255,.5); }
.chamber-comment-popover { position: absolute; z-index: 11; width: min(220px, 80%); display: grid; gap: 5px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(12,12,14,.92); color: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.34); pointer-events: auto; }
.chamber-comment-popover[hidden] { display: none; }
.chamber-comment-popover::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); background: rgba(12,12,14,.92); border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.chamber-comment-popover strong { font-size: 12px; color: #fff; }
.chamber-comment-popover p { margin: 0; color: #d9dbe5; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.parliament-comment-modal { position: absolute; inset: 0; z-index: 12; display: none; place-items: center; padding: 24px; }
.parliament-comment-modal.is-open { display: grid; }
.parliament-comment-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.38); backdrop-filter: blur(2px); }
.parliament-comment-dialog { position: relative; z-index: 1; width: min(440px, 92%); display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: #151515; box-shadow: 0 20px 48px rgba(0,0,0,.38); }
.parliament-comment-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.parliament-comment-dialog h2 { margin: 0; font-size: 19px; }
.parliament-comment-dialog header button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 22px; cursor: pointer; }
.parliament-comment-dialog p { margin: 0; color: #aeb0bd; font-size: 12px; }
.parliament-comment-dialog .parliament-tier-lock-message { color: #fff; font-size: 15px; line-height: 1.7; }
.comment-stance-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.comment-stance-row label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; }
.comment-stance-row input { width: auto; }
.chamber-comment-bar { position: absolute; left: 3%; right: 3%; bottom: 18px; z-index: 4; height: 36px; overflow: hidden; border-radius: 6px; background: linear-gradient(90deg, rgba(220,65,66,.92) 0 calc(var(--comment-agree) * 1%), rgba(58,119,207,.92) 0 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 8px 18px rgba(0,0,0,.16); }
.chamber-comment-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--comment-agree) * 1%); width: 2px; transform: translateX(-1px); background: rgba(255,255,255,.48); box-shadow: 0 0 10px rgba(255,255,255,.35); }
.comment-bar-label { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 12px; font-weight: 950; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.comment-bar-label-agree { left: 14px; }
.comment-bar-label-oppose { right: 14px; }
.parliament-action-panel-single { grid-template-columns: minmax(0, 1fr); }
.parliament-issue-detail-panel { display: grid; gap: 5px; margin-top: 7px; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.035); }
.parliament-issue-detail-panel header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.parliament-issue-detail-panel h2 { margin: 0; font-size: 18px; }
.parliament-issue-detail-panel header span, .parliament-detail-form small, .parliament-detail-empty { color: #aeb0bd; font-size: 12px; }
.parliament-detail-form { display: grid; gap: 4px; }
.parliament-detail-form textarea { min-height: 80px; border: 0; border-radius: 7px; background: #c9c9c9; color: #101010; font-weight: 850; line-height: 1.55; }
.parliament-detail-form div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.parliament-detail-body { color: #d9dbe5; line-height: 1.7; }
.parliament-detail-body p, .parliament-detail-empty { margin: 0; }
.parliament-stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 7px; }
.parliament-stat-card { display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.035); padding: 7px; }
.parliament-stat-card h2 { margin: 0; font-size: 18px; }
.parliament-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px 42px; gap: 8px; align-items: center; min-height: 28px; color: #d9dbe5; }
.parliament-stat-row span, .parliament-stat-row small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parliament-stat-row strong { color: #fff; text-align: right; }
.parliament-stat-row small { color: #aeb0bd; text-align: right; }
.parliament-participation-grid, .parliament-action-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 7px; align-items: stretch; }
.parliament-vote-form, .parliament-comment-form, .parliament-participation-lock { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.035); padding: 7px; }
.parliament-vote-form header, .parliament-comment-form header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.parliament-vote-form h2, .parliament-comment-form h2 { margin: 0; font-size: 18px; }
.parliament-vote-form p, .parliament-comment-form p { margin: 0; color: #aeb0bd; font-size: 12px; font-weight: 800; }
.parliament-vote-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.parliament-inline-comment-form { display: grid; gap: 6px; }
.parliament-position-meter { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; color: #d8dbe8; font-size: 12px; font-weight: 900; }
.parliament-position-meter div { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #d8474d, #e7e66a 50%, #4c7be7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); cursor: pointer; }
.parliament-position-meter i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0,20,186,.78), 0 4px 12px rgba(0,0,0,.25); }
.parliament-position-meter small { grid-column: 1 / -1; color: #aeb0bd; }
.parliament-reason-input { grid-column: 1 / -1; min-height: 38px; border: 0; border-radius: 6px; padding: 0 12px; background: #c9c9c9; color: #101010; font-weight: 800; }
.parliament-inline-comment-form select, .parliament-inline-comment-form textarea { border: 0; border-radius: 6px; background: #c9c9c9; color: #101010; padding: 8px 10px; font: inherit; font-weight: 800; }
.parliament-inline-comment-form textarea { min-height: 70px; line-height: 1.55; }
.parliament-inline-comment-form .primary-button { margin-top: 0; width: 100%; }
.parliament-comment-limit-note { margin: 0; color: #aeb0bd; line-height: 1.6; }
.parliament-stance-button { min-height: 38px; border: 0; border-radius: 6px; color: #fff; font-weight: 950; cursor: pointer; }
.parliament-stance-button.is-agree { background: var(--job); }
.parliament-stance-button.is-oppose { background: #d8474d; }
.parliament-stance-button.is-hold { background: #6f7fa0; }
.parliament-comment-board { display: grid; gap: 5px; margin-top: 8px; }
.parliament-comment-board > header { display: flex; justify-content: space-between; gap: 12px; align-items: end; padding: 0 4px; }
.parliament-comment-board h2 { margin: 0; font-size: 22px; }
.parliament-comment-board > header p { margin: 0; color: #aeb0bd; font-size: 13px; }
.parliament-comment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.parliament-comment { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(255,255,255,.035); }
.parliament-comment-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; }
.parliament-comment-author .avatar-dot { width: 34px; height: 34px; }
.parliament-comment-author div { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.parliament-comment-name { color: #fff; font-size: 14px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parliament-comment strong { width: fit-content; padding: 2px 8px; border-radius: 5px; color: #fff; font-size: 12px; }
.parliament-comment p { margin: 0; color: #d9dbe5; font-size: 14px; line-height: 1.65; }
.parliament-comment.is-agree strong { background: var(--job); }
.parliament-comment.is-proposal strong { background: var(--historical); color: #111; }
.parliament-comment.is-oppose strong { background: #d8474d; }
.parliament-comment.is-other strong { background: #6f7fa0; }
.parliament-comment.is-focused { border-color: rgba(255,255,255,.46); background: rgba(255,255,255,.085); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 24px rgba(0,0,0,.2); }
.parliament-pagination { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 42px; padding: 6px 2px; }
.parliament-pagination a { width: fit-content; max-width: 100%; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: #fff; font-size: 12px; font-weight: 900; }
.parliament-pagination a:last-child { justify-self: end; }
.parliament-pagination strong { color: #aeb0bd; font-size: 12px; white-space: nowrap; }
.parliament-new-issue-form > label, .parliament-new-issue-grid label { display: grid; gap: 4px; min-width: 0; color: #c7cad7; font-size: 12px; font-weight: 900; }
.metadata-editor { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #111; padding: 18px; }
.metadata-editor h1 { margin: 0 0 8px; font-size: 24px; }
.immutable-note { margin: 0 0 12px; color: var(--muted); }
.metadata-editor blockquote { margin: 0 0 16px; padding: 12px; border-left: 4px solid var(--line); color: #f2f2f2; background: rgba(255,255,255,.04); line-height: 1.7; }
.metadata-form { display: grid; gap: 14px; }
.metadata-checks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metadata-detail-forms { grid-template-columns: 1fr; }

.evaluation-plane { pointer-events: none; opacity: 0; position: absolute; inset: 0; z-index: 5; overflow: hidden; border: 3px solid rgba(255,255,255,.62); border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(151,225,213,.56) 38%, rgba(255,255,255,.18)); color: #224; box-shadow: inset 0 0 36px rgba(255,255,255,.42); transition: opacity .35s ease; user-select: none; -webkit-user-select: none; backdrop-filter: blur(4px) saturate(1.2); }
.evaluation-plane::after { content: ""; position: absolute; inset: -40% -70%; transform: translateX(-65%) rotate(18deg); background: linear-gradient(90deg, transparent 38%, rgba(255,255,255,.82) 50%, transparent 62%); opacity: 0; pointer-events: none; }
.evaluation-plane.is-visible { pointer-events: auto; opacity: 1; touch-action: none; cursor: crosshair; }
.evaluation-plane.is-visible::after { animation: evaluation-shine .9s ease-out; }
[data-evaluation-card]:not(.is-evaluating) { user-select: text; -webkit-user-select: text; }
[data-evaluation-card].is-evaluating, [data-evaluation-card].is-evaluating * { user-select: none; -webkit-user-select: none; }
.axis { position: absolute; background: rgba(255,255,255,.55); }
.axis.horizontal { left: 8%; right: 8%; top: 50%; height: 1px; }
.axis.vertical { top: 8%; bottom: 8%; left: 50%; width: 1px; }
.axis span { position: absolute; font-size: 12px; font-weight: 700; }
.axis.horizontal span { right: 6px; bottom: 4px; }
.axis.vertical span { left: 8px; top: 8px; writing-mode: horizontal-tb; white-space: nowrap; }
.plot { position: absolute; width: 12px; height: 12px; transform: translate(-50%, 50%); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.plot-average { background: #00ba14; }
.plot-self { display: none; width: 15px; height: 15px; background: #ff4b8b; box-shadow: 0 0 0 3px rgba(255,255,255,.82), 0 0 18px rgba(255,75,139,.72); }
.evaluation-plane.has-self-plot .plot-self { display: block; }
.evaluation-plane small { position: absolute; left: 10px; bottom: 8px; color: #224; }
.comment-item, .parliament-comment { position: relative; overflow: hidden; }
.comment-item .evaluation-plane, .parliament-comment .evaluation-plane { min-height: 100%; border-radius: 8px; }
.comment-evaluation-toggle { position: absolute; top: 7px; right: 7px; z-index: 6; min-height: 28px; padding: 3px 9px; font-size: 11px; }
.petal-emblem { display: inline-block; width: 28px; height: 28px; margin-left: 3px; border: 2px solid; border-radius: 50%; object-fit: cover; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 2px 8px rgba(0,0,0,.35); }
.petal-emblem.is-iron { border-color: #747a80; }
.petal-emblem.is-bronze { border-color: #b87333; }
.petal-emblem.is-silver { border-color: #d5d9df; box-shadow: 0 0 0 1px #6f7680, 0 2px 9px rgba(213,217,223,.38); }
.petal-emblem.is-gold { border-color: #e1b93f; box-shadow: 0 0 0 1px #775e08, 0 2px 10px rgba(225,185,63,.52); }

.collection-head { flex: 0 0 auto; display: grid; gap: 7px; padding: 8px 0 14px; background: #101010; }
.collection-head h1 { margin: 0; font-size: 28px; }
.collection-head p { margin: 0; color: var(--muted); font-size: 13px; }
.collection-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.collection-tabs a { display: grid; place-items: center; min-height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #f2f2f2; background: rgba(255,255,255,.04); }
.collection-tabs a.is-active { border-color: var(--accent-color); background: color-mix(in srgb, var(--accent-color) 22%, #111); }
.collection-scroll { padding-top: 0; }
.collection-empty { padding: 36px 12px; color: var(--muted); text-align: center; }
.collection-return-categories { margin-top: 4px; }
.parliament-supplement-card { display: grid; gap: 4px; margin-top: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.04); }
.parliament-supplement-card > header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.parliament-supplement-card time { color: #aeb0bd; font-size: 12px; }
.parliament-supplement-card p { margin: 0; line-height: 1.35; white-space: pre-wrap; }
.parliament-supplement-card p + p { margin-top: .2em; }
.parliament-comment-body, [data-chamber-comment-body] { white-space: pre-wrap; overflow-wrap: anywhere; }
.parliament-supplement-thumbnail, .parliament-supplement-secondary-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; }
.parliament-supplement-form { margin-top: 10px; }
.parliament-supplement-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.parliament-supplement-preview .image-preview-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }

@keyframes evaluation-shine {
  0% { opacity: 0; transform: translateX(-65%) rotate(18deg); }
  18% { opacity: .95; }
  100% { opacity: 0; transform: translateX(65%) rotate(18deg); }
}

.auth-shell { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; place-items: center; padding: 24px; }
.auth-panel, .profile-editor { width: min(440px, 100%); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 24px; background: #111; }
.profile-editor { width: min(760px, 100%); }
.profile-editor-heading { margin-bottom: 18px; }
.profile-editor-heading p, .profile-editor-heading h1, .profile-editor-heading span { margin: 0; }
.profile-editor-heading p { color: #ff9f9f; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.profile-editor-heading h1 { margin-top: 3px; font-size: clamp(27px, 4vw, 36px); }
.profile-editor-heading span { display: block; margin-top: 7px; color: var(--muted); line-height: 1.55; }
.auth-logo { display: block; width: 180px; max-width: 100%; margin: 0 auto 14px; }
.stack-form { display: grid; gap: 9px; }
.profile-settings-card { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(255,255,255,.035); }
.profile-settings-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.profile-settings-card > header h2, .profile-settings-card > header p { margin: 0; }
.profile-settings-card > header h2 { font-size: 18px; }
.profile-settings-card > header small { color: #ffabab; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.profile-settings-card > header p { color: var(--muted); font-size: 11px; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-field { display: grid; min-width: 0; gap: 6px; }
.profile-field.is-wide, .profile-field-grid > .is-wide { grid-column: 1 / -1; }
.profile-field label { font-size: 13px; }
.profile-field small { color: var(--muted); line-height: 1.5; }
.profile-avatar-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.profile-avatar-field input[type="file"], .vtuber-material-editor input[type="file"] { width: 100%; min-width: 0; }
.profile-consent-field { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.profile-consent-field input { flex: 0 0 auto; width: auto; margin-top: .25em; padding: 0; }
.avatar-upload-preview { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.avatar-upload-preview img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #ff8a8a; }
.password-change-box { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); }
.password-change-box h2 { margin: 0; font-size: 18px; }
.password-change-box p { margin: 0; color: var(--muted); line-height: 1.5; }
.password-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.password-visibility-button { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; padding: 8px 10px; font-weight: 900; cursor: pointer; }
.profile-pin-editor { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); }
.profile-pin-editor h2 { margin: 0; font-size: 18px; }
.profile-pin-editor p { margin: 0; color: var(--muted); line-height: 1.5; }
.vtuber-material-editor { display: grid; gap: 9px; margin-top: 8px; padding: 14px; border: 1px solid rgba(255, 138, 138, .42); border-radius: 8px; background: linear-gradient(145deg, rgba(255, 138, 138, .09), rgba(255,255,255,.035)); }
.vtuber-material-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.vtuber-material-heading h2, .vtuber-material-heading p { margin: 0; }
.vtuber-material-heading h2 { font-size: 18px; }
.vtuber-material-heading > span { padding: 4px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #ffd0d0; font-size: 11px; font-weight: 900; }
.vtuber-material-editor > p, .vtuber-material-editor small { margin: 0; color: var(--muted); line-height: 1.5; }
.vtuber-material-editor .vtuber-retention-note { padding: 9px 10px; border-left: 3px solid #ff8a8a; background: rgba(255,138,138,.08); color: #ffd4d4; font-size: 12px; }
.vtuber-material-editor .vtuber-payout-note { padding: 9px 10px; border-left: 3px solid #8eb9ff; background: rgba(83,132,212,.09); color: #d9e7ff; font-size: 12px; }
.vtuber-review-state { display: flex; flex-wrap: wrap; gap: 7px; }
.vtuber-review-state span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d7d7df; background: rgba(255,255,255,.05); font-size: 11px; }
.vtuber-material-kicker { color: #ffb2b2 !important; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.vtuber-uploaded-file { overflow-wrap: anywhere; padding: 7px 9px; border-radius: 5px; background: rgba(255,255,255,.06); color: #fff !important; font-size: 12px; }
.vtuber-rights-confirmation { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.profile-save-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 3px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.04); }
.profile-save-row p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-save-row .primary-button { width: auto; min-width: 150px; }
.uzume-voice-mode { display: inline-flex; width: fit-content; margin-top: -4px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #c8cad7; font-size: 10px; font-weight: 800; }
.profile-pin-search { height: 36px; border: 0; border-radius: 999px; background: #bfbfbf; color: #1d1d1d; padding: 0 16px; }
.profile-pin-list { display: grid; gap: 8px; max-height: min(48vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.profile-pin-option { display: grid; grid-template-columns: auto 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: #161616; transition: border-color .16s ease, background-color .16s ease; }
.profile-pin-option.is-selected { border-color: var(--accent-color); background: rgba(255,255,255,.08); }
.profile-pin-option.is-hidden { display: none; }
.profile-pin-option input { width: auto; }
.profile-pin-option img { width: 74px; height: 46px; object-fit: cover; border-radius: 4px; background: #bdd4f1; }
.profile-pin-text { overflow-wrap: anywhere; line-height: 1.4; }
.profile-pin-order { min-width: 36px; color: var(--accent-color); font-size: 12px; text-align: right; }
.profile-pin-empty { color: var(--muted); }
.quiet-link { display: inline-block; margin-top: 14px; color: #bfc7ff; }
.error-box { border: 1px solid #e06666; background: #2a1111; padding: 10px; margin-bottom: 12px; }
.error-box p { margin: 4px 0; }

@media (max-width: 680px) {
  .auth-shell { place-items: start center; padding: 12px; }
  .profile-editor { padding: 16px; }
  .profile-field-grid { grid-template-columns: 1fr; }
  .profile-field.is-wide, .profile-field-grid > .is-wide { grid-column: 1; }
  .profile-settings-card > header { align-items: start; }
  .profile-settings-card > header > p { display: none; }
  .profile-avatar-field { grid-template-columns: 1fr; }
  .profile-save-row { align-items: stretch; flex-direction: column; }
  .profile-save-row .primary-button { width: 100%; }
}

/* Critical public information stays compact and points back to official sources. */
.mobile-emergency-slot { display: none; }
.emergency-strip { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; margin: 0 10px 8px; padding: 8px 10px; border: 1px solid rgba(255, 82, 82, .58); border-left: 4px solid #ff5252; background: #171111; color: #fff; }
.emergency-strip-signal { padding: 4px 6px; background: #c51d2b; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0; }
.emergency-strip-items { min-width: 0; display: grid; gap: 2px; }
.emergency-strip-item { display: flex; min-width: 0; gap: 8px; align-items: baseline; }
.emergency-strip-item strong { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.emergency-strip-item span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ddd; font-size: 12px; }
.emergency-strip-actions { display: flex; gap: 6px; align-items: center; }
.emergency-official-link, .emergency-presence-button { min-height: 30px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; padding: 6px 9px; background: #202020; color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.emergency-presence-button { background: #0014ba; }
.emergency-strip-note { grid-column: 2 / -1; margin: 0; color: #aaa; font-size: 10px; line-height: 1.35; }
.emergency-presence-badge { display: inline-flex; width: fit-content; margin-top: 3px; padding: 3px 6px; border: 1px solid rgba(108, 207, 255, .45); border-radius: 999px; color: #9cddff; font-size: 10px; font-weight: 800; }
.profile-safety-link, .content-report-link { color: #ff9f9f; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.follow-row form:has(.profile-safety-link) { display: inline-flex; }

.operations-panel { display: grid; gap: 12px; }
.operations-target { padding: 10px; background: rgba(255,255,255,.06); overflow-wrap: anywhere; }
.report-target-card { display: grid; gap: 9px; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.055); overflow: hidden; }
.report-target-card > header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.report-target-card > header span { color: #aaa; font-size: 11px; }
.report-target-card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-target-author { display: flex; gap: 8px; align-items: center; color: #ddd; font-size: 12px; }
.report-target-author .avatar-dot { flex: 0 0 auto; }
.report-target-image { width: min(100%, 280px); max-height: 180px; border-radius: 5px; object-fit: cover; }
.account-danger-zone { display: grid; gap: 9px; margin-top: 18px; padding: 14px; border: 1px solid rgba(238,92,92,.42); border-radius: 6px; background: rgba(80,8,8,.18); }
.account-danger-zone h2, .account-danger-zone p { margin: 0; }
.blocked-user-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.danger-button { border: 1px solid #d95a5a; border-radius: 4px; padding: 8px 11px; background: #8e1f28; color: #fff; font-weight: 900; cursor: pointer; }
.quiet-button { display: inline-flex; width: fit-content; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 7px 10px; background: #222; color: #fff; cursor: pointer; }

.admin-shell { min-height: 0; overflow-y: auto; padding: 18px clamp(14px, 3vw, 42px) 36px; background: #101010; }
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.admin-head h1, .admin-head p { margin: 0 0 5px; }
.admin-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-usage-summary { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-top: 16px; padding: 11px 13px; border: 1px solid rgba(108,207,255,.28); border-radius: 6px; background: rgba(0,20,186,.12); }
.admin-usage-summary strong { font-size: 18px; }
.admin-usage-summary small { color: #aaa; }
.admin-status-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.admin-status-tabs a { padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; color: #ddd; }
.admin-status-tabs a.is-active { background: #0014ba; color: #fff; }
.admin-report-list { display: grid; gap: 10px; }
.admin-report-card { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: #171717; }
.admin-report-card header { display: flex; justify-content: space-between; gap: 12px; }
.admin-report-card p { margin: 0; overflow-wrap: anywhere; }
.admin-review-form { display: grid; gap: 8px; }
.admin-review-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-review-actions button { border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 7px 9px; background: #252525; color: #fff; cursor: pointer; }
.audit-table-wrap { overflow: auto; border: 1px solid rgba(255,255,255,.12); }
.audit-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.audit-table th, .audit-table td { padding: 9px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.admin-pagination { display: flex; justify-content: center; gap: 8px; padding-top: 16px; }
.vtuber-review-card header > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.vtuber-review-card header span { color: #aaa; font-size: 12px; }
.vtuber-review-badge { width: fit-content; padding: 4px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff !important; }
.vtuber-review-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.vtuber-review-facts div { padding: 8px; background: rgba(255,255,255,.05); }
.vtuber-review-facts dt { color: #999; font-size: 10px; }
.vtuber-review-facts dd { margin: 3px 0 0; font-weight: 800; }
.vtuber-review-files { display: flex; flex-wrap: wrap; gap: 7px; }
.vtuber-review-warning { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid rgba(233,141,74,.5); border-radius: 4px; color: #ffc18e; font-size: 11px; font-weight: 800; }
.vtuber-review-note { padding: 9px 11px; border-left: 3px solid #e98d4a; background: rgba(233,141,74,.1); }
.vtuber-withdraw-zone { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid rgba(238,92,92,.32); border-radius: 6px; background: rgba(80,8,8,.1); }
.vtuber-withdraw-zone h2, .vtuber-withdraw-zone p { margin: 0; }
.vtuber-withdraw-zone p { margin-top: 5px; color: #bbb; font-size: 12px; }
.vtuber-withdraw-zone form { flex: none; }

@media (max-width: 720px) {
  .vtuber-review-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtuber-withdraw-zone { align-items: stretch; flex-direction: column; }
}

@media (max-width: 1100px) {
  body { overflow: auto; }
  .app-window { width: 100%; min-height: 100vh; height: auto; margin: 0; border-radius: 0; box-shadow: none; }
  .topbar { margin: 0; flex-wrap: wrap; min-height: auto; padding: 14px 18px 12px; }
  .brand { font-size: 34px; min-width: auto; }
  .brand img { width: 126px; height: 39px; }
  .topnav { flex-wrap: wrap; gap: 12px; font-size: 14px; }
  .auth-link { font-size: 14px; padding: 10px 12px; }
  .suni-shell { display: block; min-height: 0; margin: 12px 14px 28px; overflow: visible; }
  .mobile-control-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .mobile-tool-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: #111; color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
  .mobile-account-button .avatar-dot { width: 26px; height: 26px; }
  .timeline-column { display: flex; min-height: calc(100vh - 170px); overflow: visible; padding: 0; }
  .timeline-fixed-controls { position: sticky; top: 0; padding: 8px 0 14px; }
  .timeline-scroll { overflow: visible; padding-right: 0; }
  .left-column { position: fixed; left: 0; top: 0; bottom: 0; z-index: 42; width: min(82vw, 320px); height: 100vh; overflow: hidden; padding: 22px 18px; background: #171717; box-shadow: 18px 0 50px rgba(0,0,0,.38); transform: translateX(-105%); transition: transform .22s ease; }
  body.left-menu-open .left-column { transform: translateX(0); }
  .left-scroll-area { padding-top: 38px; }
  .left-results-scroll { height: auto; flex: 1 1 auto; }
  .mobile-drawer-backdrop { position: fixed; inset: 0; z-index: 41; background: rgba(0,0,0,.48); }
  body.left-menu-open .mobile-drawer-backdrop { display: block; }
  .mobile-panel-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
  .right-column { display: none; min-height: calc(100vh - 170px); overflow: visible; padding: 0; }
  .chat-shell { grid-template-columns: 1fr; overflow: visible; padding: 12px 14px 28px; }
  .chat-list-panel, .chat-room-panel { min-height: auto; }
  .chat-message-form { grid-template-columns: 1fr; }
  .parliament-shell { display: block; min-height: 0; overflow: visible; padding: 0 14px 28px; }
  .parliament-left { padding: 12px 0 16px; border-right: 0; }
  .parliament-main { overflow: visible; padding-bottom: 20px; }
  .parliament-right { overflow: visible; padding: 0; border-left: 0; }
  .parliament-logo { width: min(340px, 88vw); height: auto; max-height: 76px; }
  .parliament-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parliament-support-button { margin-top: 12px; margin-bottom: 10px; }
  .parliament-new-topic { margin-top: 0; }
  .parliament-board-head { display: grid; align-items: start; }
  .parliament-filter-row span { margin-left: 0; }
  .parliament-issue-card { grid-template-columns: 1fr; }
  .parliament-tool-grid { grid-template-columns: 1fr; }
  .parliament-vote-panel, .parliament-countdown { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .parliament-new-issue-panel header { display: grid; align-items: start; }
  .parliament-new-issue-grid { grid-template-columns: 1fr; }
  .parliament-vote-summary { justify-content: start; }
  .parliament-chamber { min-height: 560px; }
  .chamber-stand { top: 24px; width: 24%; min-height: 104px; }
  .chamber-stand-agree { left: 1%; }
  .chamber-stand-oppose { right: 1%; }
  .chamber-stand strong { font-size: 18px; }
  .chamber-stand span { font-size: 23px; }
  .chamber-topic-card { top: 24px; left: 27%; width: 46%; height: 114px; padding: 12px; transform: none; }
  .chamber-topic-card span { font-size: 16px; }
  .chamber-topic-card h2 { font-size: 19px; }
  .chamber-vote-arc { top: 272px; left: 18%; right: 18%; height: 110px; }
  .chamber-opinion-field { left: 3%; right: 3%; height: 285px; border-width: 10px; }
  .parliament-stats-grid { grid-template-columns: 1fr; }
  .parliament-action-panel { grid-template-columns: 1fr; }
  .parliament-comment-board > header { display: grid; align-items: start; }
  .suni-shell.mobile-panel-right .timeline-column { display: none; }
  .suni-shell.mobile-panel-right .right-column { display: flex; }
  .mobile-back-to-timeline { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 14px; padding: 10px 12px; border-radius: 999px; background: #111; color: #fff; border: 1px solid rgba(255,255,255,.14); }
  .account-panel { overflow: visible; }
  .account-post-scroll { overflow: visible; }
  .timeline-action-row { flex-wrap: wrap; gap: 8px; }
  .timeline-action-row .timeline-compose-button { flex: 0 0 min(220px, 64%); order: 1; margin-inline: auto; }
  .ended-job-toggle { position: static; transform: none; max-width: none; }
  .timeline-action-row .ended-job-toggle { flex: 0 0 100%; order: 2; margin-inline: auto; }
  .composer-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 12px; }
  .composer-grid, .detail-forms { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-emergency-slot { display: block; flex: 0 0 auto; }
  .timeline-column > .emergency-strip, .parliament-main > .emergency-strip { display: none; }
  .mobile-emergency-slot .emergency-strip { margin: 0; }
}

@media (max-width: 640px) {
  .legal-shell, .of-article-shell, .parliament-guide-shell, .service-guide-shell, .materials-guide-shell, .historical-vault-shell { padding: 8px 10px 24px; }
  .legal-document, .of-article, .parliament-guide, .service-guide, .materials-guide, .historical-vault { padding: 16px 14px 22px; border-left-width: 4px; }
  .materials-guide-actions { justify-content: flex-start; margin: 12px 0 0; }
  .legal-head, .of-article-head { margin: 10px 0 19px; }
  .legal-lead { margin-top: 15px; font-size: 14px; }
  .legal-toc { margin-inline: -6px; padding-inline: 6px; }
  .legal-section { padding: 20px 0; }
  .legal-definition-list > div { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
  .legal-footer { padding: 15px; }
  .of-editor-note { grid-template-columns: 1fr; gap: 5px; padding: 13px; }
  .of-prose { padding: 28px 0; }
  .of-prose p { font-size: 15px; line-height: 1.95; }
  .of-prose p + p { margin-top: 16px; }
  .of-article-figure { margin-top: 28px; }
  .parliament-guide-logo { margin-bottom: 16px; }
  .guide-prose { padding: 28px 0; }
  .guide-prose p, .guide-prose li { font-size: 14px; line-height: 1.9; }
  .guide-prose blockquote { margin: 22px 0; padding: 16px; }
  .guide-steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 7px 10px; }
  .guide-steps li span { grid-column: 2; }
  .guide-anatomy { grid-template-columns: 1fr; }
  .guide-tier-table > div { grid-template-columns: 82px minmax(0, 1fr); padding-inline: 4px; }
  .service-guide-brand { width: 191px; height: 59px; margin-bottom: 14px; padding: 0; border-radius: 6px; }
  .service-guide-brand img { width: auto; height: 58.75px; max-height: none; }
  .service-map { grid-template-columns: 1fr 1fr; grid-template-rows: auto; padding: 12px; }
  .service-map::before, .service-map::after { display: none; }
  .service-map-core { grid-column: 1 / -1; grid-row: 1; }
  .service-map-node-post, .service-map-node-work, .service-map-node-people, .service-map-node-parliament { grid-column: auto; grid-row: auto; }
  .service-map figcaption { grid-column: 1 / -1; grid-row: auto; }
  .evaluation-diagram { grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .evaluation-plane { grid-template-rows: repeat(2, minmax(120px, 1fr)); }
  .service-evaluation-quadrant { padding: 10px 6px; }
  .service-evaluation-quadrant strong { font-size: 12px; }
  .service-evaluation-quadrant span { font-size: 10px; }
  .service-evaluation-axis-y { padding-right: 7px; }
  .evaluation-legend { grid-column: 1 / -1; }
  .of-cycle-track { grid-template-columns: 1fr; }
  .of-cycle-track i { transform: rotate(90deg); text-align: center; }
  .service-category-list li { grid-template-columns: 70px minmax(0, 1fr); gap: 9px; padding-inline: 3px; }
  .theory-comparison > div { grid-template-columns: 1fr; gap: 5px; padding-inline: 3px; }
  .materials-record-map { grid-template-columns: 1fr; }
  .materials-status-table > div { grid-template-columns: 1fr; gap: 5px; padding-inline: 3px; }
  .materials-flow { grid-template-columns: 1fr; }
  .materials-flow i { transform: rotate(90deg); text-align: center; }
  .historical-vault-head { display: grid; align-items: start; }
  .historical-vault-card { grid-template-columns: 112px minmax(0, 1fr); }
  .historical-vault-image { min-height: 170px; }
  .historical-vault-card-body { padding: 10px; }
  .comment-list, .parliament-comment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-composer { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .comment-composer textarea { min-width: 0; }
  .emergency-strip { grid-template-columns: auto minmax(0, 1fr); gap: 5px 8px; padding: 7px 9px; }
  .emergency-strip-items { max-height: 38px; overflow: hidden; }
  .emergency-strip-item span { display: block; }
  .emergency-strip-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .emergency-strip-note { grid-column: 1 / -1; }
  .emergency-official-link, .emergency-presence-button { min-height: 28px; padding: 5px 8px; }
  .support-dialog { grid-template-columns: minmax(0, 1fr) 118px; min-height: 240px; }
  .support-dialog-content { gap: 9px; padding: 18px 12px 18px 18px; }
  .support-dialog h2 { font-size: 17px; }
  .support-dialog p { font-size: 12px; }
  .support-dialog-image { height: 220px; }

  .parliament-chamber {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    grid-template-rows: auto 104px auto 36px;
    gap: 8px 4px;
    min-height: 0;
    padding: 8px;
  }

  .chamber-topic-card,
  .chamber-stand,
  .chamber-vote-arc,
  .chamber-own-focus-toggle,
  .chamber-opinion-field,
  .chamber-comment-bar {
    inset: auto;
    transform: none;
  }

  .chamber-topic-card {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 92px;
    padding: 12px 40px 12px 12px;
    text-align: left;
  }

  .chamber-topic-card span {
    font-size: 12px;
    letter-spacing: 0;
    text-indent: 0;
  }

  .chamber-topic-card h2 {
    font-size: 16px;
    line-height: 1.35;
  }

  .chamber-stand {
    position: relative;
    grid-row: 2;
    width: 100%;
    min-height: 0;
    padding: 8px 3px;
    align-self: stretch;
  }

  .chamber-stand-agree { grid-column: 1; }
  .chamber-stand-oppose { grid-column: 3; }
  .chamber-stand strong { font-size: 13px; }
  .chamber-stand span { font-size: 20px; }

  .chamber-vote-arc {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 100%;
    align-self: stretch;
  }

  .chamber-vote-arc::after { width: 48%; }
  .arc-label { top: 22px; bottom: auto; font-size: 9px; }
  .arc-label-agree { left: 6%; }
  .arc-label-oppose { right: 6%; }

  .chamber-own-focus-toggle {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: center;
    margin-bottom: 5px;
  }

  .chamber-opinion-field {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    height: auto;
    min-height: 170px;
    aspect-ratio: 16 / 9;
    border-width: 6px;
    border-radius: 12px;
  }

  .opinion-edge { top: 8px; font-size: 11px; }
  .opinion-edge-agree { left: 10px; }
  .opinion-edge-oppose { right: 10px; }

  .chamber-comment-bar {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    height: 36px;
  }

  .comment-bar-label { font-size: 10px; }
  .comment-bar-label-agree { left: 8px; }
  .comment-bar-label-oppose { right: 8px; }
}

@media (max-width: 440px) {
  .comment-list, .parliament-comment-grid { grid-template-columns: 1fr; }
  .comment-composer { grid-template-columns: 30px minmax(0, 1fr); }
  .comment-composer .primary-button { grid-column: 2; justify-self: end; }
}

/* 寸以の小屋 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.classroom-shell { flex: 1 1 auto; width: 100%; min-height: 0; padding: 16px clamp(14px, 2.6vw, 40px) 18px; color: #302c24; background: radial-gradient(circle at 14% 12%, #fff9df 0, transparent 26%), linear-gradient(135deg, #f4edd6, #e8ddbd); display: flex; flex-direction: column; overflow: hidden; }
.classroom-heading { flex: 0 0 auto; width: 100%; max-width: 1440px; margin: 0 auto 12px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.classroom-heading h1 { margin: 0 0 2px; font-size: clamp(25px, 3vw, 40px); font-family: serif; font-weight: 500; letter-spacing: .08em; }
.classroom-heading p { margin: 0; }
.classroom-test-notice { flex: 0 0 auto; display: grid; gap: 3px; width: 100%; max-width: 1440px; margin: 0 auto 10px; padding: 10px 14px; border: 1px solid rgba(151,111,26,.35); border-radius: 12px; color: #5d4b20; background: rgba(255,244,193,.9); font-size: 12px; line-height: 1.55; }
.classroom-grid { flex: 1 1 auto; width: 100%; max-width: 1440px; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(390px, 1.5fr) minmax(220px, .7fr); gap: 14px; overflow: hidden; }
.uzume-panel, .classroom-chat, .classroom-sources { height: 100%; min-height: 0; border: 1px solid rgba(92,72,31,.2); border-radius: 22px; background: rgba(255,253,244,.82); box-shadow: 0 18px 45px rgba(68,51,19,.1); backdrop-filter: blur(12px); overflow: hidden; }
.uzume-panel { display: flex; flex-direction: column; padding: 14px; }
.guide-selector { display: flex; flex: 0 0 auto; gap: 6px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
.guide-selector a { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(86,91,72,.2); border-radius: 999px; color: #666b5a; background: rgba(255,255,255,.58); font-size: 10px; font-weight: 900; text-decoration: none; }
.guide-selector a.is-active { border-color: #68795e; color: #fff; background: #68795e; }
.uzume-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 16px; background: linear-gradient(#d7eadf, #f8efd2 72%); }
.uzume-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.uzume-model-placeholder { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 24px; color: #486257; font-weight: 700; text-align: center; }
.uzume-stage-glow { position: absolute; left: 15%; right: 15%; bottom: -8%; height: 30%; border-radius: 50%; background: rgba(255,255,255,.72); filter: blur(16px); }
.guide-promotion-button { position: absolute; z-index: 5; top: 11px; left: 50%; max-width: calc(100% - 24px); transform: translateX(-50%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 13px; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; color: #fff; background: rgba(43,48,38,.78); box-shadow: 0 5px 18px rgba(32,35,27,.24); font-size: 11px; font-weight: 900; text-decoration: none; backdrop-filter: blur(7px); }
.guide-promotion-button:not(.is-disabled):hover { background: rgba(70,79,59,.92); }
.guide-promotion-button.is-disabled { opacity: .58; cursor: default; }
.uzume-model-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: #5f6c53; }
.uzume-model-fallback span { display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid #778b70; border-radius: 50%; font: 58px serif; background: rgba(255,255,255,.5); }
.uzume-name { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px 8px; }
.uzume-name strong { font: 21px serif; letter-spacing: .08em; }
.uzume-name span { color: #69715e; font-size: 12px; }
.uzume-name span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #79a86c; }
.is-uzume-speaking .uzume-name span::before { animation: classroom-pulse .65s infinite alternate; }
.uzume-boundary { margin: 0; padding: 10px; border-radius: 10px; color: #6c6658; background: #f2eddd; font-size: 11px; line-height: 1.6; }
.guide-rating-card { position: relative; flex: 0 0 112px; min-height: 112px; overflow: hidden; border-radius: 12px; background: rgba(238,246,235,.35); box-shadow: inset 0 0 28px rgba(255,255,255,.38); }
.guide-evaluation-plane { inset: 0; border: 2px solid rgba(255,255,255,.72); border-radius: 12px; opacity: 1; pointer-events: auto; background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(151,225,213,.52) 42%, rgba(255,255,255,.2)); backdrop-filter: blur(5px) saturate(1.2); }
.guide-evaluation-plane .axis.horizontal { left: 6%; right: 6%; }
.guide-evaluation-plane .axis.vertical { top: 7%; bottom: 7%; }
.guide-evaluation-plane .axis span { font-size: 10px; }
.guide-evaluation-plane small { left: 8px; bottom: 6px; font-size: 9px; }
.guide-evaluation-plane .plot { width: 11px; height: 11px; }
.guide-rating-title, .guide-rating-usage { position: absolute; z-index: 7; top: 7px; color: #445946; font-size: 9px; font-weight: 900; pointer-events: none; }
.guide-rating-title { left: 9px; letter-spacing: .08em; }
.guide-rating-usage { right: 9px; }
.guide-rating-action { position: absolute; z-index: 7; right: 9px; bottom: 6px; color: #425d49; font-size: 9px; font-weight: 900; text-decoration: none; }
.guide-rating-action.is-disabled { color: #6f7e72; }
.classroom-chat { display: flex; flex-direction: column; }
.classroom-chat-head, .classroom-sources-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 15px; border-bottom: 1px solid rgba(92,72,31,.12); }
.classroom-chat-head small, .classroom-sources-head small { color: #8b784b; letter-spacing: .14em; }
.classroom-chat-head h2, .classroom-sources-head h2 { margin: 2px 0 0; font: 20px serif; }
.classroom-chat-tools { display: flex; align-items: center; gap: 7px; }
.classroom-mode { padding: 6px 10px; border-radius: 99px; color: #56634f; background: #e5eddb; font-size: 11px; }
.classroom-policy { position: relative; z-index: 20; }
.classroom-policy summary { padding: 6px 9px; border: 1px solid #c8bda0; border-radius: 99px; color: #6b614b; font-size: 11px; cursor: pointer; list-style: none; }
.classroom-policy summary::-webkit-details-marker { display: none; }
.classroom-policy p { position: absolute; top: calc(100% + 7px); right: 0; width: min(330px, 76vw); margin: 0; padding: 12px; border: 1px solid #c8bda0; border-radius: 11px; color: #514a3d; background: #fffdf5; box-shadow: 0 14px 35px rgba(62,48,20,.2); font-size: 11px; line-height: 1.65; }
.classroom-reset { padding: 6px 9px; border: 1px solid #c8bda0; border-radius: 99px; color: #6b614b; background: transparent; font-size: 11px; cursor: pointer; }
.classroom-reset:hover { background: #f3ecd8; }
.classroom-messages { flex: 1; overflow-y: auto; padding: 24px; }
.classroom-message { max-width: 88%; margin-bottom: 18px; }
.classroom-message p { margin: 4px 0 0; padding: 13px 15px; border-radius: 4px 16px 16px 16px; background: #f0ebdc; line-height: 1.75; white-space: pre-wrap; }
.classroom-message.is-visitor { margin-left: auto; }
.classroom-message.is-visitor p { border-radius: 16px 4px 16px 16px; background: #dce9d6; }
.classroom-message-speaker { color: #7b715b; font-size: 11px; }
.classroom-citation { display: inline-flex; align-items: center; margin: 0 2px; padding: 2px 6px; border: 1px solid rgba(141,124,69,.45); border-radius: 999px; color: #675a31; background: rgba(255,251,227,.92); font: inherit; font-size: .78em; font-weight: 900; vertical-align: .08em; cursor: pointer; }
.classroom-citation:hover, .classroom-citation:focus-visible { border-color: #7d925f; color: #40543b; background: #eef4dd; outline: none; }
.classroom-prompts { display: flex; gap: 7px; padding: 0 20px 10px; overflow-x: auto; }
.classroom-prompts button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #c9bea2; border-radius: 99px; color: #645a43; background: transparent; cursor: pointer; }
.classroom-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid rgba(92,72,31,.12); }
.classroom-form textarea { resize: none; min-height: 58px; padding: 12px 14px; border: 1px solid #c9bea2; border-radius: 14px; color: #201d18; background: #fffef9; font: inherit; -webkit-text-fill-color: #201d18; caret-color: #201d18; }
.classroom-form textarea::placeholder { color: #746d5e; opacity: 1; -webkit-text-fill-color: #746d5e; }
.classroom-send { align-self: stretch; padding: 0 18px; border: 0; border-radius: 14px; color: white; background: #647b57; cursor: pointer; }
.classroom-send:disabled { opacity: .5; }
.classroom-sources { padding-bottom: 16px; overflow-y: auto; overscroll-behavior: contain; }
.classroom-messages { overscroll-behavior: contain; }
.classroom-sources-head { display: block; }
.classroom-sources-empty { padding: 26px 20px; color: #817967; font-size: 13px; line-height: 1.7; }
.classroom-source-card { display: grid; gap: 4px; margin: 12px 14px; border-left: 3px solid #b4a35e; border-radius: 4px 12px 12px 4px; color: inherit; background: #f5f0e1; overflow: hidden; }
.classroom-source-card.is-citation-target { border-left-color: #6f8d5e; background: #edf3dd; box-shadow: 0 0 0 2px rgba(111,141,94,.28), 0 9px 24px rgba(75,89,57,.2); animation: classroom-source-focus .55s ease-out; }
.classroom-source-card-main { display: grid; gap: 4px; width: 100%; padding: 13px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.classroom-source-card-main:hover, .classroom-source-card-main[aria-expanded="true"] { background: #eee5ca; }
.classroom-source-card span { color: #8d7c45; font-size: 10px; letter-spacing: .1em; }
.classroom-source-card small { color: #746c5b; }
.classroom-source-actions { display: grid; gap: 6px; padding: 0 10px 10px; }
.classroom-source-actions[hidden] { display: none; }
.classroom-source-actions a, .classroom-source-actions button { display: block; width: 100%; padding: 8px 9px; border: 1px solid #bcae89; border-radius: 8px; color: #514a3b; background: #fffdf5; font: inherit; font-size: 11px; text-align: center; text-decoration: none; cursor: pointer; }
.classroom-source-actions button:disabled { opacity: .45; cursor: default; }
.classroom-image-window { position: fixed; z-index: 80; top: clamp(70px, 10vh, 110px); right: clamp(14px, 2.6vw, 40px); width: min(360px, 30vw); aspect-ratio: 4 / 3; border: 1px solid rgba(255,255,255,.85); border-radius: 20px; background: #efe8d4; box-shadow: 0 22px 60px rgba(37,29,14,.35); overflow: hidden; }
.classroom-image-window[hidden] { display: none; }
.classroom-image-window img { display: block; width: 100%; height: 100%; object-fit: cover; }
.classroom-image-close { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: white; background: rgba(35,31,24,.72); font-size: 23px; line-height: 1; cursor: pointer; backdrop-filter: blur(5px); }
@keyframes classroom-pulse { to { transform: scale(1.6); background: #b3d875; } }
@keyframes classroom-source-focus { from { transform: translateY(3px); opacity: .72; } }
@media (max-width: 980px) {
  .classroom-grid { grid-template-columns: minmax(210px, .7fr) 1.3fr; grid-template-rows: minmax(0, 1fr) 150px; }
  .classroom-sources { grid-column: 1 / -1; height: 150px; }
  .classroom-sources [data-classroom-sources] { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px; }
  .classroom-source-card { flex: 0 0 min(280px, 76vw); }
}
@media (max-width: 680px) {
  body.classroom-page { overflow: hidden; }
  body.classroom-page .app-window { height: 100dvh; min-height: 0; overflow: hidden; }
  body.classroom-page .topbar { min-height: 42px; padding: 3px 8px 5px; flex-wrap: nowrap; }
  body.classroom-page .brand img { width: 92px; height: 31px; }
  body.classroom-page .topnav { display: none; }
  .classroom-shell { padding: 8px; }
  .classroom-heading { margin-bottom: 7px; align-items: start; gap: 8px; }
  .classroom-heading .back-link { font-size: 11px; }
  .classroom-heading .section-kicker, .classroom-heading > div > p:last-child { display: none; }
  .classroom-heading h1 { font-size: 24px; }
  .classroom-grid { grid-template-columns: 1fr; grid-template-rows: minmax(210px, .7fr) minmax(260px, 1.3fr) 110px; gap: 8px; }
  .uzume-panel, .classroom-chat, .classroom-sources { height: 100%; border-radius: 14px; }
  .uzume-panel { display: grid; grid-template-columns: minmax(0, 1fr) 128px; grid-template-rows: auto minmax(0, 1fr) 72px; gap: 4px 7px; padding: 8px; }
  .uzume-boundary { display: none; }
  .uzume-voice-mode { display: none; }
  .guide-selector { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
  .uzume-stage { grid-column: 1; grid-row: 2 / 4; }
  .guide-rating-card { grid-column: 2; grid-row: 3; width: 100%; min-height: 72px; }
  .uzume-name { grid-column: 2; grid-row: 2; align-content: center; align-items: flex-start; flex-direction: column; justify-content: center; padding: 2px; }
  .uzume-name strong { font-size: 17px; }
  .uzume-name span { font-size: 10px; }
  .classroom-form { grid-template-columns: 1fr auto; padding: 8px; }
  .classroom-form textarea { min-height: 44px; }
  .classroom-send { min-height: 44px; padding: 0 12px; }
  .classroom-chat-head { padding: 10px 12px 8px; }
  .classroom-mode { display: none; }
  .classroom-messages { padding: 12px; }
  .classroom-prompts { padding: 0 10px 7px; }
  .classroom-sources { grid-column: 1; height: 110px; }
  .classroom-sources-head { padding: 8px 12px; }
  .classroom-sources-head small { display: none; }
  .classroom-image-window { top: 62px; right: 10px; width: min(260px, 72vw); border-radius: 15px; }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body.classroom-page { overflow: hidden; }
  body.classroom-page .app-window { height: 100dvh; min-height: 0; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .is-uzume-speaking .uzume-name span::before, .classroom-source-card.is-citation-target, .evaluation-plane.is-visible::after { animation: none !important; }
  .evaluation-plane { transition: none; }
}
