:root {
  --exchange: #BA14BA;
  --job: #14BA14;
  --historical: #BABA14;
  --hospitality: #14BABA;
  --transport: #BA0014;
  --hermitage: #0014BA;
  --ink: #f4f1ee;
  --muted: #b6b1ad;
  --panel: #141414;
  --window: #191919;
  --surface: #101010;
  --line: rgba(255, 255, 255, .13);
  --soft-line: rgba(255, 255, 255, .18);
  --accent-color: var(--exchange);
  --header-orange: #d4641e;
  --header-orange-deep: #7f330f;
  --focus-ring: rgba(255, 255, 255, .86);
  --quiet-fill: rgba(255, 255, 255, .055);
  --quiet-fill-hover: rgba(255, 255, 255, .105);
  --side-cta-width: min(176px, calc(100% - 28px));
  --side-cta-height: 38px;
}

.launch-hold-page {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(20, 171, 171, .22), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(177, 171, 74, .18), transparent 32%),
    #101010;
}

.launch-hold-card {
  width: min(680px, 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  color: #f7f7f7;
  background: rgba(18, 18, 18, .92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

.launch-hold-logo { width: 82px; height: 82px; object-fit: contain; border-radius: 18px; }
.launch-hold-kicker { margin: 16px 0 4px; color: #14ABAB; font-weight: 900; letter-spacing: .18em; }
.launch-hold-card h1 { margin: 0 0 18px; font-size: clamp(30px, 6vw, 54px); line-height: 1.05; }
.launch-hold-card p { margin: 0 auto 14px; max-width: 520px; color: #e8e8e8; line-height: 1.8; font-weight: 800; }
.launch-hold-note { color: #f5d77c; }
.launch-hold-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { height: 100%; min-height: 100%; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.035), transparent 30%), #0f0f0f; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 650; line-height: 1.45; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { min-width: 0; font: inherit; }
button, summary, a { touch-action: manipulation; }
img, svg, video, canvas { max-width: 100%; }
input, textarea, select { width: 100%; border: 1px solid #444; border-radius: 6px; color: var(--ink); background: #242424; padding: 9px 10px; 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;
}

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

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

.has-transient-scrollbar.is-scrolling::-webkit-scrollbar-thumb:hover,
.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; }
.classum-header-entry { display: inline-flex; align-items: center; align-self: center; min-height: 34px; margin-left: -8px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; background: rgba(0,28,106,.74); color: #fff; font-size: clamp(13px, 1vw, 17px); font-weight: 900; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 9px rgba(0,0,0,.24); transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.classum-header-entry:hover, .classum-header-entry:focus-visible { background: #173b9d; color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.32); transform: translateY(-1px); }
.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 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 14px 46px 0; padding: 10px 14px; color: #fff; background: rgba(255,255,255,.07); }
.flash-close { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.18); color: #fff; cursor: pointer; font: inherit; line-height: 1; }
.suni-confirm { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.suni-confirm-panel { width: min(420px, calc(100vw - 36px)); display: grid; gap: 18px; padding: 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: #151515; color: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.suni-confirm-message { margin: 0; line-height: 1.7; font-size: 15px; font-weight: 900; overflow-wrap: anywhere; white-space: pre-line; }
.suni-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.suni-confirm-button { min-width: 82px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 14px; color: #fff; background: rgba(255,255,255,.08); font: inherit; font-weight: 900; cursor: pointer; }
.suni-confirm-button.is-yes { border-color: rgba(190,39,202,.78); background: var(--accent-color); }
.suni-confirm-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.has-modal { overflow: hidden; }
.text-direct-link, .mention-link { color: #7ddcff; text-decoration: underline; text-underline-offset: 3px; }
.text-direct-link { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.post-body, .open-post-body, .comment-body, .comment-card p, .parliament-comment-body, .kawaraban-card-detail-body, .kawaraban-comment-card p, .kawaraban-area-message p, .legal-prose, .guide-prose { overflow-wrap: anywhere; word-break: break-word; }
.mention-chip { position: relative; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 4px; background: rgba(125,220,255,.12); }
.mention-preview-popover { position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 30; display: none; transform: translateX(-50%); min-width: max-content; padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(16,16,16,.96); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.32); pointer-events: none; }
.mention-chip:hover .mention-preview-popover, .mention-chip:focus-within .mention-preview-popover { display: block; }
.mobile-control-bar, .mobile-drawer-backdrop, .mobile-panel-close, .mobile-back-to-timeline, .parliament-mobile-tools, .kawaraban-mobile-tools, .classroom-mobile-tools { 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; }
.left-column:has(.manga-nft-badge[open]), .left-scroll-area:has(.manga-nft-badge[open]), .account-switch:has(.manga-nft-badge[open]), .account-switch > div:has(.manga-nft-badge[open]) { overflow: visible; }
.left-column:has(.manga-nft-badge[open]) { z-index: 70; }
.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; }
.guest-left-panel { min-height: auto; align-content: start; margin-bottom: 14px; padding: 18px 18px 12px; }
.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; display: flex; flex-direction: column; padding-right: 0; }
.account-mini { display: grid; gap: 8px; margin-bottom: 20px; color: #f6f6f6; }
.left-account { font-size: clamp(18px, 1.6vw, 26px); }
.left-account { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.account-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.account-avatar-link { display: inline-flex; align-items: center; justify-content: center; width: fit-content; }
.account-switch > div { min-width: 0; display: grid; align-content: center; gap: 1px; }
.account-switch small { display: block; margin-top: 0; font-size: 13px; line-height: 1.1; color: var(--muted); }
.left-account .avatar-dot { width: 48px; height: 48px; }
.wallet-connect-button { justify-self: end; align-self: center; max-width: 86px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font-size: 11px; font-weight: 900; line-height: 1.2; text-align: center; }
.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-icon { display: inline-grid; place-items: center; width: 1.25em; min-width: 1.25em; color: var(--accent-color); font-size: .9em; line-height: 1; text-align: center; filter: drop-shadow(0 0 5px rgba(255,255,255,.18)); }
.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 { flex: 0 0 min(640px, calc(100dvh - 120px)); min-height: min(520px, calc(100dvh - 120px)); 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: 1 1 auto; height: auto; min-height: 0; 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 strong:has(.manga-nft-badge[open]), .account-name-with-emblems:has(.manga-nft-badge[open]) { overflow: visible; }
.mini-pickup-detail { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.35; }
.mini-pickup-detail-list { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-pickup-detail-list span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 2px 5px; background: rgba(255,255,255,.05); color: #d8d8d8; }
.mini-pickup-historical-meta { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; min-width: 0; margin-top: -4px; color: #f2f2f2; font-size: 12px; font-weight: 900; line-height: 1.25; }
.mini-pickup-historical-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pickup-historical-meta time { color: var(--muted); white-space: nowrap; }
.mini-pickup-body { grid-column: 1 / -1; min-width: 0; margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8d8d8; font-size: 12px; line-height: 1.3; }
.left-pickups:has(.mini-pickup-historical-meta) { gap: 7px; }
.left-pickups:has(.mini-pickup-historical-meta) .mini-pickup { gap: 5px 8px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.08); }
.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); -webkit-backdrop-filter: blur(3px); 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; white-space: nowrap; }
.guest-slogan-button { width: min(360px, 92%); }
.hermitage-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(520px, 96%); 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: 8px; padding-bottom: 24px; }
.hermitage-account-card { position: relative; display: grid; grid-template-areas: "head head" "bio meta" "context context"; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; padding: 10px 0 12px; border-bottom: 1px solid rgba(255,255,255,.14); color: #f6f6f6; }
.hermitage-account-card:has(.manga-nft-badge[open]) { z-index: 30; }
.hermitage-account-head { grid-area: head; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hermitage-account-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.hermitage-account-main .avatar-dot { width: 44px; height: 44px; }
.hermitage-account-identity { display: grid; gap: 2px; min-width: 0; }
.hermitage-account-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: clamp(18px, 1.6vw, 24px); }
.hermitage-account-name .account-name-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hermitage-account-main strong { font-size: clamp(18px, 1.6vw, 24px); overflow-wrap: anywhere; }
.hermitage-account-id { width: fit-content; max-width: 100%; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hermitage-account-meta { grid-area: meta; align-self: start; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.hermitage-account-meta strong { color: #fff; }
.hermitage-account-card > p { grid-area: bio; display: -webkit-box; min-width: 0; margin: 0; overflow: hidden; color: #e8e4e4; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hermitage-reason { grid-area: context; 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; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.hermitage-account-actions form { margin: 0; }
.guide-favorite-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid var(--hermitage); border-radius: 5px; padding: 6px 10px; color: #fff; background: rgba(112,84,205,.28); font: inherit; font-size: 12px; font-weight: 900; line-height: 1.3; text-align: center; cursor: pointer; }
.guide-favorite-button.is-favorite { color: #1b1528; background: #c7b8ff; cursor: default; }
.hermitage-guide-meta { grid-area: context; display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; color: #e7e1ff; font-size: 12px; }
.hermitage-guide-meta span { padding: 3px 7px; border: 1px solid var(--hermitage); border-radius: 999px; color: #e5ddff; }
.hermitage-guide-meta small { color: var(--muted); }
.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(5, 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; }
.citation-fieldset { display: grid; gap: 10px; margin: 0; padding: 0; color: #f4f4f4; }
.citation-fieldset legend { color: #f4f4f4; font-weight: 900; }
.citation-tab-button { display: grid; place-items: center; text-align: center; }
.citation-tab-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.citation-detail-fields, .image-rights-fields { display: grid; gap: 10px; }
.citation-detail-fields[hidden], .image-rights-fields[hidden] { display: none; }
.citation-purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.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; }
.historical-event-line { grid-template-columns: auto auto minmax(0, 1fr); }
.historical-source-toggle { display: inline-flex; align-items: center; gap: 3px; color: #f2f2f2; font-size: 13px; font-weight: 900; white-space: nowrap; }
.historical-source-toggle input { width: 16px; height: 16px; padding: 0; margin: 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; }
.historical-date-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) minmax(0, .75fr); gap: 8px; }
.historical-date-row label { display: grid; gap: 4px; min-width: 0; }
.historical-date-row span { color: #f2f2f2; font-size: 12px; font-weight: 800; }
.historical-date-row input { width: 100%; min-width: 0; }
.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; }
.field-grid > .confirm-category-button { justify-self: stretch; align-self: stretch; min-width: 0; }
.detail-fieldset-job .job-public-offer-submit, .detail-fieldset-job .confirm-category-button { min-height: 44px; margin-top: 0; }
.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: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; }
.timeline-action-group { display: flex; align-items: center; gap: 7px; }
.timeline-action-group.is-left { justify-self: start; }
.timeline-action-group.is-right { justify-self: end; }
.timeline-action-group form { margin: 0; }
.timeline-alert-toggle { cursor: pointer; font: inherit; }
.timeline-compose-button { display: block; grid-column: 2; margin: 0 auto; }
.timeline-scope-button { display: inline-grid; place-items: center; min-width: 72px; min-height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 14px; color: #f4f4f4; background: rgba(255,255,255,.06); font-weight: 900; }
.timeline-scope-button.is-active { border-color: var(--exchange); background: color-mix(in srgb, var(--exchange) 42%, #111); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.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; }
.timeline-card-footer { padding: 0 11px 10px; }
.timeline-card-controls { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; }
.timeline-card-meta { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text); font-size: 12px; font-weight: 900; }
.timeline-card-meta-chip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-card-time { flex: 0 0 auto; color: #aaa4a0; font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.timeline-card-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
.timeline-card-footer form, .repost-tools form, .share-actions form { margin: 0; flex: 0 0 auto; }
.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; }
.job-offer-toggle { min-height: 32px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #d8d8d8; background: rgba(255,255,255,.05); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.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-frame.is-image-empty { min-height: 220px; }
.open-image-frame.is-image-empty { aspect-ratio: 16 / 9; min-height: 0; }
.post-image-link { display: block; }
.post-image { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #252525; }
.post-image-frame.has-image-pair { aspect-ratio: 16 / 9; }
.post-image-frame.has-image-pair .post-image-link { height: 100%; }
.post-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.post-image-grid .post-image { height: 100%; max-height: none; object-fit: cover; }
.evaluation-toggle { position: absolute; top: auto; right: 10px; bottom: 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; -webkit-backdrop-filter: blur(8px); 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; align-content: center; gap: 1px; min-width: 0; }
.author-switch strong { line-height: 1.05; }
.author-switch small { line-height: 1.1; }
.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; max-height: calc(1.46em * 2); overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; line-height: 1.46; }
.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 minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.right-profile-head .avatar-dot { width: 72px; height: 72px; }
.right-profile-head h2 { margin: 0 0 2px; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.12; }
.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; }
.profile-head-actions { display: inline-flex; justify-self: end; align-items: center; gap: 7px; }
.profile-head-actions form { margin: 0; }
.profile-head-actions .profile-safety-link { display: inline-flex; padding: 5px 7px; border: 1px solid rgba(255,159,159,.38); border-radius: 999px; text-decoration: none; }
.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; }
.account-post-card.has-reflected-image .ended-ribbon { top: 62px; }
.account-post-card:has(.manga-nft-badge[open]) { overflow: visible; z-index: 30; }
.reflected-image-link { grid-column: 1 / -1; display: block; min-width: 0; }
.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 strong:has(.manga-nft-badge[open]) { overflow: visible; }
.reflected-body-text { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f2f2f2; font-size: 14px; line-height: 1.4; }
.reflected-body-link { color: inherit; text-decoration: none; }
.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; align-content: center; gap: 1px; min-width: 0; }
.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; }
.post-gallery-count { position: absolute; left: 10px; bottom: 10px; z-index: 8; padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.48); color: #fff; font-size: 12px; font-weight: 900; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.post-gallery-modal[hidden] { display: none; }
.post-gallery-modal { position: fixed; inset: 0; z-index: 240; display: grid; grid-template-columns: auto minmax(0, min(92vw, 1100px)) auto; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.post-gallery-viewer { margin: 0; min-width: 0; display: grid; gap: 10px; justify-items: center; }
.post-gallery-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: #111; }
.post-gallery-viewer figcaption { color: #fff; font-size: 13px; font-weight: 900; }
.post-gallery-nav, .post-gallery-close { border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-weight: 900; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.post-gallery-nav { width: 44px; height: 44px; font-size: 20px; }
.post-gallery-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; font-size: 22px; }
body.post-gallery-open { overflow: hidden; }
.open-post-body { padding: 16px 18px; font-size: 18px; line-height: 1.8; }
.post-action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 12px; }
.post-management-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; padding: 0; }
.post-management-actions form { display: inline-flex; align-items: center; margin: 0; }
.post-management-actions .primary-button, .post-management-actions .danger-button { min-height: 34px; margin: 0; padding: 7px 12px; font-size: 13px; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; }
.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; }
.sunich-referral { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(196, 199, 0, .72); border-left: 4px solid #c4c700; border-radius: 5px; background: rgba(196, 199, 0, .08); }
.sunich-referral strong { min-width: 0; color: #f3f4b1; font-size: 13px; }
.sunich-referral > div { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sunich-referral .primary-button, .sunich-referral .quiet-button { min-height: 32px; margin: 0; padding: 6px 10px; font-size: 12px; }
.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: 8px; margin: 0 18px 12px; padding: 10px 12px; border-top: 0; background: rgba(255,255,255,.025); border-radius: 5px; }
.detail-section { display: grid; gap: 8px; padding: 10px 12px; border-left: 5px solid currentColor; border-radius: 5px; background: rgba(0,0,0,.26); color: var(--cat-color); }
.detail-section summary { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; cursor: pointer; color: #f2f2f2; font-size: 16px; 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: 6px; margin: 0; color: #f2f2f2; }
.detail-grid div { display: grid; grid-template-columns: minmax(82px, .72fr) minmax(0, 1.28fr); align-items: stretch; min-width: 0; }
.detail-grid div.wide { grid-column: 1 / -1; }
.detail-grid dt, .detail-grid dd { margin: 0; padding: 7px 9px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.detail-grid dt { background: #bfbfbf; color: #171717; border-radius: 3px 0 0 3px; 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-application-form textarea { width: 100%; min-height: 112px; resize: vertical; }
.job-apply-button { justify-self: end; margin-top: 0; }
.job-application-note { margin: 0; color: var(--muted); line-height: 1.35; }
.job-worker-rating { display: grid; gap: 4px; margin-top: 4px; }
.job-rating-heading { color: #fff7a3; font-size: 13px; line-height: 1; }
.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: 4px 0 0; color: #f2f2f2; line-height: 1.4; overflow-wrap: anywhere; }
.job-applicant .job-application-note { margin-top: 4px; line-height: 1.35; }
.job-inquiry-message { margin-top: 4px; color: #f2f2f2; line-height: 1.4; overflow-wrap: anywhere; }
.job-inquiry-message p { margin: 0 0 4px; }
.job-inquiry-message p:last-child { margin-bottom: 0; }
.job-rating-form { display: grid; gap: 4px; justify-items: end; }
.job-rating-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.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; display: grid; gap: 2px; }
.comment-body { grid-column: 1 / -1; margin-left: 42px !important; }
.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-copy { min-width: 0; display: grid; gap: 3px; }
.notification-card strong,
.notification-card p { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-card strong { display: block; font-size: 16px; line-height: 1.25; }
.notification-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.25; }
.notification-card .account-name-with-emblems { display: inline-flex; max-width: 100%; vertical-align: bottom; }
.notification-card .account-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-empty { margin: 28px 0 0; color: var(--muted); text-align: center; }
.notice-detail-modal[hidden] { display: none; }
.notice-detail-modal { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 20px; }
.notice-detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.76); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); cursor: default; }
.notice-detail-dialog { position: relative; z-index: 1; display: grid; gap: 12px; width: min(640px, calc(100vw - 32px)); max-height: min(78vh, 680px); overflow-y: auto; padding: 20px; border: 1px solid color-mix(in srgb, var(--accent-color) 68%, white); border-left: 5px solid var(--accent-color); border-radius: 10px; background: #171717; color: #f6f6f6; box-shadow: 0 24px 70px rgba(0,0,0,.58); }
.notice-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice-detail-kicker { color: var(--accent-color); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.notice-detail-dialog h2 { margin: 0; color: #fff; font-size: clamp(20px, 3vw, 28px); line-height: 1.35; overflow-wrap: anywhere; }
.notice-detail-body { margin: 0; color: #ececf1; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-detail-time { color: var(--muted); font-size: 12px; }
.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; align-content: start; 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-account-line { display: flex !important; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; }
.chat-account-line .account-name-with-emblems { display: inline-flex; flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; }
.chat-account-line .account-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-account-line .chat-account-id { display: inline-block; flex: 1 1 auto; min-width: 0; margin: 0; color: var(--muted); font-size: .78em; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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: 10px 0; }
.chat-job-application-list { display: grid; gap: 8px; padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.chat-job-application-list h3 { margin: 0; font-size: 14px; color: var(--muted); }
.chat-job-application-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 4px 0 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.chat-job-application-head h3 { color: #fff7a3; font-size: 28px; line-height: 1; }
.of-labor-inline-link { margin-left: auto; color: var(--job); font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; }
.chat-job-application-list .job-applicant { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding-top: 4px; border-top: 0; }
.chat-job-application-list .job-applicant .avatar-dot { width: 30px; height: 30px; }
.chat-job-application-list .job-applicant p { margin-top: 2px; }
.chat-job-application-list .job-application-note { margin-top: 2px; }
.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, .parliament-guide-shell, .service-guide-shell, .historical-vault-shell, .materials-guide-shell, .kawaraban-guide-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); -webkit-backdrop-filter: blur(8px); 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-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; }
.legal-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; color: #eee; font-size: 12px; }
.legal-table-wrap th, .legal-table-wrap td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; white-space: nowrap; }
.legal-table-wrap th { background: rgba(255,255,255,.08); color: #fff; font-weight: 900; }
.legal-table-wrap tr:last-child td { border-bottom: 0; }
.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, .parliament-guide-footer, .service-guide-footer, .materials-guide-footer, .kawaraban-guide-footer { display: grid; gap: 10px; margin-top: 14px; padding: clamp(18px, 3vw, 28px); }
.of-article-footer strong, .parliament-guide-footer strong, .service-guide-footer strong, .materials-guide-footer strong, .kawaraban-guide-footer strong { font-size: clamp(17px, 2vw, 22px); }
.of-article-footer p, .parliament-guide-footer p, .service-guide-footer p, .materials-guide-footer p, .kawaraban-guide-footer p { margin: 0; color: #d8d8dc; line-height: 1.8; }
.of-article-footer .primary-button, .parliament-guide-footer .primary-button, .service-guide-footer .primary-button, .materials-guide-footer .primary-button, .kawaraban-guide-footer .primary-button { width: fit-content; margin-top: 3px; }
.of-article-footer { border-top: 4px solid var(--job); background: rgba(20,186,20,.06); }
.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 { border-top: 4px solid #0014ba; background: rgba(0,20,186,.09); }
.parliament-guide-footer .primary-button { background: #0014ba; }
.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; }
.service-safety-checklist { max-width: 880px; margin: 24px 0 8px; padding: 16px 18px; border-left: 4px solid var(--exchange); background: rgba(186,20,186,.08); }
.service-safety-checklist strong { display: block; margin-bottom: 8px; color: #fff; font-size: 16px; }
.service-safety-checklist ul { margin: 0; padding-left: 1.3em; }
.service-safety-checklist li { line-height: 1.8; }
.service-safety-checklist li::marker { color: var(--exchange); font-weight: 900; }
.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 { border-top: 4px solid var(--exchange); background: rgba(186,20,186,.08); }
.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 { --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 { --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 { border-top: 4px solid var(--historical); background: rgba(186,186,20,.06); }

.kawaraban-page { --kawara-gold: #B1AB4A; --kawara-teal: #14ABAB; --kawara-cream: #f8f7f0; --kawara-mint: #e6f7e9; }
.kawaraban-shell { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(250px, 315px) minmax(0, 1fr); gap: clamp(16px, 1.8vw, 24px); padding: 16px 18px 18px; overflow: hidden; background: radial-gradient(circle at 12% 18%, rgba(20,171,171,.34), transparent 30%), linear-gradient(135deg, var(--kawara-teal), var(--kawara-gold) 58%, #9d963e); color: #101010; }
.kawaraban-left, .kawaraban-board { min-height: 0; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.kawaraban-left { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px; overflow-y: auto; }
.kawaraban-account { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.kawaraban-account .avatar-dot { width: 58px; height: 58px; box-shadow: 0 0 0 3px rgba(0,0,0,.78); }
.kawaraban-account > div { min-width: 0; display: grid; align-content: center; gap: 2px; }
.kawaraban-account strong { display: block; min-width: 0; max-width: 100%; font-size: 22px; line-height: 1.04; -webkit-text-stroke: .35px #fff; text-shadow: 0 2px 2px rgba(0,0,0,.28); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kawaraban-account > div > span:not(.account-name-with-emblems):not(.account-name-text) { display: block; margin-top: 0; color: #333; font-size: 13px; font-weight: 900; line-height: 1.1; }
.kawaraban-account .account-name-with-emblems { display: inline-flex; }
.kawaraban-login-button { display: grid; place-items: center; width: 100%; min-height: 34px; margin-top: 8px; border: 2px solid var(--kawara-teal); color: #fff; background: var(--kawara-teal); font-size: 13px; font-weight: 900; }
.kawaraban-left > .emergency-strip-stack { width: 100%; margin: 0; }
.kawaraban-event-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.kawaraban-event-slot { position: relative; display: grid; align-content: end; gap: 3px; min-height: 82px; overflow: hidden; border: 3px solid var(--kawara-gold); color: var(--kawara-gold); background: #fffdf1; padding: 7px; text-align: left; font: inherit; font-weight: 900; cursor: pointer; }
.kawaraban-event-slot-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.kawaraban-event-slot span, .kawaraban-event-slot strong { position: relative; z-index: 1; overflow-wrap: anywhere; }
.kawaraban-event-slot span { color: #6d672d; font-size: 10px; }
.kawaraban-event-slot strong { color: #151515; font-size: 12px; line-height: 1.25; }
.kawaraban-event-slot-note { width: 100%; margin: 0; padding: 9px; border: 2px solid var(--kawara-gold); color: #6d672d; background: #fffdf1; font-size: 12px; line-height: 1.45; }
.kawaraban-location-panel { display: grid; gap: 0; width: 100%; margin: 0; border: 2px solid var(--kawara-gold); border-bottom: 0; }
.kawaraban-location-panel label { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; min-height: 38px; border-bottom: 2px solid var(--kawara-gold); background: #fff; }
.kawaraban-location-panel > label > span:first-child { display: grid; place-items: center; height: 100%; border-right: 2px solid var(--kawara-gold); font-size: 14px; }
.kawaraban-location-panel input, .kawaraban-location-panel select { height: 100%; border: 0; border-radius: 0; color: #111; background: #fff; font-size: 15px; font-weight: 800; }
.kawaraban-location-panel select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--kawara-gold) 50%), linear-gradient(135deg, var(--kawara-gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 9px) 50%; background-size: 9px 9px; background-repeat: no-repeat; }
.kawaraban-postal-row { border: 0 !important; grid-template-columns: 78px minmax(0, 1fr) !important; }
.kawaraban-postal-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; padding: 4px; }
.kawaraban-postal-controls input { min-width: 0; border: 2px solid rgba(177,171,74,.45); padding: 0 6px; font-size: 15px; }
.kawaraban-postal-row button { min-height: 34px; border: 2px solid var(--kawara-gold); color: #101010; background: #fff; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.kawaraban-location-submit { width: 100%; min-height: 38px; border: 0; color: #fff; background: var(--kawara-gold); font: inherit; font-weight: 900; cursor: pointer; }
.kawaraban-location-feedback { min-height: 24px; margin: 0; padding: 4px 8px; border-bottom: 2px solid var(--kawara-gold); color: #6b6427; background: #fffdf1; font-size: 12px; line-height: 1.35; }
.kawaraban-current { display: grid; gap: 8px; width: 100%; margin: 0; }
.kawaraban-current h2 { margin: 0; color: #101010; font-size: 17px; }
.kawaraban-current h2 span { margin-left: 8px; color: #BA0014; font-size: 15px; }
.kawaraban-current article { min-height: 58px; border: 2px solid var(--kawara-gold); background: #fff; }
.kawaraban-current article:first-of-type { min-height: 76px; padding: 5px 0 0; }
.kawaraban-current strong { display: inline-block; margin: 0 8px 4px; font-size: 18px; }
.kawaraban-current p { margin: 0 8px 8px; color: #333; font-size: 13px; line-height: 1.45; }
.kawaraban-garbage-list { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 7px; margin: 0 8px 8px; color: #333; font-size: 13px; line-height: 1.45; }
.kawaraban-garbage-list dt { color: var(--kawara-gold); font-weight: 900; text-align: center; }
.kawaraban-garbage-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.kawaraban-support { position: sticky; bottom: -14px; z-index: 8; display: grid; place-items: center; align-self: stretch; width: 100%; min-height: 44px; margin-top: auto; border: 0; border-radius: 0; color: #fff; background: var(--kawara-teal); font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: 0 -8px 18px rgba(255,255,255,.72); }

.kawaraban-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.kawaraban-hero { position: relative; display: grid; place-items: center; min-height: 84px; padding: 0 24px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 10% 20%, rgba(255,255,255,.52), transparent 24%), linear-gradient(180deg, #cc9bff, #9e5edf); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 28px rgba(0,0,0,.16); }
.kawaraban-hero h1 { margin: 0; text-align: center; font-size: clamp(38px, 4.2vw, 62px); line-height: 1; letter-spacing: .02em; }
.kawaraban-hero a { position: absolute; right: 24px; bottom: 14px; color: #f4ecff; font-size: 20px; font-weight: 900; }
.kawaraban-board { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 18px 14px; overflow: hidden; }
.kawaraban-pickup-head { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(360px, 0.92fr); gap: 14px; align-items: center; margin-bottom: 8px; }
.kawaraban-pickup-head h2 { margin: 0; text-align: center; color: #080808; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.08; letter-spacing: .08em; }
.kawaraban-pickup-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-content: flex-end; align-items: center; gap: 8px; }
.kawaraban-event-search-form { min-width: 0; display: grid; grid-template-columns: minmax(120px, .5fr) auto; justify-content: end; gap: 6px; align-items: center; }
.kawaraban-event-search-form label { min-width: 0; width: min(100%, 220px); justify-self: end; display: block; color: #111; font-size: 13px; font-weight: 900; }
.kawaraban-event-search-form input { width: 100%; min-height: 32px; border: 2px solid var(--kawara-gold); border-radius: 3px; background: #fff; color: #111; padding: 0 8px; }
.kawaraban-event-search-form button, .kawaraban-create-button.is-pickup { min-height: 32px; border: 2px solid var(--kawara-gold); border-radius: 3px; color: #fff; background: var(--kawara-teal); padding: 0 10px; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.kawaraban-slider-wrap { position: relative; flex: 0 0 238px; min-height: 238px; margin: 0 -18px; overflow: hidden; }
.kawaraban-slider-wrap::before, .kawaraban-slider-wrap::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 76px; pointer-events: none; }
.kawaraban-slider-wrap::before { left: 0; background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,0)); }
.kawaraban-slider-wrap::after { right: 0; background: linear-gradient(270deg, rgba(255,255,255,.96), rgba(255,255,255,0)); }
.kawaraban-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(420px, 38%); column-gap: 20px; row-gap: 0; min-height: 238px; padding: 0 48px 4px; overflow: visible; scrollbar-width: none; touch-action: pan-y; align-items: stretch; will-change: transform; }
.kawaraban-slider::-webkit-scrollbar { display: none; }
.kawaraban-slider-empty { display: grid; place-items: center; min-height: 168px; margin: 0 0 8px; border-top: 5px solid #c765a4; border-bottom: 5px solid #c765a4; background: #f3e9e1; color: #6b625e; }
.kawaraban-slider-empty p { margin: 0; padding: 16px; text-align: center; line-height: 1.7; }
.kawaraban-event-card { position: relative; display: grid; align-content: stretch; min-height: 230px; aspect-ratio: 1920 / 1080; border: 5px solid #c765a4; background: #f3e9e1; color: #1c1512; overflow: hidden; user-select: none; box-sizing: border-box; }
.kawaraban-event-image { display: block; width: 100%; height: 100%; object-fit: cover; background: #eee3da; pointer-events: none; }
.kawaraban-card-hitbox { position: absolute; inset: 0; z-index: 2; display: block; color: inherit; }
.kawaraban-event-caption { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-areas: "pref date" "title title"; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,0) 40%, rgba(0,0,0,.6)); color: #fff; pointer-events: none; }
.kawaraban-event-caption span, .kawaraban-event-caption time { align-self: start; width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 2px; background: rgba(0,0,0,.58); font-size: 12px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.kawaraban-event-caption span { grid-area: pref; justify-self: start; }
.kawaraban-event-caption time { grid-area: date; justify-self: end; white-space: nowrap; }
.kawaraban-event-caption strong { grid-area: title; align-self: end; justify-self: stretch; min-width: 0; padding: 8px 9px; background: rgba(0,0,0,.52); font-size: clamp(13px, 1.2vw, 19px); line-height: 1.18; overflow-wrap: anywhere; text-align: center; }
.kawaraban-event-caption strong a { color: inherit; }
.kawaraban-event-card .kawaraban-slider-evaluation-toggle { z-index: 8; top: auto; right: 10px; bottom: 10px; }
.kawaraban-event-card .evaluation-plane { z-index: 6; border-radius: 0; }
.kawaraban-collection-tools { position: relative; z-index: 9; display: inline-grid; place-items: center; }
.kawaraban-event-card > .kawaraban-collection-tools { position: absolute; top: 10px; right: 10px; }
.kawaraban-event-card > .kawaraban-collection-tools .favorite-toggle { background: rgba(10,10,10,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kawaraban-event-slot-frame { position: relative; min-width: 0; aspect-ratio: 16 / 9; }
.kawaraban-event-slot-frame .kawaraban-event-slot { width: 100%; height: 100%; min-height: 0; }
.kawaraban-event-slot-frame .kawaraban-collection-tools { position: absolute; z-index: 4; top: 6px; right: 6px; }
.kawaraban-event-slot-frame .favorite-toggle { min-width: 26px; min-height: 26px; font-size: 15px; }
.kawaraban-info-card footer .kawaraban-collection-tools,
.kawaraban-card-detail footer .kawaraban-collection-tools { display: inline-grid; }
.kawaraban-info-card footer .favorite-toggle,
.kawaraban-card-detail footer .favorite-toggle { min-width: 32px; min-height: 32px; font-size: 17px; }
.kawaraban-info-card > .kawaraban-collection-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
}
.kawaraban-info-card > .kawaraban-collection-tools .favorite-toggle {
  min-width: 30px;
  min-height: 30px;
  background: rgba(10, 10, 10, .78);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-size: 16px;
}
.kawaraban-event-search-modal { position: fixed; inset: 0; z-index: 185; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.kawaraban-event-search-dialog { width: min(980px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); overflow: auto; border: 5px solid var(--kawara-gold); border-radius: 10px; background: rgba(255,255,255,.97); color: #151515; box-shadow: 0 24px 80px rgba(0,0,0,.34); }
.kawaraban-event-search-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px 18px 10px; border-bottom: 3px solid rgba(177,171,74,.55); }
.kawaraban-event-search-dialog > header span { color: var(--kawara-gold); font-size: 12px; font-weight: 900; }
.kawaraban-event-search-dialog > header h2 { margin: 4px 0 0; color: var(--kawara-gold); font-size: clamp(24px, 2.7vw, 34px); line-height: 1.15; overflow-wrap: anywhere; }
.kawaraban-event-search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.kawaraban-event-search-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.kawaraban-event-search-card { position: relative; min-height: 168px; overflow: hidden; border: 4px solid #c765a4; background: #f3e9e1; color: #1c1512; }
.kawaraban-event-search-card.has-image { aspect-ratio: 1920 / 1080; min-height: 0; }
.kawaraban-event-search-card .kawaraban-event-image { height: 100%; }
.kawaraban-event-search-text { display: grid; gap: 7px; padding: 14px; }
.kawaraban-event-search-text h3 { margin: 0; padding-bottom: 6px; border-bottom: 3px solid var(--kawara-gold); color: var(--kawara-gold); font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.kawaraban-event-search-text p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: calc(1.45em * 2); margin: 0; overflow: hidden; color: #3d3d3d; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.kawaraban-event-search-text small { color: #58614f; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.kawaraban-event-search-empty { margin: 0; padding: 24px 18px 28px; color: #58614f; font-weight: 900; }
.kawaraban-slider-arrow { position: absolute; z-index: 3; top: 50%; width: 42px; height: 58px; border: 0; background: transparent; transform: translateY(-50%); cursor: pointer; }
.kawaraban-slider-arrow::before { content: ""; display: block; width: 0; height: 0; border-top: 24px solid transparent; border-bottom: 24px solid transparent; }
.kawaraban-slider-arrow.is-left { left: 12px; }
.kawaraban-slider-arrow.is-left::before { border-right: 36px solid rgba(0,0,0,.72); }
.kawaraban-slider-arrow.is-right { right: 12px; }
.kawaraban-slider-arrow.is-right::before { border-left: 36px solid rgba(0,0,0,.72); }
.kawaraban-address-line { margin: 0 0 4px; color: #BA0014; font-size: 20px; line-height: 1.08; }
.kawaraban-essentials { position: relative; flex: 1 1 0; min-height: 214px; display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; padding: 10px 8px 8px; border: 4px solid var(--kawara-gold); overflow: hidden; }
.kawaraban-card-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(156px, auto); gap: 10px; align-content: start; padding-right: 4px; }
.kawaraban-card-actions { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; align-content: stretch; gap: 8px; min-width: 0; }
.kawaraban-info-card { position: relative; min-height: 156px; border: 5px solid var(--kawara-gold); background: var(--kawara-mint); color: var(--kawara-gold); display: flex; flex-direction: column; overflow: hidden; }
.kawaraban-info-card.is-comment-target { border-color: #14ABAB; box-shadow: 0 0 0 5px rgba(20,171,171,.25), 0 0 28px rgba(20,171,171,.42); }
.kawaraban-info-card header, .kawaraban-info-card p, .kawaraban-info-card .kawaraban-card-image, .kawaraban-info-card .kawaraban-garbage-list { position: relative; z-index: 1; }
.kawaraban-info-card header { padding: 10px 52px 0 14px; }
.kawaraban-info-card h3 { margin: 0; padding-bottom: 6px; border-bottom: 3px solid currentColor; font-size: clamp(20px, 1.55vw, 27px); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.kawaraban-info-card p { min-height: 0; max-height: calc(1.45em * 2); overflow: hidden; margin: 9px 14px; color: #4e584a; line-height: 1.45; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kawaraban-info-card .kawaraban-garbage-list { max-height: calc(1.45em * 2); overflow: hidden; margin: 9px 14px; color: #4e584a; }
.kawaraban-card-detail .kawaraban-garbage-list { margin: 14px 18px; font-size: 15px; line-height: 1.65; }
.kawaraban-info-card footer { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 12px 10px; padding-right: 96px; color: #58614f; font-size: 11px; line-height: 1.25; }
.kawaraban-info-card footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.kawaraban-info-card footer .kawaraban-card-comment-link {
  order: -10;
  color: var(--kawara-teal);
  font-weight: 800;
}
.kawaraban-info-card footer .kawaraban-card-report-link { order: -9; color: #bd1f2a; font-weight: 800; }
.kawaraban-info-card footer form { margin: 0; }
.kawaraban-card-image { display: block; width: calc(100% - 28px); max-height: 104px; margin: 9px 14px 0; aspect-ratio: 1280 / 1080; object-fit: contain; border: 3px solid #c765a4; background: #f3e9e1; }
.kawaraban-inline-delete, .kawaraban-inline-edit { border: 0; background: transparent; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.kawaraban-inline-delete { color: #bd1f2a; }
.kawaraban-inline-edit { color: var(--kawara-teal); }
.kawaraban-evaluation-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 6px; margin: 0 16px 12px; }
.kawaraban-evaluation-mini input { min-height: 30px; border: 2px solid var(--kawara-gold); color: #111; background: #fff; padding: 4px 6px; font-size: 12px; }
.kawaraban-evaluation-mini button { border: 0; color: #fff; background: var(--kawara-teal); font: inherit; font-size: 12px; cursor: pointer; }
.kawaraban-create-button, .kawaraban-tag-button { display: grid; place-items: center; border: 3px solid var(--kawara-gold); color: var(--kawara-gold); background: #fff; font: inherit; font-size: 14px; font-weight: 900; }
.kawaraban-tag-button.is-active { color: #fff; background: var(--kawara-gold); }
.kawaraban-create-button { min-height: 40px; cursor: pointer; }
.kawaraban-tag-button { min-height: 38px; }
.kawaraban-tag-button.is-emergency { grid-column: auto; grid-row: 3; align-self: auto; margin: 0; transform: none; }
.kawaraban-tag-button.is-event { grid-column: auto; grid-row: 4; align-self: auto; margin: 0; transform: none; }
.kawaraban-tag-button.is-chat, .kawaraban-tag-button.is-disabled { grid-column: auto; grid-row: 5; align-self: end; margin: 0; transform: none; border-color: var(--kawara-teal); color: var(--kawara-teal); }
.kawaraban-tag-button.is-disabled { opacity: .42; cursor: not-allowed; }
.kawaraban-tag-button.is-emergency.is-disabled { grid-row: 3; align-self: auto; border-color: var(--kawara-gold); color: var(--kawara-gold); }
.kawaraban-tag-button.is-event.is-disabled { grid-row: 4; align-self: auto; border-color: var(--kawara-gold); color: var(--kawara-gold); }
.kawaraban-compose-modal[hidden] { display: none; }
.kawaraban-compose-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.kawaraban-compose-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.kawaraban-compose { margin: 10px 8px 8px; padding: 12px; border: 4px solid var(--kawara-gold); border-radius: 9px; background: rgba(255,255,255,.82); color: #151515; }
.kawaraban-compose-modal .kawaraban-compose { position: relative; z-index: 1; width: min(520px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); overflow-y: auto; background: rgba(255,255,255,.95); box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.kawaraban-compose-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.kawaraban-compose-head button { width: 36px; min-height: 36px; border: 2px solid var(--kawara-gold); border-radius: 6px; color: var(--kawara-gold); background: #fff; font: inherit; font-size: 22px; font-weight: 900; cursor: pointer; }
.kawaraban-compose h2 { margin: 0 0 8px; color: var(--kawara-gold); font-size: 20px; }
.kawaraban-compose p { margin: 0; line-height: 1.6; }
.kawaraban-compose-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: stretch; width: min(480px, 100%); margin: 0 auto; }
.kawaraban-compose-form label { display: grid; gap: 4px; color: #111; font-size: 13px; }
.kawaraban-account-location-panel { display: grid; gap: 0; border: 2px solid var(--kawara-gold); border-bottom: 0; background: #fff; }
.kawaraban-account-location-panel[hidden] { display: none; }
.kawaraban-account-location-panel > p:first-child { margin: 0; padding: 7px 9px; border-bottom: 2px solid var(--kawara-gold); color: #6d672d; background: #fffdf1; font-size: 13px; font-weight: 900; }
.kawaraban-account-location-panel label { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0; min-height: 36px; border-bottom: 2px solid var(--kawara-gold); }
.kawaraban-account-location-panel label > span:first-child { display: grid; place-items: center; height: 100%; border-right: 2px solid var(--kawara-gold); font-weight: 900; }
.kawaraban-account-location-panel input, .kawaraban-account-location-panel select { height: 100%; min-height: 34px; border: 0; border-radius: 0; font-weight: 800; }
.kawaraban-account-location-panel .kawaraban-location-feedback { border-bottom: 2px solid var(--kawara-gold); }
.kawaraban-compose-form label.kawaraban-weekday-row { grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; }
.kawaraban-compose-form label.kawaraban-weekday-row span { font-size: 16px; font-weight: 900; text-align: center; }
.kawaraban-compose-form [data-kawaraban-kind-panel][hidden], .kawaraban-compose-form [data-kawaraban-kind-submit][hidden] { display: none; }
.kawaraban-compose-form .kawaraban-event-image-remove[hidden], .kawaraban-compose-form .kawaraban-event-image-remove[hidden] * { display: none !important; }
.kawaraban-account-location-panel label[hidden] { display: none; }
.kawaraban-evaluation-notice { margin: 0; padding: 8px 10px; border: 2px solid rgba(20,171,171,.65); background: rgba(20,171,171,.08); color: #0d5f5f; font-size: 12px; font-weight: 900; }
.kawaraban-kind-picker { grid-column: auto; }
.kawaraban-compose-form label small { color: #6d672d; font-size: 11px; font-weight: 800; }
.kawaraban-compose-form label.is-wide { grid-column: auto; }
.kawaraban-compose-form input, .kawaraban-compose-form select, .kawaraban-compose-form textarea { border: 2px solid var(--kawara-gold); color: #111; background: #fff; }
.kawaraban-compose-form button { min-height: 40px; border: 0; color: #fff; background: var(--kawara-teal); font: inherit; font-weight: 900; cursor: pointer; }
.kawaraban-event-image-preview { position: relative; align-self: stretch; min-height: 82px; border: 2px solid rgba(177,171,74,.7); background: #fffdf1; color: #7a351a; font-size: 12px; font-weight: 900; display: grid; place-items: center; overflow: hidden; }
.kawaraban-event-image-preview[hidden] { display: none; }
.kawaraban-event-image-preview img { display: block; width: 100%; height: 100%; max-height: 142px; object-fit: contain; }
.kawaraban-event-image-preview-clear { position: absolute; right: 8px; top: 8px; z-index: 2; min-height: 28px; border: 0; border-radius: 999px; color: #fff; background: rgba(0,0,0,.68); padding: 3px 9px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.kawaraban-card-detail-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.kawaraban-card-detail { position: relative; width: min(760px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); overflow: auto; border: 5px solid var(--kawara-gold); border-radius: 10px; background: rgba(255,255,255,.97); color: #151515; box-shadow: 0 24px 80px rgba(0,0,0,.34); }
.kawaraban-card-detail header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px 18px 10px; border-bottom: 3px solid rgba(177,171,74,.55); }
.kawaraban-card-detail header span { color: var(--kawara-gold); font-size: 12px; font-weight: 900; }
.kawaraban-card-detail h2 { margin: 4px 0 0; color: var(--kawara-gold); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; overflow-wrap: anywhere; }
.kawaraban-event-detail-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.kawaraban-card-detail .kawaraban-event-detail-facts span { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid rgba(177,171,74,.55); border-radius: 999px; background: rgba(177,171,74,.12); color: #303030; font-size: 12px; line-height: 1.2; }
.kawaraban-detail-head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.kawaraban-detail-head-actions .kawaraban-collection-tools { display: inline-grid; }
.kawaraban-detail-head-actions .favorite-toggle { min-width: 36px; min-height: 36px; font-size: 18px; }
.kawaraban-detail-close { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 2px solid var(--kawara-gold); color: var(--kawara-gold); background: #fff; font-size: 22px; font-weight: 900; }
.kawaraban-detail-image-frame { position: relative; width: calc(100% - 36px); margin: 14px 18px 0; aspect-ratio: 1920 / 1080; border: 3px solid #c765a4; background: #f3e9e1; overflow: hidden; }
.kawaraban-detail-image { display: block; width: 100%; height: 100%; object-fit: contain; background: #f3e9e1; }
.kawaraban-detail-image-frame .evaluation-plane { border-radius: 0; }
.kawaraban-card-detail-body { margin: 14px 18px; color: #303030; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.kawaraban-card-detail footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; color: #58614f; font-size: 13px; font-weight: 800; }
.kawaraban-card-detail footer .kawaraban-card-comment-link { color: var(--kawara-teal); }
.kawaraban-card-detail footer .kawaraban-card-report-link { color: #bd1f2a; }
.kawaraban-search-return { display: inline-grid; place-items: center; min-height: 28px; padding: 0 10px; border: 2px solid var(--kawara-teal); border-radius: 999px; color: #fff; background: var(--kawara-teal); text-decoration: none; }
.kawaraban-area-chat { position: fixed; top: var(--topbar-height, 72px); right: 18px; bottom: 18px; z-index: 190; display: grid; place-items: stretch; width: min(430px, calc(100vw - 36px)); background: transparent; pointer-events: none; }
.kawaraban-area-chat-panel { width: 100%; max-height: none; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; border: 3px solid rgba(20,171,171,.72); border-radius: 12px; background: #f4f7ee; color: #171717; box-shadow: 0 18px 60px rgba(0,0,0,.34); overflow: hidden; pointer-events: auto; }
.kawaraban-area-chat-panel > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 3px solid rgba(177,171,74,.55); }
.kawaraban-area-chat-panel > header span { color: var(--kawara-gold); font-size: 12px; font-weight: 900; }
.kawaraban-area-chat-panel > header h2 { margin: 3px 0; color: var(--kawara-gold); font-size: clamp(21px, 2.2vw, 30px); line-height: 1.15; }
.kawaraban-area-chat-notice { position: sticky; top: 0; z-index: 4; margin: 0; padding: 10px 14px; border-bottom: 1px solid rgba(20,171,171,.3); background: #fffbe8; color: #5e622b; font-size: 12px; font-weight: 900; line-height: 1.55; }
.kawaraban-area-chat-feed { min-height: 260px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; overflow: auto; background: #e8f5e9; }
.kawaraban-area-message { position: relative; align-self: flex-start; width: min(78%, 330px); aspect-ratio: 16 / 9; display: grid; align-content: start; gap: 6px; padding: 10px 12px; border: 0; border-radius: 16px 16px 16px 4px; background: #fff; color: #171717; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.kawaraban-area-message.is-own { align-self: flex-end; border-color: transparent; border-radius: 16px 16px 4px 16px; background: #b9f6ca; }
.kawaraban-area-message.is-long { aspect-ratio: auto; min-height: min(260px, 42dvh); }
.kawaraban-area-message p { margin: 0; color: #171717; line-height: 1.55; overflow-wrap: anywhere; }
.kawaraban-area-message time { margin-top: auto; color: #6a6a5b; font-size: 11px; font-weight: 900; }
.kawaraban-area-message-quote { justify-self: start; border: 0; background: transparent; color: #0e7777; padding: 0; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.kawaraban-area-message.is-own .kawaraban-area-message-quote { justify-self: end; }
.kawaraban-area-message .evaluation-plane { border-radius: 0; }
.kawaraban-area-message-evaluation-toggle { top: auto; right: 10px; bottom: 10px; }
.kawaraban-area-chat-empty { margin: auto; color: #6f714b; font-weight: 900; }
.kawaraban-area-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(20,171,171,.3); background: #fff; }
.kawaraban-area-chat-form textarea { min-height: 46px; max-height: 120px; border: 2px solid rgba(20,171,171,.55); border-radius: 18px; color: #111; background: #fff; resize: vertical; padding: 9px 12px; }
.kawaraban-area-chat-form input[type="submit"] { align-self: end; min-height: 42px; border: 0; border-radius: 999px; color: #fff; background: var(--kawara-teal); padding: 0 14px; font: inherit; font-weight: 900; cursor: pointer; }
.kawaraban-area-chat-login { padding: 12px 16px; border-top: 3px solid rgba(177,171,74,.45); background: #fff; }
.kawaraban-comment-form { display: grid; gap: 8px; margin: 0 18px 18px; }
.kawaraban-comment-form textarea { min-height: 82px; border: 2px solid var(--kawara-gold); color: #111; background: #fff; resize: vertical; }
.kawaraban-comment-form input[type="submit"] { justify-self: end; min-height: 36px; border: 0; color: #fff; background: var(--kawara-teal); padding: 0 14px; font: inherit; font-weight: 900; cursor: pointer; }
.kawaraban-card-evaluation-toggle { top: auto; right: 8px; bottom: 8px; }
.kawaraban-detail-evaluation-toggle { top: auto; right: 18px; bottom: 18px; }
.kawaraban-detail-image-evaluation-toggle { top: auto; right: 8px; bottom: 8px; z-index: 8; }
.kawaraban-comment-strip { flex: 0 0 176px; min-height: 176px; display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); grid-auto-flow: row; gap: 12px; max-height: 176px; margin-top: 8px; padding: 12px; border: 4px solid var(--kawara-gold); overflow: auto; }
.kawaraban-comment-empty { align-self: center; justify-self: center; margin: 0; color: rgba(58,63,55,.68); font-size: 13px; }
.kawaraban-comment-card { position: relative; min-height: 148px; border: 3px solid #777; border-radius: 5px; background: #30302f; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); cursor: pointer; }
.kawaraban-comment-card > span { position: absolute; left: 13px; top: 13px; width: 21px; height: 21px; border-radius: 50%; background: var(--dot-color); }
.kawaraban-comment-card > div { position: absolute; left: 12px; right: 10px; top: 38px; height: 2px; background: rgba(255,255,255,.32); }
.kawaraban-comment-card p { margin: 50px 10px 34px; color: #f2f2f2; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.kawaraban-comment-card small { position: absolute; left: 10px; bottom: 34px; color: #bd1f2a; font-size: 12px; }
.kawaraban-comment-card button, .kawaraban-comment-report { position: absolute; right: 8px; bottom: 7px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font: inherit; font-size: 12px; padding: 2px 7px; }
.kawaraban-comment-report { right: auto; left: 8px; bottom: 7px; color: #fff; }
.kawaraban-comment-evaluation-toggle { top: auto; right: 8px; left: auto; bottom: 7px; min-height: 24px; padding: 2px 7px; font-size: 12px; }
.kawaraban-comment-delete { position: absolute; right: 8px; top: 8px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: #fff; background: rgba(189,31,42,.45); font: inherit; font-size: 11px; padding: 2px 6px; cursor: pointer; }
.kawaraban-alerts-page { flex: 1 1 auto; min-height: 0; display: grid; place-items: stretch; padding: 18px; background: radial-gradient(circle at 12% 18%, rgba(20,171,171,.34), transparent 30%), linear-gradient(135deg, var(--kawara-teal), var(--kawara-gold) 58%, #9d963e); color: #101010; overflow: auto; }
.kawaraban-alerts-panel { display: grid; align-content: start; gap: 14px; width: min(1100px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 30px); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.kawaraban-alerts-panel > header { display: flex; justify-content: space-between; gap: 16px; align-items: end; border-bottom: 5px solid #bd1f2a; padding-bottom: 12px; }
.kawaraban-alerts-panel > header p { margin: 0 0 4px; color: var(--kawara-gold); font-weight: 900; }
.kawaraban-alerts-panel h1 { margin: 0; color: #bd1f2a; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; }
.kawaraban-alerts-back { display: grid; place-items: center; min-height: 38px; padding: 0 14px; border: 2px solid var(--kawara-gold); color: var(--kawara-gold); background: #fff; font-weight: 900; }
.kawaraban-alerts-lead { margin: 0; line-height: 1.75; color: #333; font-weight: 760; }
.kawaraban-alerts-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kawaraban-alerts-list { display: grid; gap: 10px; }
.kawaraban-alert-card { display: grid; gap: 8px; padding: 14px 16px; border: 3px solid rgba(189,31,42,.72); border-left-width: 9px; background: #fff8f8; }
.kawaraban-alert-card header { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; color: #7d1c22; font-size: 13px; font-weight: 900; }
.kawaraban-alert-card h2 { margin: 0; color: #bd1f2a; font-size: 24px; }
.kawaraban-alert-card p { margin: 0; color: #333; line-height: 1.65; }
.kawaraban-alert-card a { width: fit-content; color: #0014ba; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.kawaraban-alert-card.is-empty { border-color: rgba(177,171,74,.8); border-left-color: var(--kawara-gold); background: #fffdf1; }
.kawaraban-alert-card.is-empty h2 { color: var(--kawara-gold); }
.kawaraban-guide { --kawara-gold: #B1AB4A; --kawara-teal: #14ABAB; --cat-color: var(--kawara-teal); width: min(1000px, 100%); padding: clamp(18px, 3vw, 40px); border-left-color: var(--kawara-gold); }
.kawaraban-guide-head { margin: 12px 0 26px; }
.kawaraban-guide-mark { display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: 17px; border-radius: 18px; overflow: hidden; background: var(--kawara-teal); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 12px 26px rgba(0,0,0,.22); }
.kawaraban-guide-mark img { width: 100%; height: 100%; object-fit: cover; }
.kawaraban-guide-head > p:first-of-type { color: var(--kawara-teal); }
.kawaraban-guide-head h1 { font-size: clamp(36px, 5vw, 60px); }
.kawaraban-guide-toc { --cat-color: var(--kawara-teal); }
.kawaraban-guide .section-kicker { color: var(--kawara-teal); }
.kawaraban-guide blockquote { border-left-color: var(--kawara-gold); background: rgba(177,171,74,.1); }
.kawaraban-area-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 7px; align-items: center; max-width: 940px; margin: 24px 0 28px; }
.kawaraban-area-map > div { display: grid; place-content: center; gap: 6px; min-height: 112px; padding: 13px; border: 1px solid rgba(20,171,171,.34); background: rgba(20,171,171,.055); text-align: center; }
.kawaraban-area-map strong { color: #fff; font-size: 15px; }
.kawaraban-area-map span { color: #d5d7dc; font-size: 12px; line-height: 1.7; }
.kawaraban-area-map i { color: var(--kawara-gold); font-style: normal; font-size: 20px; font-weight: 900; }
.kawaraban-feature-grid { max-width: 940px; }
.kawaraban-guide-footer { border-top: 4px solid var(--kawara-gold); background: rgba(177,171,74,.08); }
.kawaraban-guide-footer .primary-button { background: var(--kawara-teal); }

@media (max-width: 980px) {
  body.kawaraban-page { overflow: auto; }
  body.kawaraban-page .app-window { height: auto; min-height: 100dvh; overflow: visible; }
  .kawaraban-shell { grid-template-columns: 1fr; overflow: visible; }
  .kawaraban-left { max-height: none; }
  .kawaraban-pickup-head { grid-template-columns: 1fr; gap: 8px; }
  .kawaraban-pickup-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .kawaraban-slider-wrap { flex-basis: 214px; min-height: 214px; }
  .kawaraban-slider { grid-auto-columns: minmax(300px, 78%); min-height: 214px; }
  .kawaraban-event-card { min-height: 206px; }
  .kawaraban-essentials { grid-template-columns: 1fr; }
  .kawaraban-card-scroll { grid-template-columns: 1fr; max-height: none; }
  .kawaraban-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kawaraban-create-button, .kawaraban-tag-button.is-emergency, .kawaraban-tag-button.is-event, .kawaraban-tag-button.is-chat { grid-column: auto; grid-row: auto; transform: none; margin: 0; }
  .kawaraban-area-chat-form { grid-template-columns: 1fr; }
  .kawaraban-area-message { width: min(88%, 440px); }
  .kawaraban-area-map { grid-template-columns: 1fr; }
  .kawaraban-area-map i { transform: rotate(90deg); text-align: center; }
  .kawaraban-compose-form { grid-template-columns: 1fr; }
  .kawaraban-compose-form label.is-wide { grid-column: auto; }
  .kawaraban-alerts-panel > header { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .kawaraban-shell { position: relative; gap: 8px; padding: 8px 10px 14px; }
  .kawaraban-mobile-tools { position: absolute; top: 8px; left: 10px; z-index: 44; display: block; width: 42px; height: 42px; pointer-events: none; }
  .kawaraban-mobile-tools .mobile-tool-button { width: 42px; height: 42px; pointer-events: auto; }
  body.left-menu-open .kawaraban-mobile-tools { opacity: 0; visibility: hidden; pointer-events: none; }
  .kawaraban-left { position: fixed; left: 0; top: 0; bottom: 0; z-index: 42; width: min(88vw, 330px); max-height: none; overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(0,0,0,.34); }
  body.left-menu-open .kawaraban-left { transform: translateX(0); }
  body.left-menu-open .kawaraban-mobile-backdrop { display: block; }
  .kawaraban-left, .kawaraban-board { border-radius: 10px; }
  .kawaraban-left { gap: 9px; padding: 46px 12px 12px; }
  .kawaraban-account { gap: 7px; }
  .kawaraban-account .avatar-dot { width: 46px; height: 46px; }
  .kawaraban-account strong { font-size: 18px; }
  .kawaraban-event-slots { gap: 5px; }
  .kawaraban-event-slot { min-height: 68px; padding: 5px; border-width: 2px; }
  .kawaraban-event-slot strong { font-size: 11px; line-height: 1.18; }
  .kawaraban-location-panel label { grid-template-columns: 68px minmax(0, 1fr); min-height: 34px; }
  .kawaraban-location-panel > label > span:first-child { font-size: 12px; }
  .kawaraban-current { gap: 6px; }
  .kawaraban-current article:first-of-type { min-height: 62px; }
  .kawaraban-hero { min-height: 56px; padding: 0 12px 0 52px; border-radius: 10px; }
  .kawaraban-hero h1 { font-size: 34px; }
  .kawaraban-hero a { right: 12px; bottom: 8px; font-size: 14px; }
  .kawaraban-board { padding: 7px 10px 12px; }
  .kawaraban-pickup-head { margin-bottom: 6px; }
  .kawaraban-pickup-head h2 { font-size: 24px; }
  .kawaraban-pickup-tools, .kawaraban-event-search-form { gap: 5px; }
  .kawaraban-slider-wrap { flex-basis: 188px; min-height: 188px; margin-inline: -10px; }
  .kawaraban-slider-wrap::before, .kawaraban-slider-wrap::after { width: 26px; }
  .kawaraban-slider { display: flex; align-items: stretch; min-height: 188px; gap: 12px; column-gap: 12px; padding: 0 32px 4px; }
  .kawaraban-event-card { flex: 0 0 min(360px, calc(100vw - 64px)); width: min(360px, calc(100vw - 64px)); min-height: 182px; border-width: 3px; }
  .kawaraban-slider-arrow { width: 30px; height: 44px; }
  .kawaraban-slider-arrow.is-left { left: 2px; }
  .kawaraban-slider-arrow.is-right { right: 2px; }
  .kawaraban-slider-arrow::before { border-top-width: 18px; border-bottom-width: 18px; }
  .kawaraban-slider-arrow.is-left::before { border-right-width: 25px; }
  .kawaraban-slider-arrow.is-right::before { border-left-width: 25px; }
  .kawaraban-essentials { grid-template-columns: minmax(0, 1fr) 86px; gap: 8px; min-height: 284px; padding: 8px; }
  .kawaraban-card-scroll { grid-template-columns: 1fr; grid-auto-rows: minmax(116px, auto); gap: 8px; max-height: 420px; padding-right: 2px; }
  .kawaraban-card-actions { grid-template-columns: 1fr; grid-template-rows: repeat(5, minmax(36px, auto)); gap: 6px; }
  .kawaraban-card-actions .kawaraban-create-button, .kawaraban-card-actions .kawaraban-tag-button, .kawaraban-card-actions .kawaraban-area-link { min-height: 36px; padding-inline: 6px; font-size: 12px; line-height: 1.15; }
  .kawaraban-card-detail, .kawaraban-info-card { padding: 10px; }
  .kawaraban-comment-strip { flex-basis: 132px; min-height: 132px; max-height: 132px; gap: 8px; padding: 8px; }
  .kawaraban-alerts-page { padding: 8px 10px 14px; }
  .kawaraban-alerts-panel { gap: 10px; padding: 14px; border-radius: 10px; }
}

.parliament-shell {
  --parliament-blue: #0014BA;
  --parliament-input-bg: #f3f4f6;
  --parliament-input-text: #111;
  --parliament-input-placeholder: #686b72;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 292px minmax(520px, 1fr);
  overflow: hidden;
  background: #101010;
}
.parliament-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 12px 12px; border-right: 1px solid rgba(255,255,255,.08); background: #101010; overflow: hidden; }
.parliament-left .left-scroll-area { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.parliament-left .left-account { margin: 0 0 10px; padding: 10px 4px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.parliament-left .wallet-connect-button { margin: 0 4px 12px; }
.parliament-viewer-login { margin: 0 0 12px; }
.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-service-nav { display: grid; gap: 4px; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.parliament-service-nav a { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 34px; padding: 0 14px; border-radius: 7px; color: #bfc2d0; font-size: 13px; font-weight: 800; transition: background-color .16s ease, color .16s ease; }
.parliament-service-nav a span { color: #8f96ba; font-size: 16px; text-align: center; }
.parliament-service-nav a:hover, .parliament-service-nav a:focus-visible { background: rgba(255,255,255,.07); color: #fff; outline: 0; }
.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; justify-content: flex-end; gap: 6px; min-width: 0; }
.parliament-filter-row a, .parliament-filter-row span { min-height: 30px; display: grid; place-items: center; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.06); color: #cfd0d8; font-size: 13px; white-space: nowrap; }
.parliament-filter-row a.is-active { background: var(--parliament-blue); color: #fff; }
.parliament-filter-row span { margin-left: 4px; border: 1px solid rgba(255,255,255,.18); background: transparent; }
.parliament-category-filter { display: flex; align-items: center; gap: 4px; margin: 0 0 0 4px; min-width: 0; }
.parliament-category-filter label { display: flex; align-items: center; gap: 6px; margin: 0; }
.parliament-category-filter select { width: 132px; min-height: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: #151515; color: #f1f1f1; font: inherit; font-size: 13px; font-weight: 800; }
.parliament-category-filter input[type="submit"] { width: 42px; min-height: 30px; border: 0; border-radius: 6px; padding: 0; background: rgba(0,20,186,.85); color: #fff; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.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, .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-list { display: grid; gap: 7px; max-height: 284px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.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: var(--parliament-input-bg); color: var(--parliament-input-text); padding: 7px 10px; font: inherit; font-weight: 800; }
.parliament-light-textarea {
  background: var(--parliament-input-bg) !important;
  color: var(--parliament-input-text) !important;
  caret-color: var(--parliament-input-text);
}
.parliament-shell textarea::placeholder,
.parliament-shell input::placeholder { color: var(--parliament-input-placeholder); opacity: 1; }
.parliament-shell textarea:focus-visible,
.parliament-shell input:focus-visible,
.parliament-shell select:focus-visible { outline: 2px solid #aeb8ff; outline-offset: 1px; }
.parliament-new-issue-grid { display: grid; grid-template-columns: 150px minmax(160px, 1fr) 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 dt { flex: 0 0 auto; min-width: 2.5em; white-space: nowrap; }
.parliament-vote-panel dd { flex: 0 0 auto; white-space: nowrap; }
.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) auto; 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: -178px; 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: auto;
  right: 8px;
  bottom: 8px;
  min-height: 28px;
  padding: 4px 8px;
  border-color: rgba(255,255,255,.45);
  background: rgba(12,12,14,.82);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
}
.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: 22px; 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: 56px; z-index: 4; height: 250px; 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-shine { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 10px; pointer-events: 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); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.parliament-comment-dialog { position: relative; z-index: 1; width: min(440px, 92%); display: grid; gap: 8px; padding: 12px; 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 textarea { border: 0; border-radius: 6px; background: var(--parliament-input-bg); color: var(--parliament-input-text); padding: 8px 10px; font: inherit; font-weight: 800; line-height: 1.55; caret-color: var(--parliament-input-text); }
.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(3, minmax(0, 1fr)); gap: 6px; }
.comment-stance-row label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; }
.comment-stance-row input { width: auto; }
.comment-stance-row .is-other { grid-column: 2; }
.chamber-comment-bar { position: absolute; left: 3%; right: 3%; bottom: 8px; 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: var(--parliament-input-bg); color: var(--parliament-input-text); font-weight: 850; line-height: 1.55; caret-color: var(--parliament-input-text); }
.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-comment-stat-card { grid-column: 1 / -1; grid-template-rows: auto 1fr; }
.parliament-comment-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.parliament-comment-stat-button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  color: #d9dbe5;
  text-decoration: none;
}
.parliament-comment-stat-button:nth-child(1) { grid-column: 1; grid-row: 1; }
.parliament-comment-stat-button:nth-child(2) { grid-column: 2; grid-row: 1; }
.parliament-comment-stat-button:nth-child(3) { grid-column: 3; grid-row: 1; }
.parliament-comment-stat-button:nth-child(4) { grid-column: 1; grid-row: 2; }
.parliament-comment-stat-button:nth-child(5) { grid-column: 2; grid-row: 2; }
.parliament-comment-stat-button:nth-child(6) { grid-column: 3; grid-row: 2; }
.parliament-comment-stat-button:nth-child(7) { grid-column: 4; grid-row: 2; }
.parliament-comment-stat-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 900; }
.parliament-comment-stat-button strong { grid-column: 1; color: #fff; font-size: 15px; line-height: 1; }
.parliament-comment-stat-button small { grid-column: 2; grid-row: 1 / 3; color: #aeb0bd; font-size: 11px; white-space: nowrap; }
.parliament-comment-stat-button:hover,
.parliament-comment-stat-button:focus-visible { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.09); }
.parliament-comment-stat-button.is-active { border-color: #d6d857; background: rgba(214,216,87,.14); box-shadow: inset 0 0 0 1px rgba(214,216,87,.18); }
.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-comment-form { grid-column: 1 / -1; }
.parliament-vote-form header, .parliament-comment-form header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.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;
  grid-template-columns: minmax(170px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: minmax(38px, auto) minmax(48px, 1fr) auto;
  gap: 4px 8px;
  min-height: 144px;
}
.parliament-comment-stance-select { grid-column: 1; grid-row: 1; min-width: 0; }
.parliament-position-meter { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-bottom: 14px; color: #d8dbe8; font-size: 12px; font-weight: 900; }
.parliament-inline-comment-form .parliament-position-meter { grid-column: 1; grid-row: 2; min-width: 0; }
.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 { position: absolute; top: calc(100% + 1px); left: clamp(16px, var(--position-label-x), calc(100% - 16px)); transform: translateX(-50%); color: #f7f8ff; font-size: 11px; line-height: 1; white-space: nowrap; }
.parliament-position-number-field { display: grid; grid-template-columns: auto minmax(90px, 132px) minmax(0, 1fr); gap: 8px; align-items: center; color: #d8dbe8; font-size: 12px; font-weight: 900; }
.parliament-inline-comment-form .parliament-position-number-field { grid-column: 1; grid-row: 3; min-width: 0; grid-template-columns: auto minmax(52px, 72px) minmax(0, 1fr); }
.parliament-position-number-field input { min-height: 34px; border: 0; border-radius: 6px; background: var(--parliament-input-bg); color: var(--parliament-input-text); padding: 0 9px; font: inherit; font-weight: 900; }
.parliament-position-number-field small { min-width: 0; color: #aeb0bd; font-weight: 800; }
.parliament-reason-input { grid-column: 1 / -1; min-height: 38px; border: 0; border-radius: 6px; padding: 0 12px; background: var(--parliament-input-bg); color: var(--parliament-input-text); font-weight: 800; }
.parliament-inline-comment-form select, .parliament-inline-comment-form textarea { border: 0; border-radius: 6px; background: var(--parliament-input-bg); color: var(--parliament-input-text); padding: 8px 10px; font: inherit; font-weight: 800; }
.parliament-inline-comment-form textarea { min-height: 70px; line-height: 1.55; }
.parliament-inline-comment-form .parliament-comment-body-input { grid-column: 2; grid-row: 1 / 3; width: 100%; min-height: 0; height: 100%; resize: vertical; }
.parliament-inline-comment-form .parliament-comment-submit { grid-column: 2; grid-row: 3; justify-self: end; width: min(190px, 100%); margin-top: 0; }
.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; scroll-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-tier { flex: 0 0 auto; color: #aeb0bd; font-size: 11px; font-weight: 900; 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-comment-filter-empty { margin: 0; padding: 16px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #aeb0bd; text-align: center; }
.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-checks.is-locked .category-check { opacity: .62; cursor: default; }
.metadata-checks.is-locked input { cursor: default; }
.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; -webkit-backdrop-filter: blur(4px) saturate(1.2); backdrop-filter: blur(4px) saturate(1.2); }
.evaluation-plane::after, .chamber-opinion-shine::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, .chamber-opinion-shine.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: auto; right: 7px; bottom: 7px; z-index: 6; min-height: 28px; padding: 3px 9px; font-size: 11px; }
.parliament-comment .comment-evaluation-toggle { top: auto; right: 7px; bottom: 7px; }
.account-name-with-emblems { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; white-space: nowrap; vertical-align: baseline; }
.account-name-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-switch strong .account-name-with-emblems, .open-post-header strong .account-name-with-emblems, .account-switch strong .account-name-with-emblems { display: inline-flex; align-items: center; }
.author-switch .account-name-with-emblems, .open-post-header .account-name-with-emblems, .account-switch .account-name-with-emblems { width: fit-content; max-width: 100%; }
.post-author strong, .account-switch strong, .comment-card-content > strong, .right-profile-head h2, .open-post-header strong, .kawaraban-account strong { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-author strong:has(.manga-nft-badge[open]), .account-switch strong:has(.manga-nft-badge[open]), .comment-card-content > strong:has(.manga-nft-badge[open]), .open-post-header strong:has(.manga-nft-badge[open]), .kawaraban-account strong:has(.manga-nft-badge[open]) { overflow: visible; }
.right-profile-head h2:has(.manga-nft-badge[open]) { overflow: visible; }
.petal-emblem, .manga-nft-emblem { display: inline-block; flex: 0 0 auto; width: 1em; height: 1em; margin-left: 0; border-radius: 50%; object-fit: cover; vertical-align: -.12em; }
.petal-emblem { border: .08em solid; 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); }
.manga-nft-badge { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; color: #d9ccff; font-size: 1em; line-height: 1; vertical-align: baseline; overflow: visible; }
.manga-nft-badge-summary { display: inline-flex; align-items: center; gap: 2px; width: auto; cursor: pointer; list-style: none; }
.manga-nft-badge-summary::-webkit-details-marker { display: none; }
.manga-nft-emblem { border: .08em solid rgba(205,190,255,.95); box-shadow: 0 0 0 1px rgba(42,22,84,.9), 0 2px 8px rgba(129,92,255,.36); }
.manga-nft-caret, .manga-nft-token-link { color: #d9ccff; font-size: .72em; font-weight: 950; line-height: 1; text-decoration: none; }
.manga-nft-caret { display: inline-block; }
.manga-nft-token-list { position: absolute; z-index: 400; top: calc(100% + 5px); left: 0; display: none; min-width: 112px; max-height: min(420px, 56vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px 7px; border: 1px solid rgba(205,190,255,.35); border-radius: 7px; background: rgba(14,10,25,.96); box-shadow: 0 10px 22px rgba(0,0,0,.42); white-space: nowrap; }
.manga-nft-badge[open] .manga-nft-token-list { display: grid; gap: 5px; }
.manga-nft-badge[open] .manga-nft-caret { transform: rotate(90deg); }
.manga-nft-token-link { display: block; padding: 2px 7px 2px 18px; font-size: .78em; }
.manga-nft-token-link:first-child { padding-left: 7px; }
.manga-nft-token-link:first-child::before { content: "▶︎"; }
.manga-nft-token-link:hover { color: #fff; background: rgba(205,190,255,.14); border-radius: 4px; }

.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; }
.collection-kawaraban-card { position: relative; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--cat-color); border-radius: var(--radius); background: #151515; color: var(--text); }
.collection-kawaraban-card header { position: relative; display: grid; gap: 5px; padding-right: 48px; }
.collection-kawaraban-card header span { color: var(--cat-color); font-size: 12px; font-weight: 900; }
.collection-kawaraban-card h2 { margin: 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.collection-kawaraban-card h2 a { color: inherit; }
.collection-kawaraban-card .post-collection-tools { top: 0; right: 0; }
.collection-kawaraban-image-link { display: block; overflow: hidden; border-radius: 8px; background: #222; aspect-ratio: 16 / 9; }
.collection-kawaraban-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.collection-kawaraban-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; overflow: hidden; color: #f0f0f0; line-height: 1.55; overflow-wrap: anywhere; }
.collection-kawaraban-card footer { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
.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: normal; }
.parliament-supplement-card p + p { margin-top: 0; }
.parliament-supplement-card p br { margin: 0; }
.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: 18px; }
.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%); padding: 18px; }
.profile-editor-heading { margin-bottom: 13px; }
.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: 5px; color: var(--muted); line-height: 1.4; }
.auth-logo { display: block; width: 180px; max-width: 100%; margin: 0 auto 14px; }
.stack-form { display: grid; gap: 7px; }
.login-policy-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; margin: 3px 0; color: #e9e9e9; font-size: 13px; font-weight: 800; line-height: 1.45; }
.login-policy-check input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--accent-color); }
.login-policy-check a { color: #cbd2ff; text-decoration: underline; text-underline-offset: 2px; }
.login-policy-check a:hover, .login-policy-check a:focus-visible { color: #fff; }
.wallet-auth-box { display: grid; gap: 8px; margin: 14px 0; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.04); }
.wallet-auth-note, .wallet-auth-warning { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.55; }
.wallet-auth-warning { color: #f6d58a; }
.auth-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.wallet-auth-box .wallet-status:empty { display: none; }
.profile-settings-card { display: grid; gap: 10px; padding: 13px; 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: 12px; align-items: end; padding-bottom: 7px; 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: 8px 10px; }
.profile-field { display: grid; min-width: 0; gap: 4px; }
.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.35; }
.profile-field input, .profile-field select { min-height: 40px; box-sizing: border-box; }
.wallet-address-display { color: #dcdcff; background: rgba(255,255,255,.06); }
.profile-wallet-actions { margin-top: 0; }
.profile-wallet-actions .primary-button { margin-top: 0; }
.profile-wallet-actions .wallet-auth-note { align-self: center; }
.profile-avatar-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; }
.profile-avatar-field input[type="file"], .vtuber-material-editor input[type="file"] { width: 100%; min-width: 0; }
.avatar-file-picker { display: flex; align-items: center; min-width: 0; }
.avatar-file-input { position: absolute; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avatar-file-button { display: inline-flex; align-items: center; min-height: 38px; max-width: 100%; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: #242424; color: #fff; cursor: pointer; overflow-wrap: anywhere; }
.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: 10px; min-height: 58px; }
.avatar-upload-preview img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #ff8a8a; }
.password-change-box, .profile-pin-editor { display: grid; gap: 6px; margin-top: 5px; padding: 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); }
.password-change-box h2, .profile-pin-editor h2 { margin: 0; font-size: 18px; }
.password-change-box p, .profile-pin-editor p { margin: 0; color: var(--muted); line-height: 1.35; }
.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; }
.vtuber-material-editor { display: grid; gap: 7px; margin-top: 5px; padding: 12px; 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-voice-layout { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: stretch; }
.vtuber-bust-preview { display: grid; grid-template-rows: auto auto; gap: 6px; margin: 0; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(0,0,0,.2); align-content: start; }
.vtuber-bust-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: radial-gradient(circle at 50% 30%, #353535, #141414 72%); }
.vtuber-bust-stage img, .vtuber-bust-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.vtuber-bust-stage [hidden] { display: none !important; }
.vtuber-bust-preview figcaption { color: var(--muted); font-size: 11px; text-align: center; }
.vtuber-bust-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); text-align: center; }

.vtuber-voice-fields { display: grid; gap: 7px; align-content: start; min-width: 0; }
.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.38; }
.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; }
.vrm-file-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.vrm-file-input { position: absolute; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.vrm-file-input:focus + .vrm-file-button { outline: 2px solid #fff; outline-offset: 2px; }
.vrm-file-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.vrm-file-name { min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 5px; background: rgba(255,255,255,.06); color: #fff; 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; gap: 10px; align-items: center; min-height: 58px; 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.has-image { grid-template-columns: auto 74px minmax(0, 1fr) auto; }
.profile-pin-option.no-image { grid-template-columns: auto minmax(0, 1fr) auto; }
.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 { min-width: 0; overflow: hidden; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; }
.profile-pin-option.has-image .profile-pin-text { -webkit-line-clamp: 1; }
.profile-pin-option.no-image .profile-pin-text { -webkit-line-clamp: 2; }
.profile-pin-order { min-width: 36px; color: var(--accent-color); font-size: 12px; text-align: right; }
.profile-pin-empty { color: var(--muted); }
.profile-guide-default, .profile-guide-empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.profile-guide-settings { margin-top: 7px; }
.profile-guide-list { display: grid; }
.profile-guide-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 46px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.1); }
.profile-guide-row:first-child { border-top: 0; }
.profile-guide-identity { display: flex; min-width: 0; gap: 9px; align-items: center; }
.profile-guide-identity .avatar-dot { flex: 0 0 auto; width: 34px; height: 34px; }
.profile-guide-identity > span { display: grid; min-width: 0; gap: 1px; }
.profile-guide-identity strong, .profile-guide-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-guide-identity small { color: var(--muted); }
.profile-guide-state { color: #c7b8ff; font-size: 11px; font-weight: 850; white-space: nowrap; }
.profile-guide-remove { min-height: 34px; margin: 0; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
.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; }
  .auth-panel { padding: 16px; }
  .auth-panel h1 { margin-bottom: 10px; line-height: 1.2; }
  .auth-panel p { line-height: 1.55; }
  .stack-form { gap: 8px; }
  .wallet-auth-box { gap: 8px; margin: 9px 0; padding: 10px; }
  .wallet-auth-note { line-height: 1.45; }
  .quiet-link { margin-top: 9px; }
  .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-guide-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .profile-guide-state { grid-column: 1; padding-left: 43px; }
  .profile-guide-remove { grid-column: 2; grid-row: 1 / span 2; }
  .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; }
.disclosure-summary { cursor: pointer; list-style: none; }
.disclosure-summary::-webkit-details-marker { display: none; }
.disclosure-summary .when-open { display: none; }
details[open] > .disclosure-summary .when-closed { display: none; }
details[open] > .disclosure-summary .when-open { display: inline; }
.emergency-strip-stack { flex: 0 0 auto; display: grid; gap: 5px; margin: 0 10px 6px; }
.emergency-strip-list { display: grid; gap: 5px; }
.emergency-strip { display: grid; gap: 4px; padding: 5px 8px; border: 2px solid rgba(255, 104, 82, .86); background: #171111; color: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset; }
.emergency-strip-head { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; gap: 5px; align-items: center; min-width: 0; }
.emergency-strip-signal { padding: 2px 5px; background: #c51d2b; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0; line-height: 1; }
.emergency-alert-id { display: inline-flex; align-items: center; width: fit-content; padding: 2px 5px; border: 1px solid rgba(255, 209, 102, .6); border-radius: 4px; background: rgba(255, 209, 102, .1); color: #ffe7a0; font: inherit; font-size: 10px; font-weight: 900; line-height: 1; white-space: nowrap; }
.emergency-alert-id-button { cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.emergency-alert-id-button:hover, .emergency-alert-id-button:focus-visible { border-color: #ffe7a0; background: rgba(255, 209, 102, .2); color: #fff4cf; outline: none; }
.emergency-strip-time { padding: 2px 5px; border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 900; line-height: 1; white-space: nowrap; }
.emergency-strip-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(14px, 1.25vw, 18px); font-weight: 950; line-height: 1; -webkit-text-stroke: .25px #fff; text-shadow: 0 2px 2px rgba(0,0,0,.42); }
.emergency-strip-area { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: clamp(12px, 1.1vw, 15px); font-weight: 900; line-height: 1.1; }
.emergency-presence-button { border-color: rgba(255,255,255,.22); background: #00BA14; color: #fff; }
.emergency-strip .emergency-official-link, .emergency-strip .emergency-presence-button { min-height: 28px; padding: 4px 7px; font-size: 10px; }
.emergency-strip-note { min-width: 0; margin: 0; overflow: hidden; color: #aaa; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.emergency-presence-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 4px 6px; border: 1px solid rgba(0, 186, 20, .58); border-radius: 5px; background: rgba(0, 85, 10, .22); color: #fff; }
.emergency-presence-copy { min-width: 0; display: grid; gap: 2px; }
.emergency-presence-copy strong { min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.emergency-presence-copy small { min-width: 0; overflow: hidden; color: #b7bbb7; font-size: 9px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.emergency-presence-form { margin: 0; }
.emergency-strip-disclosure { min-width: 0; }
.emergency-strip-disclosure.is-presence-sent { display: block; padding: 0; border-color: rgba(0, 186, 20, .72); }
.emergency-presence-summary { display: grid; grid-template-areas: "state title toggle" "state note toggle"; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1px 6px; align-items: center; min-height: 34px; padding: 4px 6px; background: rgba(0, 85, 10, .28); color: #fff; }
.emergency-presence-state { grid-area: state; padding: 3px 5px; border-radius: 4px; background: #00BA14; color: #fff; font-size: 10px; font-weight: 900; white-space: nowrap; }
.emergency-presence-summary strong { grid-area: title; min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.emergency-presence-summary .emergency-alert-id { margin-right: 4px; vertical-align: middle; }
.emergency-presence-summary small { grid-area: note; min-width: 0; overflow: hidden; color: #b7bbb7; font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.emergency-disclosure-label { grid-area: toggle; font-size: 10px; font-weight: 900; white-space: nowrap; }
.emergency-strip-detail { display: grid; gap: 4px; padding: 5px 8px; border-top: 1px solid rgba(255,255,255,.12); }
.profile-presence-line { display: grid; grid-template-columns: minmax(62px, 74px) minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
.profile-presence-line > p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emergency-presence-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-width: 0; width: 100%; }
.emergency-presence-slot { display: grid; place-items: center; min-width: 0; min-height: 18px; overflow: hidden; border: 2px solid #168cff; border-radius: 999px; padding: 2px 1px; background: transparent; color: #168cff; font: inherit; font-size: clamp(8px, .65vw, 9px); font-weight: 900; letter-spacing: 0; line-height: 1; text-overflow: clip; white-space: nowrap; }
.emergency-presence-slot.is-active { cursor: pointer; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.emergency-presence-slot.is-active:hover, .emergency-presence-slot.is-active:focus-visible { background: rgba(22, 140, 255, .2); color: #70b8ff; box-shadow: 0 0 0 2px rgba(22, 140, 255, .18); outline: none; }
.emergency-presence-slot.is-empty { visibility: hidden; }
.timeline-emergency-alert-entry { min-width: 0; }
.timeline-emergency-alert-entry .emergency-strip { margin: 0; border-left-width: 7px; }
.timeline-emergency-alert-entry .emergency-strip-signal::after { content: "・記録"; }
.emergency-presence-modal[hidden] { display: none; }
.emergency-presence-modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 18px; }
.emergency-presence-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, .68); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); cursor: default; }
.emergency-presence-dialog { position: relative; z-index: 1; display: grid; gap: 10px; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 2px solid rgba(255, 104, 82, .86); border-left-width: 7px; border-radius: 7px; padding: 14px; background: #171313; color: #fff; box-shadow: 0 22px 70px rgba(0, 0, 0, .58); }
.emergency-presence-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.emergency-presence-dialog > header > span { width: fit-content; padding: 4px 7px; border: 1px solid rgba(255, 209, 102, .62); border-radius: 4px; background: rgba(255, 209, 102, .1); color: #ffe7a0; font-size: 11px; font-weight: 900; }
.emergency-presence-dialog h2 { margin: 0; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.35; overflow-wrap: anywhere; }
.emergency-presence-dialog dl { display: grid; gap: 6px; margin: 0; }
.emergency-presence-dialog dl > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: start; }
.emergency-presence-dialog dt { color: #ffb2a8; font-size: 11px; font-weight: 900; }
.emergency-presence-dialog dd, .emergency-presence-dialog p { margin: 0; color: #f0eeee; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.emergency-presence-dialog > p { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 9px; }
.emergency-presence-followers[hidden] { display: none; }
.emergency-presence-followers { min-height: 64px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 9px; }
.emergency-presence-follower-results { display: grid; gap: 8px; }
.emergency-presence-follower-results > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.emergency-presence-follower-results > header strong { color: #fff; font-size: 13px; }
.emergency-presence-follower-results > header span { color: #70b8ff; font-size: 11px; font-weight: 900; }
.emergency-presence-follower-results ul { display: grid; gap: 5px; max-height: min(38dvh, 300px); margin: 0; overflow-y: auto; padding: 0; list-style: none; }
.emergency-presence-follower-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; padding: 6px 8px; background: rgba(255, 255, 255, .035); }
.emergency-presence-follower { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; align-items: center; min-width: 0; color: #fff; text-decoration: none; }
.emergency-presence-follower .avatar-dot { width: 30px; height: 30px; }
.emergency-presence-follower > span { display: grid; min-width: 0; }
.emergency-presence-follower strong, .emergency-presence-follower small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emergency-presence-follower strong { font-size: 12px; }
.emergency-presence-follower small { color: #aaa; font-size: 10px; }
.emergency-presence-follower-state { color: #54dc63; font-size: 9px; font-weight: 900; white-space: nowrap; }
.emergency-presence-follower-results > p, .emergency-presence-followers > div > p { margin: 0; color: #bcb8b8; font-size: 11px; line-height: 1.55; }
.emergency-presence-followers-login { display: inline-grid; width: fit-content; min-height: 30px; place-items: center; margin-top: 7px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; padding: 5px 10px; background: #168cff; color: #fff; font-size: 11px; font-weight: 900; text-decoration: none; }
.emergency-presence-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.emergency-presence-dialog footer small { color: #aaa; font-size: 9px; line-height: 1.35; }
.emergency-presence-dialog .emergency-official-link { flex: 0 0 auto; display: inline-grid; place-items: center; min-height: 32px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; padding: 5px 9px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 11px; font-weight: 900; }
.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; }

@media (min-width: 1101px) {
  .timeline-column.has-emergency-alerts { display: block; overflow-y: auto; overscroll-behavior-y: contain; }
  .timeline-column.has-emergency-alerts .timeline-fixed-controls { position: sticky; top: 0; z-index: 20; }
  .timeline-column.has-emergency-alerts .timeline-scroll { min-height: 100%; overflow-y: visible; }
}

@media (max-width: 560px) {
  .emergency-presence-modal { padding: 10px; }
  .emergency-presence-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 12px; }
  .emergency-presence-dialog footer { align-items: stretch; flex-direction: column; }
  .emergency-presence-dialog .emergency-official-link { width: 100%; }
}

.manga-shell { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding: 16px clamp(12px, 1.8vw, 28px) 10px; overflow: hidden; background-color: #101010; background-image: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.8)), var(--manga-bg-image); background-size: cover; background-position: center; color: #f6f6f6; }
.manga-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 6px; }
.manga-head p, .manga-head h1, .manga-head span { margin: 0; }
.manga-head p { color: var(--accent-color); font-size: 11px; font-weight: 950; letter-spacing: .16em; }
.manga-head h1 { margin-top: 3px; font-size: clamp(24px, 3vw, 40px); line-height: 1; }
.manga-title-group { min-width: 0; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 14px; width: 100%; }
.manga-title-row { display: flex; align-items: end; gap: clamp(12px, 2vw, 24px); min-width: 0; }
.manga-title-link { color: inherit; text-decoration: none; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.manga-title-link:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.manga-support-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 2px; }
.manga-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 10px; min-width: 0; }
.manga-wallet-copy { width: fit-content; }
.manga-head span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.manga-head small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8e8e8e; font-size: 11px; font-weight: 800; text-align: left; }
.manga-timeline-back { margin-left: auto; }
.manga-reader-wrap { min-height: 0; height: min(84dvh, calc(100dvh - 94px), 940px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.manga-reader { min-height: 0; display: flex; align-items: stretch; gap: clamp(14px, 1.7vw, 24px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 3px 2px 10px; scrollbar-gutter: stable; }
.manga-page-card { flex: 0 0 auto; height: 100%; scroll-snap-align: start; min-width: 0; }
.manga-page-card figure { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; margin: 0; overflow: hidden; background: transparent; }
.manga-page-image { display: block; align-self: start; width: auto; max-width: min(86vw, 1120px); max-height: calc(100% - 34px); height: auto; object-fit: contain; object-position: left top; background: rgba(0,0,0,.82); box-shadow: 0 10px 28px rgba(0,0,0,.34); }
.manga-page-card figcaption { display: flex; align-items: center; min-height: 32px; padding: 0 0 4px; color: #f6f6f6; font-size: 13px; }
.manga-owner { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: min(56vw, 460px); padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.48); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-size: 13px; font-weight: 950; }
.manga-owner .avatar-dot { width: 24px; height: 24px; flex: 0 0 auto; }
.manga-owner-placeholder::after { content: "S"; color: #fff; font-size: 14px; font-weight: 950; }
.manga-owner span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.manga-owner-link { flex: 0 1 auto; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-color); text-decoration: none; }
.manga-owner-link:hover { text-decoration: underline; }
.manga-page-arrow { align-self: center; width: 42px; height: min(60vh, 640px); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(0,0,0,.36); color: #fff; font-size: 24px; font-weight: 950; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.manga-page-arrow:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.manga-empty { align-self: center; justify-self: center; width: min(620px, 100%); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 28px; background: #151515; text-align: center; }
.manga-empty h2, .manga-empty p { margin: 0; }
.manga-empty p { margin-top: 10px; color: var(--muted); line-height: 1.7; }
.wallet-shell .primary-button { display: inline-flex; width: auto; margin-top: 18px; padding-inline: 18px; }
.wallet-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.wallet-action-row .primary-button { margin-top: 0; }
.wallet-status { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.6; }

@media (max-width: 820px) {
  .manga-shell { min-height: calc(100vh - 58px); overflow: visible; gap: 6px; padding: 8px 10px 10px; }
  .manga-head { align-items: start; flex-direction: column; gap: 7px; padding-bottom: 6px; }
  .manga-head h1 { margin-top: 1px; }
  .manga-head span { margin-top: 5px; line-height: 1.35; }
  .manga-title-row { align-items: start; flex-direction: column; gap: 6px; }
  .manga-title-group { display: grid; gap: 6px; }
  .manga-support-label { order: -1; flex-basis: 100%; font-size: 11px; font-weight: 900; }
  .manga-head-actions { justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; }
  .manga-wallet-copy, .manga-timeline-back { min-height: 32px; padding: 7px 9px; font-size: 12px; }
  .manga-support-actions { align-items: start; flex-direction: row; gap: 6px; }
  .manga-reader-wrap { height: min(81dvh, calc(100dvh - 132px), 720px); grid-template-columns: 1fr; gap: 6px; }
  .manga-reader { overflow-x: auto; }
  .manga-page-image { max-width: 88vw; }
  .manga-page-arrow { width: 100%; height: 32px; }
  .manga-page-arrow-left { order: 2; }
  .manga-reader { order: 1; }
  .manga-page-arrow-right { order: 3; }
}

.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-runbook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 4px; }
.admin-runbook > div { padding: 13px 15px; border: 1px solid rgba(20,171,171,.34); border-radius: 6px; background: rgba(20,171,171,.08); }
.admin-runbook strong { display: block; margin-bottom: 7px; color: #fff; font-size: 14px; }
.admin-runbook ol, .admin-runbook ul { display: grid; gap: 5px; margin: 0; padding-left: 1.3em; color: #d7d8df; font-size: 12px; line-height: 1.65; }
.admin-runbook p { margin: 0; color: #d7d8df; font-size: 12px; line-height: 1.75; }
.admin-runbook li::marker { color: #14ABAB; font-weight: 900; }
.admin-runbook-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.admin-metrics article { display: grid; gap: 4px; min-height: 88px; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-top: 3px solid #14ABAB; border-radius: 6px; background: #171717; }
.admin-metrics span { color: #bfc1cb; font-size: 11px; font-weight: 900; }
.admin-metrics strong { color: #fff; font-size: clamp(22px, 3vw, 34px); line-height: 1; }
.admin-metrics small { color: #9fa2ad; font-size: 11px; line-height: 1.45; }
.admin-operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 12px; align-items: stretch; margin: 16px 0; }
.admin-broadcast-panel { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid rgba(20,171,171,.34); border-radius: 6px; background: rgba(20,171,171,.08); }
.admin-broadcast-panel header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.admin-broadcast-panel strong { color: #fff; font-size: 17px; }
.admin-broadcast-panel span { color: #bfc1cb; font-size: 12px; }
.admin-broadcast-form { display: grid; gap: 8px; align-items: stretch; }
.admin-broadcast-form input, .admin-broadcast-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: #101010; color: #fff; padding: 9px 10px; font: inherit; }
.admin-broadcast-form button { min-height: 42px; }
.admin-analytics-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; background: #151515; }
.admin-analytics-panel.is-loading { opacity: .72; pointer-events: none; }
.admin-analytics-panel > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; }
.admin-analytics-panel > header strong { display: block; color: #fff; font-size: 18px; }
.admin-analytics-panel > header span { color: #aeb1bc; font-size: 12px; }
.admin-analytics-layout { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; align-items: stretch; min-height: 0; }
.admin-analytics-options { display: grid; gap: 10px; align-content: start; width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #101010; }
.admin-analytics-options h2 { margin: 0; color: #fff; font-size: 17px; }
.admin-analytics-form { display: grid; gap: 8px; }
.admin-analytics-form label { display: grid; gap: 4px; color: #cfd1d9; font-size: 11px; font-weight: 900; }
.admin-analytics-form select, .admin-analytics-form input { width: 100%; min-height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: #101010; color: #fff; padding: 0 8px; }
.admin-analytics-form input[type="submit"] { background: #14ABAB; color: #fff; font-weight: 900; cursor: pointer; }
.admin-analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-analytics-card { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; align-content: stretch; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #101010; }
.admin-analytics-card-single { margin-top: 2px; }
.admin-analytics-card h2 { margin: 0; color: #fff; font-size: 17px; }
.admin-chart-series { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 7px; min-height: 0; }
.admin-chart-series header { display: flex; justify-content: space-between; gap: 10px; color: #dfe0e6; font-size: 12px; }
.admin-chart-series header span { color: var(--series-color, #BA14BA); font-weight: 900; }
.admin-chart-plot { --series-color: #BA14BA; --chart-x-axis-height: 40px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; min-height: 128px; }
.admin-chart-plot.is-large { height: clamp(260px, 46vh, 420px); min-height: 260px; }
.admin-chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: end; padding: 0 0 var(--chart-x-axis-height); color: #8f929d; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-chart-body { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) var(--chart-x-axis-height); gap: 4px; }
.admin-chart-plot.is-large .admin-chart-body { grid-template-rows: minmax(0, 1fr) var(--chart-x-axis-height); }
.admin-chart-bars { position: relative; min-height: 0; height: 100%; display: flex; align-items: end; gap: 4px; padding: 7px 7px 0; border-left: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); border-radius: 4px 4px 0 0; background:
  linear-gradient(to top, rgba(255,255,255,.1) 1px, transparent 1px) 0 0 / 100% 50%,
  #171717; }
.admin-chart-plot.is-large .admin-chart-bars { height: 100%; min-height: 0; gap: 7px; }
.admin-chart-bars span { flex: 1 1 0; min-width: 4px; height: 100%; display: flex; align-items: end; justify-content: center; }
.admin-chart-bars span.is-stacked { flex-direction: column-reverse; align-items: center; justify-content: flex-start; }
.admin-chart-bars i { display: block; width: min(100%, 18px); height: max(3px, var(--bar-height)); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bar-color, var(--series-color)) 88%, white), var(--bar-color, var(--series-color))); box-shadow: 0 0 10px color-mix(in srgb, var(--bar-color, var(--series-color)) 34%, transparent); }
.admin-chart-bars span.is-stacked i { width: min(100%, 22px); border-radius: 0; box-shadow: none; }
.admin-chart-bars span.is-stacked i:first-child { border-radius: 0 0 3px 3px; }
.admin-chart-bars span.is-stacked i:last-child { border-radius: 3px 3px 0 0; }
.admin-chart-x-axis { min-height: var(--chart-x-axis-height); display: flex; gap: 4px; padding-left: 7px; color: #8f929d; font-size: 9px; font-weight: 800; }
.admin-chart-x-axis span { flex: 1 1 0; min-width: 0; overflow: hidden; text-align: center; white-space: nowrap; transform: rotate(-35deg); transform-origin: top center; }
.admin-chart-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #cfd1d9; font-size: 12px; font-weight: 800; }
.admin-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.admin-chart-legend i { width: 11px; height: 11px; border-radius: 2px; background: var(--segment-color); box-shadow: 0 0 8px color-mix(in srgb, var(--segment-color) 35%, transparent); }
.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; }
.classum-admin { display: grid; gap: 12px; line-height: 1.35; max-height: min(calc(100dvh - 112px), 980px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 4px; }
.classum-admin h1, .classum-admin h2, .classum-admin p { margin-top: 0; margin-bottom: 0; }
.classum-admin h1 { font-size: 22px; line-height: 1.15; }
.classum-admin h2 { font-size: 15px; line-height: 1.25; }
.classum-admin-heading { margin-bottom: 0; }
.classum-admin-block { display: grid; gap: 8px; padding: 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; background: #171717; }
.classum-opening-form { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(170px, .7fr)) auto; gap: 7px; align-items: center; }
.classum-search-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 7px; }
.classum-opening-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.classum-opening-tabs a { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; color: #ddd; line-height: 1.25; }
.classum-opening-tabs a.is-current { border-color: #7180ff; background: rgba(0,20,186,.24); color: #fff; }
.classum-opening-tabs span, .classum-candidate-list span { color: #aaa; font-size: 11px; }
.classum-opening-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.classum-opening-actions { display: flex; align-items: center; gap: 8px; }
.classum-opening-actions form { margin: 0; }
.classum-invite-list, .classum-candidate-list { display: grid; gap: 5px; max-height: min(52vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; scrollbar-gutter: stable; }
.classum-invite-list article, .classum-candidate-list article { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: rgba(255,255,255,.025); }
.classum-candidate-list article > div { display: grid; gap: 1px; }
.classum-admin-history { padding: 10px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; }
.classum-admin-history summary { cursor: pointer; font-weight: 850; }
.classum-admin-history[open] summary { margin-bottom: 8px; }
.classum-admin-empty { padding: 12px; color: #bbb; }
.classum-admin-help { color: #aaa; font-size: 11px; }
.classum-ad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.classum-ad-card { display: grid; gap: 7px; min-width: 0; padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: rgba(255,255,255,.025); }
.classum-ad-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.classum-ad-card header span { color: #aaa; font-size: 10px; }
.classum-ad-preview-frame { display: grid; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 3px; background: #101010; }
.classum-ad-preview { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.classum-ad-preview-empty { place-items: center; color: #777; font-size: 11px; }
.classum-ad-form { display: grid; gap: 5px; }
.classum-ad-form input[type="file"] { min-width: 0; width: 100%; font-size: 10px; }
.classum-ad-form input[type="url"] { min-width: 0; width: 100%; }
@media (max-width: 920px) { .classum-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .classum-admin { max-height: none; overflow: visible; padding-right: 0; }
  .vtuber-voice-layout { grid-template-columns: 1fr; }
  .classum-opening-form { grid-template-columns: 1fr; }
  .classum-opening-summary, .classum-invite-list article, .classum-candidate-list article { align-items: stretch; flex-direction: column; }
  .classum-opening-actions { align-items: stretch; flex-direction: column; }
  .classum-ad-grid { grid-template-columns: 1fr; }
}

/* Claßum運営: keep the workflow centered and let related records breathe. */
.classum-admin-shell { display: block; }
.classum-admin {
  width: min(100%, 1240px);
  margin-inline: auto;
  box-sizing: border-box;
  max-height: min(calc(100dvh - 112px), 980px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}
.classum-admin > * { min-width: 0; }
.classum-admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.classum-opening-tabs { min-width: 0; }
.classum-opening-tabs a { min-width: 0; }
.classum-opening-tabs strong, .classum-opening-tabs span { overflow-wrap: anywhere; }
.classum-ad-grid {
  /* Four global slots remain visible as one coherent row on desktop. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.classum-ad-card { padding: 10px; }
.classum-ad-card > * { min-width: 0; }
.classum-ad-card header { min-height: 22px; }
.classum-ad-card .classum-ad-form .primary-button,
.classum-ad-card > .quiet-button { width: 100%; }
.classum-admin-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.classum-admin-people-grid > .classum-admin-block { min-width: 0; }
.classum-invite-list article, .classum-candidate-list article { min-width: 0; }
.classum-invite-list article > span, .classum-candidate-list article > div,
.classum-candidate-list article > span { min-width: 0; overflow-wrap: anywhere; }
.classum-candidate-list article > div { flex: 1 1 auto; }
.classum-admin-history .classum-invite-list article > span { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .classum-admin {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .classum-admin-people-grid { grid-template-columns: 1fr; }
  .classum-ad-grid { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .classum-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.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-approval-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .75fr); gap: 12px; align-items: center; padding: 9px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(255,255,255,.035); }
.vtuber-approval-file, .vtuber-approval-user, .vtuber-approval-user > span { display: grid; gap: 2px; min-width: 0; }
.vtuber-approval-file small, .vtuber-approval-user small { color: #aaa; overflow-wrap: anywhere; }
.vtuber-approval-user { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.vtuber-approval-user .avatar-dot, .vtuber-approval-user img { width: 42px; height: 42px; }
.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) {
  .admin-runbook, .admin-runbook-compact { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-broadcast-form, .admin-analytics-grid, .admin-analytics-layout, .admin-operations-grid { grid-template-columns: 1fr; }
  .vtuber-approval-record { grid-template-columns: 1fr; }
  .vtuber-review-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtuber-withdraw-zone { align-items: stretch; flex-direction: column; }
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .suni-shell { grid-template-columns: 280px minmax(420px, 560px) 300px; gap: 20px; margin-inline: 16px; }
  .side-menu { margin-left: 44px; font-size: clamp(17px, 1.35vw, 21px); }
  .category-tabs.vertical { gap: 12px; }
}

@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: 0 18px 22px; 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: 0; }
  .left-account { padding-top: 22px; }
  .category-tabs.vertical { top: -48px; z-index: 2; padding-top: 8px; }
  .category-search { flex: 0 0 auto; min-height: 0; }
  .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: 8; 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: 132px; left: 18%; right: 18%; height: 92px; }
  .chamber-own-focus-toggle { top: 194px; }
  .chamber-opinion-field { left: 3%; right: 3%; height: 280px; 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 { gap: 8px; }
  .timeline-action-row .timeline-compose-button { margin-inline: auto; }
  .ended-job-toggle { position: static; transform: none; max-width: none; }
  .timeline-action-row .ended-job-toggle { grid-column: 1 / -1; 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; }
  .parliament-main > .emergency-strip-stack { display: none; }
  .mobile-emergency-slot .emergency-strip-stack { margin: 0; }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .parliament-main { width: min(552px, 100%); margin-inline: auto; }
}

@media (max-width: 640px) {
  .parliament-page .app-window { overflow: visible; }
  .topbar { align-items: center; flex-wrap: nowrap; gap: 8px; min-height: 42px; padding: 4px 8px 5px; }
  .brand { flex: 0 0 auto; min-width: 92px; }
  .brand img { width: 92px; height: 31px; }
  .topnav { flex: 1 1 auto; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
  .topnav > a:not(.auth-link), .topnav > .pwa-install-button { display: none; }
  .auth-form { align-items: center; }
  .auth-link { min-height: 31px; padding: 6px 9px; font-size: 12px; line-height: 1.1; }
  .flash { margin: 8px 10px 0; padding: 8px 10px; }
  .suni-shell { margin: 8px 10px 22px; }
  .timeline-fixed-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: center; padding: 4px 46px 8px; }
  .mobile-control-bar { position: absolute; top: 4px; left: 0; right: 0; display: block; height: 38px; margin: 0; pointer-events: none; }
  .mobile-tool-button { width: 38px; height: 38px; }
  .mobile-control-bar .mobile-tool-button { position: absolute; top: 0; pointer-events: auto; }
  .mobile-control-bar [data-open-left-menu] { left: 0; }
  .mobile-account-button { right: 0; }
  .timeline-column { min-height: calc(100vh - 72px); }
  .timeline-category-tabs { display: contents; margin: 0; padding: 0; }
  .timeline-category-tabs .tab { width: 100%; min-width: 0; min-height: 32px; padding: 4px 2px 6px; font-size: 17px; line-height: 1; text-align: center; }
  .timeline-category-tabs .tab-exchange { grid-column: 1; grid-row: 1; }
  .timeline-category-tabs .tab-job { grid-column: 2; grid-row: 1; }
  .timeline-category-tabs .tab-historical { grid-column: 3; grid-row: 1; }
  .timeline-category-tabs .tab-hospitality { grid-column: 1; grid-row: 2; }
  .timeline-category-tabs .tab-transport { grid-column: 2; grid-row: 2; }
  .timeline-category-tabs .tab-hermitage { grid-column: 3; grid-row: 2; }
  .central-search { grid-column: 1 / -1; grid-row: 3; width: min(280px, 82vw); margin: 2px auto 0; }
  .central-search input { height: 34px; text-align: center; }
  .timeline-action-row { grid-column: 1 / -1; grid-row: 4; gap: 7px; min-height: 38px; padding-top: 1px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .timeline-action-row:has(.timeline-action-group) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-action-row .timeline-action-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .timeline-action-row .timeline-action-group form,
  .timeline-action-row .timeline-action-group .timeline-scope-button { width: 100%; }
  .timeline-action-row .timeline-action-group.is-left { grid-column: 1; grid-row: 1; }
  .timeline-action-row .timeline-action-group.is-right { grid-column: 2; grid-row: 1; }
  .timeline-action-row .timeline-compose-button { grid-column: 1 / -1; grid-row: 2; width: min(220px, 64%); max-width: 220px; min-height: 38px; padding: 8px 12px; }
  .timeline-action-row .timeline-scope-button { min-width: 64px; min-height: 34px; padding: 7px 11px; }
  .composer-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
  .left-column { width: min(86vw, 312px); padding: 16px 14px; }
  .left-scroll-area { padding-top: 32px; }
  .mobile-panel-close { top: 10px; right: 10px; width: 30px; height: 30px; font-size: 23px; }
  .chat-shell { gap: 10px; padding: 8px 10px 20px; }
  .chat-list-panel, .chat-room-panel { padding: 12px; }
  .chat-head { margin: 0 0 10px; }
  .mutual-search-form, .mutual-user-panel { margin-bottom: 9px; }
  .chat-room-head { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; padding-bottom: 9px; }
  .chat-room-head .avatar-dot { width: 38px; height: 38px; }
  .chat-message-list { padding: 8px 0; }
  .chat-message-form { gap: 8px; padding-top: 9px; }
  .chat-message-form textarea { min-height: 52px; }
  .parliament-shell { margin: 6px 8px 18px; padding: 0; }
  .parliament-mobile-tools { position: sticky; top: 0; z-index: 32; display: block; height: 0; margin: 0; pointer-events: none; }
  .parliament-mobile-tools .mobile-tool-button { position: absolute; top: 0; pointer-events: auto; }
  .parliament-mobile-tools [data-open-left-menu] { left: 0; }
  .parliament-mobile-tools .mobile-account-button { right: 0; }
  .parliament-mobile-tools .mobile-account-button .avatar-dot { width: 26px; height: 26px; }
  .parliament-left, .parliament-right { position: fixed; top: 0; bottom: 0; z-index: 42; width: min(88vw, 330px); max-height: none; overflow-y: auto; background: #101010; transition: transform .22s ease; box-shadow: 0 18px 50px rgba(0,0,0,.38); }
  .parliament-left { left: 0; width: min(84vw, 318px); padding: 46px 15px 14px; transform: translateX(-105%); border-right: 1px solid rgba(255,255,255,.12); }
  .parliament-right { right: 0; padding: 46px 12px 14px; transform: translateX(105%); border-left: 1px solid rgba(255,255,255,.12); }
  body.left-menu-open .parliament-left { transform: translateX(0); }
  body.right-menu-open .parliament-right { transform: translateX(0); }
  body.left-menu-open .parliament-mobile-backdrop, body.right-menu-open .parliament-mobile-backdrop { display: block; }
  .parliament-logo { max-height: 54px; }
  .parliament-menu a { min-height: 36px; padding: 0 10px; }
  .parliament-main { position: relative; padding: 0 0 14px; }
  .parliament-board-head { gap: 8px; margin-bottom: 6px; }
  .parliament-board-head:not(.parliament-chamber-head) > h1 { display: grid; align-items: center; min-height: 38px; margin-inline: 42px; }
  .parliament-issue-body { padding: 9px 10px; }
  .parliament-tool-grid { gap: 7px; margin-top: 8px; }
  .notification-shell { padding: 8px 10px 20px; }
  .notification-head { margin: 0 0 12px; }
  .notification-list { gap: 8px; }
  .notification-card { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; padding: 10px; }
  .notification-card .avatar-dot, .notification-follow .avatar-dot { width: 32px; height: 32px; }
  .static-shell { padding: 8px 10px 22px; }
  .static-panel { padding: 16px 14px 20px; border-left-width: 4px; }
  .static-head { margin: 4px 0 14px; }
  .static-section { padding: 14px 0; }
  .static-section p { line-height: 1.72; }
  .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: 16px 0; }
  .legal-definition-list > div { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
  .legal-footer { padding: 15px; }
  .vrm-file-picker { grid-template-columns: 1fr; }
  .of-editor-note { grid-template-columns: 1fr; gap: 5px; padding: 13px; }
  .of-prose { padding: 22px 0; }
  .of-prose h2 { margin-bottom: 14px; }
  .of-prose p { font-size: 15px; line-height: 1.82; }
  .of-prose p + p { margin-top: 13px; }
  .of-article-figure { margin-top: 22px; }
  .parliament-guide-logo { margin-bottom: 16px; }
  .guide-prose { padding: 22px 0; }
  .guide-prose p, .guide-prose li { font-size: 14px; line-height: 1.75; }
  .guide-prose blockquote { margin: 16px 0; padding: 13px; }
  .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 { gap: 4px; padding: 5px 7px; }
  .emergency-strip-head { grid-template-columns: auto auto auto minmax(0, 1fr); gap: 4px; }
  .emergency-strip-head strong { font-size: 14px; }
  .emergency-strip-area { font-size: 12px; }
  .profile-presence-line { grid-template-columns: minmax(56px, 68px) minmax(0, 1fr); }
  .emergency-official-link { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .emergency-presence-control { grid-template-columns: 1fr; gap: 4px; }
  .emergency-presence-form { width: 100%; }
  .emergency-presence-button { width: 100%; }
  .emergency-strip .emergency-official-link, .emergency-strip .emergency-presence-button { min-height: 26px; padding: 4px 7px; }
  .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 {
    --chamber-mobile-heading-height: 92px;
    --chamber-mobile-arc-height: 88px;
    --chamber-mobile-gap: 6px;
    --chamber-mobile-padding: 8px;
    --chamber-mobile-own-stop-offset: 35px;
    --chamber-mobile-sticky-top: calc(0px - var(--chamber-mobile-padding) - var(--chamber-mobile-heading-height) - var(--chamber-mobile-gap) - var(--chamber-mobile-arc-height) + var(--chamber-mobile-own-stop-offset));
    position: sticky;
    top: var(--chamber-mobile-sticky-top);
    display: grid;
    grid-template-columns: minmax(62px, 23%) minmax(0, 1fr) minmax(62px, 23%);
    grid-template-rows: var(--chamber-mobile-heading-height) var(--chamber-mobile-arc-height) auto 36px;
    gap: var(--chamber-mobile-gap) 4px;
    min-height: 0;
    padding: var(--chamber-mobile-padding);
  }

  .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: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 8px 5px;
    text-align: center;
  }

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

  .chamber-topic-card h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
  }
  .chamber-topic-evaluation-toggle { right: 3px; bottom: 3px; min-height: 24px; padding: 3px 6px; font-size: 10px; }

  .chamber-stand {
    position: relative;
    grid-row: 1;
    width: 100%;
    min-height: 0;
    padding: 7px 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;
    z-index: 4;
    width: 100%;
    height: 100%;
    align-self: stretch;
  }

  .chamber-vote-arc::after { z-index: 0; width: 48%; }
  .arc-label { top: auto; bottom: 12px; z-index: 3; width: 50%; min-width: 0; font-size: 9px; text-align: center; }
  .arc-label-agree { left: 0; }
  .arc-label-oppose { right: 0; }

  .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: clamp(180px, calc((100vw - 44px) * .5625 + 10px), 295px);
    min-height: 180px;
    aspect-ratio: auto;
    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; }

  .parliament-chamber-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 38px auto auto auto;
    gap: 3px 7px;
    margin-bottom: 4px;
    align-items: center;
  }
  .parliament-chamber-identity,
  .parliament-chamber-top-actions { display: contents; }
  .parliament-back-link { grid-column: 1; grid-row: 1; min-height: 34px; margin: 0 0 0 42px; justify-self: start; }
  .parliament-chamber-owner { grid-column: 1 / -1; grid-row: 2; min-width: 0; gap: 7px; }
  .parliament-follow-form { grid-column: 2; grid-row: 1; margin-right: 42px; justify-self: end; }
  .parliament-chamber-top-actions > .content-report-link { grid-column: 1 / -1; grid-row: 4; justify-self: end; }
  .parliament-chamber-owner .avatar-dot { width: 32px; height: 32px; }
  .parliament-vote-summary { grid-column: 1 / -1; grid-row: 3; justify-content: start; gap: 4px; }
  .parliament-vote-summary span { min-height: 24px; padding-inline: 7px; }
  .parliament-issue-detail-panel,
  .parliament-stats-grid,
  .parliament-participation-grid,
  .parliament-action-panel { gap: 4px; margin-top: 4px; }
  .parliament-issue-detail-panel,
  .parliament-stat-card,
  .parliament-vote-form,
  .parliament-comment-form,
  .parliament-participation-lock { padding: 6px; }
  .parliament-issue-detail-panel h2,
  .parliament-stat-card h2,
  .parliament-vote-form h2,
  .parliament-comment-form h2 { font-size: 16px; }
  .parliament-supplement-card { gap: 3px; margin-top: 4px; padding: 7px; }
  .parliament-supplement-card p { line-height: 1.3; }
  .parliament-stat-row { min-height: 24px; }
  .parliament-vote-form header,
  .parliament-comment-form header { gap: 6px; margin-bottom: 5px; }
  .parliament-comment-board { gap: 4px; margin-top: 4px; }
  .parliament-comment-board > header { gap: 6px; padding-inline: 2px; }
  .parliament-comment-board h2 { font-size: 19px; }
  .parliament-comment-grid { gap: 5px; }
  .parliament-comment { gap: 3px; padding: 7px; }
  .parliament-comment p { line-height: 1.45; }
  .parliament-account,
  .parliament-side-card { padding: 11px; margin-bottom: 8px; }
  .parliament-account header { gap: 8px; }
  .parliament-profile-text { margin-top: 7px; }
  .parliament-profile-text p { line-height: 1.4; }
  .parliament-rating-line { gap: 6px; margin-top: 7px; }
  .parliament-fixed-cards { gap: 5px; margin-top: 6px; }
  .parliament-side-card header { gap: 7px; margin-bottom: 6px; }
  .parliament-side-card > p { margin-bottom: 6px; }
  .parliament-side-card article { gap: 4px; padding: 8px; margin-top: 6px; }
}

@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: 10px clamp(14px, 2.6vw, 40px) 14px; color: #171b18; background: #e7ebe6; display: flex; flex-direction: column; overflow: hidden; }
.classroom-heading { position: relative; z-index: 30; flex: 0 0 auto; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(440px, 1.1fr); gap: 18px; width: 100%; max-width: 1440px; margin: 0 auto 8px; }
.classroom-heading-tools, .classroom-title-block { display: grid; grid-template-rows: 28px 38px; min-width: 0; }
.classroom-heading-tools .back-link { align-self: center; width: fit-content; color: #26372d; text-decoration-color: #718379; }
.classroom-heading-tools .back-link:hover, .classroom-heading-tools .back-link:focus-visible { color: #0d4e36; text-decoration-color: currentColor; }
.classroom-title-block { justify-self: end; width: 100%; max-width: 760px; }
.classroom-heading h1 { align-self: center; margin: 0; font-size: clamp(25px, 2.5vw, 34px); font-family: serif; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.classroom-heading p { margin: 0; }
.classroom-title-block > p { align-self: center; overflow: hidden; color: #3e4941; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.classroom-public-info-notice { position: relative; min-width: 0; color: #263229; background: #fdfefc; border: 1px solid #aeb8ad; border-radius: 7px; }
.classroom-public-info-notice summary { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 38px; padding: 6px 34px 6px 11px; }
.classroom-public-info-notice summary::after { content: "+"; position: absolute; right: 11px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #8d998d; border-radius: 50%; color: #344238; font-size: 14px; line-height: 1; }
.classroom-public-info-notice[open] summary::after { content: "−"; }
.classroom-public-info-notice summary strong { font-size: 12px; white-space: nowrap; }
.classroom-public-info-notice summary span { min-width: 0; overflow: hidden; color: #536057; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.classroom-public-info-notice p { position: absolute; z-index: 35; top: calc(100% + 5px); left: 0; width: min(720px, calc(100vw - 28px)); margin: 0; padding: 11px 13px; border: 1px solid #9ba79a; border-radius: 7px; color: #263029; background: #fff; box-shadow: 0 12px 30px rgba(30,45,35,.18); font-size: 12px; line-height: 1.65; }
.classroom-alert-row { position: relative; z-index: 29; grid-column: 2 / -1; grid-row: 1; width: 100%; min-width: 0; margin: 0; }
.classroom-alert-row .emergency-strip-stack.is-compact { width: 100%; margin: 0; }
.emergency-strip-stack.is-compact .emergency-strip { gap: 5px; padding: 5px 7px; border-width: 1px; border-radius: 7px; }
.emergency-strip-stack.is-compact .emergency-strip.is-presence-sent { padding: 0; }
.emergency-strip-stack.is-compact .emergency-strip-head { gap: 5px; }
.emergency-strip-stack.is-compact .emergency-strip-head strong { font-size: 14px; -webkit-text-stroke: 0; }
.emergency-strip-stack.is-compact .emergency-strip-area { font-size: 11px; }
.emergency-strip-stack.is-compact .emergency-strip-note { font-size: 10px; }
.emergency-strip-stack.is-compact .emergency-official-link, .emergency-strip-stack.is-compact .emergency-presence-button { min-height: 28px; padding: 4px 7px; font-size: 10px; }
.emergency-strip-stack.is-compact .emergency-presence-control { padding: 5px 7px; }
.emergency-strip-stack.is-compact .emergency-presence-summary { min-height: 36px; padding: 4px 6px; }
.emergency-strip-stack.is-compact .emergency-presence-state { padding: 4px 6px; font-size: 10px; }
.emergency-strip-stack.is-compact .emergency-presence-summary strong { font-size: 11px; }
.emergency-strip-stack.is-compact .emergency-presence-summary small, .emergency-strip-stack.is-compact .emergency-disclosure-label { font-size: 9px; }
.emergency-strip-stack.is-compact .emergency-strip-detail { gap: 5px; padding: 5px 7px; }
.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); grid-template-rows: minmax(0, 1fr); gap: 14px; overflow: hidden; }
.classroom-grid.has-alerts { grid-template-rows: auto minmax(0, 1fr); }
.uzume-panel, .classroom-chat, .classroom-sources { align-self: stretch; height: auto; min-width: 0; min-height: 0; border: 1px solid #bbc3ba; border-radius: 8px; background: #fdfefc; box-shadow: 0 8px 24px rgba(32,47,37,.08); overflow: hidden; }
.uzume-panel { grid-column: 1; grid-row: 1; }
.classroom-chat { grid-column: 2; grid-row: 1; }
.classroom-sources { grid-column: 3; grid-row: 1; }
.classroom-grid.has-alerts .uzume-panel { grid-row: 1 / 3; }
.classroom-grid.has-alerts .classroom-chat,
.classroom-grid.has-alerts .classroom-sources { grid-row: 2; }
.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; overscroll-behavior-x: contain; scrollbar-width: thin; cursor: grab; }
.guide-selector.is-dragging, .guide-selector.is-dragging a { cursor: grabbing; user-select: none; }
.guide-selector-label { display: inline-flex; flex: 0 0 auto; align-items: center; color: #68705f; font-size: 10px; font-weight: 900; }
.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; cursor: pointer; }
.guide-selector a.is-active { border-color: #68795e; color: #fff; background: #68795e; }
.guide-selector a.guide-selector-login { border-color: #7a6e61; color: #3c332b; background: #f4e9d8; }
.uzume-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 7px; background: linear-gradient(#d7eadf, #f5edd2 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; -webkit-backdrop-filter: blur(7px); 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: 10px 4px 6px; }
.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: 9px; border-radius: 6px; color: #4f5a51; background: #edf1ec; font-size: 11px; line-height: 1.55; }
.guide-rating-card { position: relative; flex: 0 0 104px; min-height: 104px; overflow: hidden; border-radius: 7px; background: #edf5f0; box-shadow: inset 0 0 24px rgba(255,255,255,.45); }
.guide-evaluation-plane { inset: 0; border: 1px solid #cad8cf; border-radius: 7px; opacity: 1; pointer-events: auto; background: linear-gradient(135deg, #f9fcfa, #c9eee7 48%, #edf4ef); }
.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; }
.guide-avatar-standard-note { margin: 7px 2px 0; color: #6d674f; font-size: 10px; line-height: 1.55; }
.guide-avatar-standard-note a { color: #445946; text-decoration: underline; text-underline-offset: 2px; }
.classroom-chat { display: flex; flex-direction: column; }
.classroom-chat-head, .classroom-sources-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px 10px; border-bottom: 1px solid #d9ded8; }
.classroom-chat-head small, .classroom-sources-head small { color: #637068; 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 9px; border-radius: 5px; color: #365244; background: #e2eee7; font-size: 11px; }
.classroom-policy { position: relative; z-index: 20; }
.classroom-policy summary { padding: 6px 9px; border: 1px solid #9da99f; border-radius: 5px; color: #33423a; background: #fff; 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 #9da99f; border-radius: 7px; color: #263029; background: #fff; box-shadow: 0 14px 35px rgba(32,47,37,.18); font-size: 11px; line-height: 1.65; }
.classroom-reset, .classroom-speech-toggle { padding: 6px 9px; border: 1px solid #9da99f; border-radius: 5px; color: #33423a; background: #fff; font-size: 11px; cursor: pointer; }
.classroom-reset:hover, .classroom-speech-toggle:hover { background: #edf3ef; }
.classroom-speech-toggle[aria-pressed="true"] { border-color: #587766; color: #234b38; background: #e1eee7; }
.classroom-messages { flex: 1; overflow-y: auto; padding: 16px; }
.classroom-message { max-width: 88%; margin-bottom: 12px; }
.classroom-message p { margin: 4px 0 0; padding: 11px 13px; border-radius: 3px 8px 8px 8px; color: #18201b; background: #edf1ec; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.classroom-compact-url { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.classroom-message.is-visitor { margin-left: auto; }
.classroom-message.is-visitor p { border-radius: 8px 3px 8px 8px; background: #dcebe2; }
.classroom-message-speaker { color: #566159; 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-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #d9ded8; }
.classroom-form textarea { -webkit-appearance: none; appearance: none; resize: none; min-height: 56px; padding: 11px 13px; border: 1px solid #7c8a80; border-radius: 6px; color: #111713 !important; background: #fff !important; box-shadow: none; font: inherit; opacity: 1; color-scheme: light; -webkit-text-fill-color: #111713 !important; caret-color: #174d37; }
.classroom-form textarea:focus { border-color: #286b50; outline: 3px solid rgba(40,107,80,.2); outline-offset: 0; }
.classroom-form textarea[data-enter-confirmed="true"] { border-color: #286b50; box-shadow: 0 0 0 3px rgba(40,107,80,.16); }
.classroom-form textarea::placeholder { color: #5d685f !important; opacity: 1; -webkit-text-fill-color: #5d685f !important; }
.classroom-form textarea:-webkit-autofill, .classroom-form textarea:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #111713 !important; caret-color: #174d37; }
.classroom-send { align-self: stretch; padding: 0 17px; border: 0; border-radius: 6px; color: white; background: #245d48; cursor: pointer; }
.classroom-send:disabled { opacity: .5; }
.classroom-source-tab { display: none; }
.classroom-sources { padding-bottom: 16px; overflow-y: auto; overscroll-behavior: contain; }
.classroom-messages { overscroll-behavior: contain; }
.classroom-sources-head { display: block; color: #17231b; background: #edf2ee; }
.classroom-sources-head h2 { color: #17231b; font-weight: 700; }
.classroom-sources-head small { color: #3f594a; font-weight: 800; }
.classroom-sources-empty { padding: 20px 16px; color: #35463b; font-size: 13px; line-height: 1.65; }
.classroom-source-card { display: grid; gap: 4px; margin: 10px 12px; border-left: 3px solid #78907f; border-radius: 3px 7px 7px 3px; color: inherit; background: #f0f4f1; 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: #18251c; background: transparent; text-align: left; cursor: pointer; }
.classroom-source-card-main:hover, .classroom-source-card-main[aria-expanded="true"] { background: #e3ebe6; }
.classroom-source-card strong { color: #18251c; }
.classroom-source-card span { color: #66571f; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.classroom-source-card small { color: #4e594f; }
.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 #9da99f; border-radius: 5px; color: #29352e; background: #fff; font: inherit; font-size: 11px; text-align: center; text-decoration: none; cursor: pointer; }
.classroom-source-actions a:hover, .classroom-source-actions a:focus-visible, .classroom-source-actions button:hover, .classroom-source-actions button:focus-visible { border-color: #64796a; color: #18251c; background: #e3ebe6; outline: 2px solid rgba(57,92,70,.18); outline-offset: 1px; }
.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(390px, 31vw); max-height: min(720px, calc(100dvh - 94px)); border: 1px solid #abb5ad; border-radius: 8px; background: #edf1ee; box-shadow: 0 22px 60px rgba(27,41,32,.3); overflow: auto; }
.classroom-image-window[hidden] { display: none; }
.classroom-reference-post { display: grid; gap: 0; border-top: 5px solid var(--cat-color, #BA14BA); background: #fffdf5; }
.classroom-reference-image-frame { position: relative; aspect-ratio: 4 / 3; background: #e4dcc7; overflow: hidden; }
.classroom-reference-image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.classroom-reference-image-frame .evaluation-plane { inset: 0; border-radius: 0; }
.classroom-reference-evaluation-toggle {
  top: auto;
  right: 9px;
  bottom: 9px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}
.classroom-reference-body { display: grid; gap: 7px; padding: 13px 15px 16px; color: #302c24; }
.classroom-reference-body strong { font: 18px serif; }
.classroom-reference-body p { display: -webkit-box; margin: 0; overflow: hidden; color: #4b4335; line-height: 1.55; -webkit-line-clamp: 4; -webkit-box-orient: vertical; white-space: pre-wrap; }
.classroom-reference-body small { color: #7b715b; }
.classroom-reference-body a { width: fit-content; padding: 7px 10px; border: 1px solid #bcae89; border-radius: 999px; color: #514a3b; background: #f6efdc; font-size: 12px; text-decoration: none; }
.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; -webkit-backdrop-filter: blur(5px); 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: 1100px) {
  body.classroom-page { overflow: auto; }
  body.classroom-page .app-window { min-height: 100dvh; height: auto; overflow: visible; }
}
@media (max-width: 680px) {
  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; }
  body.classroom-page .mobile-emergency-slot { display: none; }
  .classroom-shell { height: auto; min-height: 100dvh; padding: 8px; overflow: visible; }
  .classroom-heading { z-index: 35; grid-template-columns: minmax(0, 1fr) minmax(112px, .68fr); gap: 8px; margin-bottom: 6px; }
  .classroom-heading-tools, .classroom-title-block { grid-template-rows: 24px 38px; }
  .classroom-public-info-notice summary { min-height: 38px; padding: 5px 31px 5px 9px; }
  .classroom-public-info-notice summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .classroom-public-info-notice summary span { display: none; }
  .classroom-public-info-notice summary::after { right: 8px; }
  .classroom-public-info-notice p { width: calc(100vw - 16px); padding: 10px 11px; font-size: 11px; line-height: 1.55; }
  .classroom-alert-row { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .classroom-alert-row .emergency-strip-stack.is-compact { width: 100%; }
  .classroom-heading .back-link { font-size: 11px; }
  .classroom-title-block > p { display: none; }
  .classroom-heading h1 { font-size: 24px; }
  .classroom-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(360px, auto); gap: 8px; overflow: visible; }
  .classroom-grid.has-alerts { grid-template-rows: auto auto minmax(360px, auto); }
  .uzume-panel, .classroom-chat, .classroom-sources { height: auto; border-radius: 8px; }
  .uzume-panel { grid-column: 1; grid-row: 1; position: sticky; top: 44px; z-index: 30; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 132px; grid-template-rows: auto minmax(48px, 1fr) 156px; min-height: clamp(400px, 52vh, 450px); min-height: clamp(400px, 52dvh, 450px); gap: 4px 7px; padding: 8px; }
  .classroom-grid.has-alerts .uzume-panel { grid-row: 2; }
  .classroom-chat { position: relative; z-index: 1; isolation: isolate; grid-column: 1; grid-row: 2; }
  .classroom-grid.has-alerts .classroom-chat { grid-row: 3; }
  .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: 156px; }
  .guide-avatar-standard-note { grid-column: 1 / -1; grid-row: 4; margin: 0 2px; font-size: 9px; }
  .uzume-name { grid-column: 2; grid-row: 2; align-content: start; align-items: flex-start; align-self: start; flex-direction: column; justify-content: flex-start; padding: 2px 2px 0; }
  .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: 48px; }
  .classroom-send { min-height: 44px; padding: 0 12px; }
  .classroom-chat-head { align-items: flex-start; gap: 6px; padding: 10px 12px 8px; }
  .classroom-chat-tools { flex-wrap: wrap; justify-content: flex-end; }
  .classroom-mode { display: none; }
  .classroom-messages { min-height: 210px; max-height: 46dvh; padding: 12px; }
  .classroom-image-window { top: 62px; right: 10px; width: min(300px, 82vw); max-height: calc(100dvh - 76px); border-radius: 15px; }
}

/* The reference rail becomes a drawer below desktop width; keep its pull tab visible. */
@media (max-width: 1100px) {
  .classroom-source-tab {
    position: fixed;
    top: 56px;
    right: 0;
    z-index: 43;
    display: block;
    transform: translateX(0);
    transition: opacity .18s ease, transform .18s ease;
  }

  .classroom-source-tab .classroom-sources-toggle {
    min-width: 0;
    min-height: 34px;
    padding: 8px 10px 8px 9px;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 14px rgba(32,47,37,.16);
  }

  body.right-menu-open .classroom-source-tab {
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
  }

  .classroom-grid .classroom-mobile-tools {
    display: flex !important;
    flex: 0 0 auto;
  }

  .classroom-grid .classroom-sources-toggle {
    width: auto;
    min-width: 34px;
    min-height: 32px;
    padding-inline: 9px;
    white-space: nowrap;
  }

  .classroom-grid .classroom-sources-toggle-label {
    display: inline;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .classroom-shell { overflow: visible; }
  .uzume-panel { position: sticky; top: 54px; z-index: 5; }
}

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

/* 災害時受け入れ掲示板 */
body.reception-page .app-window {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: #0e0e0f;
}

.reception-side-toggle,
.reception-side-backdrop {
  display: none;
}

.reception-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(240px, 310px);
  gap: 14px;
  height: calc(100dvh - 54px);
  width: min(1540px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 16px 0 22px;
  color: #f5f5f0;
}

.reception-left,
.reception-right,
.reception-main {
  min-width: 0;
}

.reception-left,
.reception-right {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.reception-left {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.reception-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

.reception-panel,
.reception-compose,
.reception-list,
.reception-about-card,
.reception-card {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: #171717;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.reception-panel,
.reception-compose,
.reception-list {
  padding: 16px;
}

.reception-compose-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  position: relative;
  padding-top: 54px;
  margin-bottom: 12px;
}

.reception-compose-tabs > .reception-compose {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.reception-compose-tabs > .reception-compose > summary {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-grid;
  place-items: center;
  min-width: 138px;
  min-height: 44px;
  border: 3px solid #14BABA;
  border-radius: 10px 10px 0 0;
  padding: 8px 18px;
  background: #171717;
  color: #f5f5f0;
  z-index: 2;
}

.reception-compose-tabs > .reception-compose-transport > summary {
  left: 148px;
}

.reception-compose-tabs > .reception-compose[open] > summary {
  border-color: #14BABA;
  border-bottom-color: #171717;
  background: #171717;
}

.reception-compose-tabs > .reception-compose-transport > summary {
  border-color: #BA0014;
}

.reception-compose-tabs > .reception-compose-transport[open] > summary {
  border-color: #BA0014;
  border-bottom-color: #171717;
  background: #171717;
}

.reception-compose-inner {
  display: none;
  margin-top: -3px;
  border: 3px solid #14BABA;
  border-radius: 0 10px 10px 10px;
  padding: 12px;
  background: #171717;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.reception-compose-note-persistent {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: -3px 0 0;
  border: 3px solid #14BABA;
  border-radius: 0 10px 10px 10px;
  padding: 12px 12px 12px 16px;
  background: #171717;
}

.reception-compose-tabs:has(.reception-compose[open]) .reception-compose-note-persistent {
  display: none;
}

.reception-compose[open] > .reception-compose-inner {
  display: grid;
  gap: 10px;
}

.reception-compose-transport[open] > .reception-compose-inner {
  border-color: #BA0014;
}

.reception-panel h1,
.reception-panel h2,
.reception-compose summary,
.reception-list h2,
.reception-card h3 {
  margin: 0;
  line-height: 1.25;
}

.reception-panel p,
.reception-hero p,
.reception-card p,
.reception-about-card p,
.reception-empty {
  margin: 8px 0 0;
  color: #d6d6d0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.reception-account-panel {
  display: grid;
  gap: 10px;
}

.reception-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.reception-account .avatar-dot {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .72);
}

.reception-account > div {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.reception-account strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: 21px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-stroke: .3px rgba(255, 255, 255, .8);
  text-shadow: 0 2px 2px rgba(0, 0, 0, .28);
}

.reception-account .account-name-with-emblems {
  display: inline-flex;
}

.reception-account span:not(.account-name-with-emblems):not(.account-name-text):not(.avatar-dot) {
  color: #d7d7d0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.reception-account-note {
  margin-top: 0 !important;
  font-size: 13px;
  font-weight: 800;
}

.reception-login-button {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}

.reception-hero {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 2px solid rgba(20, 186, 186, .7);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(20, 186, 186, .22), rgba(186, 0, 20, .14)),
    #101010;
}

.reception-hero span {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #061515;
  background: #14BABA;
  font-weight: 900;
}

.reception-hero h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: .02em;
}

.reception-compose summary {
  cursor: pointer;
  font-size: 21px;
  font-weight: 950;
  list-style: none;
}

.reception-compose summary::-webkit-details-marker {
  display: none;
}

.reception-compose summary::before {
  content: "＋";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: #061515;
  background: #14BABA;
  font-size: 16px;
}

.reception-compose[open] summary::before {
  content: "−";
}

.reception-compose-tabs > .reception-compose summary::before,
.reception-compose-tabs > .reception-compose[open] summary::before {
  content: none;
}

.reception-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.reception-flow li {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .06);
}

.reception-flow span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 0;
  min-height: 0;
  margin-right: 6px;
  margin-bottom: 0;
  border-radius: 50%;
  color: #061515;
  background: #14BABA;
  font-size: 12px;
  font-weight: 950;
}

.reception-flow strong {
  color: #fff;
}

.reception-flow small {
  display: block;
  margin-top: 3px;
  color: #d6d6d0;
  line-height: 1.45;
}

.reception-compose-note {
  margin: 12px 0;
  border-left: 4px solid #B1AB4A;
  padding-left: 10px;
  color: #e8e3bd;
  font-size: 12px;
}

.reception-editing-note {
  grid-column: 1 / -1;
  margin: 0;
  border-left: 4px solid #14BABA;
  padding-left: 10px;
  color: #cffff9;
  font-size: 12px;
  font-weight: 950;
}

.reception-filter-form,
.reception-form {
  display: grid;
  gap: 10px;
}

.reception-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reception-form label,
.reception-filter-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #efefe9;
  font-size: 12px;
  font-weight: 900;
}

.reception-filter-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.reception-filter-targets legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #efefe9;
  font-size: 12px;
  font-weight: 950;
}

.reception-filter-targets label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.reception-filter-targets input {
  width: auto;
  margin: 0;
  accent-color: #14BABA;
}

.reception-form label {
  grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.reception-form label span {
  min-width: 0;
  text-align: right;
  line-height: 1.35;
}

.reception-form .is-wide {
  grid-column: 1 / -1;
}

.reception-form label.is-wide {
  grid-template-columns: minmax(72px, calc((100% - 10px) * .15)) minmax(0, 1fr);
}

.reception-detail-submit-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(72px, calc((100% - 10px) * .15)) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.reception-detail-submit-row .is-wide {
  display: contents;
  grid-column: auto;
}

.reception-detail-submit-row .is-wide > span {
  grid-column: 1;
  align-self: center;
  min-width: 0;
  text-align: right;
  line-height: 1.35;
}

.reception-detail-submit-row .is-wide > textarea {
  grid-column: 2;
}

.reception-detail-submit-row button {
  grid-column: auto !important;
  justify-self: end;
  align-self: end;
  white-space: nowrap;
}

.reception-form input,
.reception-form select,
.reception-form textarea,
.reception-filter-form select,
.reception-filter-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  padding: 9px 10px;
  color: #f8f8f3;
  background: #242424;
  font: inherit;
}

.reception-filter-form .reception-filter-targets input {
  width: auto;
  min-width: 0;
  padding: 0;
}

.reception-form textarea {
  resize: vertical;
}

.reception-form button,
.reception-filter-form button,
.reception-button,
.reception-apply-form button,
.reception-application-row button,
.reception-danger-button {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #14BABA, #0c8787);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.reception-form button {
  grid-column: 1 / -1;
  justify-self: end;
}

.reception-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.reception-list h2 {
  margin: 0;
}

.reception-flow-board {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(0, 3fr);
  gap: 10px;
  align-items: start;
}

.reception-flow-board-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.reception-flow-board-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  background: #202020;
  font-weight: 950;
}

.reception-add-transport-button {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: #BA0014;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}
.reception-add-transport-button-card {
  margin-left: auto;
  align-self: start;
}

.reception-route-builder {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(186, 0, 20, .26);
  border-radius: 10px;
  padding: 10px;
  background: rgba(186, 0, 20, .07);
}

.reception-route-builder strong {
  color: #fff;
  font-size: 13px;
}

.reception-route-builder p {
  margin: 0;
  color: #d6d6d0;
  font-size: 11px;
  line-height: 1.55;
}

.reception-route-select-list {
  display: grid;
  gap: 8px;
}

.reception-route-main {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(126px, .5fr) 28px auto minmax(0, 1.1fr) minmax(126px, .5fr) 28px;
  gap: 8px;
  align-items: center;
}

.reception-route-main label {
  grid-template-columns: minmax(54px, 28%) minmax(0, 1fr);
}

.reception-route-main .reception-route-time {
  grid-template-columns: 34px minmax(92px, 1fr);
}

.reception-form input[type="time"] {
  min-width: 92px;
  color-scheme: dark;
}

.reception-route-arrow {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.reception-route-marker {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  color: #101010;
  background: #f0e7a6;
  font-size: 12px;
  font-weight: 950;
}

.reception-route-step,
.reception-route-start {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 78px minmax(0, 1.6fr) 34px minmax(104px, .6fr) auto;
  gap: 8px;
  align-items: center;
}

.reception-route-step.is-closed {
  display: none;
}

.reception-route-step.is-filled {
  display: none;
}

.reception-route-step span,
.reception-route-start span {
  color: #efefe9;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.reception-route-insert-close {
  grid-column: auto;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 7px 10px;
  color: #f7f7f2;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.reception-route-preview {
  display: grid;
  gap: 6px;
  min-height: 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 8px;
}

.reception-route-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.reception-route-preview-row.is-last-single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.reception-route-preview-row.is-last-single::before {
  content: "→";
  justify-self: start;
  margin-left: 72%;
  color: #c9c9c3;
  font-weight: 950;
}

.reception-route-preview-point {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(86px, .42fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: 6px 7px;
  color: #f7f7f2;
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 900;
}

.reception-route-preview-point-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.reception-route-preview-point.is-terminal {
  border-color: rgba(20, 186, 186, .38);
  background: rgba(20, 186, 186, .14);
}

.reception-route-preview-point-kicker {
  color: #efefe9;
  font-size: 11px;
  white-space: nowrap;
}

.reception-route-preview-point-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 7px 9px;
  background: #242424;
}

.reception-route-preview-point-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 7px 9px;
  background: #242424;
  color: #d9d9d1;
}

.reception-route-preview-marker {
  display: inline-grid;
  grid-column: auto;
  justify-self: center;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  padding: 0;
  color: #101010;
  background: #f0e7a6;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
}

.reception-compose .reception-route-preview-marker {
  grid-column: auto !important;
  justify-self: center !important;
  align-self: center;
}

.reception-compose .reception-route-insert-close {
  grid-column: auto !important;
  justify-self: start !important;
  align-self: center;
}

.reception-route-preview-arrow {
  color: #c9c9c3;
  font-weight: 950;
}

.reception-flow-board-head-transport {
  border-left: 5px solid #BA0014;
}

.reception-flow-board-head-accommodation {
  border-left: 5px solid #14BABA;
}

.reception-flow-stack {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.reception-flow-stack-transport .reception-card {
  border-left-color: #BA0014;
}

.reception-flow-stack-accommodation .reception-card {
  border-left-color: #14BABA;
  padding: 10px 70px 10px 10px;
}

.reception-flow-stack-accommodation .reception-card h3 {
  font-size: 16px;
}

.reception-flow-stack-accommodation .reception-card p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.58;
}

.reception-flow-stack-accommodation .reception-card-meta {
  margin-top: 8px;
  gap: 5px;
}

.reception-flow-stack-accommodation .reception-card-meta span {
  padding: 3px 7px;
  font-size: 11px;
}

.reception-flow-placeholder {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 14px;
  color: #a9a9a3;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
}

.reception-support-board {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 12px;
}

.reception-support-board h3 {
  margin: 0;
}

.reception-left-support-button {
  width: calc(100% - 28px);
  margin: auto 14px 10px;
  background: #14BABA;
  font-size: 14px;
}

.reception-card {
  position: relative;
  border-left: 6px solid var(--reception-color, #14BABA);
  padding: 14px;
  overflow: hidden;
}

.reception-card-accommodation {
  padding-right: 70px;
}

.reception-card > header {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.reception-card > header > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: var(--reception-color, #14BABA);
  font-size: 12px;
  font-weight: 900;
}

.reception-card-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.reception-card-meta span,
.reception-token {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 4px 8px;
  color: #e9e9e3;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.reception-conditions {
  border-left: 3px solid rgba(255, 255, 255, .24);
  padding-left: 10px;
}

.reception-application-memory {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(177, 171, 74, .42);
  border-radius: 12px;
  padding: 10px;
  background: rgba(177, 171, 74, .08);
}

.reception-transport-need-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.reception-transport-need-row button,
.reception-transport-candidate button,
.reception-transport-candidate-window button,
.reception-qr-kind-button {
  border: 1px solid rgba(186, 0, 20, .4);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(186, 0, 20, .2);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.reception-qr-kind-button[disabled] {
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(.45);
}

.reception-transport-candidate-window {
  display: grid;
  gap: 10px;
  position: fixed;
  top: 96px;
  left: 50%;
  z-index: 980;
  width: min(620px, calc(100vw - 34px));
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(186, 0, 20, .42);
  border-radius: 14px;
  padding: 14px;
  background: rgba(18, 18, 18, .99);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .42), 0 22px 70px rgba(0, 0, 0, .55);
}

.reception-transport-candidate-window[hidden] {
  display: none;
}

.reception-transport-candidate-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reception-transport-candidate-window-head h3 {
  margin: 0;
}

.reception-transport-candidate-window-head button {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

.reception-transport-candidates {
  display: grid;
  gap: 7px;
}

.reception-transport-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .045);
}

.reception-transport-candidate strong {
  display: block;
  color: #fff;
  font-size: 12px;
}

.reception-transport-candidate span {
  display: block;
  margin-top: 2px;
  color: #d6d6d0;
  font-size: 11px;
  line-height: 1.45;
}

.reception-transport-select-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 10px;
}

.reception-transport-select-actions[hidden] {
  display: none;
}

.reception-transport-select-actions span {
  color: #d6d6d0;
  font-size: 12px;
  line-height: 1.5;
}

.reception-transport-select-actions button {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.reception-transport-select-actions [data-reception-select-transport] {
  border-color: rgba(186, 0, 20, .42);
  background: rgba(186, 0, 20, .26);
}

.reception-reference-link {
  display: inline-flex;
  margin-top: 10px;
  color: #14BABA;
  font-weight: 900;
}

.reception-card footer {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.reception-token-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  border: 1px dashed rgba(20, 186, 186, .55);
  border-radius: 12px;
  padding: 11px;
  background: rgba(20, 186, 186, .08);
}

.reception-token-box > strong,
.reception-token-box > p {
  grid-column: 1;
}

.reception-token-box > p {
  margin: 0;
}

.reception-token-box.is-compact {
  margin-top: 0;
}

.reception-token-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: fit-content;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(20, 186, 186, .22);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.reception-token-box > [data-reception-qr-card] {
  grid-column: 1 / -1;
}

.reception-qr-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.reception-qr-dummy {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 6px solid #fff;
  color: #111;
  background:
    linear-gradient(90deg, #000 12px, transparent 12px 18px, #000 18px 30px, transparent 30px),
    linear-gradient(#000 12px, transparent 12px 18px, #000 18px 30px, transparent 30px),
    #fff;
  font-size: 10px;
  font-weight: 950;
}

.reception-qr-route-info {
  display: grid;
  gap: 7px;
  align-content: start;
}

.reception-qr-route-info strong {
  color: #fff;
}

.reception-qr-route-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.reception-qr-kind-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.reception-qr-kind-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, .045);
}

.reception-qr-kind-card strong {
  color: #fff;
}

.reception-qr-kind-card small {
  color: #c8c8c2;
  line-height: 1.45;
}

.reception-qr-evaluation-area {
  display: none;
  gap: 8px;
  margin-top: 8px;
  min-height: 128px;
  position: relative;
}

.reception-qr-kind-card.is-evaluating .reception-qr-evaluation-area {
  display: grid;
}

.reception-qr-evaluation-board {
  display: grid;
  place-items: center;
  position: relative;
  inset: auto;
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(20, 186, 186, .24), rgba(177, 171, 74, .15), rgba(186, 0, 20, .22));
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  user-select: none;
}

.reception-qr-evaluation-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reception-qr-evaluation-note {
  margin: 0;
  color: #d6d6d0;
  font-size: 11px;
  line-height: 1.5;
}

.reception-owner-action-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(20, 186, 186, .34);
  border-radius: 10px;
  padding: 10px;
  background: rgba(20, 186, 186, .08);
}

.reception-owner-action-card button,
.reception-owner-action-card form,
.reception-owner-action-card input[type="submit"] {
  min-width: 0;
}

.reception-owner-action-card button,
.reception-owner-action-card input[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(135deg, #14BABA, #0c8787);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.reception-owner-action-card button[disabled] {
  cursor: default;
  opacity: .55;
  background: rgba(255, 255, 255, .12);
}

.reception-token-box p {
  margin: 0;
  color: #d6d6d0;
  font-size: 12px;
}

.reception-apply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.reception-apply-form-detail {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 10px;
  margin-top: 0;
}

.reception-flow-stack-transport .reception-card {
  padding: 10px 70px 10px 10px;
}

.reception-flow-stack-transport .reception-card h3 {
  font-size: 15px;
}

.reception-flow-stack-transport .reception-card p,
.reception-flow-stack-transport .reception-conditions {
  font-size: 12px;
  line-height: 1.55;
}

.reception-flow-stack-transport .reception-card-meta span {
  font-size: 11px;
}

.reception-flow-stack-transport .reception-apply-form {
  grid-template-columns: 1fr;
}

.reception-flow-stack-transport .reception-edit-card .reception-form {
  grid-template-columns: 1fr;
}

.reception-card.is-compact-transport > header {
  margin-bottom: 6px;
}

.reception-transport-origin {
  margin: 0;
  border: 1px solid rgba(186, 0, 20, .42);
  border-radius: 10px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(186, 0, 20, .16);
  font-size: 13px;
  font-weight: 950;
}

.reception-detail-button {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 10px;
  color: #d6d6d0;
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.reception-detail-button-transport {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(186, 0, 20, .24);
}

.reception-detail-button-accommodation {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: fit-content;
  margin: 0;
  color: #fff;
  background: rgba(20, 186, 186, .2);
}

.reception-detail-card {
  display: grid;
  gap: 9px;
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 900;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(18, 18, 18, .98);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .58), 0 22px 70px rgba(0, 0, 0, .55);
}

.reception-detail-card[hidden] {
  display: none;
}

.reception-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.reception-detail-grid div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.reception-detail-grid dt,
.reception-detail-grid dd {
  min-width: 0;
  margin: 0;
  padding: 7px 9px;
  overflow-wrap: anywhere;
}

.reception-detail-grid dt {
  color: #101010;
  background: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 950;
}

.reception-detail-grid dd {
  color: #f7f7f2;
  font-size: 13px;
  font-weight: 850;
}

.reception-detail-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reception-detail-window-head h3 {
  margin: 0;
}

.reception-detail-window-head button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.reception-route-note {
  border-left: 3px solid rgba(186, 0, 20, .55);
  padding-left: 10px;
}

.reception-apply-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  padding: 8px 9px;
  color: #f8f8f3;
  background: #242424;
}

.reception-edit-card {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .04);
}

.reception-edit-card summary {
  cursor: pointer;
  font-weight: 900;
}

.reception-form-compact {
  margin-top: 10px;
}

.reception-danger-button {
  margin-top: 8px;
  background: #9b2d2d;
}

.reception-applications {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 10px;
}

.reception-application-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
}

.reception-about-card {
  padding: 0;
  overflow: hidden;
}

.reception-about-card summary {
  padding: 13px 14px;
  border-left: 5px solid #14BABA;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.reception-about-card p {
  margin: 0;
  padding: 0 14px 14px 19px;
}

.reception-about-card:nth-child(2n) summary {
  border-left-color: #BA0014;
}

.reception-terms-link-card a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #14BABA, #0c8787);
  font-weight: 950;
}

@media (max-width: 1180px) {
  .reception-shell {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .reception-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .reception-shell {
    grid-template-columns: 1fr;
    width: calc(100vw - 18px);
    padding-top: 10px;
  }
  .reception-form,
  .reception-flow,
  .reception-flow-board,
  .reception-apply-form {
    grid-template-columns: 1fr;
  }
  .reception-side-toggle {
    position: fixed;
    z-index: 850;
    top: 62px;
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 8px 10px;
    color: #fff;
    background: rgba(18, 18, 18, .92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  }
  .reception-side-toggle-left {
    left: 10px;
    border-color: rgba(20, 186, 186, .46);
  }
  .reception-side-toggle-right {
    right: 10px;
    border-color: rgba(186, 0, 20, .46);
  }
  .reception-side-backdrop {
    position: fixed;
    inset: 54px 0 0;
    z-index: 780;
    background: rgba(0, 0, 0, .52);
  }
  body.reception-side-is-open .reception-side-backdrop {
    display: block;
  }
  .reception-left,
  .reception-right {
    position: fixed;
    top: 54px;
    bottom: 0;
    z-index: 820;
    width: min(84vw, 330px);
    overflow-y: auto;
    padding: 58px 12px 12px;
    background: rgba(14, 14, 15, .98);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .48);
    transition: transform .22s ease;
  }
  .reception-left {
    left: 0;
    transform: translateX(calc(-100% - 12px));
    border-right: 1px solid rgba(20, 186, 186, .35);
  }
  .reception-right {
    right: 0;
    grid-template-columns: 1fr;
    transform: translateX(calc(100% + 12px));
    border-left: 1px solid rgba(186, 0, 20, .35);
  }
  .reception-left.is-open,
  .reception-right.is-open {
    transform: translateX(0);
  }
  .reception-hero {
    padding-top: 54px;
  }
  .reception-flow-board-head {
    position: static;
  }
  .reception-form button,
  .reception-apply-form button {
    justify-self: stretch;
  }
  .reception-detail-submit-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .reception-detail-submit-row button {
    grid-column: 2;
    justify-self: stretch;
  }
  .reception-route-preview-row {
    grid-template-columns: 1fr;
  }
  .reception-route-preview-row .reception-route-preview-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .reception-route-preview-row.is-last-single::before {
    margin-left: 0;
    justify-self: center;
    transform: rotate(90deg);
  }
  .reception-route-step {
    grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  }
  .reception-route-step > span,
  .reception-route-step > select,
  .reception-route-step > input,
  .reception-route-step > button {
    grid-column: auto;
  }
  .reception-route-step .reception-route-insert-close {
    grid-column: 2 !important;
    justify-self: stretch !important;
  }
  .reception-detail-card {
    top: 64px;
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 78px);
    border-radius: 12px;
    padding: 12px;
  }
  .reception-detail-grid {
    grid-template-columns: 1fr;
  }
  .reception-qr-card {
    grid-template-columns: 1fr;
  }
  .reception-owner-action-card {
    grid-template-columns: 1fr;
  }
}

/* Product polish layer: visual density, calmer contrast, and easier first-use scanning. */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: rgba(255, 255, 255, .12);
}

button,
.primary-button,
.quiet-button,
.auth-link,
.follow-button,
.support-button,
.timeline-scope-button,
.timeline-compose-button,
.category-tab-button,
.confirm-category-button,
.repost-toggle,
.job-offer-toggle {
  line-height: 1.15;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

input,
textarea,
select {
  border-color: rgba(255, 255, 255, .16);
  border-radius: 5px;
  background: #202020;
  color: #f7f3ef;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, .48);
}

input:focus,
textarea:focus,
select:focus {
  border-color: color-mix(in srgb, var(--accent-color) 70%, white);
  background: #242424;
}

.topbar {
  min-height: 48px;
  padding: 4px 12px 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(180deg, #c65a22 0%, #762d0f 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.14);
}

.topnav {
  gap: clamp(10px, 1vw, 18px);
  font-size: clamp(12px, .92vw, 15px);
  font-weight: 820;
  text-shadow: 0 1px 1px rgba(0,0,0,.5);
}

.auth-link,
.primary-button,
.support-button,
.confirm-category-button {
  box-shadow: none;
}

.auth-link:hover,
.primary-button:hover,
.support-button:hover,
.confirm-category-button:hover,
.timeline-scope-button:hover,
.quiet-button:hover {
  filter: brightness(1.08);
}

.suni-shell {
  grid-template-columns: 292px minmax(460px, 600px) 342px;
  gap: 22px;
  margin: 10px 24px 0;
}

.left-column,
.right-column {
  padding-top: 8px;
}

.account-mini {
  gap: 6px;
  margin-bottom: 14px;
}

.left-account {
  font-size: clamp(18px, 1.45vw, 24px);
}

.left-account .avatar-dot {
  width: 44px;
  height: 44px;
}

.side-menu {
  gap: 1px;
  margin: 6px 0 13px 52px;
  font-size: clamp(17px, 1.2vw, 21px);
}

.side-menu a {
  padding: 6px 0;
}

.side-menu-icon {
  filter: drop-shadow(0 0 3px rgba(255,255,255,.14));
}

.category-tabs {
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.category-tabs.vertical {
  gap: 13px;
  margin-bottom: 14px;
  padding-top: 6px;
}

.tab {
  font-size: clamp(15px, 1.18vw, 21px);
  text-shadow:
    -1px 0 rgba(0,0,0,.95),
    1px 0 rgba(0,0,0,.95),
    0 1px rgba(0,0,0,.95),
    0 0 5px color-mix(in srgb, currentColor 48%, transparent);
}

.tab::after {
  height: 14px;
  opacity: .88;
}

.timeline-fixed-controls {
  padding-bottom: 9px;
}

.central-search {
  margin-bottom: 11px;
}

.central-search input,
.side-search input {
  height: 35px;
  background: #c8c8c8;
  font-weight: 780;
}

.timeline-action-row {
  min-height: 44px;
}

.timeline-scope-button {
  min-height: 35px;
  min-width: 68px;
  padding: 7px 13px;
}

.timeline-compose-button {
  padding-block: 9px;
}

.timeline {
  gap: 10px;
}

.timeline-scroll {
  padding-bottom: 18px;
}

.post-card {
  border-width: 1px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 22%),
    #111;
}

/* Keep below-the-fold cards out of the paint work until they approach the
   scrollport. The intrinsic size preserves the existing scroll geometry. */
.timeline-post-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
}

.post-link {
  gap: 6px;
  padding: 10px 11px;
}

.post-author {
  gap: 7px;
  padding: 10px 11px 0;
}

.post-card > .post-image-frame {
  margin: 10px 10px 0;
}

.post-image {
  max-height: 248px;
}

.post-body {
  color: #eee9e5;
  font-weight: 640;
  line-height: 1.52;
}

.favorite-toggle {
  min-width: 32px;
  min-height: 32px;
  background: rgba(10,10,10,.72);
}

.repost-toggle,
.job-offer-toggle,
.evaluation-toggle {
  min-height: 30px;
  padding: 6px 10px;
}

.left-results-scroll {
  margin-top: 10px;
  padding-top: 6px;
}

.left-pickups {
  gap: 9px;
}

.mini-pickup {
  grid-template-columns: 30px 1fr;
  gap: 7px;
}

.mini-pickup .avatar-dot {
  width: 30px;
  height: 30px;
}

.mini-pickup-image {
  height: 76px;
  border-radius: 5px;
}

.right-profile-head {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.right-profile-head > .avatar-dot {
  grid-column: 1;
  grid-row: 1;
}

.right-profile-head > div:not(.profile-head-actions) {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(26px, auto) 18px 20px;
  align-content: center;
  min-width: 0;
}

.right-profile-head > .profile-head-actions {
  grid-column: 2;
  grid-row: 2;
}

.right-profile-head .avatar-dot {
  width: 64px;
  height: 64px;
}

.right-profile-head h2 {
  align-self: center;
  margin: 0;
  font-size: clamp(21px, 1.7vw, 27px);
  line-height: 1.08;
}

.right-profile-head p {
  align-self: center;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1;
}

.right-profile-head .profile-presence-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px 20px;
  gap: 0;
  min-width: 0;
}

.right-profile-head .emergency-presence-slots {
  align-self: center;
  width: min(100%, 240px);
}

.follow-row {
  margin: 8px 0 3px;
}

.right-profile-text {
  gap: 5px;
  margin: 9px 0;
  font-size: clamp(15px, 1.08vw, 19px);
}

.rating-line {
  margin: 6px 0;
  font-size: clamp(14px, 1vw, 17px);
}

.fixed-cards {
  gap: 7px;
  margin: 7px 0;
}

.fixed-card-thumb {
  height: 60px;
}

.reflected-tabs {
  margin-top: 7px;
  margin-bottom: 8px;
}

.account-post-scroll {
  gap: 10px;
}

.reflected-image {
  height: 126px;
}

.reflected-body {
  gap: 5px 8px;
}

.reflected-body strong {
  font-size: clamp(15px, 1.1vw, 19px);
}

.reflected-body-text {
  font-size: 13px;
}

.composer-dialog {
  border-width: 1px;
  border-radius: 8px;
  padding: 12px;
}

.composer-dialog-head {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom-width: 2px;
}

.post-composer-form {
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: #101010;
}

.category-tab-button {
  min-height: 38px;
}

.field-grid,
.detail-forms,
.citation-detail-fields,
.image-rights-fields {
  gap: 7px;
}

.detail-fieldset {
  border-width: 1px;
}

.chat-panel,
.chat-main,
.parliament-account,
.parliament-side-card,
.static-panel,
.profile-settings-card,
.historical-vault-card,
.collection-kawaraban-card {
  border-color: rgba(255, 255, 255, .12);
}

.chat-message div {
  background: rgba(255,255,255,.06);
}

.chat-message p {
  line-height: 1.5;
}

.static-shell {
  padding-top: 16px;
}

.static-panel {
  border-radius: 8px;
  box-shadow: none;
}

.legal-section,
.of-prose,
.guide-prose {
  padding-block: clamp(20px, 3vw, 34px);
}

.legal-section p,
.legal-section li,
.guide-prose p,
.guide-prose li {
  line-height: 1.82;
}

.of-prose p {
  line-height: 1.9;
}

.manga-shell {
  gap: 7px;
  padding-top: 14px;
}

.manga-head {
  padding-bottom: 5px;
}

.manga-head h1 {
  font-size: clamp(23px, 2.55vw, 36px);
}

.manga-reader-wrap {
  height: min(83dvh, calc(100dvh - 90px), 920px);
}

.manga-page-image {
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.manga-owner {
  padding: 4px 8px;
}

.kawaraban-left,
.kawaraban-board {
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.kawaraban-hero {
  min-height: 72px;
  border-radius: 10px;
  background: linear-gradient(180deg, #b985e7, #8751c4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}

.kawaraban-hero h1 {
  font-size: clamp(33px, 3.5vw, 54px);
}

.kawaraban-board {
  padding: 9px 16px 12px;
}

.kawaraban-pickup-head h2 {
  font-size: clamp(25px, 2.35vw, 35px);
}

.kawaraban-event-card {
  border-width: 4px;
}

.parliament-shell {
  grid-template-columns: 292px minmax(802px, 942px);
  justify-content: center;
  gap: 22px;
  margin: 10px 24px 0;
}

.parliament-left,
.parliament-main,
.parliament-right {
  padding-top: 8px;
}

.parliament-menu a {
  min-height: 38px;
}

.parliament-board-head h1 {
  font-size: 25px;
}

.parliament-issue-list {
  gap: 6px;
}

.parliament-issue-card {
  min-height: 156px;
  border-radius: 6px;
}

.parliament-issue-body {
  padding: 9px 12px;
}

.parliament-issue-body h2 {
  font-size: 20px;
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .suni-shell {
    grid-template-columns: 272px minmax(420px, 560px) minmax(292px, 342px);
    gap: 18px;
    margin-inline: 14px;
  }
  .parliament-shell {
    grid-template-columns: 272px minmax(712px, 902px);
    gap: 18px;
    margin-inline: 14px;
  }
}

@media (max-width: 1100px) {
  .topbar {
    padding: 10px 14px 9px;
  }
  .suni-shell {
    margin: 10px 12px 24px;
  }
  .left-column,
  .right-column {
    background: #151515;
  }
  .mobile-tool-button,
  .mobile-panel-close {
    box-shadow: 0 8px 20px rgba(0,0,0,.32);
  }
  .timeline-fixed-controls {
    padding-block: 6px 10px;
  }
}

@media (max-width: 820px) {
  .manga-shell {
    gap: 5px;
    padding: 7px 9px 9px;
  }
  .manga-head h1 {
    font-size: clamp(23px, 8vw, 31px);
  }
  .manga-reader-wrap {
    height: min(80dvh, calc(100dvh - 126px), 700px);
  }
}

@media (max-width: 640px) {
  body {
    font-weight: 680;
  }
  .topbar {
    min-height: 40px;
    padding: 3px 7px 4px;
  }
  .brand img {
    height: 36px;
  }
  .topnav {
    gap: 7px;
    font-size: 11px;
  }
  .auth-link {
    padding: 7px 10px;
    font-size: 12px;
  }
  .suni-shell {
    margin: 6px 8px 18px;
  }
  .timeline-fixed-controls {
    gap: 5px 7px;
    padding: 3px 42px 7px;
  }
  .mobile-control-bar {
    height: 36px;
  }
  .mobile-tool-button {
    width: 36px;
    height: 36px;
  }
  .category-tabs {
    gap: 7px;
    margin-bottom: 7px;
    padding-bottom: 6px;
  }
  .category-tabs.vertical {
    gap: 9px;
    margin-bottom: 10px;
  }
  .tab {
    font-size: clamp(15px, 4.8vw, 19px);
    padding-bottom: 6px;
  }
  .tab::after {
    height: 12px;
  }
  .central-search {
    width: min(100%, 380px);
    margin-bottom: 7px;
  }
  .central-search input,
  .side-search input {
    height: 34px;
    padding-inline: 15px;
  }
  .timeline-action-row {
    min-height: 39px;
  }
  .timeline-scope-button {
    min-height: 34px;
    min-width: 62px;
    padding: 6px 11px;
    font-size: 13px;
  }
  .timeline-compose-button {
    width: min(212px, 62%);
    padding-block: 8px;
  }
  .timeline {
    gap: 8px;
  }
  .post-card {
    border-radius: 5px;
  }
  .post-link {
    padding: 9px 10px;
  }
  .post-author {
    padding: 9px 10px 0;
  }
  .post-body {
    font-size: 14px;
    line-height: 1.48;
  }
  .post-image {
    max-height: 232px;
  }
  .timeline-card-footer {
    padding: 0 10px 9px;
  }
  .left-column {
    width: min(84vw, 318px);
    padding-inline: 15px;
  }
  .right-column {
    width: min(86vw, 330px);
    padding-inline: 14px;
  }
  .left-account .avatar-dot {
    width: 42px;
    height: 42px;
  }
  .side-menu {
    margin: 5px 0 12px 50px;
    font-size: 20px;
  }
  .side-menu a {
    padding: 5px 0;
  }
  .support-button {
    min-height: 38px;
    margin-block: 10px 8px;
    font-size: 15px;
  }
  .composer-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    padding: 10px;
  }
  .composer-dialog-head h2 {
    font-size: 19px;
  }
  .post-composer-form {
    gap: 9px;
    padding: 10px;
  }
  .field-line,
  .field-line-wide {
    grid-template-columns: 96px 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-grid {
    gap: 7px;
  }
  .right-profile-head {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }
  .right-profile-head .avatar-dot {
    width: 58px;
    height: 58px;
  }
  .fixed-card-thumb {
    height: 56px;
  }
  .kawaraban-shell,
  .parliament-shell {
    font-size: 14px;
  }
  .kawaraban-hero {
    min-height: 52px;
    padding-left: 50px;
  }
  .kawaraban-hero h1 {
    font-size: 31px;
  }
  .kawaraban-board {
    padding: 7px 9px 10px;
  }
  .kawaraban-pickup-head h2 {
    font-size: 22px;
  }
  .static-shell {
    padding: 12px 12px 24px;
  }
  .static-panel {
    padding: 16px;
  }
}

/* Button system pass: same feel across SNS, manga, kawaraban, parliament, chat, and settings. */
.primary-button,
.auth-link,
.support-button,
.timeline-compose-button,
.confirm-category-button,
.composer-submit-button,
.follow-button,
.job-apply-button,
.job-rating-submit,
.notice-ack-button,
.chat-start-button,
.parliament-mini-button,
.parliament-follow-button,
.parliament-stance-button,
.parliament-new-topic,
.parliament-vote-panel a,
.parliament-countdown a,
.parliament-side-card article a,
.kawaraban-login-button,
.kawaraban-location-submit,
.kawaraban-create-button,
.kawaraban-tag-button,
.kawaraban-event-search-form button,
.kawaraban-create-button.is-pickup,
.kawaraban-compose-form button,
.kawaraban-area-chat-form input[type="submit"],
.kawaraban-comment-form input[type="submit"],
.emergency-presence-button,
.reception-form button,
.reception-apply-form button,
.reception-login-button,
.reception-terms-link-card a,
.wallet-connect-button,
.profile-save-row .primary-button,
.wallet-shell .primary-button,
.wallet-action-row .primary-button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border-radius: 5px;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 880;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease,
    filter .16s ease,
    opacity .16s ease,
    transform .16s ease;
}

.primary-button,
.auth-link,
.support-button,
.timeline-compose-button,
.confirm-category-button,
.composer-submit-button,
.follow-button,
.job-apply-button,
.notice-ack-button,
.chat-start-button {
  border: 1px solid color-mix(in srgb, var(--accent-color) 74%, white);
  background: color-mix(in srgb, var(--accent-color) 86%, #161616);
  color: #fff;
}

.primary-button:hover,
.auth-link:hover,
.support-button:hover,
.timeline-compose-button:hover,
.confirm-category-button:hover,
.composer-submit-button:hover,
.follow-button:hover,
.job-apply-button:hover,
.notice-ack-button:hover,
.chat-start-button:hover,
.parliament-mini-button:hover,
.parliament-follow-button:hover,
.parliament-stance-button:hover,
.parliament-new-topic:hover,
.kawaraban-login-button:hover,
.kawaraban-location-submit:hover,
.kawaraban-create-button:hover,
.kawaraban-tag-button:hover,
.kawaraban-event-search-form button:hover,
.kawaraban-compose-form button:hover,
.emergency-presence-button:hover {
  filter: brightness(1.08) saturate(1.04);
  transform: translateY(-1px);
}

.primary-button:active,
.auth-link:active,
.support-button:active,
.timeline-compose-button:active,
.confirm-category-button:active,
.composer-submit-button:active,
.follow-button:active,
.job-apply-button:active,
.parliament-mini-button:active,
.parliament-follow-button:active,
.parliament-stance-button:active,
.kawaraban-create-button:active,
.kawaraban-tag-button:active,
.kawaraban-compose-form button:active {
  transform: translateY(0);
}

.quiet-button,
.secondary-button,
.timeline-scope-button,
.ended-job-toggle,
.repost-toggle,
.job-offer-toggle,
.open-favorite-toggle,
.danger-button,
.share-actions .quiet-button,
.profile-head-actions .profile-safety-link,
.password-visibility-button,
.emergency-official-link,
.legal-toc a,
.parliament-filter-row a,
.parliament-filter-row span,
.parliament-pagination a {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border-radius: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: var(--quiet-fill);
  color: #f5f2ef;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, filter .16s ease;
}

@media (min-width: 761px) {
  .reception-side-toggle {
    display: none;
  }
}

.quiet-button:hover,
.secondary-button:hover,
.timeline-scope-button:hover,
.ended-job-toggle:hover,
.repost-toggle:hover,
.job-offer-toggle:hover,
.open-favorite-toggle:hover,
.share-actions .quiet-button:hover,
.profile-head-actions .profile-safety-link:hover,
.password-visibility-button:hover,
.emergency-official-link:hover,
.legal-toc a:hover,
.parliament-filter-row a:hover,
.parliament-pagination a:hover {
  border-color: rgba(255, 255, 255, .26);
  background: var(--quiet-fill-hover);
  color: #fff;
}

.timeline-scope-button,
.ended-job-toggle,
.repost-toggle,
.job-offer-toggle,
.open-favorite-toggle,
.follow-button,
.parliament-follow-button,
.wallet-connect-button,
.reception-side-toggle {
  border-radius: 999px;
}

.timeline-scope-button.is-active,
.repost-toggle.is-active,
.job-offer-toggle.is-active,
.follow-button.is-following,
.parliament-follow-button.is-following,
.kawaraban-tag-button.is-active {
  background: color-mix(in srgb, var(--accent-color) 34%, #151515);
  border-color: color-mix(in srgb, var(--accent-color) 62%, white);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.repost-toggle.is-active {
  border-color: #00ba14;
  color: #72e780;
  background: rgba(0,186,20,.12);
}

.job-offer-toggle.is-active {
  border-color: #14ba14;
  color: #8cf08c;
  background: rgba(20,186,20,.14);
}

.follow-button.is-following,
.parliament-follow-button.is-following {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.09);
  color: #f4f4f4;
}

.kawaraban-tag-button.is-active {
  border-color: var(--kawara-gold);
  background: var(--kawara-gold);
  color: #fff;
}

.danger-button,
.content-report-link,
.profile-safety-link {
  border-color: rgba(255, 126, 126, .42);
  background: rgba(142, 31, 40, .22);
  color: #ffc7c7;
}

.danger-button:hover {
  background: rgba(142, 31, 40, .42);
  color: #fff;
}

.favorite-toggle,
.modal-close-button,
.post-gallery-nav,
.post-gallery-close,
.mobile-tool-button,
.mobile-panel-close,
.kawaraban-compose-head button,
.kawaraban-detail-head-actions .favorite-toggle,
.reception-detail-window-head button,
.parliament-comment-dialog header button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(12, 12, 12, .72);
  color: #fff;
  line-height: 1;
}

.favorite-toggle:hover,
.modal-close-button:hover,
.post-gallery-nav:hover,
.post-gallery-close:hover,
.mobile-tool-button:hover,
.mobile-panel-close:hover,
.kawaraban-compose-head button:hover,
.kawaraban-detail-head-actions .favorite-toggle:hover,
.reception-detail-window-head button:hover,
.parliament-comment-dialog header button:hover {
  background: rgba(255, 255, 255, .12);
}

.favorite-toggle.is-active {
  color: #ffe66b;
  border-color: rgba(255, 230, 107, .88);
  background: rgba(50, 40, 0, .58);
}

.category-tab-button,
.citation-tab-button {
  border-radius: 5px;
  background: rgba(255,255,255,.045);
}

.category-tab-button.is-open,
.category-tab-button.is-confirmed,
.citation-tab-button:has(input:checked) {
  background: color-mix(in srgb, var(--cat-color, var(--accent-color)) 28%, #151515);
  border-color: color-mix(in srgb, var(--cat-color, var(--accent-color)) 60%, white);
}

button:disabled,
input[type="submit"]:disabled,
.primary-button:disabled,
.confirm-category-button:disabled,
.category-tab-button:disabled,
.kawaraban-tag-button.is-disabled,
.classroom-source-actions button:disabled {
  opacity: .48;
  filter: grayscale(.22);
  cursor: not-allowed;
  transform: none;
}

.kawaraban-create-button,
.kawaraban-tag-button,
.kawaraban-event-search-form button,
.kawaraban-create-button.is-pickup,
.kawaraban-compose-form button,
.kawaraban-area-chat-form input[type="submit"],
.kawaraban-comment-form input[type="submit"] {
  border-width: 2px;
  border-radius: 5px;
}

.kawaraban-create-button,
.kawaraban-tag-button {
  background: rgba(255, 255, 255, .96);
}

.parliament-mini-button,
.parliament-follow-button,
.parliament-new-topic,
.parliament-vote-panel a,
.parliament-countdown a,
.parliament-side-card article a {
  border: 1px solid rgba(115, 128, 255, .42);
  background: color-mix(in srgb, var(--parliament-blue, #0014BA) 82%, #171717);
}

.manga-wallet-copy,
.manga-timeline-back {
  min-height: 34px;
  border-radius: 5px;
  padding: 7px 11px;
}

@media (max-width: 640px) {
  .primary-button,
  .auth-link,
  .support-button,
  .timeline-compose-button,
  .confirm-category-button,
  .composer-submit-button,
  .follow-button,
  .quiet-button,
  .secondary-button,
  .timeline-scope-button,
  .repost-toggle,
  .job-offer-toggle,
  .kawaraban-create-button,
  .kawaraban-tag-button,
  .parliament-mini-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .favorite-toggle,
  .modal-close-button,
  .mobile-tool-button,
  .mobile-panel-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* Left panel scroll contract: desktop outer scroll stops at category tabs; results scroll inside. */
@media (min-width: 1101px) {
  .mobile-panel-close,
  .mobile-drawer-backdrop,
  .mobile-control-bar {
    display: none !important;
  }
  .left-scroll-area {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .category-search {
    flex: 0 0 calc(100dvh - 84px);
    min-height: calc(100dvh - 84px);
    max-height: calc(100dvh - 84px);
  }
  .category-tabs.vertical {
    top: 0;
  }
  .left-results-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 1100px) {
  .category-tabs.vertical {
    top: 0;
    padding-top: 38px;
  }
  .left-results-scroll {
    overflow-y: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .category-tabs.vertical {
    padding-top: 34px;
  }
}

/* Cross-page component consistency: side-column CTAs share one size and alignment. */
.support-button,
.parliament-support-button,
.reception-left-support-button,
.kawaraban-support {
  width: var(--side-cta-width);
  min-height: var(--side-cta-height);
  margin: 12px auto 10px;
  align-self: center;
  justify-self: center;
  border-radius: 5px;
  padding-inline: 14px;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}

.parliament-support-button,
.reception-left-support-button {
  margin-inline: auto;
}

.parliament-left .parliament-support-button {
  margin-top: auto;
}

.kawaraban-support {
  position: sticky;
  bottom: 8px;
  box-shadow: 0 -8px 16px rgba(255,255,255,.38);
}

.parliament-new-topic {
  width: var(--side-cta-width);
  margin: 0 auto 10px;
  align-self: center;
  justify-self: center;
}

.side-search,
.central-search,
.timeline-action-row,
.support-dialog-actions,
.parliament-filter-row,
.kawaraban-pickup-tools,
.kawaraban-event-search-actions,
.share-actions,
.post-management-actions,
.profile-head-actions {
  align-items: center;
}

.side-search {
  justify-self: center;
}

@media (min-width: 641px) {
  .timeline-action-row .timeline-compose-button {
    width: 154px;
    min-width: 154px;
    max-width: 154px;
  }
}

.parliament-left .support-button,
.parliament-left .parliament-new-topic,
.left-column > .support-button,
.reception-left .support-button,
.kawaraban-left .kawaraban-support {
  flex: 0 0 auto;
}

.kawaraban-left .kawaraban-support {
  margin-top: auto;
}

@media (max-width: 640px) {
  :root {
    --side-cta-width: min(174px, calc(100% - 24px));
    --side-cta-height: 36px;
  }
  .support-button,
  .parliament-support-button,
  .reception-left-support-button,
  .kawaraban-support,
  .parliament-new-topic {
    font-size: 13px;
  }
}

/* Final interaction/layout tightening. */
.left-account {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 122px);
}

.wallet-connect-button {
  width: 100%;
  max-width: 122px;
  min-height: 34px;
  padding: 6px 9px;
  white-space: normal;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.post-detail-shell .post-action-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.post-detail-shell .share-actions,
.post-detail-shell .post-management-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
}

.post-detail-shell .share-actions { justify-content: flex-start; }
.post-detail-shell .post-management-actions { justify-content: flex-end; margin-left: auto; }
.post-detail-shell .share-actions > *,
.post-detail-shell .post-management-actions > *,
.post-detail-shell .share-actions form,
.post-detail-shell .post-management-actions form { align-self: center; }

.post-detail-shell .share-feedback {
  min-width: 0;
  max-width: 11em;
  overflow: hidden;
  color: #b7f7be;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-close,
.kawaraban-detail-close,
.classroom-image-close,
[data-kawaraban-close-compose],
[data-reception-detail-close],
[data-reception-qr-close],
[data-parliament-comment-close] {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
}

.favorite-toggle,
.open-favorite-toggle,
.modal-close-button,
.post-gallery-close,
.mobile-panel-close,
.flash-close,
.kawaraban-detail-close,
.classroom-image-close {
  align-items: center;
  justify-items: center;
  text-align: center;
}

.favorite-toggle,
.open-favorite-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

/* Shared three-stage rail layout: desktop rails, compact two-column, then mobile drawers. */
@media (min-width: 641px) and (max-width: 1100px) {
  .adaptive-rail-shell {
    --adaptive-left-width: clamp(220px, 27vw, 280px);
    --adaptive-right-width: 350px;
    align-items: start;
    min-height: 0;
    overflow: visible !important;
  }

  .adaptive-rail-shell-three,
  .adaptive-rail-shell-two {
    display: grid !important;
    grid-template-columns: var(--adaptive-left-width) minmax(0, 1fr) !important;
  }

  .suni-shell.adaptive-rail-shell {
    gap: clamp(12px, 2vw, 20px);
    margin: 10px 12px 24px;
  }

  .parliament-shell.adaptive-rail-shell {
    gap: clamp(12px, 2vw, 20px);
    margin: 10px 12px 24px;
    padding: 0;
  }

  .kawaraban-shell.adaptive-rail-shell {
    gap: 10px;
  }

  .adaptive-rail-left {
    position: sticky !important;
    inset: 0 auto auto !important;
    z-index: 10;
    align-self: start;
    width: auto !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .suni-shell .adaptive-rail-left {
    padding: 0 12px 16px;
    overflow: hidden !important;
  }

  .adaptive-rail-main {
    min-width: 0;
    width: auto !important;
    margin-inline: 0 !important;
  }

  .suni-shell .adaptive-rail-main,
  .suni-shell.mobile-panel-right .adaptive-rail-main {
    display: flex !important;
  }

  .parliament-shell .adaptive-rail-main {
    overflow: visible;
    padding: 10px 14px 20px;
  }

  .adaptive-rail-right {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 42;
    display: flex !important;
    flex-direction: column;
    width: min(88vw, var(--adaptive-right-width)) !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: 50px 14px 18px !important;
    overflow-y: auto !important;
    border-left: 1px solid rgba(255,255,255,.14) !important;
    background: #101010;
    box-shadow: -18px 0 50px rgba(0,0,0,.38);
    transform: translateX(105%);
    transition: transform .22s ease;
    visibility: hidden;
    pointer-events: none;
  }

  body.right-menu-open .adaptive-rail-right {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .adaptive-rail-backdrop {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 41;
    background: rgba(0,0,0,.48);
  }

  body.right-menu-open .adaptive-rail-backdrop {
    display: block !important;
  }

  .adaptive-rail-left > .mobile-panel-close {
    display: none !important;
  }

  .adaptive-rail-right > .mobile-panel-close {
    display: grid !important;
  }

  .adaptive-rail-shell-three .adaptive-rail-tools {
    display: flex !important;
    justify-content: flex-end;
  }

  .adaptive-rail-shell-three .adaptive-rail-tools [data-open-left-menu] {
    display: none !important;
  }

  .adaptive-rail-shell-two .adaptive-rail-tools {
    display: none !important;
  }

  .parliament-shell .adaptive-rail-tools {
    position: sticky;
    top: 8px;
    z-index: 32;
    height: 0;
    margin: 0;
    pointer-events: none;
  }

  .parliament-shell .adaptive-rail-tools .mobile-account-button {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: auto;
  }

  .parliament-left {
    padding: 0 12px 16px;
    border-right: 1px solid rgba(255,255,255,.08);
    overflow: hidden !important;
  }

  .parliament-logo {
    width: 100%;
    height: auto;
    max-height: 58px;
  }

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

  .adaptive-rail-right .mobile-back-to-timeline {
    display: none;
  }
}

@media (max-width: 640px) {
  .suni-shell.mobile-panel-right .adaptive-rail-right {
    position: relative;
  }

  .adaptive-rail-right .mobile-back-to-timeline {
    display: none;
  }
}

@media (max-width: 640px) {
  .sunich-referral { align-items: stretch; flex-direction: column; }
  .sunich-referral > div { justify-content: flex-end; }

  .left-account {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 112px);
    gap: 8px;
  }

  .wallet-connect-button {
    max-width: 112px;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .historical-event-line {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 5px;
  }

  .historical-event-line > span:first-child,
  .historical-source-toggle {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .historical-source-toggle {
    gap: 2px;
  }

  .historical-source-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
  }

  .historical-event-line input {
    min-width: 0;
  }

  .detail-fieldset-historical .field-line:not(.historical-event-line),
  fieldset[data-detail="historical"] .field-line:not(.historical-event-line) {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

/* Composer image control. */
.wallet-connect-button {
  max-width: 104px;
  min-height: 36px;
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.04;
  white-space: normal;
}

.wallet-connect-button .wallet-line {
  display: block;
}

.composer-category-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.image-tab-button {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left-color: var(--hermitage);
}

.image-tab-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-input-panel[hidden] {
  display: none !important;
}

.image-input-panel {
  margin: 0;
}

.image-preview-list {
  grid-template-columns: 1fr;
}

.image-preview-list.has-multiple-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-preview-item {
  aspect-ratio: 16 / 9;
  border-color: var(--hermitage);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Account emblems must remain visible; only the account name may shrink. */
.account-name-with-emblems {
  overflow: visible;
}

.account-name-text {
  flex: 0 1 auto;
}

.petal-emblem,
.manga-nft-badge {
  flex: 0 0 auto;
}

.post-author strong .account-name-with-emblems,
.open-post-header strong .account-name-with-emblems,
.account-switch strong .account-name-with-emblems,
.right-profile-head h2 .account-name-with-emblems,
.kawaraban-account strong .account-name-with-emblems,
.reception-account .account-name-with-emblems,
.notification-card .account-name-with-emblems,
.comment-card-content > strong .account-name-with-emblems {
  width: 100%;
}

/* Sidebar account header: wallet action sits below the account identity. */
.left-account {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 6px;
}

.left-account .account-switch {
  width: 100%;
}

.left-account .account-name-with-emblems {
  max-width: 100%;
}

.left-account .account-name-text {
  max-width: min(12em, 100%);
}

.left-scroll-area > .wallet-connect-button {
  justify-self: start;
  align-self: start;
  width: fit-content;
  max-width: calc(100% - 56px);
  min-height: 30px;
  margin: 0 0 7px 56px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
}

.wallet-connect-button .wallet-line {
  display: inline;
}

@media (max-width: 640px) {
  .left-scroll-area > .wallet-connect-button {
    max-width: 98px;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 9.5px;
  }

  .composer-category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hermitage-account-card {
    grid-template-areas: "head" "meta" "bio" "context";
    grid-template-columns: minmax(0, 1fr);
  }

  .hermitage-account-meta {
    justify-content: flex-start;
  }
}

/* The sidebar body only becomes a scroll container after a left search. */
.left-scroll-area.is-search-controlled {
  overflow-y: hidden !important;
  overscroll-behavior-y: none;
}

.left-scroll-area.is-search-controlled.is-search-active {
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}

/* Stored OG media uses one full-width card shape; allowlisted videos play in place. */
.post-link-preview {
  display: block;
  margin: 0 11px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  color: #f3f0ed;
  text-decoration: none;
}

.post-link-preview.is-text-only {
  min-height: 0;
}

.post-link-preview-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #090909;
  color: #f6f3f0;
}

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

.post-link-preview-video-poster {
  cursor: pointer;
}

.post-link-preview-video-poster::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
  content: "";
}

.post-link-preview-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: rgba(8, 8, 8, .78);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.post-link-preview-video-provider {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 12px;
  color: #d9d5d1;
  font-size: 14px;
}

.post-link-preview-video-poster:focus-visible {
  outline: 2px solid #67b7ff;
  outline-offset: -2px;
}

.post-link-preview-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.post-link-preview-copy-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-link-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 11px;
}

.post-link-preview-copy small,
.post-link-preview-copy strong,
.post-link-preview-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-link-preview-copy small {
  color: #aaa4a0;
  font-size: 10px;
  white-space: nowrap;
}

.post-link-preview-copy strong {
  color: #f6f3f0;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.post-link-preview-copy > span {
  display: -webkit-box;
  color: #c7c1bd;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.post-card-open .post-link-preview {
  margin: 0 18px 14px;
}

@media (max-width: 640px) {
  .timeline-card-controls {
    align-items: flex-start;
  }

  .timeline-card-actions {
    flex-wrap: wrap;
  }

  .post-link-preview {
    margin-inline: 10px;
  }

  .post-link-preview-copy {
    padding: 7px 9px;
  }

  .post-link-preview-play {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .post-card-open .post-link-preview {
    margin-inline: 12px;
  }
}

/* Cross-browser classroom rails: preserve the guide, move references to a real drawer. */
@media (min-width: 681px) and (max-width: 1100px) {
  body.classroom-page .topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 50px;
    padding: 5px 10px 6px;
  }

  body.classroom-page .brand {
    flex: 0 0 98px;
    min-width: 98px;
  }

  body.classroom-page .brand img {
    width: 98px;
    height: 34px;
  }

  body.classroom-page .topnav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 1px 0;
    font-size: 11px;
    scrollbar-width: none;
  }

  body.classroom-page .topnav::-webkit-scrollbar {
    display: none;
  }

  body.classroom-page .auth-link,
  body.classroom-page .pwa-install-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .classroom-heading {
    grid-template-columns: minmax(230px, .82fr) minmax(0, 1.18fr);
    gap: 10px;
  }

  .classroom-heading-tools,
  .classroom-title-block {
    grid-template-rows: 24px 34px;
  }

  .classroom-public-info-notice summary {
    min-height: 34px;
    padding-block: 4px;
  }

  .classroom-grid.adaptive-rail-shell {
    --adaptive-left-width: clamp(220px, 33vw, 280px);
    align-items: stretch;
    min-height: calc(100vh - 126px);
    min-height: calc(100dvh - 126px);
  }

  .classroom-grid .uzume-panel.adaptive-rail-left {
    top: 54px !important;
    z-index: 25;
    isolation: isolate;
    height: calc(100vh - 126px) !important;
    height: calc(100dvh - 126px) !important;
    max-height: calc(100vh - 126px) !important;
    max-height: calc(100dvh - 126px) !important;
    overflow: hidden !important;
  }

  .classroom-grid .classroom-chat.adaptive-rail-main {
    position: relative;
    z-index: 1;
    isolation: isolate;
    align-self: stretch;
    min-height: 350px;
    overflow: hidden;
  }

  .classroom-grid .classroom-sources.adaptive-rail-right {
    height: 100vh !important;
    height: 100dvh !important;
    padding: 46px 0 12px !important;
    border: 0 !important;
    border-left: 1px solid #bbc3ba !important;
    border-radius: 8px 0 0 8px;
    color: #171b18;
    background: #fdfefc;
    box-shadow: -18px 0 50px rgba(20, 35, 25, .3);
  }

  .classroom-grid .classroom-sources.adaptive-rail-right > .mobile-panel-close {
    top: 8px;
    right: 10px;
  }

  .classroom-mobile-tools {
    display: flex !important;
  }

  .classroom-sources-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #9da99f;
    border-radius: 5px;
    color: #33423a;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(32,47,37,.1);
  }

  .classroom-sources-toggle:hover,
  .classroom-sources-toggle:focus-visible {
    border-color: #587766;
    color: #234b38;
    background: #edf3ef;
    outline: 2px solid rgba(57,92,70,.16);
    outline-offset: 1px;
  }

  .classroom-sources-toggle-label {
    display: inline;
    white-space: nowrap;
  }
}

@media (min-width: 681px) and (max-width: 820px) {
  .classroom-mode {
    display: none;
  }
}

@media (max-width: 680px) {
  .classroom-mobile-tools {
    display: flex;
  }

  .classroom-sources-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    color: #f7fff9;
    background: #245d48;
  }

  .classroom-sources-toggle-label {
    display: none;
  }

  .classroom-grid .classroom-sources.adaptive-rail-right {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 42;
    display: block;
    width: min(88vw, 330px);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 44px 0 12px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid #bbc3ba;
    border-radius: 8px 0 0 8px;
    color: #171b18;
    background: #fdfefc;
    box-shadow: -18px 0 50px rgba(20, 35, 25, .3);
    transform: translateX(105%);
    transition: transform .22s ease;
    visibility: hidden;
    pointer-events: none;
  }

  body.right-menu-open .classroom-grid .classroom-sources.adaptive-rail-right {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .classroom-grid .classroom-sources > .mobile-panel-close {
    display: grid;
  }

  body.right-menu-open .classroom-mobile-backdrop {
    display: block;
  }
}

@supports not (height: 100dvh) {
  body.kawaraban-page .app-window,
  body.classroom-page .app-window,
  body.reception-page .app-window {
    min-height: 100vh;
  }

  .reception-shell {
    height: calc(100vh - 54px);
  }
}

/* Shared density pass: keep repeated tool surfaces compact without changing behavior. */
.auth-panel,
.profile-editor {
  padding: 20px;
}

.auth-panel h1,
.profile-editor > h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.stack-form,
.profile-settings-card,
.detail-section,
.parliament-comment-board {
  gap: 6px;
}

.auth-links {
  gap: 8px;
  margin-top: 8px;
}

.wallet-auth-box {
  gap: 6px;
  margin: 10px 0;
  padding: 10px;
}

.profile-settings-card {
  padding: 11px;
}

.profile-settings-card > header {
  padding-bottom: 5px;
}

.static-section {
  padding-block: 14px;
}

.static-section h2 {
  margin-bottom: 6px;
}

.static-section p,
.static-section li,
.legal-section p,
.legal-section li,
.guide-prose p,
.guide-prose li {
  line-height: 1.7;
}

.static-section p + p,
.static-section p + ul,
.static-section p + ol,
.static-section ul + p,
.static-section ol + p {
  margin-top: 6px;
}

.parliament-issue-detail-panel,
.parliament-stat-card,
.parliament-vote-form,
.parliament-comment-form,
.parliament-participation-lock,
.parliament-comment-board {
  margin-top: 5px;
}

.parliament-comment-form {
  padding: 8px;
}

.parliament-comment-form header {
  margin-bottom: 6px;
}

.classroom-heading {
  gap: 10px;
  margin-bottom: 6px;
}

.classroom-heading-tools,
.classroom-title-block {
  grid-template-rows: 24px 34px;
}

.classroom-grid {
  gap: 10px;
}

.uzume-panel {
  padding: 10px;
}

.classroom-chat-head,
.classroom-sources-head {
  padding: 10px 12px 8px;
}

.classroom-messages {
  padding: 12px;
}

.classroom-message {
  margin-bottom: 8px;
}

.classroom-form {
  padding: 8px 10px 10px;
}

.kawaraban-shell {
  gap: 12px;
  padding-top: 10px;
}

.kawaraban-left {
  gap: 9px;
  padding: 14px 14px 12px;
}

.kawaraban-board {
  padding-top: 8px;
}

@media (max-width: 680px) {
  .auth-panel,
  .profile-editor {
    padding: 14px;
  }

  .wallet-auth-box {
    margin: 7px 0;
    padding: 8px;
  }

  .parliament-comment-form {
    grid-column: 1;
    padding: 6px;
  }

  .parliament-inline-comment-form {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .parliament-inline-comment-form .parliament-comment-stance-select,
  .parliament-inline-comment-form .parliament-position-meter,
  .parliament-inline-comment-form .parliament-position-number-field,
  .parliament-inline-comment-form .parliament-comment-body-input,
  .parliament-inline-comment-form .parliament-comment-submit {
    grid-column: 1;
    grid-row: auto;
  }

  .parliament-inline-comment-form .parliament-comment-body-input {
    min-height: 84px;
    height: auto;
  }

  .parliament-inline-comment-form .parliament-comment-submit {
    width: 100%;
  }

  .classroom-heading {
    gap: 6px;
    margin-bottom: 4px;
  }

  .classroom-grid {
    gap: 6px;
  }

  .uzume-panel {
    padding: 8px;
  }
}

/* Parliament comment controls keep the light editing surface while focused. */
.parliament-shell .parliament-comment-form select,
.parliament-shell .parliament-comment-form input:not([type="radio"]):not([type="checkbox"]),
.parliament-shell .parliament-comment-form textarea,
.parliament-shell .parliament-comment-dialog textarea,
.parliament-shell .comment-stance-row label {
  background: var(--parliament-input-bg) !important;
  color: var(--parliament-input-text) !important;
  caret-color: var(--parliament-input-text);
}
.parliament-shell .parliament-comment-form select:focus,
.parliament-shell .parliament-comment-form input:not([type="radio"]):not([type="checkbox"]):focus,
.parliament-shell .parliament-comment-form textarea:focus,
.parliament-shell .parliament-comment-dialog textarea:focus {
  background: var(--parliament-input-bg) !important;
  color: var(--parliament-input-text) !important;
}

/* Stella Array optional account-link flow */
.stella-connect-page {
  background: #050a25;
}

.stella-connect-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(51, 173, 255, .24), transparent 36%),
    radial-gradient(circle at 88% 88%, rgba(255, 92, 177, .20), transparent 32%),
    linear-gradient(145deg, #071038, #151b54 56%, #07102f);
}

.stella-connect-card {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 54px);
  color: #f5f7ff;
  border: 1px solid rgba(116, 220, 255, .72);
  border-radius: 24px;
  background: rgba(9, 18, 61, .92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .38), inset 0 0 38px rgba(82, 154, 255, .12);
}

.stella-connect-kicker {
  margin: 0 0 10px;
  color: #82e7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.stella-connect-card h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(27px, 5vw, 42px);
}

.stella-connect-lead,
.stella-connect-card p {
  line-height: 1.8;
}

.stella-connect-benefits {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.stella-connect-benefits li {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) 1.3fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.stella-connect-benefits strong { color: #ffe28a; }
.stella-connect-benefits span { color: #d4dcf7; font-size: 14px; }

.stella-connect-identity {
  display: grid;
  gap: 4px;
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid #ff78ba;
  background: rgba(255, 255, 255, .06);
}

.stella-connect-identity span,
.stella-connect-identity small { color: #b9c6ea; }
.stella-connect-identity strong { font-size: 21px; }

.stella-connect-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.stella-connect-actions a,
.stella-connect-actions input {
  box-sizing: border-box;
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  text-align: center;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.stella-connect-primary {
  border: 1px solid #ff79bd;
  color: #111838;
  background: linear-gradient(135deg, #ffe08b, #ff81bf);
}

.stella-connect-secondary {
  border: 1px solid #78dfff;
  color: #effbff;
  background: rgba(55, 151, 225, .18);
}

.stella-connect-note { margin: 22px 0 0; color: #aebcdc; font-size: 13px; }
.stella-connect-complete { text-align: center; }

@media (max-width: 600px) {
  .stella-connect-benefits li,
  .stella-connect-actions { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
 * Shared layout normalization
 *
 * Keep page-specific themes above this section, but make the common rhythm
 * predictable.  This is intentionally a small, last-pass layer: it fixes
 * alignment and contrast without replacing the established dark/light cards.
 * -------------------------------------------------------------------------- */
:root {
  --suni-space-1: 4px;
  --suni-space-2: 8px;
  --suni-space-3: 12px;
  --suni-space-4: 16px;
  --suni-line-body: 1.45;
  --suni-line-copy: 1.55;
  --suni-line-heading: 1.2;
}

body {
  line-height: var(--suni-line-body);
}

/* Navigation, identity rows and action rows share the same optical baseline. */
body :where(
  .topbar,
  .topnav,
  .auth-form,
  .post-author,
  .post-action-row,
  .share-actions,
  .post-management-actions,
  .follow-row,
  .profile-head-actions,
  .notification-card,
  .reception-detail-window-head,
  .parliament-filter-row,
  .kawaraban-pickup-tools,
  .kawaraban-event-search-actions
) {
  align-items: center;
}

/* Keep the three-column shells visually related at every desktop width. */
body :where(.suni-shell, .chat-shell, .kawaraban-shell) {
  gap: var(--suni-space-4);
}

@media (min-width: 641px) and (max-width: 1100px) {
  body :where(.suni-shell.adaptive-rail-shell, .kawaraban-shell.adaptive-rail-shell) {
    gap: var(--suni-space-3);
  }
}

/* Copy blocks use a tighter, consistent rhythm while preserving headings. */
body :where(
  .static-panel,
  .post-detail-shell,
  .auth-panel,
  .profile-editor,
  .admin-shell
) {
  line-height: var(--suni-line-copy);
}

body :where(
  .timeline,
  .comment-list,
  .notification-list,
  .job-applicant-list,
  .profile-field-grid,
  .field-grid,
  .detail-forms,
  .citation-detail-fields,
  .image-rights-fields
) {
  row-gap: var(--suni-space-3);
}

/* Dark controls remain dark; light editors explicitly opt into light controls. */
body :where(input, textarea, select) {
  color-scheme: dark;
  -webkit-text-fill-color: currentColor;
}

body :where(input, textarea)::placeholder {
  color: rgba(255, 255, 255, .62);
  opacity: 1;
}

body :where(
  .parliament-shell,
  .kawaraban-shell,
  .classroom-shell
) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  textarea,
  select
) {
  color-scheme: light;
}

body :where(.parliament-shell, .kawaraban-shell, .classroom-shell) :where(input, textarea)::placeholder {
  color: #5d685f;
  opacity: 1;
}

body :where(input, textarea, select):focus {
  color: inherit;
}

/* Form contrast contract: every editable control must keep a readable
 * foreground/background pair, including controls injected inside dialogs.
 * Submit/button inputs are intentionally excluded so their action colours are
 * still supplied by each component theme. */
body :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  textarea,
  select
) {
  background-color: #202020 !important;
  color: #f7f3ef !important;
  caret-color: #f7f3ef !important;
  -webkit-text-fill-color: #f7f3ef !important;
  color-scheme: dark;
}

/* The light document surfaces retain their existing white editor treatment;
 * this selector also covers future fields and modal content without relying
 * on every form partial to repeat the same colours. */
body :where(.kawaraban-shell, .parliament-shell) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  textarea,
  select
) {
  background-color: #fff !important;
  color: #111 !important;
  caret-color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  color-scheme: light;
}

body :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  textarea
)::placeholder {
  color: rgba(247, 243, 239, .68) !important;
  opacity: 1;
}

body :where(.kawaraban-shell, .parliament-shell) :where(input, textarea)::placeholder {
  color: #5d685f !important;
  opacity: 1;
}

/* --------------------------------------------------------------------------
 * Final layout QA pass
 *
 * These rules cover the small, repeated geometry failures found by the
 * desktop/mobile audit: navigation rows must wrap instead of escaping their
 * panel, compact vote rows must be allowed to shrink, and the full-bleed
 * Kawaraban carousel must stop exactly at the board edge.
 * -------------------------------------------------------------------------- */

/* Long section menus stay readable at every width rather than being clipped
 * by an invisible horizontal scroller. */
.legal-toc {
  align-items: center;
  flex-wrap: wrap;
  overflow-x: visible;
  overflow-y: visible;
  max-width: 100%;
}

.legal-toc a {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  line-height: 1.2;
  text-align: center;
}

/* Header controls can wrap on phones, but their visual baseline remains
 * centered instead of leaving the action buttons pinned to the top edge. */
.classroom-chat-head,
.classroom-sources-head {
  align-items: center;
}

/* The percentage column is the flexible side of the vote row.  Without a
 * shrinkable value, 100% plus the Japanese label exceeds narrow cards. */
.parliament-vote-panel dl div {
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.parliament-vote-panel dl dd {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

/* Match the board's inner padding (16px on the desktop density pass) so the
 * carousel's full-bleed treatment does not create a 1–2px phantom overflow. */
body :where(.kawaraban-board) .kawaraban-slider-wrap {
  max-width: calc(100% + 32px);
  margin-inline: -16px;
}

@media (max-width: 680px) {
  body :where(.kawaraban-board) .kawaraban-slider-wrap {
    max-width: calc(100% + 20px);
    margin-inline: -10px;
  }

  /* Keep the two classroom policy popovers inside the device viewport even
   * when their trigger is the rightmost compact header control. */
  body.classroom-page .classroom-public-info-notice p {
    width: min(720px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  body.classroom-page .classroom-policy p {
    right: calc(-1 * clamp(76px, 22vw, 96px));
    width: min(330px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}

/* Excerpts in reflected/collection cards wrap consistently instead of
 * producing a single invisible line thousands of pixels wide. */
.reflected-body-text {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  line-height: 1.45;
}
