:root{--bg:#f6f6f3;--surface:#fff;--ink:#232c26;--muted:#747c76;--line:#e1e6df;--green:#244d3e;--soft:#edf4ef;--danger:#ab5242;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #5a9c6f;outline-offset:3px}[hidden]{display:none!important}
.page{min-height:100vh}.header{max-width:880px;padding:23px 24px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.brand{font-size:18px;font-weight:800;color:var(--ink);text-decoration:none;letter-spacing:.05em;white-space:nowrap}.nav{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:11px}.nav #account{font-size:12px;display:inline-flex;align-items:center;gap:10px}.text-button{border:0;background:none;padding:4px;color:#496e58;font-size:12px;font-weight:600;white-space:nowrap}.main{width:min(100%,820px);padding:31px 24px 70px;margin:0 auto}.phase-line{display:flex;align-items:center;gap:14px;margin-bottom:14px}.phase-tag{border-radius:999px;background:#e8f1e9;color:#3b674f;padding:5px 11px;font-size:11px;font-weight:700}.round-label{font-size:11px;letter-spacing:.1em;color:var(--muted)}.prompt{background:var(--surface);border:1px solid var(--line);padding:28px 31px;border-radius:18px}.eyebrow{font-size:12px;color:var(--muted)}.prompt h1{font-size:clamp(22px,3.6vw,32px);font-weight:750;line-height:1.55;margin:13px 0 17px;letter-spacing:.012em;overflow-wrap:anywhere}.attribution{font-size:11px;color:var(--muted)}.clock-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:19px 6px 22px;margin-bottom:23px}.timer{font-size:40px;letter-spacing:-.03em;font-weight:750;line-height:1.15;margin-top:5px;font-variant-numeric:tabular-nums}.answer-count{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}.answer-count svg,.save-icon svg,.status-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.primary,.secondary{border-radius:10px;padding:11px 19px;font-weight:700}.primary{color:white;background:var(--green);border:1px solid var(--green)}.secondary{background:white;border:1px solid #cddacf;color:var(--green)}.small-button{font-size:12px;padding:8px 12px}.row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.reply-input,.field{width:100%;border:1px solid #d3ddd5;border-radius:11px;background:white;color:var(--ink);padding:13px 15px;outline:none}.reply-input{height:135px;resize:vertical;line-height:1.7}.reply-actions{display:flex;align-items:center;gap:14px;margin-top:12px}.counter{margin-left:auto;font-size:12px;color:var(--muted)}.save-indicator{display:flex;align-items:center;gap:5px;font-size:12px;color:#427a50;margin-top:10px}.save-icon{display:inline-flex}.mini{font-size:12px;line-height:1.8}.muted{color:var(--muted)}.notice{background:var(--soft);color:#3c6447;border:1px solid #dae8dc;border-radius:11px;padding:15px 17px;margin:8px 0 14px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-head h2{font-size:19px;margin:0}.vote-list,.results{display:grid;gap:10px}.vote-card{display:flex;justify-content:space-between;align-items:center;gap:13px;width:100%;min-height:70px;text-align:left;background:white;border:1px solid var(--line);border-radius:12px;padding:15px 17px}.vote-card.selected{background:#f3faf4;border:1px solid #65a77d}.vote-card.is-own{background:#f0f1ee}.vote-card .body{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.vote-card .number{font-size:11px;color:#949b96;margin-right:12px}.vote-card .value{font-size:12px;white-space:nowrap;background:var(--soft);border-radius:999px;padding:5px 9px;color:#42654e}.vote-summary{display:flex;justify-content:space-between;gap:15px;padding:14px;border:1px solid var(--line);background:white;border-radius:11px;margin-top:15px;font-weight:650}.vote-summary.exceeded{background:#fff8f7;border-color:#dda9a2;color:var(--danger)}.vote-save{font-size:12px;color:#42794e;margin:9px 2px 0;min-height:18px}.vote-save.over{color:var(--danger)}.vote-explain{font-size:12px;color:var(--muted);margin-bottom:14px}.result-card{display:flex;gap:12px;align-items:flex-start;border-radius:13px;padding:16px;border:1px solid var(--line);background:white}.rank{font-size:18px;font-weight:800;min-width:45px}.result-body{flex:1;min-width:0}.nickname{color:var(--muted);font-size:12px;margin-bottom:7px}.top{color:#477e54;font-weight:700;margin-left:7px}.result-answer{font-weight:650;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.score{font-size:20px;font-weight:750;text-align:right;min-width:35px}.score small{display:block;color:var(--muted);font-size:11px;font-weight:400}.voters{font-size:12px;color:var(--muted);margin-top:10px}.voters summary{cursor:pointer}.voter-line{margin-top:7px;line-height:1.9}.next-panel{background:white;border:1px solid var(--line);border-radius:13px;padding:20px;margin-top:27px}.next-panel h3{font-size:17px;margin:0 0 11px}.next-panel p{margin:7px 0 12px;color:var(--muted);font-size:12px}.next-panel input{margin:9px 0 10px}.stock-options{display:grid;gap:9px;margin-top:15px}.stock-option{background:#f8fbf9;border:1px solid #cfdfd3;border-radius:11px;text-align:left;padding:12px 14px;line-height:1.6}.stock-item{background:white;padding:14px 16px;margin-top:9px;border:1px solid var(--line);border-radius:10px}.stock-item p{margin:0}.stock-item small{color:var(--muted)}.stock-form{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0}.stock-form button{margin-top:11px}.full{width:100%}dialog{border:1px solid var(--line);border-radius:17px;width:min(420px,90vw);padding:24px;background:white;box-shadow:0 25px 80px #2225}dialog::backdrop{background:#18251b88}.dialog-title{display:flex;justify-content:space-between;align-items:center}.dialog-title h2{margin:0}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f2f3f0;border-radius:9px;padding:3px;gap:3px;margin:18px 0}.auth-tabs button{border:0;padding:10px;border-radius:7px;background:none}.auth-tabs .active{background:white;box-shadow:0 1px 5px #0001;color:var(--green)}#auth-form label{display:block;font-weight:650;font-size:12px;margin:12px 0}#auth-form label input{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #d2ded4;border-radius:9px}#auth-submit{margin-top:10px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:50;color:white;background:#244d3e;border-radius:10px;padding:12px 17px;box-shadow:0 8px 30px #0002;max-width:90vw;text-align:center}
@media(max-width:650px){.header{padding:17px 15px;align-items:flex-start}.brand{font-size:15px}.nav{gap:6px}.nav #account{font-size:11px}.text-button{font-size:11px}.main{padding:25px 15px 50px}.prompt{padding:24px 21px}.prompt h1{font-size:24px}.timer{font-size:37px}.clock-row{padding-left:4px;padding-right:4px}.vote-card{padding:13px 12px}.vote-card .number{margin-right:6px}.result-card{padding:13px;gap:9px}.rank{font-size:16px;min-width:34px}.score{font-size:18px}.next-panel{padding:16px}}

/* v0.7: same responsive components in production and preview */
.brand{display:inline-flex;align-items:center;gap:9px}
.brand svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.brand .brand-mark{stroke-width:1.75}
.nav{gap:13px}.nav .text-button{color:var(--ink);font-weight:500}
.header{max-width:900px}
.main{width:min(100%,820px)}
.phase-line{justify-content:space-between}.phase-tag{padding:0;background:transparent;color:var(--muted);font-weight:500;font-size:12px}
.round-label{font-size:12px;letter-spacing:0}
.reply-input{height:112px;resize:none}
.reply-actions{justify-content:flex-start}
.reply-actions .primary{min-width:76px}
.vote-list{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.vote-card{border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:60px;padding:13px 15px}
.vote-card:last-child{border-bottom:0}
.timer.timer-status{font-size:22px;font-weight:600}
@media(max-width:650px){.timer.timer-status{font-size:20px}}
@media(hover:hover){.vote-card:hover:not(:disabled){border-color:#85b397}}
.vote-card.selected-one{background:#f2f8f4}
.vote-card.selected-two{background:#e2f0e6}
.vote-card.selected{border-color:var(--line)}
.vote-card .value{background:transparent;color:var(--ink);font-size:12px;font-weight:600;min-width:12px;padding:0;text-align:right}
.vote-card .number{display:none}
.vote-card.is-own{opacity:.48;background:var(--surface)}
.vote-card.is-own .body{color:var(--muted)}
.vote-card .body{flex:1;min-width:0}
.vote-card.is-own{cursor:default}
.vote-summary{margin-top:12px;border:0;padding:4px 2px;background:transparent;font-size:12px;font-weight:400}
.vote-summary.exceeded{background:transparent;border:0}
.vote-save{margin:6px 2px 0;min-height:1.4em}
.result-card{align-items:stretch;padding:15px 13px;gap:11px}
.result-card.mine{background:var(--soft)}
.rank{font-size:13px;font-weight:600;min-width:37px;line-height:2}
.result-answer{font-weight:500;line-height:1.7}
.nickname{font-size:11px;margin:0 0 3px}
.score{font-size:16px;min-width:22px;font-weight:600;line-height:2}
.voters{margin-top:9px;font-size:11px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.next-panel{padding:17px}
.next-panel h3{font-size:14px}
.next-answer-notice{margin:22px 0 6px}
.next-answer-notice+.next-panel{margin-top:0}
.auth-tabs{display:flex;gap:8px;margin:5px 0 17px}
.auth-tabs button{flex:1;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.auth-tabs button.active{background:var(--soft);border-color:#8aa995}
#auth-form>label{display:block;margin:14px 0 0;font-size:12px;color:var(--ink)}
#auth-form input{display:block;width:100%;margin-top:5px;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:11px;border-radius:8px}
.password-wrap{position:relative}
.password-wrap input{padding-right:42px!important}
.password-eye{position:absolute;right:9px;top:8px;border:0;background:transparent;padding:4px;color:var(--muted)}
.password-eye svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.field-error{display:block;min-height:0;color:var(--danger);font-size:11px}
#auth-submit{margin-top:18px}
.footer{max-width:900px;margin:0 auto;padding:20px 24px;display:flex;gap:16px;align-items:center;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}
.footer .text-button{color:var(--muted);font-size:11px;font-weight:400}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:16px 18px;margin:12px 0}
.panel p{line-height:1.9}
.list-head{font-size:12px;color:var(--muted);margin:7px 0}
.subtle{font-size:12px;color:var(--muted)}
.item-actions{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}
.item-actions button{font-size:11px;padding:5px 9px}
.history-round{margin-bottom:22px}
.history-round h3{font-size:14px;margin:0 0 7px}
.history-round .prompt-quote{font-size:16px;margin:7px 0 13px}
.history-round .result-card{margin:0 0 5px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:12px 0 22px}
.stat{background:var(--surface);border:1px solid var(--line);padding:13px;border-radius:12px}
.stat strong{display:block;font-size:21px;font-weight:700}
.stat small{font-size:11px;color:var(--muted)}
.admin-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.admin-users{max-height:390px;overflow:auto}
.admin-user{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:8px 0}
.admin-user small{color:var(--muted)}
body .notice{background:var(--soft);color:var(--ink);border-color:var(--line)}
@media(max-width:640px){
 .header{padding:16px 16px;gap:8px;flex-wrap:wrap}
 .brand{font-size:16px}
 .nav{gap:10px}
 .nav .text-button{font-size:11px}
 .main{padding:24px 16px 52px}
 .prompt{padding:20px 19px;border-radius:13px}
 .prompt h1{font-size:clamp(22px,6vw,28px)}
 .clock-row{padding:16px 2px 17px}
 .timer{font-size:36px}
 .result-card{padding:13px 10px;gap:8px}
 .rank{min-width:32px;font-size:12px}
 .score{font-size:15px}
 .footer{padding:16px}
}
@media(prefers-color-scheme:dark){
 :root{--bg:#151917;--surface:#212722;--ink:#eef2ed;--muted:#aeb9b1;--line:#3a453c;--green:#9bcbb2;--soft:#2c4235;--danger:#f2a49a;color-scheme:dark}
 body{background:var(--bg);color:var(--ink)}
 .primary{color:#14231a;background:#a8d9b7;border-color:#a8d9b7}
 .secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
 .text-button{color:var(--ink)}
 .prompt,.vote-card,.result-card,.next-panel,.stock-form,.stock-item,.panel,.stat,.auth-tabs button{background:var(--surface);color:var(--ink)}
 .reply-input,.field,#auth-form input{background:var(--surface);color:var(--ink);border-color:var(--line)}
 .vote-card.selected-one{background:#2b3f33}
 .vote-card.selected-two{background:#355840}
 .vote-card.is-own{background:var(--surface)}
 .result-card.mine{background:#304638}
 .vote-card .value,.vote-summary,.auth-tabs button{color:var(--ink)}
 .notice{background:var(--soft);color:var(--ink)}
 .vote-summary.exceeded,.vote-save.over{color:var(--danger)}
 .stock-option{background:var(--soft);border-color:var(--line);color:var(--ink)}
 .auth-tabs button.active{background:var(--soft)}
 .save-indicator,.vote-save{color:#a2d7b0}
 .score small{color:var(--muted)}
}


/* v0.7.1: vote instructions, TOP priority and compact page navigation */
.vote-instruction{font-size:12px;color:var(--muted);margin:7px 0;line-height:1.8}
.vote-summary{justify-content:flex-end;align-items:center;margin-top:10px;padding:3px 2px;font-variant-numeric:tabular-nums}
.vote-summary #vote-used{font-size:12px}
.next-panel .priority-note{font-size:12px;color:var(--green);font-weight:650;margin:0 0 6px!important}
.pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:18px 0 22px;min-height:36px}
.pagination .secondary{font-size:12px;padding:7px 14px;border-radius:8px;font-weight:500}
.pagination .subtle{font-variant-numeric:tabular-nums}
.game-rules h3{font-size:15px;margin:22px 0 7px}
.game-rules h3:first-child{margin-top:0}
.game-rules p{font-size:13px;margin:6px 0 12px;line-height:1.9}
@media(max-width:640px){.vote-instruction{font-size:12px}.pagination{gap:12px}.game-rules p{font-size:12px}}
@media(prefers-color-scheme:dark){.vote-instruction{color:var(--muted)}.priority-note{color:var(--green)}}

/* v0.7.2 履歴：1位回答だけの一覧と結果詳細 */
.history-summary-list{display:grid;gap:10px}
.history-summary{display:block;width:100%;text-align:left;cursor:pointer;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-weight:400}
.history-summary:hover{border-color:var(--green)}
.history-number{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.history-question{display:block;font-size:16px;font-weight:650;line-height:1.55;overflow-wrap:anywhere;margin-bottom:12px}
.history-winners{display:block}
.history-winner{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding:9px 0 0;margin-top:9px}
.history-winner-rank{flex:0 0 26px;font-size:11px;color:var(--muted);padding-top:1px}
.history-winner-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.history-winner-name{font-size:11px;color:var(--muted)}
.history-winner-body{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.history-back{margin-bottom:18px;font-weight:500;font-size:12px;padding:9px 16px}
.history-detail-prompt{margin-bottom:16px}
@media(max-width:640px){
 .history-summary{padding:13px 14px}
 .history-question{font-size:15px}
 .history-winner{gap:9px}
 .history-winner-body{font-size:12px}
}

.share{position:relative;display:inline-flex}
.share-toggle{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.share-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7}
.share-menu{position:absolute;right:0;top:calc(100% + 5px);width:max-content;max-width:230px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 20px #0002;z-index:6}
.share-menu .text-button{display:block;width:100%;text-align:left;text-decoration:none}
.share-url{display:block;margin:4px;max-width:200px}
.share-status:not(:empty){position:absolute;right:0;top:100%;z-index:5;white-space:nowrap;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:5px 8px;font-size:12px}
.share-menu[hidden],.share-menu [hidden],#ranking-more[hidden]{display:none}

:root{--ranking-gold:#b19a51}
@media(prefers-color-scheme:dark){:root{--ranking-gold:#c1aa62}}
.name-crown{display:inline-block;width:12px;height:12px;vertical-align:baseline;margin-left:4px;fill:var(--ranking-gold);flex:none}
.result-card .nickname:has(>.name-crown){display:flex;align-items:center}
#ranking-dialog{box-sizing:border-box;width:min(845px,calc(100% - 32px));max-width:none;max-height:min(78vh,760px);padding:18px 20px 16px;overflow:visible;color:var(--ink);background:var(--surface)}
#ranking-dialog[open]{display:flex;flex-direction:column}
body:has(#ranking-dialog[open]){overflow:hidden}
.ranking-title{flex:none;margin-bottom:8px}
.ranking-title>div{display:flex;align-items:center;gap:8px}
.ranking-scroll{overflow:auto;overscroll-behavior:contain;min-height:0}
.ranking-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:14px}
.ranking-rank-col{width:60px}
.ranking-pt-col{width:30%}
.ranking-record-col{width:155px}
.ranking-table th,.ranking-table td{padding:7px 8px;white-space:nowrap}
.ranking-table th{color:var(--muted);border-bottom:1px solid var(--line);font-weight:500}
.ranking-table td{border-bottom:1px solid var(--line)}
.ranking-table tr.is-own{background:var(--soft)}
.ranking-name{display:flex;align-items:center;min-width:0}
.ranking-name>span{overflow:hidden;text-overflow:ellipsis}
.ranking-record{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));text-align:center}
.ranking-record .is-first{color:var(--ranking-gold)}
.ranking-track{height:7px;background:var(--soft);border-radius:5px;overflow:hidden}
.ranking-track span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#619bb0,#6aab97)}
#ranking-own tr td{border-top:3px solid var(--surface)}
#ranking-more{margin-top:10px}
.phase-line #vote-room{margin-inline-end:auto;margin-inline-start:-7px}
.room-switch{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.room-switch button[aria-pressed="true"]{background:var(--soft);font-weight:600}
@media(max-width:600px){
  .share-menu{right:auto;left:0}
  .ranking-title .share-menu{left:auto;right:0}
  #ranking-dialog{inset:0;margin:0;width:100%;height:100%;max-height:100%;border:0;border-radius:0;padding:10px 9px max(10px,env(safe-area-inset-bottom))}
  .ranking-table{font-size:12px}
  .ranking-table th,.ranking-table td{padding:7px 4px}
  .ranking-rank-col{width:34px}
  .ranking-pt-col{width:23%}
  .ranking-record-col{width:105px}
  .name-crown{width:11px;height:11px}
}

.voting .vote-card{min-height:58px;padding-block:8px;overflow-wrap:anywhere;scroll-margin-top:4rem}
.voting .prompt{margin-block:8px;padding-block:12px}
.voting .clock-row{margin-block:10px}
.vote-progress{position:sticky;top:0;z-index:2;background:var(--surface);display:flex;align-items:center;gap:.75em;padding:5px 8px;border-bottom:1px solid var(--line)}
.vote-progress .vote-summary,.vote-progress .vote-save{margin:0}
.vote-progress .vote-summary{flex-shrink:0;white-space:nowrap}
.vote-progress .vote-save{min-width:0;overflow-wrap:anywhere}
.vote-timer{margin-left:auto;flex-shrink:0;color:var(--ink);font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.vote-timer.ending{color:var(--danger)}
@media(max-width:650px){.voting .vote-card{min-height:60px}}

.name-crown.rainbow{fill:url(#rainbow-crown)}
.voting .vote-card .body{font-size:15px}
.admin-nav,.list-search,.list-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-block:12px}
.admin-nav button[aria-pressed=true]{background:var(--green);color:white}
/* Used items marked reusable return to the unused tab. */
.stock-usage-tabs{display:flex;gap:8px;margin:16px 0 8px}
.stock-usage-tabs button{flex:1;min-width:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:13px}
.stock-usage-tabs button[aria-pressed="true"]{background:var(--soft);border-color:#8aa995;font-weight:600}
.list-search input{width:min(100%,18em);min-width:0}

.contact-field{display:grid;gap:6px;min-width:0}
.contact-field+.contact-field{margin-top:16px}
.contact-field select{justify-self:start;max-width:100%}
.contact-field #contact-hint{margin:0}

#next-input{margin:9px 0 0;min-height:6em;line-height:1.65;resize:vertical}
.prompt h1,.next-prompt-body,.stock-option,.stock-item p,.history-round h3,.history-summary,.review-text,#review-body .panel p{white-space:pre-wrap;overflow-wrap:anywhere}

#history-delete{min-height:44px}

.ai-stock-panel h3{margin-top:0}
.ai-stock-panel .reply-input{min-height:9rem;resize:vertical}
.ai-stock-panel .reply-actions{flex-wrap:wrap;gap:8px}
.ai-stock-results{padding-inline-start:2.2rem;font-size:.88rem}
.ai-stock-results li{padding:6px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.ai-stock-results strong{display:block;font-size:.78rem;color:var(--muted)}

/* Existing-user nickname safety dialog; also used for password-confirmed changes. */
#nickname-dialog{max-height:min(90vh,740px);overflow-y:auto}
#nickname-dialog h2{font-size:19px;line-height:1.5;margin:0 0 13px}
#nickname-required-copy p{margin:0 0 12px;line-height:1.8}
#nickname-form label{display:block;font-weight:650;font-size:12px;margin:14px 0 6px}
#nickname-form label input{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #d2ded4;border-radius:9px}
#nickname-error{display:block;color:var(--danger);min-height:18px}
.nickname-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.nickname-actions .primary{flex:1}

.new-round {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 340px;
  padding: 8px 8px 8px 14px;
  border: 1px solid #c9dfce;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 24px #162f2022;
}
.new-round[hidden] { display: none; }
.new-round-copy {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}
.new-round button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  white-space: nowrap;
}
#new-round-answer {
  padding: 0 12px;
  background: #244d3e;
  color: white;
  font-size: 14px;
  font-weight: 700;
}
#new-round-dismiss {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}
@media (max-width: 600px) {
  .new-round {
    inset-inline: 16px;
    width: auto;
    max-width: 340px;
    margin-inline: auto;
    bottom: calc(16px + max(env(safe-area-inset-bottom), var(--notice-viewport-bottom, 0px)));
  }
  .new-round.above-input {
    top: calc(var(--notice-viewport-top, 0px) + max(12px, env(safe-area-inset-top)));
    bottom: auto;
  }
}
@media(prefers-color-scheme:dark) {
  .new-round { border-color: #587461; }
  #new-round-answer { background: #315a46; }
}
