:root{
  color-scheme:light;--ink:#29272a;--muted:#6f5b55;--subtle:#6f5b55;--line:#ede6e1;--paper:#fffaf6;
  --white:#fff;--blue:#c92030;--blueDark:#9f1625;--blueLight:#fff1eb;--green:#138669;
  --greenLight:#e8f8f1;--orange:#b87a2b;--shadow:0 8px 28px rgba(43,41,42,.035);--radius:20px;
}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}html{scroll-behavior:smooth}body{font-family:'DM Sans','Noto Sans KR',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit}input,select,textarea{min-width:0}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:12px}.font-bold{font-weight:700}
:focus-visible{outline:3px solid #d66967!important;outline-offset:3px}::selection{background:#f6c3b7;color:#2b292a}
.icon{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:0}.icon svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.icon.sm svg{width:16px;height:16px}.icon.lg svg{width:24px;height:24px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:19px;font-weight:800;letter-spacing:-.95px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:13px;background:#c92030;color:#fff;box-shadow:0 7px 18px rgba(187,35,51,.19)}.brand-mark svg{width:23px;height:23px;stroke-width:2.8}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid #e3d8d1;border-radius:11px;background:#fff;color:#2b292a;font-size:13px;font-weight:750;line-height:1.4;text-decoration:none;white-space:nowrap;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}.btn:hover:not(:disabled){background:#fff8f3;border-color:#e3d8d1;transform:translateY(-1px)}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 5px 12px rgba(187,35,51,.13)}.btn.primary:hover:not(:disabled){background:var(--blueDark);border-color:var(--blueDark)}.btn.soft{background:var(--blueLight);color:#bb2333;border-color:#ffe8df}.btn.danger{color:#ba3e50;background:#fff5f5;border-color:#ffdde2}.btn.ghost{background:transparent;border-color:transparent;box-shadow:none}.btn.wide{width:100%;min-height:51px}.btn.sm{font-size:12px;padding:8px 12px;min-height:35px;border-radius:9px}.btn svg{width:17px;height:17px}
.form-label{display:block;font-size:13px;font-weight:750;margin:0 0 10px;letter-spacing:-.15px}.form-group{margin:0 0 20px}.field{display:block;width:100%;min-height:47px;padding:12px 14px;border:1px solid #e3d8d1;border-radius:11px;background:#fff;color:var(--ink);outline:none;font-size:14px;transition:border-color .18s,box-shadow .18s}.field:focus{border-color:#d66967;box-shadow:0 0 0 3px #ffe8df}.field::placeholder{color:#9b8b87}.hint{font-size:12px;line-height:1.8;color:#6f5b55;margin:8px 0 0}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#bb2333;margin:0 0 11px;text-transform:uppercase}.section-caption{color:var(--muted);font-size:12px;line-height:1.6}
/* Sign in */
.login-wrap{min-height:100dvh;background:#fffbf8;display:grid;grid-template-columns:minmax(0,1fr) minmax(450px,46%)}.login-showcase{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:57px clamp(40px,6vw,112px);background:linear-gradient(143deg,#a41d2b,#c62c39 55%,#df5360);color:#fff}.login-showcase:before{content:'';position:absolute;width:680px;height:680px;border:1px solid rgba(255,255,255,.15);border-radius:50%;left:30%;top:19%;box-shadow:0 0 0 105px rgba(255,255,255,.035),0 0 0 220px rgba(255,255,255,.025)}.login-showcase .brand{position:relative;z-index:1;color:#fff}.login-showcase .brand-mark{background:rgba(255,255,255,.2);box-shadow:none}.showcase-copy{position:relative;z-index:1;max-width:480px;margin:75px 0}.showcase-kicker{font-size:12px;letter-spacing:.19em;font-weight:800;opacity:.74}.showcase-copy h2{font-size:clamp(37px,3.4vw,57px);line-height:1.32;letter-spacing:-2.4px;margin:25px 0}.showcase-copy p{font-size:15px;line-height:2;opacity:.8;max-width:340px}.showcase-progress{position:relative;z-index:1;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.23);padding:22px;border-radius:22px;max-width:420px;backdrop-filter:blur(16px)}.showcase-progress .preview-line{display:flex;align-items:center;gap:12px;padding:7px 2px;font-size:13px;font-weight:600}.preview-dot{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:rgba(255,255,255,.18)}.preview-dot.completed{background:#fff;color:#bb2333}.login-side{display:flex;align-items:center;justify-content:center;padding:45px 25px}.login-card{width:min(100%,420px);padding:32px 0}.login-card .mobile-brand{display:none}.login-eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid #e3d8d1;border-radius:40px;padding:8px 12px;font-size:11px;font-weight:800;color:#bc2633;background:white}.login-card h1{font-size:36px;line-height:1.35;letter-spacing:-1.7px;margin:25px 0 12px}.login-card .intro{font-size:14px;line-height:1.9;margin:0 0 36px;color:var(--muted)}.login-bottom{border-top:1px solid var(--line);padding-top:23px;margin-top:32px;color:var(--subtle);font-size:12px;line-height:1.85}.input-with-icon{position:relative}.input-with-icon .icon{position:absolute;top:50%;left:14px;transform:translateY(-50%);color:#6f5b55}.input-with-icon .field{padding-left:43px}.login-card .btn.primary{font-size:14px}
/* App shell */
.shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;height:76px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.top-inner{max-width:1240px;height:100%;padding:0 30px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.header-right{display:flex;align-items:center;gap:13px}.user-pill{display:flex;align-items:center;gap:10px;padding:4px 0;font-size:12px;color:var(--muted)}.user-name{line-height:1.4}.user-name strong{font-size:13px;color:var(--ink)}.avatar{display:grid;place-items:center;width:38px;height:38px;background:#ffe8df;border:1px solid #ffe8df;border-radius:13px;color:#bb2333;font-size:14px;font-weight:800}.top-divider{height:23px;width:1px;background:#f3ece6}.workspace{max-width:1240px;margin:auto;padding:42px 30px 90px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:27px}.page-head h1{font-size:31px;line-height:1.4;font-weight:800;letter-spacing:-1.25px;margin:0 0 6px}.page-head p{font-size:14px;line-height:1.8;margin:0;color:var(--muted)}.head-date{display:flex;align-items:center;gap:8px;color:#6f5b55;font-size:12px;font-weight:700}.nav-tabs{display:flex;align-items:center;gap:6px;padding:5px;margin:0 0 27px;width:max-content;max-width:100%;border:1px solid #f3ece6;border-radius:14px;background:#ffe8df}.nav-tab{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 16px;border:none;border-radius:10px;color:#6f5b55;background:transparent;font-size:13px;font-weight:700;white-space:nowrap}.nav-tab.active{color:#bb2333;background:white;box-shadow:0 2px 9px rgba(80,69,66,.08)}.nav-tab svg{width:17px;height:17px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:22px;align-items:start}.main-panel{padding:26px}.side-panel{padding:23px;position:sticky;top:102px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-header h2{font-size:17px;letter-spacing:-.48px;margin:0;font-weight:800}.section-header .subheading{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:500}.section-header-right{font-size:12px;color:var(--muted);font-weight:650}
/* Coach */
.coach-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px;padding:28px 31px;margin-bottom:22px;border-radius:22px;overflow:hidden;background:#fff0eb;border:1px solid #ffe8df}.coach-hero .hero-overline{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#bb2333}.coach-hero h2{font-size:23px;line-height:1.45;letter-spacing:-.9px;margin:12px 0 10px}.coach-hero p{font-size:13px;color:#6f5b55;line-height:1.9;margin:0;max-width:620px}.hero-next{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:19px}.hero-next .btn{min-height:39px}.hero-ring{height:126px;width:126px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#bb2333 var(--p),rgba(255,255,255,.8) 0);flex:none}.hero-ring:before{content:'';position:absolute;inset:11px;background:#fff0eb;border-radius:50%}.hero-ring-content{z-index:1;text-align:center}.hero-ring-content strong{display:block;font-size:29px;font-weight:800;letter-spacing:-1.3px}.hero-ring-content small{font-size:10px;color:#6f5b55;font-weight:800}.step-group{margin-top:25px}.step-group:first-of-type{margin-top:0}.step-group-title{display:flex;align-items:center;gap:12px;margin:0 0 14px;font-size:12px;color:#6f5b55;font-weight:800}.step-group-title:after{content:'';height:1px;background:var(--line);flex:1}.group-count{color:#9b8b87;font-weight:650}.task-list{display:grid;gap:10px}.task-row{display:flex;align-items:center;gap:16px;width:100%;padding:19px;text-align:left;border:1px solid #eee6e0;border-radius:14px;background:#fff;transition:.18s;position:relative}.task-row:hover{border-color:#f6c3b7;background:#fffdfa;transform:translateY(-1px);box-shadow:0 7px 18px rgba(137,35,46,.045)}.task-row.current{border-color:#f6c3b7;background:linear-gradient(110deg,#fff,#fff8f3)}.task-row.done{background:#fbfefd}.task-row.locked{background:#fff8f3}.task-index{display:grid;place-items:center;flex:none;width:43px;height:43px;background:#f3ece6;border-radius:13px;color:#6f5b55;font-size:13px;font-weight:800}.task-row.current .task-index{color:#bb2333;background:#ffe8df}.task-row.done .task-index{color:#0c8966;background:#e3f7ee}.task-copy{flex:1;min-width:0}.task-copy h3{font-size:14px;letter-spacing:-.34px;line-height:1.5;margin:0 0 5px}.task-copy p{font-size:12px;color:#6f5b55;line-height:1.6;margin:0;overflow-wrap:anywhere}.task-state{font-size:11px;font-weight:750;color:#6f5b55;white-space:nowrap;border-radius:999px;background:#f3ece6;padding:6px 10px}.task-state.current{background:#fff0eb;color:#c92030}.task-state.completed{background:#e8f8f1;color:#0e8864}.chevron{color:#9b8b87;display:inline-flex}.chevron svg{width:16px;height:16px}.next-panel{padding:20px;background:#fff8f3;border:1px solid #ffe8df;border-radius:14px;margin-top:22px}.next-panel h3{font-size:14px;margin:0 0 9px}.next-panel p{font-size:12px;line-height:1.8;color:#6f5b55;margin:0 0 14px}.next-panel .btn{width:100%}.metric-big{font-size:41px;font-weight:800;letter-spacing:-2px;line-height:1.15;margin:9px 0}.metric-big small{font-size:16px;color:#6f5b55;letter-spacing:0}.progress-track{height:8px;border-radius:20px;overflow:hidden;background:#f3ece6}.progress-bar{height:100%;width:0;border-radius:inherit;background:#bb2333;transition:width .4s}.stat-meta{display:flex;justify-content:space-between;margin-top:11px;font-size:12px;color:var(--muted)}.side-divider{height:1px;background:var(--line);margin:23px 0}.note{background:#fff8f3;color:#6f5b55;border:1px solid #ffe8df;border-radius:13px;padding:14px 15px;font-size:12px;line-height:1.85}.note strong{color:#504542}.note-header{display:flex;gap:7px;align-items:center;font-weight:800;font-size:13px;margin-bottom:9px}.complete-banner{padding:14px 16px;border-radius:12px;background:#e8f8f1;color:#117956;font-size:13px;line-height:1.8;font-weight:750}.lock-banner{padding:14px 16px;border-radius:12px;background:#f3ece6;color:#6f5b55;font-size:12px;line-height:1.8}.empty{padding:45px 20px;color:var(--muted);font-size:13px;line-height:1.8;text-align:center}.empty strong{display:block;color:var(--ink);font-size:15px;margin:10px 0 4px}
/* Leader / admin */
.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:21px}.metric-card{padding:23px 24px}.metric-top{display:flex;justify-content:space-between;align-items:center}.metric-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:#fff0eb;color:#bb2333}.metric-icon.green{background:#e6f8f0;color:#148465}.metric-icon.amber{background:#fff4e8;color:#ac792e}.metric-card .label{font-size:12px;font-weight:750;color:var(--muted)}.metric-card .value{font-size:30px;font-weight:800;letter-spacing:-1px;margin:13px 0 5px}.metric-card .unit{font-size:12px;color:#6f5b55}.table-panel{padding:25px}.table-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.table-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.inline-input{width:250px}.search-field{position:relative}.search-field .icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#6f5b55}.search-field input{padding-left:39px}.filter-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-bottom:18px}.filter-pill{border:1px solid transparent;background:#f3ece6;color:#6f5b55;padding:8px 13px;border-radius:999px;font-size:12px;font-weight:750}.filter-pill.active{border-color:#ffe8df;background:#ffe8df;color:#bb2333}.filter-count{font-size:10px;font-weight:800;opacity:.8;margin-left:3px}.table-scroll{overflow:auto}.list-table{width:100%;border-collapse:collapse;white-space:nowrap}.list-table th{text-align:left;background:#fff8f3;font-size:11px;font-weight:800;color:#6f5b55;padding:15px 14px}.list-table th:first-child{border-radius:10px 0 0 10px}.list-table th:last-child{border-radius:0 10px 10px 0}.list-table td{border-bottom:1px solid #f3ece6;padding:17px 14px;font-size:13px}.list-table tbody tr:last-child td{border-bottom:0}.list-table tr.clickable{cursor:pointer}.list-table tr.clickable:hover{background:#fffdfa}.name-cell{font-weight:800}.person-label{display:flex;align-items:center;gap:10px}.person-dot{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#fff3ee;color:#bb2333;font-weight:800;font-size:12px}.status-tag{display:inline-flex;align-items:center;font-size:11px;font-weight:750;border-radius:8px;padding:7px 10px;color:#6f5b55;background:#f3ece6}.status-tag.started{color:#b92130;background:#ffe8df}.status-tag.done{color:#138364;background:#e7f8f0}.bar-inline{display:inline-block;vertical-align:middle;width:77px;height:6px;border-radius:20px;background:#f3ece6;margin-right:8px;overflow:hidden}.bar-inline span{display:block;height:100%;background:#bb2333}.mobile-people{display:none}.coach-mobile-card{display:flex;width:100%;align-items:center;text-align:left;gap:12px;border:1px solid var(--line);border-radius:13px;padding:14px;margin-top:10px;background:#fff}.coach-mobile-card .person-details{flex:1;min-width:0}.coach-mobile-card strong{display:block;font-size:14px}.coach-mobile-card .mini-meta{font-size:11px;color:var(--muted);margin:5px 0}.coach-mobile-card .mobile-progress{font-size:12px;font-weight:800;color:#b92130}.coach-mobile-card .progress-track{margin-top:7px;height:5px}
.card-container{padding:26px}.admin-list{display:grid;gap:10px}.admin-item{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:16px 17px}.admin-item .number{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#ffe8df;border-radius:12px;color:#bb2333;font-size:12px;font-weight:800}.admin-item .copy{min-width:0;flex:1}.admin-item h3{margin:0 0 6px;font-size:14px}.admin-item p{margin:0;color:#6f5b55;font-size:11px;line-height:1.6}.admin-item:hover{border-color:#f6c3b7}.help-list{padding-left:20px;margin:10px 0;color:var(--muted);font-size:13px;line-height:2.2}.line-rule{height:1px;background:var(--line);margin:24px 0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:17px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.setting-row a{color:var(--blue);font-weight:800;text-decoration:none}.setting-row a:hover{text-decoration:underline}
/* Details + content editor */
.modal-backdrop{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;padding:24px;z-index:50;background:rgba(43,41,42,.5);backdrop-filter:blur(4px)}.modal{width:min(100%,700px);max-height:min(90dvh,960px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:21px;box-shadow:0 28px 95px rgba(43,41,42,.24)}.modal.wide{width:min(100%,830px)}.modal-header{flex:none;display:flex;justify-content:space-between;align-items:start;gap:16px;padding:27px 31px 23px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:23px;letter-spacing:-.7px;line-height:1.35;margin:7px 0}.modal-header .sub{font-size:13px;line-height:1.8;color:var(--muted)}.close-btn{border:0;display:grid;place-items:center;flex:none;background:#f3ece6;color:#6f5b55;width:35px;height:35px;border-radius:11px;font-size:21px;line-height:1}.close-btn:hover{background:#ffe8df}.modal-body{overflow:auto;overscroll-behavior:contain;flex:1;padding:27px 31px}.modal-actions{flex:none;display:flex;justify-content:space-between;align-items:center;gap:11px;flex-wrap:wrap;padding:17px 31px;background:#fff;border-top:1px solid var(--line)}.step-detail-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.detail-badge{font-size:11px;font-weight:800;border-radius:8px;color:#bb2333;background:#fff4ef;padding:7px 10px}.detail-badge.ready{color:#118665;background:#e8f7f0}.detail-section-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800;color:var(--ink);margin-bottom:13px}.rich-text{font-size:14px;line-height:2;color:#504542;overflow-wrap:anywhere}.rich-text p{margin:0 0 13px}.rich-text h3{font-size:18px;color:var(--ink);margin:16px 0 10px}.rich-text a{color:#bb2333;text-decoration:underline}.rich-text mark{background:#fff0ac;padding:1px 3px}.rich-text ul,.rich-text ol{padding-left:22px}.rich-text img{max-width:100%}.attachment-list{display:grid;gap:10px}.attachment-link{display:flex;gap:12px;align-items:center;background:#fff8f3;border:1px solid #ffe8df;color:#bb2333;text-decoration:none;font-size:13px;font-weight:750;padding:14px;border-radius:12px;overflow-wrap:anywhere}.attachment-link span:last-child{margin-left:auto}.attachment-link:hover{background:#ffe8df}.attachment-item{background:#fff8f3;border:1px solid #f3ece6;border-radius:12px;padding:13px;margin-bottom:10px}.attachment-image{max-width:100%;max-height:470px;display:block;object-fit:contain;border-radius:10px;margin:9px auto 0}.image-name{color:var(--muted);font-size:12px}.editor{display:block;min-height:210px;padding:15px;border:1px solid #e3d8d1;border-radius:0 0 12px 12px;background:white;outline:0}.editor:focus{border-color:#f6c3b7}.editor:empty:before{content:attr(data-placeholder);color:#9b8b87}.editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:9px;background:#fff8f3;border:1px solid #e3d8d1;border-bottom:0;border-radius:12px 12px 0 0}.tool-btn{min-width:35px;min-height:33px;background:#fff;color:#504542;border:1px solid #f3ece6;padding:5px 10px;border-radius:8px;font-size:12px;font-weight:800}.tool-btn:hover{background:#ffe8df}.editor-segment{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#f3ece6;margin-bottom:20px;width:max-content}.editor-segment button{border:0;border-radius:8px;padding:9px 16px;background:transparent;color:#6f5b55;font-size:12px;font-weight:750}.editor-segment button.active{background:white;color:#bb2333;box-shadow:0 2px 7px rgba(43,41,42,.08)}.editor-preview{min-height:190px;padding:21px;border-radius:13px;background:#fffdfa;border:1px solid #e3d8d1}.add-link-line{display:flex;gap:9px;align-items:center;margin-top:11px}.add-link-line input:first-child{width:35%}.add-link-line input{flex:1}.inline-link{display:flex;align-items:center;gap:10px;margin:7px 0;border:1px solid var(--line);border-radius:10px;padding:9px 10px;font-size:12px;line-height:1.7}.file-input{width:100%;display:block;padding:18px;border:1px dashed #d66967;border-radius:12px;background:#fff8f3;color:#6f5b55;font-size:12px;cursor:pointer}.file-grid{display:flex;gap:8px;flex-wrap:wrap}.image-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;background:#ffe8df;border:1px solid #f3ece6;padding:8px;border-radius:9px;font-size:12px}.image-chip span{max-width:180px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.x-small{border:0;background:transparent;color:#b45259;font-weight:900}.checklist-readonly{display:grid;gap:9px}.readonly-step{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:12px;padding:14px 15px;font-size:13px}.readonly-step .dot{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#f3ece6;color:#6f5b55;font-size:11px;flex:none}.readonly-step.is-done .dot{background:#def6ec;color:#128466}
/* System */
.loading-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:var(--muted);font-size:13px}.spinner{height:30px;width:30px;border-radius:50%;border:3px solid #f6c3b7;border-top-color:#bb2333;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast-root{position:fixed;bottom:24px;right:24px;z-index:90;display:grid;gap:10px;max-width:min(440px,calc(100vw - 35px))}.toast{background:#2b292a;color:white;box-shadow:0 12px 40px rgba(43,41,42,.2);padding:14px 18px;border-radius:12px;font-size:13px;line-height:1.6}.toast.error{background:#a13243}
@media(max-width:1050px){.login-wrap{grid-template-columns:1fr 1fr}.login-showcase{padding:40px}.login-showcase .showcase-copy h2{font-size:40px}.content-layout{grid-template-columns:minmax(0,1fr) 280px}.workspace{padding-left:24px;padding-right:24px}}
@media(max-width:870px){.content-layout{grid-template-columns:1fr}.side-panel{position:static}.coach-hero{grid-template-columns:minmax(0,1fr) auto}.side-panel .next-panel{display:none}.side-panel .side-divider{margin:17px 0}.login-showcase{display:none}.login-wrap{grid-template-columns:1fr}.login-card{padding:35px 25px;background:white;border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow)}.login-card .mobile-brand{display:flex;margin-bottom:33px}.login-side{padding:24px}}
@media(max-width:640px){.topbar{height:66px}.top-inner{padding:0 17px}.top-inner .brand{font-size:16px}.top-inner .brand-mark{width:35px;height:35px;border-radius:11px}.top-inner .brand-mark svg{width:20px;height:20px}.header-right{gap:7px}.top-divider{display:none}.user-pill .user-name{display:none}.avatar{width:33px;height:33px;border-radius:10px}.header-right .btn{min-height:33px;padding:7px 9px;font-size:11px}.workspace{padding:27px 15px 80px}.page-head{margin-bottom:23px}.page-head h1{font-size:24px;letter-spacing:-1px}.page-head p{font-size:12px}.head-date{display:none}.nav-tabs{width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin-bottom:20px}.nav-tabs::-webkit-scrollbar{display:none}.nav-tab{font-size:12px;padding:10px 12px;flex:none}.nav-tab svg{width:15px;height:15px}.coach-hero{padding:21px;gap:18px;grid-template-columns:1fr}.coach-hero h2{font-size:21px}.coach-hero p{font-size:12px}.hero-ring{display:none}.coach-hero{position:relative}.coach-hero>div:first-child{z-index:1}.hero-next{margin-top:15px}.hero-overline{padding-right:75px}.main-panel,.table-panel,.card-container{padding:18px}.side-panel{padding:20px}.task-row{padding:15px 13px;gap:11px}.task-index{width:36px;height:36px;border-radius:11px}.task-copy h3{font-size:13px}.task-copy p{font-size:11px}.task-state{display:none}.dashboard-grid{gap:9px}.metric-card{padding:15px}.metric-icon{width:31px;height:31px;border-radius:9px}.metric-icon svg{width:16px;height:16px}.metric-card .value{font-size:25px}.metric-card .label{font-size:11px}.metric-card .unit{font-size:10px}.table-actions{width:100%}.table-actions .search-field{width:100%;flex:1}.inline-input{width:100%}.table-actions .btn{width:100%}.table-scroll{display:none}.mobile-people{display:block}.filter-line{padding-bottom:7px}.filter-pill{font-size:11px}.section-header{gap:9px}.section-header h2{font-size:15px}.section-header-right{white-space:nowrap;font-size:11px}.admin-item{padding:12px;gap:9px}.admin-item .number{width:32px;height:32px}.admin-item h3{font-size:12px}.admin-item .copy p{font-size:10px}.two-col{grid-template-columns:1fr;gap:0}.modal-backdrop{padding:0;align-items:flex-end}.modal,.modal.wide{width:100%;max-height:95dvh;border-radius:22px 22px 0 0}.modal-header{padding:21px 19px 17px}.modal-header h2{font-size:19px}.modal-body{padding:19px}.modal-actions{padding:14px 19px}.modal-actions .btn{flex:1}.add-link-line{flex-wrap:wrap}.add-link-line input:first-child,.add-link-line input{width:100%;flex:1 1 100%}.add-link-line .btn{width:100%}.editor-toolbar{gap:4px}.rich-text{font-size:13px}.setting-row{align-items:flex-start;flex-direction:column}.login-card h1{font-size:27px}.login-card{padding:30px 24px}.login-side{padding:16px}}
@media(max-width:380px){.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-grid .metric-card:nth-child(3){grid-column:1/-1}.top-inner .brand{font-size:14px}.nav-tab{padding:10px 9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* === V3: application workspace / high-density readable UI === */
:root{--ink:#29272a;--paper:#fffaf6;--blue:#c92030;--line:#ede6e1;--radius:17px;--shadow:0 6px 22px rgba(43,41,42,.035)}
body{background:var(--paper)}
.app-layout{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100dvh;max-width:100vw}
.app-sidebar{height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;gap:0;background:#fff;border-right:1px solid #f3ece6;padding:28px 15px 18px;z-index:25;min-width:0}
.sidebar-brand{display:flex;flex-direction:column;align-items:flex-start;padding:0 16px 52px;gap:7px}
.sidebar-brand .brand{font-size:20px;letter-spacing:-.8px}
.sidebar-brand .brand-mark{width:36px;height:36px;border-radius:11px}
.brand-sub{font-size:9px;color:#9b8b87;font-weight:900;letter-spacing:.19em;padding-left:48px}
.sidebar-section-title{padding:0 16px;margin:0 0 11px;font-size:10px;font-weight:850;color:#9b8b87;letter-spacing:.19em}
.side-navigation{display:grid;gap:5px}
.side-nav-item{display:flex;align-items:center;gap:13px;width:100%;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left;padding:14px 13px;color:#6f5b55;font-size:13px;font-weight:730;min-height:49px;transition:background .17s,color .17s,border-color .17s}
.side-nav-item>.icon:first-child{color:#6f5b55}.side-nav-item>span:nth-child(2){flex:1}.side-nav-item>.icon:last-child{opacity:0;transform:translateX(-2px)}
.side-nav-item:hover{background:#ffe8df;color:#89232e}.side-nav-item.active{background:#fff4ef;color:#bb2333;border-color:#ffe8df}.side-nav-item.active>.icon:first-child{color:#bb2333}.side-nav-item.active>.icon:last-child{opacity:1}
.sidebar-progress,.sidebar-help{margin:32px 5px 0;padding:21px 17px;border-radius:17px;background:#fff8f3;border:1px solid #ffe8df}
.sidebar-tip-label,.section-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:.125em;color:#bb2333;text-transform:uppercase;margin-bottom:10px}
.sidebar-percent{font-size:35px;font-weight:850;letter-spacing:-1.6px;margin-bottom:10px}.sidebar-percent small{font-size:16px;color:#6f5b55}
.sidebar-progress-caption{margin-top:10px;font-size:11px;color:#6f5b55;font-weight:700}
.sidebar-help{background:#fff8f3;border-color:#eee6e0}.sidebar-help strong{display:block;font-size:13px;line-height:1.6;color:#2b292a}.sidebar-help p{font-size:12px;line-height:1.8;color:#6f5b55;margin:8px 0 13px}.sidebar-help button{border:0;background:transparent;padding:0;color:#bb2333;font-weight:850;display:flex;align-items:center;gap:8px;font-size:12px}
.sidebar-bottom{margin-top:auto;display:flex;align-items:center;gap:10px;border-top:1px solid #f3ece6;padding:18px 5px 0}.sidebar-identity{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px}.sidebar-identity strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-identity small{font-size:10px;color:#6f5b55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-logout{border:0;background:#fffaf6;display:grid;place-items:center;border-radius:9px;width:35px;height:35px;color:#6f5b55}.sidebar-logout:hover{background:#ffe8df;color:#bb2333}
.app-main{min-width:0;min-height:100vh}.app-main .topbar{height:67px}.app-main .top-inner{padding:0 36px;max-width:none}.top-current{display:flex;align-items:center;gap:10px;font-weight:750;font-size:12px;color:#6f5b55}.online-indicator{width:7px;height:7px;background:#23b383;border-radius:50%;box-shadow:0 0 0 4px #e1f7ee}.top-mobile-brand{display:none}
.app-main .workspace{max-width:1440px;margin:0 auto;padding:39px 44px 70px}.app-main .page-head{margin-bottom:28px}.app-main .page-head h1{font-size:29px;line-height:1.45;letter-spacing:-1.1px}.app-main .page-head p{font-size:13px;line-height:1.8}.crumb-dot{color:#e3d8d1;margin:0 7px}.app-main .nav-tabs{display:none}.work-footer{margin-top:42px;text-align:center;color:#9b8b87;font-size:10px;font-weight:760;letter-spacing:.08em}.work-footer span{margin:0 6px;color:#e3d8d1}
.app-main .panel{border-radius:17px;box-shadow:0 4px 22px rgba(43,41,42,.03)}
/* Coach: immediately visible journey, focus state */
.app-main .coach-hero{background:linear-gradient(115deg,#ffe8df 0%,#fff8f3 80%);border:1px solid #ffe8df;padding:28px 32px;border-radius:20px;margin-bottom:17px}
.app-main .coach-hero h2{font-size:24px;letter-spacing:-.8px}.app-main .coach-hero .hero-ring{width:122px;height:122px}
.coach-stepper{display:flex;align-items:stretch;gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:20px;padding:15px 18px;min-width:0}
.stepper-node{display:flex;align-items:center;min-width:0;flex:1;gap:10px;color:#9b8b87;font-size:12px;font-weight:750}
.stepper-node:last-child{flex:0 1 auto}.stepper-index{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:#f2eeea;color:#6f5b55;font-size:11px;font-weight:900}.stepper-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stepper-node.finished{color:#188e70}.stepper-node.finished .stepper-index{background:#dcf5e9;color:#138566}.stepper-node.active{color:#c52232}.stepper-node.active .stepper-index{background:#c92030;color:#fff}.stepper-connector{height:1px;background:#e3d8d1;flex:1;min-width:10px;margin:0 13px}
.app-main .content-layout{grid-template-columns:minmax(0,1fr) 286px;gap:17px}.app-main .main-panel{padding:25px}.app-main .side-panel{top:88px;padding:24px}.my-info-mini{display:flex;flex-direction:column;gap:6px}.my-info-mini .my-info-label{font-size:10px;color:#9b8b87;letter-spacing:.14em;font-weight:850}.my-info-mini strong{font-size:15px}.my-info-mini>span{font-size:12px;color:#6f5b55}
.app-main .task-row{transition:background .15s,border-color .15s,transform .15s}.app-main .task-row:hover{transform:translateX(2px);background:#fff8f3}.app-main .step-group-title{margin-bottom:12px}
/* Team command center */
.team-intro,.content-overview{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:17px;padding:22px 26px;border-radius:18px;background:#fff0eb;border:1px solid #ffe8df}
.team-intro h2,.content-overview h2{margin:5px 0 6px;font-size:19px;line-height:1.4;letter-spacing:-.6px}
.team-intro p,.content-overview p{font-size:12px;line-height:1.8;color:#6f5b55;margin:0}
.team-intro .hero-overline{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:850;letter-spacing:.08em;color:#bb2333}
.app-main .dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}
.metric-clickable{width:100%;min-width:0;text-align:left;position:relative;transition:box-shadow .17s,transform .17s,border-color .17s}
.app-main .metric-card{padding:21px 19px}.metric-card.metric-clickable:hover{border-color:#f6c3b7;transform:translateY(-2px);box-shadow:0 14px 28px rgba(137,35,46,.07)}.metric-card.metric-clickable.selected{border-color:#d66967;box-shadow:0 0 0 2px rgba(187,35,51,.12)}
.metric-icon.waiting{background:#fff3e2;color:#ab7b2c}.metric-icon.started{background:#fff4ef;color:#bb2333}.metric-icon.done{background:#e6f8f0;color:#138766}
.metric-card .value{font-size:34px;margin:8px 0 13px;font-weight:850}.metric-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:650;color:#9b8b87}.metric-bottom .icon{color:#9b8b87}
.app-main .table-panel{padding:24px 26px}.table-panel .table-tools h2{font-size:17px!important;margin:0 0 6px}.table-panel .section-kicker{margin:0 0 7px}.app-main .filter-line{padding-top:3px;padding-bottom:21px}.app-main .filter-pill.active{background:#ffe8df;color:#bb2333}
.app-main .list-table tbody tr:hover{background:#fff8f3}.app-main .coach-mobile-card:hover{border-color:#f6c3b7}
/* Admin contents */
.content-overview{background:linear-gradient(120deg,#fff4ef,#fff9f5)}.content-overview .section-kicker{margin:0}.content-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.mini-metric{background:#fff;border:1px solid var(--line);padding:18px 21px;border-radius:15px;display:flex;flex-direction:column;gap:9px}.mini-metric>span{font-size:11px;font-weight:750;color:#6f5b55}.mini-metric strong{font-size:24px;letter-spacing:-.7px}.mini-metric small{font-size:11px;color:#6f5b55;margin-left:4px}
.admin-item-button{width:100%;background:#fff;text-align:left;cursor:pointer;min-width:0}.admin-item-button:hover{background:#fff8f3;border-color:#f6c3b7}.admin-item-button .copy{display:block}.item-phase{color:#6f5b55;font-weight:800;font-size:11px;display:block;margin:0 0 7px}.admin-item-button h3{font-size:14px;margin:0 0 6px}.admin-item-button p{font-size:12px;margin:0 0 7px;color:#6f5b55}.item-meta{display:flex;align-items:center;gap:5px;color:#9b8b87;font-size:10px;font-weight:700}.item-meta .icon{margin-left:8px}.item-meta .icon:first-child{margin-left:0}.item-meta .icon svg{width:13px;height:13px}.admin-edit-arrow{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#6f5b55;font-size:12px;font-weight:800}
.content-bottom-tip{display:flex;align-items:center;gap:8px;font-size:12px;color:#6f5b55;line-height:1.7;margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
/* Account creation experience */
.create-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}.create-panel{padding:0!important;overflow:hidden}.create-panel-head{display:flex;align-items:center;gap:15px;padding:25px 28px;border-bottom:1px solid var(--line)}.create-step-indicator{width:49px;height:49px;display:grid;place-items:center;flex:none;border-radius:15px;background:#fff0eb;color:#c52232}.create-panel-head h2{font-size:20px;margin:0 0 5px;letter-spacing:-.55px}.create-panel-head p{margin:0;font-size:12px;color:#6f5b55}.create-panel-head .section-kicker{margin-bottom:7px}
.create-panel form{padding:29px 30px 0}.form-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:22px}.form-section-heading>div{display:flex;flex-direction:column;gap:6px}.form-section-heading strong{font-size:15px}.form-section-heading small{font-size:12px;color:#9b8b87}.form-step-number{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:#ffe8df;color:#bb2333;font-size:11px;font-weight:900}.form-divider{height:1px;background:#eee6e0;margin:9px 0 25px}.required-mark{color:#e05265}.field-assist{font-size:11px;color:#9b8b87;display:block;margin-top:8px;line-height:1.65}.field-assist.valid{color:#149171}.auto-chip{display:inline-flex;align-items:center;vertical-align:middle;background:#f3ece6;color:#6f5b55;padding:3px 8px;border-radius:7px;font-size:10px;font-weight:800;margin-left:5px}.field.auto-filled{background:#fff8f3!important;border-color:#f6c3b7!important;color:#bb2333;font-weight:750;cursor:default}
.form-actions{display:flex;align-items:center;gap:15px;justify-content:space-between;border-top:1px solid var(--line);margin:14px -30px 0;padding:23px 30px}.form-action-note{display:flex;align-items:flex-start;gap:7px;color:#9b8b87;font-size:11px;line-height:1.6;max-width:300px}.form-action-note .icon{margin-top:1px}.create-submit{min-height:45px}
.readonly-district{display:flex;align-items:center;gap:14px;background:#fffaf7;border:1px solid #f3ece6;border-radius:12px;padding:19px;color:#504542;flex-wrap:wrap;font-size:12px}.readonly-district .district-name{margin-left:auto;font-weight:850;color:#bb2333;background:#ffe8df;padding:6px 9px;border-radius:8px}
.create-aside{display:grid;gap:13px}.create-preview{padding:26px 24px;text-align:center;position:sticky;top:88px}.create-preview .section-kicker{text-align:left}.create-preview h3{font-size:15px;text-align:left;margin:0 0 23px}.preview-avatar{height:64px;width:64px;display:grid;place-items:center;margin:auto;border-radius:20px;background:#ffe8df;border:2px solid #ffe8df;color:#bb2333;font-size:22px;font-weight:850}.preview-person-name{font-weight:850;font-size:18px;letter-spacing:-.5px;margin-top:13px}.preview-person-id{color:#9b8b87;font-size:12px;margin:5px 0 23px}.preview-line-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #f2eeea;padding:14px 0;font-size:12px;text-align:left}.preview-line-item span{color:#6f5b55}.preview-line-item strong{font-size:12px;text-align:right;color:#504542;overflow-wrap:anywhere}.preview-state{padding:13px 12px;margin-top:8px;border-radius:11px;background:#e9f8f1;color:#198265;font-size:11px;line-height:1.7;display:flex;align-items:flex-start;gap:7px;text-align:left}.preview-state .icon{margin-top:2px}.create-info{display:flex;align-items:flex-start;gap:10px;color:#6f5b55;padding:14px 12px;font-size:11px;line-height:1.9}.create-info .icon{margin-top:3px}
/* Focused content editor with persistent preview */
.modal.editor-modal{width:min(1100px,96vw);max-height:92dvh}.editor-modal .modal-body{padding:0!important}.editor-columns{display:grid;grid-template-columns:minmax(0,1fr) 335px;min-height:0}.editor-main-fields{min-width:0;padding:27px 30px 32px}.editor-aside{border-left:1px solid #eee8e3;padding:29px 23px;background:#fffbf8;min-width:0}.editor-aside .section-kicker{margin:0 0 7px}.preview-caption{font-size:12px;color:#9b8b87;margin:0 0 18px}.editor-card-preview{padding:23px 20px;background:#fff;border:1px solid #f3ece6;border-radius:17px;box-shadow:0 5px 20px rgba(43,41,42,.04);overflow-wrap:anywhere}.editor-card-phase{font-size:10px;font-weight:850;color:#bb2333;margin:0 0 11px}.editor-card-preview>strong{display:block;font-size:17px;line-height:1.5;letter-spacing:-.4px}.editor-card-preview>p{font-size:12px;line-height:1.75;color:#6f5b55;padding-bottom:16px;margin:9px 0 13px;border-bottom:1px solid #f3ece6}.small-rich{font-size:12px!important;line-height:1.9!important;max-height:260px;overflow:auto}.small-rich img{max-width:100%}.preview-help{font-size:11px;line-height:1.8;color:#9b8b87;margin-top:14px;display:flex;align-items:flex-start;gap:6px}.preview-help .icon{margin-top:2px}
.app-main .card-container,.app-main .table-panel{scroll-margin-top:90px}
@media(max-width:1350px){.app-layout{grid-template-columns:223px minmax(0,1fr)}.app-main .workspace{padding:36px 27px 65px}.app-main .content-layout{grid-template-columns:minmax(0,1fr) 260px}.app-main .metric-card{padding:18px 15px}.create-layout{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:1080px){.app-layout{grid-template-columns:205px minmax(0,1fr)}.app-sidebar{padding:25px 10px 15px}.sidebar-brand{padding:0 12px 35px}.app-main .content-layout{grid-template-columns:1fr}.app-main .side-panel{position:static}.app-main .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.create-layout{grid-template-columns:1fr}.create-aside{grid-template-columns:1fr 1fr;align-items:start}.create-preview{position:static}.create-info{padding-top:10px}}
@media(max-width:900px){.app-layout{display:block}.app-sidebar{display:none}.app-main .topbar{height:66px}.app-main .top-inner{padding:0 20px}.app-main .workspace{padding:29px 22px 75px}.top-current{display:none}.top-mobile-brand{display:block}.app-main .nav-tabs{display:flex;width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin-bottom:24px;background:#fff;border:1px solid var(--line);padding:5px;border-radius:13px}.app-main .nav-tabs::-webkit-scrollbar{display:none}.app-main .nav-tab{white-space:nowrap;flex:none}.app-main .nav-tab.active{background:#fff3ee}.app-main .content-layout{grid-template-columns:minmax(0,1fr) 280px}.app-main .side-panel{position:static}}
@media(max-width:730px){.app-main .content-layout{grid-template-columns:1fr}.app-main .coach-stepper{overflow-x:auto;padding:12px}.stepper-node{flex:1 0 auto;min-width:110px}.stepper-node:last-child{min-width:auto}.stepper-title{font-size:10px}.stepper-connector{min-width:13px;margin:0 7px}.team-intro,.content-overview{align-items:flex-start;flex-direction:column;padding:21px}.team-intro .btn,.content-overview .btn{width:100%}.create-aside{grid-template-columns:1fr}.create-info{padding:13px 9px}.app-main .create-preview{text-align:left}.create-preview .preview-avatar,.create-preview .preview-person-id,.create-preview .preview-person-name{margin-left:0}.content-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-columns{grid-template-columns:1fr}.editor-aside{border-left:0;border-top:1px solid #eee8e3;padding:21px}.editor-main-fields{padding:22px 19px}.modal.editor-modal{width:100%;max-height:96dvh}.app-main .page-head h1{font-size:25px}}
@media(max-width:640px){.app-main .top-inner{padding:0 14px}.app-main .top-logout{min-height:36px;padding:5px 6px}.app-main .top-logout>span:not(.icon){display:none}.app-main .workspace{padding:24px 14px 65px}.app-main .page-head{margin-bottom:20px}.app-main .page-head h1{font-size:23px}.app-main .page-head p{font-size:12px}.app-main .nav-tabs{padding:5px;gap:4px}.app-main .nav-tab{padding:10px 12px;font-size:11px}.app-main .coach-hero{padding:22px}.app-main .coach-hero h2{font-size:20px}.app-main .dashboard-grid{gap:9px}.app-main .metric-card{padding:16px}.metric-card .value{font-size:27px;margin:7px 0 12px}.metric-bottom{font-size:10px}.team-intro h2,.content-overview h2{font-size:17px}.app-main .table-panel,.app-main .card-container{padding:18px}.create-panel-head{padding:19px}.create-panel form{padding:22px 19px 0}.form-actions{margin:15px -19px 0;padding:18px 19px;flex-direction:column;align-items:stretch}.form-action-note{max-width:none}.create-submit{width:100%}.create-preview{padding:23px 21px}.admin-item-button{padding:13px 10px}.admin-edit-arrow{font-size:0;gap:0}.admin-edit-arrow .icon svg{width:17px;height:17px}.mini-metric{padding:15px}.mini-metric strong{font-size:22px}.editor-modal .modal-header{padding:20px}.editor-modal .modal-header h2{font-size:18px}.editor-modal .modal-actions{padding:12px 15px}.editor-modal .editor-aside{display:block}.create-panel .two-col{grid-template-columns:1fr;gap:0}}

/* v4: focused workspace — one visual emphasis per screen, no nested card walls */
:root{--paper:#fff;--line:#ede6e1;--shadow:none;--radius:12px}
.app-main{background:#fff}
.app-sidebar{background:#fff8f3;border-right:1px solid #f3ece6}
.app-sidebar .side-nav-item{border-radius:9px;min-height:46px}
.app-sidebar .side-nav-item.active{background:#fff0eb;border-color:transparent}
.app-sidebar .sidebar-brand{padding-bottom:48px}
.app-sidebar .sidebar-progress{background:none;border:0;border-radius:0;border-top:1px solid #eee6e0;padding:21px 10px 0;margin:27px 3px 0}
.app-sidebar .sidebar-progress-caption{margin:2px 0 12px;display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:11px}
.app-sidebar .sidebar-progress-caption strong{font-size:23px;color:#bb2333;letter-spacing:-1px}
.app-sidebar .sidebar-progress-caption>span{color:#6f5b55;font-weight:600}
.app-sidebar .sidebar-progress .progress-track{height:5px}
.app-main .workspace{max-width:1400px;padding-top:44px}
.app-main .page-head{padding-bottom:22px;margin-bottom:26px;border-bottom:1px solid #f3ece6}
.app-main .page-head h1{font-size:30px;letter-spacing:-1.2px}
.app-main .page-head .eyebrow{margin-bottom:8px}
.app-main .panel{box-shadow:none;background:transparent;border:0;border-radius:0}
.app-main .section-kicker{color:#6f5b55}
.app-main .section-header h2,.app-main .table-tools h2{font-size:19px!important;letter-spacing:-.6px}
/* Contact channel is an action, not another boxed status panel */
.header-contact{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:7px 11px;color:#bb2333;border:1px solid #ffe8df;border-radius:9px;text-decoration:none;background:#fff8f3;font-size:12px;font-weight:750;white-space:nowrap;transition:background .18s,border-color .18s}
.header-contact:hover{background:#ffe8df;border-color:#f6c3b7}
.header-contact .contact-short{display:none}
.header-contact .icon svg{width:16px;height:16px}
.login-contact{display:flex;align-items:center;justify-content:center;gap:11px;padding:12px 8px;margin-top:16px;min-height:45px;color:#bb2333;font-size:13px;font-weight:760;text-decoration:none;border-bottom:1px solid #ffe8df;transition:background .15s}
.login-contact:hover{background:#fff8f3}
.login-contact .icon:last-child{margin-left:auto;color:#6f5b55}
.login-card .hint{color:#6f5b55;font-size:12px;margin-top:10px}
.login-bottom{margin-top:19px;padding-top:17px}
/* Coach main view — only primary call-to-action receives a tint */
.app-main .coach-hero{padding:30px 34px;margin-bottom:20px;border-radius:12px;border:0;background:linear-gradient(110deg,#fff3ee,#fff8f3)}
.app-main .coach-hero h2{font-size:25px}
.app-main .coach-hero .hero-ring{width:116px;height:116px}
.app-main .coach-hero .hero-ring:before{background:#ffe8df}
.app-main .coach-stepper{padding:12px 2px 25px;margin-bottom:26px;border:0;border-bottom:1px solid #eee6e0;border-radius:0;background:transparent}
.app-main .checklist-body{max-width:1120px}
.app-main .main-panel{padding:0!important}
.app-main .main-panel>.section-header{padding:0 0 15px;margin-bottom:0}
.app-main .task-list{gap:0}
.app-main .task-row{margin:0;min-height:87px;padding:18px 11px;border:0;border-bottom:1px solid #f3ece6;border-radius:0;background:transparent;box-shadow:none;transform:none}
.app-main .task-row.done,.app-main .task-row.locked{background:transparent;border-color:#f3ece6}
.app-main .task-row.current{background:linear-gradient(90deg,#ffe8df 0,#fff 58%);border-left:3px solid #bb2333;padding-left:8px;border-bottom-color:#f3ece6}
.app-main .task-row:hover{transform:none;background:#fffbf8;box-shadow:none;border-color:#f3ece6}
.app-main .task-row.current:hover{background:#ffe8df}
.app-main .task-row .task-index{width:37px;height:37px;border-radius:50%}
.app-main .task-copy h3{font-size:14px}
.app-main .task-copy p{font-size:12px}
.app-main .step-group{margin-top:30px}
.app-main .step-group-title{font-size:13px;margin-bottom:0;padding-bottom:7px}
.app-main .step-group-title:after{background:#eee6e0}
.app-main .task-state{border:none;background:transparent;font-weight:750}
.app-main .task-state.current{color:#bb2333}
.app-main .task-state.completed{color:#16876e}
.app-main .checklist-footnote{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.8;color:#6f5b55;margin:30px 0 0}
.app-main .checklist-footnote .icon{color:#bb2333}
/* Leadership views: typographic sections and a single table, no parallel card filters */
.app-main .team-intro,.app-main .content-overview{padding:0 0 23px;margin-bottom:18px;background:transparent;border:0;border-bottom:1px solid #eee6e0;border-radius:0}
.app-main .team-intro h2,.app-main .content-overview h2{font-size:20px}
.app-main .team-intro p,.app-main .content-overview p{font-size:13px;color:#6f5b55}
.app-main .dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:3px 0 34px;border-bottom:1px solid #eee6e0}
.app-main .metric-card{padding:15px 20px 18px;background:none;border:0;border-right:1px solid #eee6e0;border-bottom:3px solid transparent;border-radius:0;box-shadow:none;transform:none}
.app-main .metric-card:last-child{border-right:0}
.app-main .metric-card.metric-clickable:hover{background:#fff8f3;border-color:#eee6e0;box-shadow:none;transform:none}
.app-main .metric-card.metric-clickable.selected{border-bottom-color:#c92030;box-shadow:none;background:#fffdfa}
.app-main .metric-card.metric-clickable.selected:hover{border-bottom-color:#c92030}
.app-main .metric-icon{background:none!important;width:23px;height:23px;border-radius:0}
.app-main .metric-card .value{font-size:34px;margin:7px 0 5px}
.app-main .metric-bottom{min-height:20px;font-size:11px;color:#9b8b87}
.app-main .metric-bottom .icon{opacity:.35}
.app-main .table-panel{padding:0!important}
.app-main .table-tools{padding:0 0 15px;margin:0}
.app-main .table-tools h2{margin-bottom:5px}
.app-main .results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 2px 10px;margin-top:14px;border-top:1px solid #eee6e0;color:#6f5b55;font-size:12px}
.app-main .results-toolbar strong{color:#bb2333;margin-left:6px}
.app-main .text-action{display:flex;align-items:center;gap:6px;padding:3px 0;color:#6f5b55;border:0;background:none;font-size:12px;font-weight:700}
.app-main .text-action:hover{color:#bb2333;text-decoration:underline}
.app-main .list-table{border-collapse:collapse}
.app-main .list-table thead{background:#fff8f3}
.app-main .list-table th{font-size:11px}
.app-main .list-table td{border-bottom:1px solid #f3ece6}
.app-main .list-table tbody tr:hover{background:#fff8f3}
.app-main .coach-mobile-card{background:transparent;border:0;border-bottom:1px solid #eee6e0;border-radius:0}
.app-main .coach-mobile-card:hover{background:#fff8f3;border-color:#eee6e0}
/* Admin content uses a list, not a stack of outlined cards */
.app-main .content-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:4px 0 36px;border-bottom:1px solid #eee6e0}
.app-main .mini-metric{background:transparent;padding:13px 24px 17px;border:0;border-right:1px solid #eee6e0;border-radius:0;gap:6px}
.app-main .mini-metric:first-child{padding-left:2px}
.app-main .mini-metric:last-child{border-right:0}
.app-main .mini-metric strong{font-size:27px}
.app-main .card-container{padding:0!important}
.app-main .card-container>.section-header{padding-bottom:15px;margin-bottom:3px;border-bottom:1px solid #eee6e0}
.app-main .admin-item-button{border:0;border-bottom:1px solid #eee6e0;border-radius:0;padding:18px 7px;background:transparent}
.app-main .admin-item-button:hover{background:#fff8f3;border-color:#eee6e0}
.app-main .content-bottom-tip{border-top:0;margin-top:19px}
/* Account creation: one form on a clean canvas, preview divided by whitespace */
.app-main .create-layout{grid-template-columns:minmax(0,1fr) 300px;gap:48px}
.app-main .create-panel{padding:0!important;overflow:visible}
.app-main .create-panel-head{padding:0 0 20px;border-bottom:1px solid #eee6e0}
.app-main .create-step-indicator{border-radius:50%;width:45px;height:45px}
.app-main .create-panel form{padding:25px 0 0}
.app-main .form-step-number{border-radius:50%;width:29px;height:29px}
.app-main .form-divider{margin:16px 0 25px}
.app-main .form-actions{margin:20px 0 0;padding:20px 0;border-top:1px solid #eee6e0;background:transparent}
.app-main .create-aside{display:block}
.app-main .create-preview{position:sticky;top:96px;padding:6px 0 12px 28px;border-left:1px solid #eee6e0;border-radius:0;background:transparent;box-shadow:none}
.app-main .create-info{padding:22px 0 0 28px;background:none;border:0;color:#6f5b55}
.app-main .preview-avatar{box-shadow:none}
.app-main .preview-state{background:#e9f6ef;border:0}
/* Settings & editorial dialogs keep a single visual surface */
.app-main .side-panel{padding:12px 0 0 24px;border-left:1px solid #eee6e0}
.app-main .card-container{min-width:0}
/* Responsive */
@media(max-width:1280px){.app-main .create-layout{gap:30px;grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:1080px){.app-main .create-layout{grid-template-columns:1fr;gap:25px}.app-main .create-aside{display:block}.app-main .create-preview{position:static;padding:20px 0;border-left:0;border-top:1px solid #eee6e0}.app-main .create-info{padding:7px 0 0}.app-main .create-preview .preview-avatar,.app-main .create-preview .preview-person-name,.app-main .create-preview .preview-person-id{margin-left:0}.app-main .create-preview{text-align:left}}
@media(max-width:900px){.header-contact{padding:8px 10px}.header-contact .contact-long{display:none}.header-contact .contact-short{display:inline}.app-main .workspace{padding-top:29px}.app-main .page-head{padding-bottom:17px}.app-main .dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.app-main .content-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.app-main .team-intro,.app-main .content-overview{flex-direction:column;align-items:flex-start}.app-main .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-main .metric-card:nth-child(2){border-right:0}.app-main .metric-card:nth-child(-n+2){border-bottom:1px solid #eee6e0}.app-main .metric-card.metric-clickable.selected:nth-child(-n+2){border-bottom:3px solid #c92030}.app-main .metric-card{padding:13px 13px 14px}.app-main .metric-card .value{font-size:28px}.app-main .mini-metric{padding:15px 9px}.app-main .mini-metric strong{font-size:23px}.app-main .content-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.app-main .mini-metric:nth-child(2){border-right:0}.app-main .mini-metric:nth-child(-n+2){border-bottom:1px solid #eee6e0}.app-main .coach-hero{padding:24px 22px}.app-main .task-row{padding:16px 6px}.app-main .task-row.current{padding-left:3px}}
@media(max-width:430px){.app-main .top-inner{gap:6px;padding:0 11px}.top-mobile-brand .brand{font-size:16px;gap:7px}.top-mobile-brand .brand-mark{width:32px;height:32px;border-radius:10px}.top-mobile-brand .brand-mark .icon svg{width:19px;height:19px}.app-main .header-right{gap:5px}.app-main .header-right .user-pill{display:none}.app-main .top-logout{padding:5px;min-width:32px}.header-contact{font-size:11px;min-height:35px}.app-main .page-head h1{font-size:23px}.app-main .coach-stepper{padding:9px 0 19px}.app-main .team-intro .btn,.app-main .content-overview .btn{width:auto}.app-main .metric-card .metric-bottom span{display:none}.app-main .metric-card .value{font-size:26px}.app-main .create-panel form{padding:20px 0 0}.app-main .form-actions{margin:16px 0 0;padding:17px 0}.app-main .create-panel-head{padding:0 0 17px}.app-main .results-toolbar{padding-top:11px}.login-contact{font-size:12px}}
@media(prefers-reduced-motion:reduce){.app-main .metric-card,.app-main .task-row,.header-contact,.login-contact{transition:none}}


/* v5 — stable utility area. Keep the top logout, remove redundant sidebar logout. */
.app-sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#e3d8d1 transparent}
.sidebar-footer{margin-top:auto;flex:none;padding-top:22px}
.sidebar-resources{padding:0 2px 15px}
.sidebar-resources-title{padding:0 12px;margin-bottom:9px;font-size:10px;color:#9b8b87;font-weight:850;letter-spacing:.11em}
.resource-links{display:grid;gap:1px}
.resource-link,.sidebar-contact,.mobile-contact{display:flex;align-items:center;min-width:0;gap:10px;border-radius:8px;text-decoration:none;color:#504542;font-size:12px;font-weight:670;line-height:1.4;transition:background .14s,color .14s}
.resource-link{padding:10px 11px;min-height:38px}
.resource-link:hover,.resource-link:focus-visible{background:#fff4ef;color:#bb2333}
.resource-link>.icon:first-child{color:#6f5b55;flex:none}
.resource-link>span:nth-child(2){min-width:0;flex:1;overflow-wrap:anywhere}
.resource-link>.icon:last-child{color:#9b8b87;opacity:.7;flex:none}
.resource-link .icon svg,.sidebar-contact .icon svg,.mobile-contact .icon svg{width:15px;height:15px}
.sidebar-contact{border-top:1px solid #eee8e3;border-radius:0;margin:12px 9px 0;padding:16px 2px 0;color:#b61d2e;min-height:42px;font-weight:790}
.sidebar-contact span:nth-child(2),.mobile-contact span:nth-child(2){flex:1}
.sidebar-contact:hover,.mobile-contact:hover{color:#89232e}
.sidebar-contact>.icon:last-child{color:#9b8b87}
.app-sidebar .sidebar-bottom{margin-top:0;padding:16px 7px 0}
.mobile-resource-menu{display:none}
.resource-link:focus-visible,.sidebar-contact:focus-visible,.mobile-contact:focus-visible,.mobile-resource-menu summary:focus-visible{outline:2px solid #bb2333;outline-offset:2px}
@media(max-width:900px){
  .mobile-resource-menu{display:block;margin:-6px 0 24px;border-bottom:1px solid #eee8e3}
  .mobile-resource-menu summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:10px 4px 13px;font-size:12px;color:#504542;font-weight:800}
  .mobile-resource-menu summary::-webkit-details-marker{display:none}
  .mobile-resource-menu summary>.icon:first-child{color:#c92030}
  .mobile-resource-menu summary>span:not(.icon){font-weight:550;color:#9b8b87;font-size:11px;flex:1;text-align:right}
  .mobile-resource-menu summary>.icon:last-child{transform:rotate(90deg);color:#9b8b87;transition:transform .16s}
  .mobile-resource-menu[open] summary>.icon:last-child{transform:rotate(-90deg)}
  .mobile-resource-panel{padding:3px 0 16px}
  .mobile-resource-panel .resource-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .mobile-resource-panel .resource-link{padding:12px 8px;background:transparent;border-bottom:1px solid #f2eeea;border-radius:0}
  .mobile-contact{margin-top:9px;padding:12px 8px;border-top:1px solid #f3ece6;border-radius:0;color:#b61d2e}
}
@media(max-width:420px){.mobile-resource-panel .resource-links{grid-template-columns:1fr}.mobile-resource-menu summary>span:not(.icon){font-size:10px}}
@media(prefers-reduced-motion:reduce){.resource-link,.sidebar-contact,.mobile-contact{transition:none}}


/* v6: 두 교육과정 상세안내 - 작은 박스 없이 절차별 제목과 여백 중심 */
.rich-text h4{font-size:14px;font-weight:850;color:#89232e;margin:23px 0 8px;letter-spacing:-.2px}
.rich-text h4:first-child{margin-top:0}
.rich-text h4+p{margin-top:0}
.rich-text p{line-height:1.95}
.rich-text a{overflow-wrap:anywhere;text-underline-offset:3px}
.rich-text mark{box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:3px}
@media(max-width:640px){.rich-text h4{font-size:14px;margin-top:21px}.modal-body>.rich-text{font-size:13px}}

/* v9: leader / admin read-only content reference */
.guide-section{background:#fff;border-top:1px solid #f3ece6;padding:27px 0 0;margin-top:6px}
.guide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:0 4px 23px}
.guide-heading h2{font-size:21px;font-weight:800;margin:7px 0 6px;letter-spacing:-.6px}
.guide-heading p{color:#6f5b55;font-size:13px;line-height:1.8;margin:0}
.guide-count{font-size:12px;font-weight:750;color:#6f5b55;white-space:nowrap}
.guide-list{border-top:1px solid #eee8e3}
.guide-row{display:flex;align-items:center;gap:19px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #eee8e3;padding:22px 15px;color:inherit;transition:background .15s}
.guide-row:hover,.guide-row:focus-visible{background:#fff8f3}
.guide-index{font-size:22px;font-weight:850;color:#bb2333;min-width:37px}
.guide-description{flex:1;min-width:0;display:grid;gap:5px}
.guide-description strong{font-size:15px}
.guide-description small{font-size:12px;color:#6f5b55;line-height:1.7;overflow-wrap:anywhere}
.guide-open{display:flex;align-items:center;gap:7px;color:#6f5b55;font-size:12px;font-weight:700;white-space:nowrap}
.guide-footnote{color:#6f5b55;font-size:12px;display:flex;gap:8px;padding:22px 8px}
.readonly-step-button{width:100%;cursor:pointer;text-align:left;background:white;font:inherit;color:inherit}
.readonly-step-button:hover,.readonly-step-button:focus-visible{border-color:#d66967;background:#fff8f3}
.readonly-step-button>.icon{color:#9b8b87}
.rich-text a{color:#c92030;text-decoration:underline;cursor:pointer;pointer-events:auto}
.rich-text a:hover{color:#89232e}
@media(max-width:640px){.guide-row{padding:18px 7px;gap:12px}.guide-heading h2{font-size:18px}.guide-open{font-size:0}.guide-open .icon{font-size:initial}.guide-index{font-size:18px;min-width:30px}}

/* v10: 상품 교육 네 개 소단계 / Vimeo 즉시 재생 */
.course-subnav{margin:10px 0 24px;padding:13px 0;border-top:1px solid #f3ece6;border-bottom:1px solid #f3ece6}
.course-subnav-title{display:block;font-size:11px;color:#6f5b55;font-weight:700;margin-bottom:9px;letter-spacing:.02em}
.course-subnav-links{display:flex;gap:6px 13px;flex-wrap:wrap}
.course-nav-link{padding:7px 3px;border:0;background:transparent;color:#bb2333;font-weight:650;font-size:12px;cursor:pointer;text-align:left}
.course-nav-link:hover{text-decoration:underline}
.course-video-entry{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin:7px 0 16px;padding:11px 0 16px;border-bottom:1px solid #f3ece6}
.course-video-title{font-size:14px;line-height:1.55;font-weight:700;color:#302c2b}
.course-video-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.course-video-play{background:#fff3ee!important;color:#bb2333!important;border:1px solid #f6c3b7!important;border-radius:7px;cursor:pointer}
.course-video-fallback{font-size:12px!important;color:#6f5b55!important;text-decoration:underline!important}
.course-video-slot{width:100%;max-width:740px}
.course-video-slot iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;min-height:220px;border:0;border-radius:8px;background:#29272a}
.rich-text h4[id^=course-section-]{scroll-margin-top:18px}
@media(max-width:560px){.course-video-slot iframe{min-height:175px}.course-subnav-links{gap:4px 12px}}

/* v12: 세부 챕터는 카드 여러 개 대신 얇은 구분선과 두 열 레이아웃으로 표시합니다. */
.modal.chapter-modal{width:min(100%,1040px)}
.chapter-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 13px}
.chapter-heading strong{display:block;font-size:16px;font-weight:800;color:var(--ink)}
.chapter-heading span{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.chapter-progress{font-size:13px;font-weight:800;color:var(--blue);white-space:nowrap}
.chapter-track{height:5px;border-radius:3px;background:#f2eeea;overflow:hidden;margin-bottom:22px}
.chapter-track span{display:block;height:100%;background:var(--blue);transition:width .18s ease}
.chapter-layout{display:grid;grid-template-columns:minmax(195px,31%) minmax(0,1fr);gap:28px;align-items:start}
.chapter-nav{display:flex;flex-direction:column;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.chapter-tab{display:flex;align-items:flex-start;text-align:left;width:100%;gap:11px;padding:14px 10px;border:0;border-bottom:1px solid var(--line);background:#fff;color:#504542;font-size:12.5px;font-weight:650;line-height:1.55;cursor:pointer;overflow-wrap:anywhere}
.chapter-tab:last-child{border-bottom:0}.chapter-tab:hover{color:var(--blue);background:#fff9f5}.chapter-tab.active{background:#fff8f3;color:#bb2333;font-weight:800;box-shadow:inset 3px 0 0 var(--blue)}
.chapter-number{display:inline-grid;place-items:center;flex:0 0 25px;height:25px;border-radius:8px;background:#f3ece6;font-size:10px;font-weight:800;color:#6f5b55}
.chapter-tab.active .chapter-number{background:#ffe8df;color:#c92030}.chapter-number.checked{color:#108168;background:#e6f6ef}
.chapter-content{min-width:0;padding:5px 0 0}.chapter-content-kicker{font-size:10px;letter-spacing:1.1px;color:#c92030;font-weight:850}
.chapter-content h3{font-size:20px;font-weight:850;line-height:1.45;letter-spacing:-.5px;margin:9px 0 18px}
.chapter-content .rich-text{min-height:165px;overflow-wrap:anywhere;line-height:1.85}
.chapter-controls{padding-top:19px;margin-top:22px;border-top:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.chapter-hint,.chapter-readonly{font-size:12px;color:var(--muted);margin:0}
.chapter-admin-trigger,.chapter-admin-row{background:transparent;border:0;text-align:left;display:flex;align-items:center;gap:9px;cursor:pointer;min-height:37px;font-size:12px}
.chapter-admin-trigger{padding:8px 16px;color:var(--blue);font-weight:800;border-bottom:1px solid #eee6e0}
.chapter-admin-row{padding:8px 16px 8px 38px;color:#504542;border-bottom:1px solid #f3ece6;overflow-wrap:anywhere}
.chapter-admin-row>span:last-child{margin-left:auto;white-space:nowrap;font-size:11px;color:#6f5b55}
.chapter-admin-row:hover{background:#fff8f3;color:var(--blue)}
@media(max-width:670px){.chapter-layout{grid-template-columns:1fr;gap:15px}.chapter-nav{max-height:none}.chapter-tab{padding:11px 9px}.chapter-content{padding:12px 1px}.chapter-content h3{font-size:18px}.modal.chapter-modal{width:100%}.chapter-heading{margin-top:10px}}
@media(max-width:360px){.chapter-heading{flex-wrap:wrap}.chapter-tab{font-size:12px}.chapter-admin-row{padding-left:20px}}
.chapter-finish{text-align:center;padding:40px 28px 48px}
.chapter-finish-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 22px;background:#e7f7ed;border-radius:50%;color:#11865a}
.chapter-finish-icon svg{width:36px;height:36px}
.chapter-finish p{max-width:440px;margin:auto;line-height:1.85;color:#504542;font-size:14px}
/* Official brand image: no artificial colored tile or cropping. */
.brand-mark.has-image,.login-showcase .brand-mark.has-image{background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.brand-logo{display:block;width:100%;height:100%;object-fit:contain}

/* =============================================================
 Kids 첫 걸음 · v12.5 · Ivory & Red brand theme
 Dominant canvas = warm ivory, interaction = Kids red.
 Existing mobile layouts, functionality and successful-completion green remain unchanged.
 ============================================================= */
:root{
 --ink:#29272a; --muted:#756c6a; --subtle:#928582;
 --line:#eee5df; --paper:#fffaf6; --white:#ffffff;
 --blue:#c92030; --blueDark:#a81827; --blueLight:#fff0eb;
 --kids-red:#ed1c24; --kids-red-action:#c92030; --kids-ivory:#fff4eb;
 --shadow:0 10px 30px rgba(94,53,44,.035);
}
body{background:#fffaf6;color:var(--ink)}
:focus-visible{outline:3px solid #e9898f!important;outline-offset:3px}
::selection{background:#ffe0d7;color:#84202c}
/* Sign-in: calm warm surface, high contrast copy, clear single primary CTA. */
.login-wrap{background:#ffffff}
.login-showcase{
 background:linear-gradient(138deg,#fff1e6 0%,#fff6ed 49%,#ffebe2 100%);
 color:#2e2828;
 border-right:1px solid #f4ded5;
}
.login-showcase::before{
 border-color:rgba(201,32,48,.10);
 box-shadow:0 0 0 105px rgba(210,65,72,.035),0 0 0 220px rgba(213,73,76,.022);
}
.login-showcase .brand{color:#30272a}
.login-showcase .showcase-kicker{color:#b62736;opacity:1}
.login-showcase .showcase-copy h2{color:#30282a;font-weight:850}
.login-showcase .showcase-copy p{color:#75605c;opacity:1}
.showcase-progress{
 background:rgba(255,255,255,.65);border:1px solid #f0d9d0;
 box-shadow:0 10px 32px rgba(119,67,56,.045);backdrop-filter:blur(14px)
}
.showcase-progress .preview-line{color:#574d4b}
.preview-dot{background:#ffebe5;color:#b52c37}
.preview-dot.completed{background:#c92030;color:#fff}
.login-side{background:#ffffff}
.login-eyebrow{background:#fff4ee;border-color:#f5d9d0;color:#aa2634}
.login-card .intro{color:#746c68}
.login-card .btn.primary,.btn.primary{background:#c92030;border-color:#c92030;color:#fff;box-shadow:0 4px 14px rgba(177,32,45,.12)}
.login-card .btn.primary:hover:not(:disabled),.btn.primary:hover:not(:disabled){background:#a91827;border-color:#a91827}
.btn.soft{background:#fff0ea;color:#a72432;border-color:#f6d8d1}
.btn.soft:hover:not(:disabled){background:#ffe7df;border-color:#f0c7bd}
.field{border-color:#e9e0db}
.field:focus{border-color:#d9636d;box-shadow:0 0 0 3px rgba(237,28,36,.095)}
.login-contact{color:#ab2533;border-color:#f1e4df}
.login-contact:hover{background:#fff4ef}
/* Workspace canvas deliberately avoids big tinted cards. */
.app-main{background:#ffffff}
.app-sidebar{background:#fffaf6;border-right-color:#f0e7e0}
.app-main .topbar{background:rgba(255,255,255,.97);border-bottom-color:#f0e8e2}
.app-sidebar .side-nav-item.active{background:#ffebe5;border-color:transparent;color:#af2432}
.app-sidebar .side-nav-item:hover{background:#fff0e9;color:#aa2835}
.sidebar-resources-title,.sidebar-section-title,.brand-sub{color:#a09289}
.app-sidebar .sidebar-progress-caption strong{color:#b92535}
.sidebar-contact{color:#a92432;border-top-color:#eee5df}
.sidebar-contact:hover{color:#801723}
.resource-link:hover,.resource-link:focus-visible{background:#fff0e9;color:#ad2635}
.mobile-contact{color:#aa2634;border-top-color:#eee4dd}
.app-main .coach-hero{background:linear-gradient(105deg,#fff2e9 0%,#fffaf5 87%);border-color:#f5e1d7}
.app-main .task-row.current{background:linear-gradient(90deg,#fff1e9 0%,#fff 58%);border-left-color:#cc2735}
.app-main .task-row.current:hover{background:#fff2ec}
.app-main .metric-card.metric-clickable.selected{background:#fff8f4;border-bottom-color:#c92030}
.app-main .metric-card.metric-clickable.selected:hover{border-bottom-color:#c92030}
.app-main .metric-card.metric-clickable:hover{background:#fff9f5}
.app-main .list-table thead{background:#fff8f3}
.app-main .list-table tbody tr:hover{background:#fff9f5}
.app-main .admin-item-button:hover{background:#fff9f5}
.app-main .nav-tab.active{color:#a92331;background:white}
.nav-tabs{background:#f8f0e9}
.guide-row:hover,.guide-row:focus-visible{background:#fff9f5}
.guide-index{color:#ba2735}
.chapter-tab:hover{background:#fff7f2;color:#ad2230}
.chapter-tab.active{background:#fff0ea;color:#ac2230}
.chapter-tab.active .chapter-number{background:#fce0d9;color:#ab2431}
.chapter-track{background:#f0e8e2}
.chapter-track span{background:#c92030}
.chapter-content-kicker,.chapter-progress{color:#b62232}
.course-video-play{background:#fff0e9!important;color:#aa2633!important;border:1px solid #f1d1c9!important}
.course-video-play:hover{background:#ffe4dc!important}
.rich-text a{color:#ad2331;text-underline-offset:3px}
.rich-text a:hover{color:#831925}
/* Keep successful completion green, never red. */
.chapter-number.checked{color:#117e61;background:#e6f6ef}
@media(max-width:900px){
 .login-showcase{display:none}
 .login-wrap{background:#fffaf6}
 .login-side{background:#fffaf6}
 .app-main .nav-tabs{background:#fffaf7}
}




/* v12.7 - 편집 팝업: 중첩 도형을 줄이고, 하단 텍스트·버튼 간섭을 차단합니다. */
.modal.chapter-editor-modal{
 width:min(780px,calc(100vw - 40px));
 max-height:min(88dvh,930px);
 display:flex;flex-direction:column;
 border-radius:18px;
 overflow:hidden;
}
.chapter-editor-modal .chapter-editor-header{
 flex:0 0 auto;gap:18px;align-items:flex-start;
 padding:25px 32px 20px;
}
.chapter-editor-heading{min-width:0;flex:1;overflow-wrap:anywhere}
.chapter-editor-heading .eyebrow{overflow-wrap:anywhere}
.chapter-editor-modal .modal-header h2{margin:6px 0;font-size:23px;line-height:1.4}
.chapter-editor-modal .modal-header .sub{line-height:1.65;overflow-wrap:anywhere}
.chapter-editor-modal .chapter-editor-body{
 flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;
 padding:27px 32px 32px!important;
 scrollbar-gutter:stable;
}
.chapter-editor-fields{
 display:grid;grid-template-columns:minmax(0,2fr) minmax(135px,.75fr);
 align-items:start;gap:18px;
 padding-bottom:20px;
 margin-bottom:23px;
 border-bottom:1px solid var(--line);
}
.chapter-editor-fields .form-group{margin-bottom:0;min-width:0}
.chapter-editor-fields .field{width:100%;min-width:0}
.chapter-editor-fields .field-assist{margin-top:7px}
.chapter-editor-writing{min-width:0}
.chapter-editor-writing>.form-label{display:block;margin-bottom:12px}
.chapter-editor-writing-surface{min-width:0;border:0;border-radius:0;background:white}
.chapter-editor-modal .editor-toolbar{
 border:0;border-bottom:1px solid #e9e0d9;border-radius:0;
 padding:0 0 11px;margin:0 0 1px;
 background:transparent;gap:8px;
}
.chapter-editor-modal .tool-btn{background:transparent;border-color:#eee5df;border-radius:7px;min-height:35px}
.chapter-editor-modal .tool-btn:hover{background:#fff1eb}
.chapter-editor-modal #chapter-rich-editor{
 display:block;width:100%;min-height:230px;
 margin:0;padding:19px 2px 20px;
 border:0;border-bottom:1px solid #e9e0d9;border-radius:0;
 background:transparent;box-shadow:none;
 line-height:1.95;outline-offset:3px;
 overflow-wrap:anywhere;word-break:break-word;
}
.chapter-editor-modal #chapter-rich-editor:focus{border-bottom-color:#c92030;outline:0;box-shadow:0 1px 0 #c92030}
.chapter-editor-modal #chapter-rich-editor p:last-child{margin-bottom:0}
.chapter-editor-modal #chapter-rich-editor img{max-width:100%;height:auto}
.chapter-editor-hint{
 margin:18px 0 0;max-width:100%;
 padding:0 0 4px;color:var(--muted);
 font-size:12px;font-weight:500;line-height:1.85;
 overflow-wrap:anywhere;
}
.chapter-editor-modal .chapter-editor-actions{
 flex:0 0 auto;display:flex;justify-content:space-between;
 gap:16px;align-items:center;flex-wrap:nowrap;
 padding:15px 32px calc(15px + env(safe-area-inset-bottom,0px));
 border-top:1px solid var(--line);background:#fff;
}
.chapter-editor-destructive{flex:0 1 auto;min-width:0}
.chapter-editor-action-group{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.chapter-editor-action-group .btn{white-space:nowrap}
@media(max-width:670px){
 .modal.chapter-editor-modal{width:100%;max-height:96dvh;border-radius:20px 20px 0 0}
 .chapter-editor-modal .chapter-editor-header{padding:21px 20px 16px}
 .chapter-editor-modal .modal-header h2{font-size:19px}
 .chapter-editor-modal .chapter-editor-body{padding:21px 20px 27px!important}
 .chapter-editor-fields{grid-template-columns:1fr;gap:15px;margin-bottom:19px;padding-bottom:19px}
 .chapter-editor-modal #chapter-rich-editor{min-height:200px}
 .chapter-editor-modal .chapter-editor-actions{
    padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px));
    gap:10px;flex-wrap:wrap;
 }
 .chapter-editor-action-group{margin-left:auto}
 .chapter-editor-action-group .btn{flex:0 0 auto;padding:10px 13px;min-height:42px}
 .chapter-editor-hint{margin-top:18px;line-height:1.8}
}
@media(max-width:385px){
 .chapter-editor-modal .chapter-editor-header{padding:18px 16px 14px}
 .chapter-editor-modal .chapter-editor-body{padding:19px 16px 26px!important}
 .chapter-editor-modal .chapter-editor-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))}
 .chapter-editor-action-group{gap:7px}
 .chapter-editor-action-group .btn{font-size:11px;padding:9px 10px}
}


/* v12.8 - 이미지는 세부 챕터에 직접 연결 */
.chapter-image-section{margin:23px 0 8px;border-top:1px solid var(--line);padding-top:20px}
.chapter-image-heading{display:flex;align-items:center;gap:8px;margin-bottom:15px;color:var(--ink);font-size:13px;font-weight:800}
.chapter-image-heading span{margin-left:auto;font-size:11px;font-weight:600;color:var(--muted)}
.chapter-image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:17px}
.chapter-image-entry{min-width:0;margin:0}
.chapter-image-entry .image-slot{min-height:125px;display:grid;place-items:center;background:#fff9f6;border-radius:10px;overflow:hidden}
.chapter-image-entry img{width:100%;max-height:420px;object-fit:contain;margin:0;border-radius:9px}
.chapter-image-entry figcaption{margin-top:7px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.chapter-editor-images{margin:26px 0 0;padding-top:19px;border-top:1px solid var(--line)}
.chapter-editor-images .file-input{background:#fffaf7;border-color:#e5b9ac;padding:14px;border-radius:9px}
.chapter-editor-images .chapter-editor-hint{margin:10px 0 0;font-size:11px}
.chapter-editor-existing{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px;margin-bottom:15px}
.chapter-editor-image-entry{min-width:0}
.chapter-editor-image-entry>.image-slot{min-height:95px;display:grid;place-items:center;background:#fff9f6;border:1px solid var(--line);border-radius:9px;overflow:hidden;font-size:11px;color:var(--muted)}
.chapter-editor-image-entry .attachment-image{width:100%;height:auto;max-height:155px;object-fit:contain;margin:0}
.chapter-image-info{display:flex;align-items:center;justify-content:space-between;gap:5px;padding-top:7px;font-size:11px}
.chapter-image-info>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chapter-image-info .btn{flex:none;padding:6px 9px;font-size:11px}
.chapter-image-count{color:#b62232;font-size:11px;display:inline-flex;align-items:center;gap:4px;font-weight:650}
@media(max-width:420px){.chapter-editor-existing,.chapter-image-grid{grid-template-columns:1fr}.chapter-editor-image-entry>.image-slot{min-height:100px}}
.editor-image-migration-hint{font-size:12px;line-height:1.8;color:var(--muted);padding:13px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.editor-image-migration-hint strong{color:var(--ink)}
