/* 테두리와 강조선을 쓰는 UI 요소는 각진 모서리로 표현한다. */
:root{--ink:#20262d;--muted:#606b75;--navy:#20262d;--teal:#176b60;--teal-light:#edf5f2;--amber:#80520e;--amber-light:#fff5e2;--red:#a53232;--red-light:#fff0ee;--line:#dfe3e6;--canvas:#f7f8f9;--radius:0;--font:"Inter","Pretendard","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;color:var(--ink);background:var(--canvas);font-family:var(--font);font-size:14px;line-height:1.65}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}h2{font-size:16px;line-height:1.5}h3{font-size:15px;line-height:1.6}ul,ol{padding-left:22px}input,textarea,select{width:100%;min-width:0;border:1px solid #d9e0e0;border-radius:0;padding:11px 13px;background:#fff;color:var(--ink)}textarea{min-height:110px;resize:vertical}input::placeholder,textarea::placeholder{color:#87949a}input[type=checkbox]{width:17px;height:17px;accent-color:var(--teal)}:focus-visible{outline:3px solid #60bfb0;outline-offset:3px}::selection{background:#b4e6dc}.muted{color:var(--muted)}.stack{display:flex;flex-direction:column;gap:16px}.workspace{display:flex;min-height:100vh}.sidebar{width:192px;flex-shrink:0;background:#fff;color:var(--ink);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:20px 12px 16px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;color:var(--ink);font-size:16px;font-weight:700;line-height:1.3;padding:0 10px}.brand small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}.nav-link{display:flex;gap:10px;align-items:center;padding:10px;border-radius:0;margin:2px 0;color:var(--muted);font-size:13px}.nav-link:hover{background:#f3f5f6;color:var(--ink)}.nav-link.active{background:#edf2f1;color:var(--teal);font-weight:600;box-shadow:inset 2px 0 var(--teal)}.account{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 0 0;font-size:13px;flex-wrap:wrap}.account small{display:block;color:#8fa8b1;font-size:11px}.account>button{margin-left:auto;border:0;background:none;color:var(--muted);padding:8px;display:flex}.account>p{width:100%;color:var(--red);font-size:12px}.workspace-main{margin-left:192px;min-width:0;flex:1;display:flex;flex-direction:column}.topbar{min-height:44px;padding:8px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);background:#fff;font-size:12px;color:var(--muted)}.topbar-divider{padding:0 10px;color:#bbc6c8}.workspace-label{display:flex;gap:7px;align-items:center;font-size:11px}.workspace-label .status-dot{background:#0d8b74}.main-content{width:100%;max-width:1500px;margin:0 auto;padding:24px;flex:1}.skip-link{position:fixed;left:15px;top:-100px;padding:10px 20px;z-index:100;background:white}.skip-link:focus{top:10px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.page-heading h1{margin:0}.page-heading .muted{font-size:13px;margin-top:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:0;font-weight:600;font-size:12px;white-space:normal;text-align:center;line-height:1.5}.button.primary{background:var(--teal);color:#fff}.button.primary:hover:not(:disabled){background:#06675e}.button.secondary{background:white;color:#415860;border-color:#dce2e1}.button.secondary:hover:not(:disabled){background:#f3f7f5}.button.light{background:#ecf5ef;color:#244e43}.button.danger{color:var(--red);background:white;border-color:#edd0cc}.text-button{background:none;border:0;text-decoration:underline;color:inherit;font-size:13px;margin-left:8px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);background:#fff}.metric-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-right:1px solid var(--line);font-size:13px}.metric-card:hover{background:#f3f5f6}.metric-card strong{font-size:22px;line-height:1.3;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.metric-card small{font-size:12px;color:var(--muted);font-weight:400;margin-left:4px}.panel{background:#fff;border:1px solid var(--line);border-radius:0;padding:16px;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-header h2{margin:0}.count-text{font-size:12px;color:#78898f;margin-left:7px;font-weight:500}.update-time{font-size:10px}.badge{display:inline-flex;gap:6px;align-items:center;justify-content:center;font-size:12px;font-weight:600;border-radius:0;padding:3px 7px;white-space:normal;line-height:1.5}.badge.teal{background:var(--teal-light);color:var(--teal)}.badge.amber{background:var(--amber-light);color:var(--amber)}.badge.red{background:var(--red-light);color:var(--red)}.badge.neutral{background:#eef1f3;color:#687b86}.status-dot{display:inline-block;width:5px;height:5px;flex-shrink:0;border-radius:50%;background:currentColor}.attention-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.attention-row>div{flex:1;min-width:0}.attention-row p{font-size:12px;margin-top:3px}.attention-row h3{font-size:13px}.status-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.status-indicator.amber{background:#dba856}.status-indicator.red{background:#d77266}.status-indicator.teal{background:var(--teal)}.status-indicator.neutral{background:#a6b7bb}.list-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.filter-tabs{display:flex;flex-wrap:wrap;gap:4px}.filter-tabs button{border:0;background:none;color:var(--muted);border-radius:0;padding:8px 10px;font-size:12px;white-space:nowrap}.filter-tabs button.selected{background:#eef5f0;color:#236f5d;font-weight:600}.search-box{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:0;padding:0 11px;color:#91a09f}.search-box input{border:0;background:none;width:165px;padding:9px 0;font-size:11px;outline-offset:1px}.content-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.content-row:last-child{border-bottom:0}.content-row:hover h3{color:var(--teal)}.content-info{flex:1;min-width:0}.content-info h3{font-size:14px;overflow-wrap:anywhere}.content-info>p{font-size:13px;margin:4px 0 0}.content-state{display:flex;flex-direction:column;gap:9px;align-items:flex-end;margin-left:10px}.content-state small{font-size:10px;color:#839294}.empty-state{padding:24px 16px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px}.empty-state h2{font-size:16px}.empty-state .muted{max-width:420px;font-size:12px}.empty-state .button{margin-top:8px}.loading-state{display:flex;align-items:center;justify-content:center;gap:10px;padding:90px 15px;color:var(--muted)}.spin{animation:spin 1.4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.alert{padding:13px 16px;border-radius:0;font-size:13px;overflow-wrap:anywhere}.alert.error{background:var(--red-light);color:#913f38;border:1px solid #efd8d1}.alert.success{background:var(--teal-light);color:#1a6a55;border:1px solid #c8e3d8}.alert.info{background:#edf4f8;color:#45647b;border:1px solid #d6e4ee}.auth-check{min-height:100vh;display:grid;place-items:center;padding:30px}.auth-check .panel{max-width:470px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.topic-card{padding:16px;border:1px solid var(--line);border-radius:0;background:white;display:flex;flex-direction:column;gap:10px;min-width:0}.topic-card h2{font-size:17px}.topic-card:hover{border-color:#accabf}.topic-card p{font-size:13px;overflow-wrap:anywhere}.topic-card .button{align-self:flex-start}.two-column{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:16px;align-items:start}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600}.field small{color:var(--muted);font-weight:400}.back-link{display:inline-flex;align-items:center;gap:7px;color:#6c817d;font-size:12px;width:fit-content}.back-link:hover{color:var(--teal)}.section-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:14px}.section-list li{display:flex;gap:13px}.skeleton{height:150px;background:#eef3ef;border-radius:12px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-form{max-width:360px;width:100%;display:flex;flex-direction:column;gap:18px;padding:24px;background:#fff;border:1px solid var(--line)}.login-form h2{font-size:27px;margin-top:-12px}.login-form>.muted{font-size:12px;margin-top:-14px;margin-bottom:12px}.login-form .button{width:100%;margin-top:6px;min-height:48px}.detail-hero{border-left:3px solid var(--teal)}.detail-hero h2{font-size:17px;margin:8px 0}.detail-hero p{font-size:13px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:16px;align-items:start}.phase-row{padding:10px 0;border-top:1px solid var(--line)}.phase-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.phase-row .muted{font-size:11px;margin-top:6px}.phase-bar{height:5px;border-radius:5px;background:#eaf0ec;margin-top:12px;overflow:hidden}.phase-bar span{height:100%;display:block;background:#79b09c;border-radius:5px}.info-pairs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.info-pairs dt{font-size:11px;color:var(--muted)}.info-pairs dd{margin:4px 0 0;font-size:13px;font-weight:600}.delivery-item{padding:16px;border:1px solid var(--line);border-radius:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.delivery-item>div{min-width:0}.delivery-item .muted{font-size:11px}.error-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
@media(max-width:1200px){.main-content{padding:24px}.topbar{padding:0 26px}.sidebar{width:192px}.workspace-main{margin-left:192px}.metric-card{padding:16px}.two-column{grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}}@media(max-width:960px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.content-row{gap:12px}.card-grid{grid-template-columns:1fr}}@media(max-width:700px){h1{font-size:25px}.workspace{display:block}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:14px 17px 10px;display:block}.brand{font-size:17px;gap:9px}.brand small{font-size:11px;margin-top:3px}.account{display:none}.sidebar nav{display:flex;margin-top:12px;gap:4px}.nav-link{padding:8px 10px;gap:6px;font-size:11px;flex:1;justify-content:center;white-space:nowrap;margin:0}.nav-link svg{width:14px;flex-shrink:0}.nav-link.active{box-shadow:inset 0 -2px var(--teal)}.workspace-main{margin:0}.topbar{height:44px;padding:0 18px;font-size:10px}.workspace-label{font-size:9px}.main-content{padding:16px}.stack{gap:14px}.page-heading{align-items:flex-start;gap:12px}.page-heading>.button{flex-shrink:0}.page-heading .muted{font-size:11px}.metric-grid{gap:0}.metric-card{padding:12px}.metric-card strong{font-size:20px}.panel{padding:14px}.panel-header{flex-wrap:wrap;gap:10px;margin-bottom:16px}.panel-header h2{font-size:17px}.list-toolbar{gap:12px}.filter-tabs{gap:0;width:100%}.filter-tabs button{font-size:10px;padding:7px 9px}.search-box{width:100%}.search-box input{width:100%}.content-row{flex-wrap:wrap;align-items:flex-start;padding:12px 0}.content-info{flex-basis:calc(100% - 30px)}.content-info h3{font-size:14px}.content-state{margin:0;flex-direction:row;align-items:center;gap:10px;order:3;flex-basis:100%}.content-info>p{font-size:13px}.attention-row{flex-wrap:wrap;gap:10px}.attention-row>div{flex-basis:calc(100% - 25px)}.attention-row>.badge{margin-left:18px}.attention-row>svg{margin-left:auto}.detail-hero h2{font-size:16px}.delivery-item{flex-wrap:wrap}.info-pairs{gap:15px}.login-page{grid-template-columns:1fr}.login-story-footer{display:none}.login-form{gap:18px}.login-form h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.sidebar-signout{margin-top:auto}.mobile-logout,.mobile-logout-error{display:none}@media(max-width:700px){.mobile-logout{display:flex;border:0;background:transparent;color:#627780;padding:6px}.mobile-logout-error{display:block;margin:10px 17px}.workspace-label{margin-left:auto}}

.book-copy-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; user-select: text; }

.results-toolbar{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}.results-toolbar .field{flex:1;min-width:0}.results-toolbar select{width:100%}.danger-text{color:#9b342c!important}.button.danger{background:#9b342c;color:#fff}.confirmation-dialog{max-width:520px;max-height:calc(100% - 32px);overflow-y:auto;margin:auto;width:calc(100% - 32px);padding:24px;border:1px solid #d8dfdb;border-radius:0}.confirmation-dialog::backdrop{background:rgb(15 35 25 / 45%)}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.wrap-text{overflow-wrap:anywhere}
@media(max-width:700px){.results-toolbar{flex-direction:column}.review-card-footer{flex-wrap:wrap;gap:12px}.review-card-footer .review-actions{flex-wrap:wrap;gap:8px}}
@media(max-width:700px){.sidebar nav.with-accounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:700px){.sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar nav .nav-link{min-width:0}}

.production-diagnosis { border-top: 4px solid #b45309; }
.diagnosis-cause { font-size: 1.2rem; font-weight: 650; }
.diagnosis-next { margin: 20px 0; padding: 18px; border: 1px solid #d5dedb; border-radius: 0; background: #f3f7f5; }
.diagnosis-next .button { margin: 6px 8px 0 0; }
.diagnosis-findings { padding-left: 24px; }
.diagnosis-findings li { padding: 12px 0; border-bottom: 1px solid #e1e7e4; }
.diagnosis-findings p { white-space: pre-wrap; overflow-wrap: anywhere; }
.diagnosis-suggestion { padding: 12px; border-left: 3px solid #4e7264; background: #f7f9f8; }
.diagnosis-editor { margin-top: 24px; }
.diagnosis-editor textarea { display: block; width: 100%; margin: 10px 0; padding: 14px; border: 1px solid #a9bbb3; border-radius: 0; font: inherit; line-height: 1.6; resize: vertical; }
.diagnosis-history { margin-top: 20px; overflow-wrap: anywhere; }
.diagnosis-history summary, details.panel > summary { cursor: pointer; font-weight: 650; }

.phase-failure { margin-top: 12px; padding: 14px; background: #fff9ed; border-left: 3px solid #b45309; border-radius: 0; overflow-wrap: anywhere; }
.phase-failure p { line-height: 1.65; }
#production-diagnosis { scroll-margin-top: 24px; }

.sidebar nav{margin-top:24px}.metric-card:last-child{border-right:0}.page-heading .detail-actions{margin-top:0}.phase-details{margin-top:4px}.phase-details summary{cursor:pointer;font-size:12px;color:var(--muted)}
@media(max-width:960px){.metric-card:nth-child(2){border-right:0}.metric-card:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:700px){.sidebar nav{margin-top:12px}.sidebar{border-right:0;border-bottom:1px solid var(--line)}}

.panel > details > summary{cursor:pointer;font-weight:600}.panel > details[open] > summary{margin-bottom:12px}
