:root {
  color-scheme: light;
  --ink: #18152b;
  --muted: #716d82;
  --paper: #f5f3fb;
  --surface: rgba(255, 255, 252, 0.88);
  --line: #ddd8eb;
  --accent: #6c3bdd;
  --accent-dark: #4d27b2;
  --accent-blue: #1468e8;
  --accent-cyan: #00bce7;
  --accent-soft: #ebe7fb;
  --hot: #d51eaf;
  --shadow: 0 26px 70px rgba(37, 24, 89, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
}

.ambient-one { left: -15rem; top: -14rem; background: radial-gradient(circle, #a9cdfd, transparent 68%); }
.ambient-two { right: -13rem; bottom: -17rem; background: radial-gradient(circle, #d5b4fb, transparent 68%); }

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .98; }
h1 em { display: inline-block; min-height: 1.15em; color: transparent; background: linear-gradient(100deg, var(--accent-blue), var(--accent), var(--hot)); background-clip: text; -webkit-background-clip: text; font-style: normal; transition: opacity .22s, transform .22s; }
h1 em.changing { opacity: 0; transform: translateY(7px); }
h2 { margin-bottom: .35rem; }
p { color: var(--muted); line-height: 1.6; }

.landing {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 500px);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding: 60px 0;
}

.public-section { grid-column: 1 / -1; padding-top: 10px; }
.public-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.public-heading .eyebrow { margin-bottom: 4px; }
.public-heading h2 { margin-bottom: 0; font-size: 1.7rem; }
.public-room-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.public-room { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,252,.65); }
.public-room h3 { overflow: hidden; margin: 3px 0 5px; font: 700 1rem Inter, ui-sans-serif, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.public-room p { margin: 0; font-size: .7rem; }
.public-room .secondary { flex: 0 0 auto; text-decoration: none; font-size: .76rem; }
.public-room-slug { color: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.hero p { max-width: 36rem; font-size: 1.08rem; }
.hero #rotating-slogan { min-height: 3.25em; font-size: .58em; line-height: 1.08; }
.eyebrow { display: block; margin-bottom: 1.1rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.panel {
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.create-panel { padding: clamp(24px, 4vw, 42px); }
.panel-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.panel-heading h2 { font-size: 1.45rem; }
.panel-heading p { margin-bottom: 0; font-size: .9rem; }
.step { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 800; }

.form-stack { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1.45fr; gap: 14px; }
label { display: grid; gap: 7px; color: #433d59; font-size: .82rem; font-weight: 700; }
label span { color: var(--muted); font-weight: 400; }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox-row span { font-size: .78rem; }
.checkbox-row strong { color: var(--ink); }
label.disabled { opacity: .48; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.8);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,59,221,.13); }
textarea { resize: vertical; line-height: 1.5; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.primary, .secondary, .quiet-button, .icon-button {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.primary { min-height: 48px; padding: 12px 18px; color: white; background: linear-gradient(115deg, var(--accent), var(--accent-blue)); box-shadow: 0 10px 24px rgba(86,55,205,.22); }
.primary:not(:disabled):hover { background: linear-gradient(115deg, var(--accent-dark), #0d55c9); transform: translateY(-1px); }
.primary span { float: right; font-size: 1.2rem; }
.secondary { padding: 11px 17px; border: 1px solid var(--line); background: white; }
.secondary:not(:disabled):hover { border-color: #aab5ac; background: #fafbf9; }
.form-error { min-height: 1em; margin: 0; color: #b43e31; font-size: .8rem; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #9aa29c; font-size: .75rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.centered { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.unlock-panel { width: min(430px, 100%); padding: 42px; text-align: center; }
.unlock-panel h1 { font-size: 2rem; margin-bottom: 10px; }
.unlock-panel label { text-align: left; }
.lock-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 22px; place-items: center; border-radius: 20px; color: white; background: var(--accent); font-size: 2rem; transform: rotate(-12deg); }
.application-login-panel { overflow: hidden; position: relative; }
.application-login-panel::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: linear-gradient(90deg, var(--accent-blue), var(--accent), var(--hot)); }
.application-lock { display: grid; width: 68px; height: 68px; margin: 0 auto 24px; place-items: center; border: 1px solid #d5cdf2; border-radius: 20px; color: var(--ink); background: var(--accent-soft); font-size: 1.45rem; font-weight: 900; letter-spacing: -.08em; }
.application-lock span { color: var(--hot); }

.workspace { min-height: 100vh; }
.room-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(245,243,251,.82);
  backdrop-filter: blur(14px);
}
.brand { color: var(--ink); font: 800 1.55rem Inter, ui-sans-serif, system-ui, sans-serif; text-decoration: none; }
.brand span { color: var(--hot); }
.room-identity h1 { margin: 2px 0 0; font-size: 1.35rem; }
.header-actions { display: flex; gap: 8px; }
.connection-state { color: var(--muted); font-size: .72rem; font-weight: 700; }
.connection-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #b2b8b3; }
.connection-state.connected::before { background: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(0,188,231,.13); }
.quiet-button { padding: 10px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.65); }

.workspace-grid { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 320px 1fr; }
.issue-sidebar { display: flex; flex-direction: column; padding: 32px 24px; border-right: 1px solid var(--line); background: rgba(249,248,253,.58); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--accent); font-size: 1.35rem; }
.room-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.room-stats > div:not(.backlog-progress) { padding: 10px 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.55); text-align: center; }
.room-stats strong { display: block; font: 800 1.05rem Inter, ui-sans-serif, system-ui, sans-serif; }
.room-stats span { color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.backlog-progress { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: #dfdbe9; }
.backlog-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-blue), var(--accent), var(--hot)); transition: width .35s ease; }
.stats-export { width: 100%; margin-bottom: 18px; padding: 9px 12px; border: 1px solid #cfc5f3; border-radius: 10px; color: var(--accent-dark); background: #f2effd; font-size: .72rem; font-weight: 800; }
.stats-export:hover { border-color: var(--accent); background: #e9e3fb; }
.issue-list { display: grid; gap: 9px; overflow-y: auto; }
.issue-item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; border: 1px solid transparent; border-radius: 14px; transition: opacity .18s, border-color .18s, background .18s, transform .18s; }
.issue-item:hover { background: rgba(255,255,255,.7); }
.issue-item.active { border-color: #c8bcf2; background: var(--accent-soft); }
.issue-item.dragging { opacity: .42; transform: scale(.985); }
.issue-item.drag-target { border-color: var(--accent); }
.issue-drag-handle { padding-left: 7px; color: #aaa3b8; font-size: .9rem; cursor: grab; user-select: none; }
.issue-item:not([draggable="true"]) .issue-drag-handle { visibility: hidden; }
.issue-item[draggable="true"]:active .issue-drag-handle { cursor: grabbing; }
.issue-select { min-width: 0; padding: 13px 7px; border: 0; text-align: left; background: transparent; }
.issue-select strong { display: block; overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.issue-meta { display: flex; min-width: 0; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.issue-meta > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-meta b { margin-left: auto; padding: 3px 5px; border-radius: 5px; color: #304f9d; background: #dfe9fc; font-size: .6rem; white-space: nowrap; }
.issue-meta b.parked-badge { color: #6e657d; background: #ece9ef; }
.issue-icon { display: inline-grid; flex: 0 0 auto; width: 18px; height: 18px; place-items: center; border-radius: 4px; color: white; background: #36a06e; }
.issue-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.issue-icon.type-bug { background: #db5a49; }
.issue-icon.type-task, .issue-icon.type-subtask { background: #3286c8; }
.issue-icon.type-epic { background: #8b5bb5; }
.issue-icon.type-spike { background: #d4883f; }
.issue-type.type-bug { background: #fbe0d8; color: #ad4a35; }
.issue-type.type-task, .issue-type.type-subtask { background: #dceaf7; color: #346b99; }
.issue-type.type-epic { background: #eadff5; color: #77519a; }
.issue-type.type-spike { background: #fae7d1; color: #a96527; }
.issue-item.estimated { opacity: .48; background: #e8e7eb; filter: grayscale(.72); }
.issue-item.estimated:hover, .issue-item.estimated.active { opacity: .7; filter: grayscale(.35); }
.issue-actions { display: flex; padding-right: 4px; }
.issue-delete, .issue-correct { width: 27px; height: 27px; border: 0; border-radius: 8px; color: #8d9690; background: transparent; font-size: 1.05rem; opacity: 0; }
.issue-item:hover .issue-delete, .issue-item:hover .issue-correct, .issue-delete:focus-visible, .issue-correct:focus-visible { opacity: 1; }
.issue-delete:hover { color: #b43e31; background: #f8dfdc; }
.issue-correct:hover { color: var(--accent-dark); background: var(--accent-soft); }
.empty-copy { font-size: .85rem; }
.expiry { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: .7rem; }
.expiry strong { display: block; margin-top: 4px; color: var(--ink); }

.poker-table { display: grid; align-items: center; padding: clamp(24px, 5vw, 72px); }
#current-issue { width: min(1050px, 100%); margin: auto; padding: clamp(24px, 3vw, 42px); border: 1px solid rgba(115,78,212,.2); border-radius: 28px; background: rgba(255,255,255,.48); box-shadow: 0 24px 70px rgba(56,35,120,.09), inset 0 1px rgba(255,255,255,.8); }
.empty-stage { max-width: 500px; margin: auto; text-align: center; }
.empty-stage h2 { font-size: 2rem; }
.empty-symbol { display: block; margin-bottom: 15px; color: var(--accent); font-size: 4rem; }
.current-heading { max-width: 840px; margin: 0 auto 35px; text-align: center; }
.focus-label { display: inline-block; margin-bottom: 15px; padding: 6px 11px; border-radius: 999px; color: white; background: linear-gradient(100deg, var(--accent-blue), var(--accent)); font-size: .64rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; box-shadow: 0 7px 18px rgba(78,48,190,.2); }
.current-heading > div { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 13px; }
.current-heading strong { color: var(--muted); font-size: .8rem; letter-spacing: .08em; }
.current-heading h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); }
.issue-type { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; color: var(--accent-dark); background: var(--accent-soft); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.issue-type .issue-icon { width: 17px; height: 17px; }
.subtle-summary { margin-bottom: 0; font-size: .84rem; font-style: italic; }

.participants { display: flex; min-height: 92px; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 22px; margin-bottom: 44px; }
.participant { display: grid; grid-template-columns: 48px; justify-items: center; gap: 6px; position: relative; min-width: 74px; }
.avatar { display: grid; width: 48px; height: 48px; place-items: center; border: 2px solid white; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); box-shadow: 0 4px 14px rgba(43,29,96,.13); font-weight: 800; }
.participant.offline { opacity: .48; }
.participant-name { max-width: 90px; overflow: hidden; font-size: .72rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.moderator-crown { margin-left: 4px; color: #c58a24; font-size: .9rem; }
.participant-vote { position: absolute; top: -8px; right: 4px; display: grid; min-width: 23px; height: 23px; padding: 0 5px; place-items: center; border: 2px solid var(--paper); border-radius: 8px; color: white; background: #aab1ac; font-size: .7rem; font-weight: 800; }
.participant-vote.voted { background: linear-gradient(135deg, var(--accent), var(--hot)); }
.participant-vote.soft-reveal { animation: soft-reveal .48s cubic-bezier(.2,.75,.25,1) both; }

.variance-alert { display: flex; width: fit-content; max-width: 680px; align-items: center; gap: 10px; margin: -18px auto 28px; padding: 10px 16px; border: 1px solid #ecc7e5; border-radius: 999px; color: #772464; background: #fbeaf7; font-size: .78rem; animation: soft-reveal .48s cubic-bezier(.2,.75,.25,1) both; }
.variance-alert > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--hot), var(--accent)); font-weight: 900; }
.consensus-alert { display: flex; width: fit-content; max-width: 680px; align-items: center; gap: 10px; margin: -18px auto 28px; padding: 10px 16px; border: 1px solid #c7d8f7; border-radius: 999px; color: #214d91; background: #edf4ff; font-size: .78rem; animation: soft-reveal .48s cubic-bezier(.2,.75,.25,1) both; }
.consensus-alert > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-blue)); font-weight: 900; }

.timer-display { width: max-content; min-width: 160px; display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: -14px auto 32px; padding: 9px 18px; border: 1px solid #cfc4f0; border-radius: 999px; color: var(--accent-dark); background: #f0ecfd; box-shadow: 0 8px 24px rgba(75,44,172,.1); }
.timer-display strong { font-size: 1.8rem; line-height: 1; }
.timer-display span { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.timer-display.finished { color: white; background: linear-gradient(115deg, var(--hot), var(--accent)); animation: timer-pling .9s cubic-bezier(.2,.8,.2,1); }
.timer-display.finished span { color: white; }

.recommendation { display: flex; max-width: 720px; align-items: end; justify-content: space-between; gap: 30px; margin: 0 auto 34px; padding: 22px 24px; border: 1px solid #c9bdf1; border-radius: 18px; background: var(--accent-soft); }
.recommendation .eyebrow { margin-bottom: 2px; }
.recommendation > div > strong { display: block; color: var(--accent-dark); font: 800 2.6rem Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1; }
.recommendation > div > span:last-child { color: #6c6381; font-size: .7rem; }
.recommendation form { display: flex; align-items: end; gap: 9px; }
.recommendation form label { min-width: 145px; }
.recommendation form input { background: white; }
.locked-estimate { max-width: 520px; margin: 0 auto 34px; padding: 16px 20px; border-radius: 14px; color: var(--accent-dark); background: var(--accent-soft); text-align: center; font-weight: 800; }

.voting-area { padding: 25px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.voting-area > p { margin-bottom: 18px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cards { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(7px, 1.2vw, 14px); }
.poker-card { width: clamp(45px, 5.3vw, 65px); height: clamp(66px, 7.7vw, 92px); border: 1px solid #d2cde0; border-radius: 10px; color: #48405f; background: white; box-shadow: 0 8px 18px rgba(38,25,83,.08); font: 700 clamp(1rem, 2vw, 1.35rem) Inter, ui-sans-serif, system-ui, sans-serif; transition: transform .16s, border .16s, background .16s; }
.poker-card:not(:disabled):hover { border-color: var(--accent); transform: translateY(-7px) rotate(1deg); }
.poker-card.selected { border: 2px solid var(--accent); color: white; background: linear-gradient(145deg, var(--accent), var(--accent-blue)); transform: translateY(-9px); box-shadow: 0 12px 24px rgba(87,54,205,.23); }
.table-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.timer-controls { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.timer-controls > span { color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.timer-controls select { width: auto; padding: 10px 30px 10px 10px; }
.timer-controls .secondary { padding-inline: 12px; }

dialog { width: min(610px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(19,14,40,.5); backdrop-filter: blur(5px); }
.dialog-card { position: relative; display: grid; gap: 15px; padding: 36px; background: #fbfbf7; }
.dialog-card h2 { margin: 0; font-size: 1.8rem; }
.dialog-card p { margin-bottom: 0; }
.dialog-close { position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: #eceee9; font-size: 1.2rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.danger { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 12px; color: white; background: #b5483d; font-weight: 800; }
.danger:hover { background: #96372e; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 5px; padding-top: 18px; border-top: 1px solid #ead4d1; }
.danger-zone strong, .danger-zone span { display: block; }
.danger-zone span { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.danger-zone .danger { flex: 0 0 auto; }
.expiry-warning-card { overflow: hidden; }
.expiry-warning-card::before { position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--hot)); content: ""; }
.expiry-countdown { display: flex; width: fit-content; align-items: baseline; gap: 8px; padding: 12px 17px; border: 1px solid #d4c8f5; border-radius: 14px; color: var(--accent-dark); background: var(--accent-soft); }
.expiry-countdown strong { min-width: 58px; font-size: 1.65rem; line-height: 1; text-align: center; }
.expiry-countdown span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

@keyframes soft-reveal {
  from { opacity: .25; transform: translateY(5px) scale(.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes timer-pling {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(75,44,172,.1); }
  32% { transform: scale(1.13); box-shadow: 0 0 0 14px rgba(213,30,175,.12), 0 16px 34px rgba(85,42,194,.28); }
  58% { transform: scale(.98); }
}
.import-card { width: min(700px, 100%); gap: 11px; padding-block: 30px; }
.import-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.import-divider::before, .import-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.csv-dropzone { display: flex; min-height: 76px; align-items: center; justify-content: center; gap: 13px; padding: 13px 16px; border: 2px dashed #c7bcdf; border-radius: 14px; color: #554477; background: #f7f4fd; text-align: left; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.csv-dropzone:hover, .csv-dropzone:focus-visible, .csv-dropzone.dragging { border-color: var(--accent); outline: none; background: var(--accent-soft); transform: translateY(-1px); }
.csv-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.csv-dropzone strong, .csv-dropzone small { display: block; }
.csv-dropzone small { margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 500; }
.dropzone-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-blue)); font-size: 1.25rem; font-weight: 800; }
.csv-file-status { min-height: 0; margin: -8px 0 0 !important; color: var(--accent-dark); font-size: .72rem; font-weight: 700; text-align: center; }
.csv-file-status:empty { display: none; }
.import-preview { overflow: hidden; border: 1px solid #dcd4ee; border-radius: 12px; color: #4e416b; background: var(--accent-soft); font-size: .76rem; }
.import-preview:not(:has(table)) { padding: 12px 14px; font-weight: 700; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; }
.preview-heading > span { color: var(--muted); font-size: .67rem; font-weight: 600; text-align: right; }
.preview-table-wrap { max-height: 220px; overflow: auto; background: white; }
.import-preview table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.import-preview th, .import-preview td { padding: 8px 10px; border-top: 1px solid #ece8f4; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.import-preview th { position: sticky; top: 0; color: #685d80; background: #f7f5fb; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.import-preview th:nth-child(1), .import-preview td:nth-child(1) { width: 22%; font-weight: 800; }
.import-preview th:nth-child(2), .import-preview td:nth-child(2) { width: 18%; }
.preview-more { margin: 0 !important; padding: 8px 13px; color: var(--muted); font-size: .7rem; font-weight: 700; }

.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; padding: 13px 18px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #9e3f34; }

@media (max-width: 850px) {
  .landing { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .public-section { grid-column: auto; }
  .public-room-list { grid-template-columns: 1fr; }
  .hero h1 { margin-bottom: 20px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .issue-sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .issue-list { max-height: 220px; }
  .expiry { display: none; }
  .poker-table { min-height: 620px; }
}

@media (max-width: 560px) {
  .landing { width: min(100% - 24px, 480px); }
  .form-row { grid-template-columns: 1fr; }
  .room-header { grid-template-columns: 42px 1fr auto; padding: 12px 16px; }
  .quiet-button span { display: none; }
  .recommendation { align-items: stretch; flex-direction: column; }
  .recommendation form { align-items: stretch; flex-direction: column; }
  .poker-table { padding: 35px 14px; }
  #current-issue { padding: 24px 14px; border-radius: 20px; }
  .cards { gap: 7px; }
  .poker-card { width: 45px; height: 65px; }
  .dialog-card { padding: 28px 20px; }
  .preview-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .preview-heading > span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
