@charset "UTF-8";
:root{font-family:Verdana,Geneva,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:14px;color:#252525;background:#f2f2f2;font-synthesis:none;--accent:#f5ba1a;--accent-dark:#dca20a;--line:#ccc;--muted:#747474}
*{box-sizing:border-box}
body{margin:0;min-width:280px;-webkit-text-size-adjust:100%}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
a{color:#765710;text-decoration:none}
a:hover{text-decoration:underline}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
:focus{outline:none}
:focus-visible{outline:2px solid #a97600;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:var(--muted)}
.small{font-size:12px;line-height:1.7}
.page{width:min(calc(100% - 40px),1040px);min-height:100svh;margin:auto;display:flex;flex-direction:column}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0}
.brand{display:inline-flex;align-items:center;gap:10px;color:#333;font-size:14px;font-weight:600}
.brand img{display:block}
.site-footer{display:flex;justify-content:space-between;gap:18px;width:100%;padding:22px 0;margin-top:auto;color:var(--muted);font-size:11px;line-height:1.7}
.survey-page .page{width:min(calc(100% - 32px),440px)}
.survey-page .site-header{display:none}
.survey-main{width:100%;max-width:400px;background:#fff;border-top:5px solid var(--accent);padding:25px;margin:8vh auto 22px;box-shadow:0 0 3px rgba(0,0,0,.13)}
.survey-page .site-footer{max-width:400px;margin:0 auto;justify-content:flex-end}
.intro{margin:0 0 24px;text-align:center}
.eyebrow{display:block;font-size:11px;line-height:1.7;letter-spacing:1px;font-weight:600;color:#666}
.election-intro .eyebrow{font-size:12px;letter-spacing:1px;color:#333}
.election-intro h1{font-size:28px;line-height:1.6;letter-spacing:1px;font-weight:600;margin:14px 0 16px}
.candidate-label{display:block;font-size:12px;font-weight:400;letter-spacing:2px;margin-bottom:3px;color:#777}
.election-message{font-size:13px;line-height:1.9;margin:0 0 15px}
.response-period{display:block;background:#fafafa;border:1px solid #e1e1e1;padding:8px 6px;font-size:11px;line-height:1.8;margin:0 0 18px}
.lead{font-size:12px;line-height:1.9;text-align:left;margin:0 0 8px;color:#555}
.audience{font-size:11px;line-height:1.7;text-align:left;margin:0}
h2{font-size:15px;line-height:1.7;font-weight:600;margin:0}
.panel{background:#fff;border:1px solid #dedede;padding:24px;box-shadow:0 0 3px rgba(0,0,0,.05)}
.survey-main>.panel{padding:0;border:0;box-shadow:none}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;padding-bottom:10px;border-bottom:1px solid #eee}
.panel-heading h2{font-size:14px}
.identity-fields{padding:0;margin:0 0 22px;border:0;min-width:0}
.field-label{display:block;font-size:12px;font-weight:400;line-height:1.7;margin:17px 0 7px}
.identity-fields>.field-label:first-of-type{margin-top:0}
.field-label.response-label{margin-top:0}
.optional{color:#888;font-size:11px}
.text-input,input[type=password],textarea,select{display:block;width:100%;min-height:42px;border:1px solid var(--line);border-radius:0;background:#fff;color:#333;padding:9px 10px;font-size:16px;transition:border-color .2s,background .2s}
input:hover,textarea:hover,select:hover{background:#fafafa}
.text-input:focus,input[type=password]:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 2px 1px rgba(245,186,26,.23)}
textarea{resize:vertical;min-height:200px;line-height:1.8}
input::placeholder,textarea::placeholder{color:#999;font-size:13px}
select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:32px;background-image:url('/chevron.svg');background-position:right 12px center;background-repeat:no-repeat;background-size:10px}
select.respondent-select{max-width:none}
select:disabled,input:disabled,textarea:disabled{background-color:#f7f7f7}
.input-shell{display:flex;width:100%;border:1px solid var(--line);background:#fff;min-width:0;transition:border-color .2s,box-shadow .2s}
.input-shell:focus-within{border-color:var(--accent);box-shadow:0 0 2px 1px rgba(245,186,26,.23)}
.input-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 36px;border-right:1px solid var(--line);color:#555;pointer-events:none}
.input-symbol svg{display:block;width:17px;height:17px;stroke-width:1.65}
.input-shell>input,.input-shell>textarea{flex:1;min-width:0;border:0;margin:0;box-shadow:none!important}
.textarea-shell .input-symbol{align-items:flex-start;padding-top:13px}
.input-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin:8px 0 16px;font-size:10px;line-height:1.7;color:#888}
.input-meta p{margin:0}
#character-count{white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto}
.privacy-note{font-size:10px;line-height:1.9;color:#777;margin:0 0 20px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid transparent;border-radius:0;font-size:12px;font-weight:500;line-height:1.6;text-decoration:none!important;transition:background .2s,border-color .2s}
.button.primary{background:var(--accent);border-color:var(--accent);color:#30250a}
.button.primary:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark)}
.button.secondary{background:#fff;border-color:var(--line);color:#555}
.button.secondary:hover:not(:disabled){background:#f6f6f6;border-color:#aaa}
.button.full{width:100%}
#submit-button{font-size:14px;min-height:44px}
.button.danger-outline{color:#b8332b;border-color:#d9aaa5;background:#fff}
.button.danger-outline:hover:not(:disabled){background:#fff4f3}
.button.danger{color:#fff;background:#bc392f;border-color:#bc392f}
.button.danger:hover:not(:disabled){background:#9d2d25;border-color:#9d2d25}
.status{font-size:12px;line-height:1.9;margin:0 0 16px}
.error{padding:12px;border:1px solid #ebc4c0;background:#fff5f4;color:#a92c24;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.success{text-align:center;padding:25px 0 10px}
.success-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 15px;background:#fff5d8;color:#846000;border:1px solid #eedba8;border-radius:50%;font-size:22px}
.success h2{font-size:20px}
.success p{font-size:12px;line-height:1.9;color:#777;margin:12px 0 22px}
.admin-page .page{max-width:880px}
.admin-page .site-header{padding:24px 0 0}
.admin-main{margin:24px 0 40px;width:100%}
.admin-page .panel{box-shadow:none}
.admin-page .response-card{border:0;border-bottom:1px solid #ddd}
.admin-page .response-list{gap:1px}
.admin-title{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-bottom:20px}
.admin-title h1{font-size:20px;line-height:1.6;margin:0;font-weight:600}
.admin-title p{font-size:12px;line-height:1.8;margin:0}
.login-panel{width:100%;max-width:400px;margin:4vh auto 0;border-top:5px solid var(--accent);padding:25px;box-shadow:0 0 3px rgba(0,0,0,.12)}
.login-panel h1{font-size:22px;font-weight:600;line-height:1.6;text-align:center;margin:0 0 15px}
.login-panel>p{font-size:12px;line-height:1.9;color:#777;margin:0}
.login-panel .input-shell{margin-bottom:20px}
.settings-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.admin-page .settings-panel{padding:14px 0;border:0;border-top:1px solid #ddd;border-bottom:1px solid #ddd;background:transparent}
.settings-options{display:flex;gap:20px;flex-wrap:wrap}
.setting{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:12px;line-height:1.7}
input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:var(--accent);flex-shrink:0}
.admin-notice{font-size:12px;line-height:1.8;margin:14px 0}
.statistics-panel{margin-top:24px}
.statistics-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.statistics-heading .small{margin:7px 0 0}
.statistics-note{font-size:11px;line-height:1.9;color:#777;margin:18px 0 0}
.statistics-note summary{cursor:pointer;width:fit-content}
.statistics-note p{margin:8px 0 0}
.analysis-progress{display:block;width:100%;height:8px;accent-color:var(--accent);margin:0 0 18px}
.statistics-topics{padding:0;margin:0;list-style:none}
.statistics-topics>li{padding:17px 0;border-top:1px solid #e7e7e7}
.statistics-topics>li:last-child{padding-bottom:0}
.topic-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;font-size:13px;line-height:1.9}
.topic-label{overflow-wrap:anywhere}
.topic-count{font-size:12px;color:#8b6400;white-space:nowrap;font-variant-numeric:tabular-nums}
.statistics-topics details{font-size:11px;color:#888;margin-top:8px}
.statistics-topics summary{min-height:28px;line-height:2;cursor:pointer;width:fit-content}
.topic-examples{max-height:320px;overflow:auto;padding-left:12px;border-left:2px solid #e6dfc8}
.topic-examples p{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#555}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 16px}
.toolbar-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.toolbar-controls select{width:auto;min-width:130px;font-size:12px}
.response-list{display:grid;gap:15px}
.response-card{padding:23px 25px}
.response-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;line-height:1.8;color:#888;margin-bottom:13px}
.respondent-name{font-size:15px;line-height:1.8;margin:0 0 7px;overflow-wrap:anywhere}
.respondent-details{font-size:11px;line-height:1.9;color:#777;margin:0 0 16px;overflow-wrap:anywhere}
.response-text{font-size:13px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.response-actions{border-top:1px solid #eee;padding-top:14px;margin-top:20px;display:flex;justify-content:flex-end}
.delete-confirm{width:100%;padding:12px;background:#fff7f6;border-left:2px solid #d07d75}
.delete-confirm p{font-size:12px;line-height:1.8;margin:0 0 12px;color:#92362f}
.delete-choices{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;font-size:12px;color:#888;margin-top:24px}
.empty{padding:40px 20px;text-align:center;font-size:12px;line-height:1.9;color:#888}
@media(max-width:600px){.page{width:calc(100% - 32px)}.site-header{padding:20px 0;gap:12px}.brand{font-size:12px;gap:8px}.brand img{width:25px;height:25px}.site-header>.small{font-size:10px}.survey-main{margin-top:30px;padding:22px}.election-intro h1{font-size:26px}.election-message{font-size:12px}.admin-main{margin:15px 0 35px}.admin-title h1{font-size:20px}.admin-title>.button{padding:8px 12px}.panel{padding:20px}.login-panel{padding:25px}.settings-panel,.statistics-heading{align-items:stretch;flex-direction:column;gap:16px}.statistics-heading .button,.settings-panel>.button{width:100%}.toolbar{align-items:flex-start;flex-direction:column}.toolbar-controls{width:100%;gap:8px}.toolbar-controls select{flex:1;min-width:110px}.toolbar-controls .button{flex:1;white-space:nowrap}.topic-heading{gap:10px}.response-card{padding:20px}.pagination{gap:10px}.pagination .button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
