:root{--ink:#30291f;--muted:#786e62;--brick:#ac432f;--green:#275f4d;--line:#e6dfd4;--cream:#faf6ef}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.6 system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button{border:0;border-radius:12px;padding:12px 20px;cursor:pointer;background:var(--brick);color:white;font-weight:650;min-height:46px}button:hover{filter:brightness(.94)}button:disabled{opacity:.45;cursor:wait}.secondary{background:#e4eee7;color:var(--green)}.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}input,select{border:1px solid #cfc6b9;border-radius:10px;padding:12px;width:100%;background:white;color:var(--ink)}label{display:block;font-weight:650;margin:14px 0 6px}label small{display:block;font-weight:400;color:var(--muted)}input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:10px;accent-color:var(--green)}a{color:var(--green)}[hidden]{display:none!important}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 10% 20%,#efd7c9,transparent 60%),var(--cream)}.login-card{background:white;border-radius:28px;padding:48px;width:min(500px,95%);box-shadow:0 20px 60px #5b38221a}.brand{font-size:23px;font-weight:850;color:var(--brick);line-height:1.45}.brand small{font-size:15px;color:var(--muted)}h1{font-size:34px;line-height:1.35;letter-spacing:-.04em;margin:8px 0 18px}p{color:var(--muted)}.login button{width:100%;margin-top:16px}#workspace{display:flex;min-height:100vh}aside{background:white;border-right:1px solid var(--line);width:246px;flex-shrink:0;padding:34px 24px;position:sticky;top:0;height:100vh}aside nav{display:grid;gap:10px;margin:38px 0}nav button{background:transparent;color:var(--muted);text-align:left}nav button.active{background:#f6dfd2;color:var(--brick)}aside p{font-size:14px;line-height:1.8}main{padding:36px 42px;flex:1;min-width:0;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:14px;color:var(--green);font-weight:650}.actions{display:flex;gap:12px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.stats div{border:1px solid var(--line);background:white;padding:20px 24px;border-radius:18px}.stats span{display:block;font-size:14px;color:var(--muted)}.stats strong{display:block;font-size:30px;letter-spacing:-.04em;color:var(--green)}.stats div:last-child strong{font-size:18px;padding-top:8px}.panel{background:white;border:1px solid var(--line);border-radius:22px;padding:26px}.toolbar{display:flex;gap:12px;align-items:center}.toolbar input{flex:1}.toolbar select{width:160px}.toolbar button{white-space:nowrap}.caption{font-size:14px}table{border-collapse:collapse;width:100%;font-size:15px}th{text-align:left;color:var(--muted);font-weight:500;padding:12px;border-bottom:1px solid var(--line)}td{border-bottom:1px solid var(--line);padding:15px 12px;vertical-align:middle}.stage{display:flex;gap:16px;align-items:center}.stage img{width:112px;height:70px;object-fit:contain;background:#eee8df;border-radius:9px}.stage strong{display:block;font-size:17px}.stage small{display:block;color:var(--muted);margin-top:3px}.artist-photo{width:72px;height:72px;object-fit:cover;object-position:top;border-radius:16px;background:#e9ede4}.badge{padding:5px 10px;border-radius:20px;font-size:13px;color:var(--green);background:#e4eee7;white-space:nowrap}.badge.off{background:#eee9e1;color:var(--muted)}td button{padding:8px 15px;font-size:14px}.paging{display:flex;gap:10px;justify-content:center;margin-top:24px}.source-row{padding:22px;background:var(--cream);border-radius:16px;margin:12px 0;display:flex;justify-content:space-between;gap:20px}.source-row p{margin:6px 0;font-size:14px}#message:not(:empty){padding:12px 18px;border-radius:12px;background:#e4eee7;color:var(--green);margin:16px 0}#message.error,#formError,#loginError{color:#9e2c20}dialog{border:0;border-radius:24px;width:min(580px,95vw);max-height:92vh;padding:30px;box-shadow:0 24px 80px #30291f40}dialog::backdrop{background:#30291f66}.dialog-head{display:flex;justify-content:space-between;align-items:center}h2{font-size:25px;margin:0}.form-actions{display:flex;gap:14px;align-items:center;margin-top:25px}.form-actions span{font-size:13px;color:var(--muted)}.preview{width:100%;height:170px;object-fit:contain;border-radius:15px;background:var(--cream);margin:12px 0}.note{padding:18px 22px;background:#f8f2e7;border-radius:16px;line-height:1.8}@media(max-width:1000px){aside{width:190px;padding:25px 15px}main{padding:25px 20px}.stats{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start;flex-direction:column}}@media(max-width:680px){#workspace{display:block}aside{position:static;width:100%;height:auto;padding:18px}aside nav{display:flex;overflow:auto;margin:16px 0 0}aside p,#logout{display:none}nav button{white-space:nowrap}main{padding:20px 12px}.panel{padding:15px;overflow:auto}.toolbar{flex-wrap:wrap}.toolbar input{min-width:100%}.stats div{padding:15px}.stage img{width:80px}table{min-width:600px}}
textarea{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:10px;padding:12px;font:inherit;line-height:1.6;resize:vertical}
.stats .stat-card{border:1px solid var(--line);background:white;padding:20px 24px;border-radius:18px;text-align:left;color:var(--ink);font-weight:400}
.stats button.stat-card:hover,.stats button.stat-card[aria-pressed=true]{border-color:var(--green);background:#edf5ef;filter:none}
.stats .stat-card small{display:block;color:var(--green);font-size:13px;font-weight:600;margin-top:5px}
button:focus-visible,a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.toolbar{flex-wrap:wrap}.toolbar input{min-width:200px}.toolbar select{width:auto;max-width:100%}.toolbar #query{flex:1 1 220px}
#content{overflow-x:auto}#content table{min-width:850px}.date-cell{min-width:155px;max-width:175px;font-variant-numeric:tabular-nums;font-size:14px;color:var(--muted)}
.row-actions{min-width:130px}.row-actions>*{display:block;width:max-content;margin:5px 0}.video-link{display:inline-flex;align-items:center;min-height:42px;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:4px}
.stage-preview{display:block;flex-shrink:0}.stage-preview img{display:block}.empty-state{padding:28px;background:var(--cream);border-radius:16px;line-height:1.8}
.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.service-card{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--cream)}.service-card h2{font-size:23px;margin:0 0 12px}.service-card ol{padding-left:24px}.service-card li{margin:10px 0}.service-card .actions{margin-top:14px}.service-card .video-link{font-size:15px}
@media(max-width:1000px){.service-grid{grid-template-columns:1fr}.stats .stat-card{padding:16px}.toolbar #query{flex-basis:100%}}
@media(max-width:1000px){
 #content .stage-table{min-width:0;display:block}
 .stage-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .stage-table tbody{display:grid;gap:14px}
 .stage-table tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:16px;padding:14px;gap:6px 12px}
 .stage-table td{border:0;padding:4px 0;min-width:0}
 .stage-table td:first-child,.stage-table .date-cell,.stage-table .row-actions{grid-column:1/-1}
 .stage-table .stage{gap:12px;align-items:flex-start}.stage-table .stage>div{min-width:0}.stage-table .stage strong{overflow-wrap:anywhere}
 .stage-table .stage img{width:80px;height:50px}
 .stage-table .date-cell{max-width:none}.stage-table .date-cell::before{content:attr(data-label);font-weight:650;margin-right:10px;color:var(--ink)}
 .stage-table .row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:6px}.stage-table .row-actions>*{margin:0}
}
/* 0.6.0 · 어르신 의견과 알림 보내기 */
.stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.nav-badge{display:inline-block;min-width:24px;padding:0 7px;margin-left:6px;border-radius:12px;background:var(--brick);color:white;font-size:13px;line-height:22px;text-align:center}
nav button.active .nav-badge{background:var(--green)}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
button.chip{background:white;color:var(--ink);border:1px solid var(--line);font-weight:500;min-height:40px;padding:8px 14px}
button.chip.active,button.chip[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}
.fb-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:12px}
.mini-stat{background:var(--cream);border-radius:14px;padding:14px 18px}.mini-stat span{display:block;font-size:13px;color:var(--muted)}.mini-stat strong{font-size:26px;color:var(--brick)}
.fb-filters{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}
.fb-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}.fb-tools input{flex:1 1 260px}
.fb-card{border:1px solid var(--line);border-radius:18px;padding:18px 20px;margin:12px 0;background:white}
.fb-card.is-new{border-left:6px solid var(--brick)}
.fb-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:14px;color:var(--muted)}
.fb-ticket{font-weight:650;color:var(--ink)}
.badge.cat-request{background:#fbe6d9;color:var(--brick)}.badge.cat-praise{background:#fff1c9;color:#7a5600}.badge.cat-problem,.badge.cat-video{background:#f6e0e0;color:#8f2b20}
.badge.status-new{background:var(--brick);color:white}.badge.status-done{background:#e4eee7;color:var(--green)}.badge.status-hold{background:#eee9e1;color:var(--muted)}
.fb-song{font-size:19px;font-weight:700;color:var(--brick);margin:12px 0 4px}
.fb-message{white-space:pre-wrap;color:var(--ink);font-size:17px;line-height:1.75;margin:10px 0}
.fb-meta{font-size:14px;margin:6px 0}
.fb-reply{background:#edf5ef;border-radius:12px;padding:12px 16px;margin:10px 0}.fb-reply strong{font-size:13px;color:var(--green)}.fb-reply p{white-space:pre-wrap;color:var(--ink);margin:4px 0 0}
.fb-memo{font-size:14px;white-space:pre-wrap;background:#f8f2e7;border-radius:10px;padding:8px 12px}
.fb-card .actions{margin-top:12px}.fb-card .actions button{min-height:42px;padding:9px 16px;font-size:15px}
.fb-quote{background:var(--cream);border-radius:14px;padding:12px 16px;margin:12px 0}.fb-quote p{white-space:pre-wrap;color:var(--ink);margin:6px 0 0}
#replyEditor textarea{margin-top:6px}
.notice-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.9fr);gap:28px;align-items:start}
.notice-form h2,.notice-preview h2,.section-title{font-size:21px;margin:4px 0 8px}.section-title{margin-top:34px}
.notice-form label small{margin-bottom:4px}.notice-form .actions{margin-top:18px}
.push-line{padding:10px 14px;border-radius:12px;background:#f8f2e7;font-size:14px}.push-line.on{background:#e4eee7;color:var(--green)}
.notice-preview{position:sticky;top:20px}
.phone{background:#2d2a25;border-radius:34px;padding:26px 14px 34px;min-height:420px;box-shadow:inset 0 0 0 6px #45403a}
.push-card{background:#f7f3ee;border-radius:20px;padding:14px 16px;color:var(--ink)}
.push-app{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:6px}
.push-icon{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--brick);color:white;font-size:13px}
.push-card strong{display:block;font-size:17px;line-height:1.4}.push-card p{margin:4px 0 0;color:var(--ink);font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-card{background:var(--cream);border-radius:20px;padding:16px;margin-top:18px}.inbox-card small{color:var(--muted)}.inbox-card strong{display:block;font-size:21px;margin-top:6px;line-height:1.35}
.inbox-card p{font-size:18px;line-height:1.6;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.inbox-play{display:inline-block;margin-top:4px;color:var(--brick);font-weight:700;font-size:17px}
.notice-table .date-cell{white-space:pre-line}.notice-table td small{display:block;color:var(--muted);white-space:pre-wrap;max-width:420px}
@media(max-width:1000px){.notice-layout{grid-template-columns:1fr}.notice-preview{position:static}.phone{min-height:0}}

/* Operations stays readable on the registered phone as well as desktop. */
.ops-card{background:#fff;border:1px solid #e2e2e7;border-radius:18px;padding:20px;margin:18px 0;min-width:0}.ops-card h2{font-size:21px;margin:0 0 12px}.ops-card h3{font-size:18px}.ops-card p{line-height:1.65}.ops-card form{max-width:680px}.ops-card label{display:block;margin:14px 0}.ops-card input{display:block;width:100%;min-height:48px;font-size:16px;margin-top:6px}.ops-card button{min-height:48px;margin:6px 8px 6px 0}.ops-card a{display:inline-block;margin:8px}.ops-usage{margin:20px 0}.ops-usage-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.ops-usage progress{display:block;width:100%;height:14px;margin:8px 0;accent-color:#0066cc}.ops-usage small{color:#666}.ops-event,.ops-device{padding:16px 0;border-top:1px solid #ddd;overflow-wrap:anywhere}.ops-setting-row{border-bottom:1px solid #ddd;padding-bottom:12px}.ops-card .ops-check{display:flex;align-items:center;gap:8px}.ops-check input{width:22px;min-height:22px;margin:0}.service-grid .ops-card{margin:0}.ops-card .error{color:#a32626}@media(max-width:650px){.ops-card{padding:16px}.ops-card button{width:100%;margin-right:0}}

.stats[hidden],.toolbar[hidden]{display:none}.ops-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.ops-shortcuts a{display:inline-flex;align-items:center;min-height:48px;border-radius:12px;background:#eef3fa;padding:8px 14px;color:#005ebd;font-weight:700}.ops-card{scroll-margin-top:16px}

.admin-push-shortcut{display:inline-flex;align-items:center;min-height:46px;padding:10px 16px;border-radius:12px;background:#e4eee7;color:var(--green);font-weight:700;text-decoration:none}.ops-push-tests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.ops-push-tests button{width:100%;margin:0;min-height:56px;padding:12px}.ops-push-tests button:first-child{background:#0066cc;color:#fff}.ops-card>details{margin:16px 0}.ops-card summary{cursor:pointer;font-weight:700;min-height:44px;align-content:center}@media(max-width:650px){.ops-push-tests{grid-template-columns:1fr}}
