/* v1.13.60 - v1.13.58 구조 유지형 시인성 개선 */
:root{
  --read-blue:#1768ad;
  --read-blue-dark:#0f548e;
  --read-blue-soft:#edf5fc;
  --read-bg:#f3f6f9;
  --read-panel:#fff;
  --read-line:#d5dee7;
  --read-line-strong:#b8c7d5;
  --read-text:#182b3d;
  --read-muted:#5c6f80;
  --read-good:#167044;
  --read-warn:#a55c0d;
  --read-bad:#bd3038;
  --read-shadow:0 3px 12px rgba(24,57,88,.06);
}
body{background:var(--read-bg);color:var(--read-text)}
header{min-height:78px;gap:12px;padding:11px 22px;box-shadow:0 3px 14px rgba(12,42,70,.13)}
.brand{min-width:0}.brand h1{font-size:calc(22px * var(--font-scale));line-height:1.2}.brand img{width:108px;height:56px}
.app-back-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:74px;min-height:40px;padding:8px 12px;border:1px solid #ffffff70;background:#ffffff16;color:#fff;font-weight:800}
.app-back-button:hover:not(:disabled){border-color:#fff;background:#fff;color:#123e68}
.app-back-button:disabled{cursor:default;opacity:.38}
nav{padding:9px 16px;border-bottom-color:#c3cfda;box-shadow:0 2px 8px rgba(22,54,83,.04)}
nav button{min-height:39px;border-color:transparent;background:transparent;color:#31495f;font-weight:700}
nav button:hover{border-color:#b9cddd;background:#eef5fb;color:#0f568e}
nav button.active{border-color:#1768ad;background:#1768ad;color:#fff;box-shadow:0 3px 9px rgba(23,104,173,.2)}
.tab-admin{padding-left:10px;border-left:1px solid #d6e0e8}
.panel{padding:22px 24px 42px}
.panel h2{letter-spacing:-.025em}.panel h3{letter-spacing:-.018em}
.hint,.menu-period span{color:var(--read-muted)}
button{min-height:39px;border-color:var(--read-line-strong);border-radius:8px;font-weight:700;transition:background .14s,border-color .14s,color .14s,box-shadow .14s}
button:hover{box-shadow:0 2px 7px rgba(24,70,106,.08)}
button.primary,.primary{background:var(--read-blue)!important;border-color:var(--read-blue)!important;color:#fff!important}
button.primary:hover,.primary:hover{background:var(--read-blue-dark)!important;border-color:var(--read-blue-dark)!important}
input,select,textarea{border-color:var(--read-line-strong)!important;border-radius:8px!important;background:#fff;color:var(--read-text)}
input:focus,select:focus,textarea:focus{outline:0;border-color:#438bc3!important;box-shadow:0 0 0 3px rgba(36,121,184,.13)}
input:disabled,select:disabled,textarea:disabled,.readonly{background:#edf1f4!important;color:#71808d!important}
.toolbar,.support-toolbar{gap:10px;margin-bottom:16px;padding:12px 14px;border:1px solid var(--read-line);border-radius:11px;background:#fff;box-shadow:var(--read-shadow)}
.toolbar input,.toolbar select,.support-toolbar input,.support-toolbar select{min-height:40px}
.menu-period{margin-bottom:16px;padding:13px 16px;border-color:var(--read-line);background:#fff;box-shadow:var(--read-shadow)}
.period-presets{border-color:#cbd8e3!important;background:#f2f6f9!important}
.period-presets span{color:#51677a}.period-presets button{min-height:34px}
.result-cards,.support-cards,.meeting-kpis,.meeting-summary-cards,.ceo-kpis{gap:12px!important}
.result-card,.support-card,.meeting-kpis>div,.meeting-summary-cards>div,.ceo-kpi{
  min-height:112px!important;padding:17px!important;border:1px solid var(--read-line)!important;
  border-radius:13px!important;background:#fff!important;box-shadow:var(--read-shadow)!important
}
.result-card span,.support-card span,.meeting-kpis span,.meeting-summary-cards span,.ceo-kpi span{color:#617486!important;font-weight:700}
.result-card strong,.support-card strong,.meeting-kpis b,.meeting-summary-cards b,.ceo-kpi b{color:#123f68!important;letter-spacing:-.035em}
.result-card.primary{background:linear-gradient(135deg,#1768ad,#0f568f)!important;border-color:#1768ad!important}
.result-card.primary span,.result-card.primary strong,.result-card.primary small{color:#fff!important}
.result-card.deduction{background:#fff8ed!important;border-color:#e7c998!important}.result-card.deduction strong{color:#8c4e0b!important}
.tablebox{border:1px solid var(--read-line-strong);border-radius:10px;background:#fff;box-shadow:var(--read-shadow)}
table{background:#fff;color:var(--read-text)}
th,td{height:43px;padding:9px 11px;border-right-color:#e7ecf1;border-bottom-color:#dfe6ec}
thead th{background:#eaf1f7;color:#263f55;font-weight:850;box-shadow:inset 0 -1px 0 #c5d2de}
tbody tr:nth-child(even):not(.summary) td{background:#fafcfd}
tbody tr:hover td{background:#fff5d8!important}
tr.summary td,.summary{background:#dceaf6!important;color:#113d62!important;font-weight:900;border-top:2px solid #6e98ba}
.result-final{background:#edf6ff!important;color:#0f5790;font-weight:900}
.good{color:var(--read-good)!important}.bad{color:var(--read-bad)!important}
.edit{border-color:#7396b3;background:#fffdf5}.fee-adjustment-note{color:#98480d}
.meeting-status{border:1px solid transparent;font-weight:800}.meeting-status.submitted{border-color:#e4c36d}.meeting-status.revision{border-color:#e5a3a3}.meeting-status.reviewed{border-color:#9bc1e8}.meeting-status.final{border-color:#8fcba6}
.meeting-person-table thead th{background:#184f82;color:#fff}.meeting-person-table tbody th{background:#e5f0f9}.meeting-person-total th,.meeting-person-total td{background:#d3e5f4!important}
.meeting-territory-target>span{padding:6px 8px;border-radius:7px;background:#edf3f7;color:#40596e;font-weight:800}
.meeting-territory-target>input{border:2px solid #d59a39!important;background:#fff8e8!important}
.meeting-target-toggle{border-color:#b8c8d6;background:#f5f8fa}
.support-home-head{border-color:#c5d5e3;background:linear-gradient(135deg,#f9fbfd,#eaf3fa);box-shadow:var(--read-shadow)}
.support-home-tabs{border-color:#b8c9d8;background:#e8eff5}.support-home-tabs button.active{background:#1768ad}
.support-section,.support-calendar-section,.support-day-editor,.calendar-notices{border-color:var(--read-line);box-shadow:var(--read-shadow)}
.calendar-grid{gap:1px;padding:1px;border-color:#bdcad5;background:#bdcad5}
.calendar-weekdays span{border-color:#c6d3de;background:#e5edf4;color:#334e65}
.calendar-day{border:0;background:#fff;color:#20384d}
.calendar-day.empty{background:#f0f3f5}.calendar-day:hover{background:#eef7ff}.calendar-day.selected{background:#dceeff;box-shadow:inset 0 0 0 3px #2780bd}.calendar-day.today .day-number{box-shadow:0 0 0 3px #d8eaff}
.calendar-day.has-entry::after{content:"";position:absolute;right:5px;bottom:5px;width:7px;height:7px;border-radius:50%;background:#21875a}
.notice-chip{border:1px solid #dbc6ec}.support-priority{border:1px solid currentColor}
.knowledge-card,.knowledge-article,.knowledge-attachment,.request-card,.ceo-columns>section,.briefing-comparison>section,.briefing-insights,.briefing-insight{border-color:var(--read-line)!important;box-shadow:var(--read-shadow)}
.upload{border-color:#86a7c1;background:#fafdff}
.excluded-switch,.meeting-channel-tabs{border-color:#aebfce;background:#edf3f7}
.excluded-switch button.active,.meeting-channel-tabs button.active{background:#1768ad}

html[data-theme="dark"]{--read-bg:#0b1420;--read-panel:#111c2b;--read-line:#35475b;--read-line-strong:#50647a;--read-text:#e8eff6;--read-muted:#afbecd;color-scheme:dark}
html[data-theme="dark"] body{background:#0b1420;color:#e8eff6}
html[data-theme="dark"] header{background:#0b1a2a;border-bottom:1px solid #31475d}
html[data-theme="dark"] nav{background:#111f30;border-color:#34485d}
html[data-theme="dark"] nav button{background:transparent;border-color:transparent;color:#c9d6e3}
html[data-theme="dark"] nav button:hover{background:#1b3045;border-color:#47637d;color:#fff}
html[data-theme="dark"] nav button.active{background:#2878b7;border-color:#58a2da;color:#fff}
html[data-theme="dark"] .toolbar,html[data-theme="dark"] .support-toolbar,html[data-theme="dark"] .menu-period,
html[data-theme="dark"] .result-card,html[data-theme="dark"] .support-card,html[data-theme="dark"] .meeting-kpis>div,
html[data-theme="dark"] .meeting-summary-cards>div,html[data-theme="dark"] .ceo-kpi{background:#121f30!important;border-color:#3b5066!important;box-shadow:none!important}
html[data-theme="dark"] .result-card strong,html[data-theme="dark"] .support-card strong,html[data-theme="dark"] .meeting-kpis b,
html[data-theme="dark"] .meeting-summary-cards b,html[data-theme="dark"] .ceo-kpi b{color:#a9d8ff!important}
html[data-theme="dark"] .result-card.primary{background:linear-gradient(135deg,#1768ad,#154e7b)!important}
html[data-theme="dark"] .result-card.deduction{background:#382616!important;border-color:#76552e!important}
html[data-theme="dark"] table{background:#111c2b;color:#e8eff6}
html[data-theme="dark"] th{background:#24374b!important;color:#f4f8fc!important;border-color:#486078}
html[data-theme="dark"] td{background:#111c2b!important;color:#e2ebf4;border-color:#304257}
html[data-theme="dark"] tbody tr:nth-child(even):not(.summary) td{background:#142235!important}
html[data-theme="dark"] tbody tr:hover td{background:#263b4e!important}
html[data-theme="dark"] tr.summary td{background:#29445c!important;color:#fff!important;border-top-color:#6b8ba5}
html[data-theme="dark"] .result-final{background:#183a56!important;color:#b9e0ff!important}
html[data-theme="dark"] .calendar-grid{background:#53677b;border-color:#53677b}
html[data-theme="dark"] .calendar-day{background:#111c2b;color:#e6eef6}
html[data-theme="dark"] .calendar-day.empty{background:#0c1623}
html[data-theme="dark"] .calendar-day.selected{background:#1d4767;box-shadow:inset 0 0 0 3px #66afe5}
html[data-theme="dark"] .meeting-territory-target>span{background:#1c3043;color:#d6e4f0}
html[data-theme="dark"] .meeting-territory-target>input{background:#332817!important;border-color:#c28a36!important}
html[data-theme="dark"] .app-back-button{border-color:#6c8398;background:#172b3d;color:#fff}

html[data-theme="meeting"]{--read-bg:#f3efe3;--read-text:#14281c;--read-line:#9ba99f;--read-line-strong:#74897a;background:#f3efe3}
html[data-theme="meeting"] body{background:#f3efe3;color:#14281c}
html[data-theme="meeting"] header{background:#17492f;border-bottom:3px solid #c08a2c}
html[data-theme="meeting"] nav{border-bottom:2px solid #8f7440;background:#fffdf7}
html[data-theme="meeting"] nav button{color:#173e2a;font-weight:900}
html[data-theme="meeting"] nav button.active{background:#a95f14;border-color:#a95f14;color:#fff}
html[data-theme="meeting"] .toolbar,html[data-theme="meeting"] .support-toolbar,html[data-theme="meeting"] .menu-period{border:2px solid #9f8a57;background:#fff9e8;box-shadow:none}
html[data-theme="meeting"] .result-card,html[data-theme="meeting"] .support-card,html[data-theme="meeting"] .meeting-kpis>div,
html[data-theme="meeting"] .meeting-summary-cards>div,html[data-theme="meeting"] .ceo-kpi{min-height:124px!important;border:2px solid #aa9a6e!important;background:#fffef9!important;box-shadow:none!important}
html[data-theme="meeting"] .result-card strong,html[data-theme="meeting"] .support-card strong,html[data-theme="meeting"] .meeting-kpis b,
html[data-theme="meeting"] .meeting-summary-cards b,html[data-theme="meeting"] .ceo-kpi b{font-size:calc(25px * var(--font-scale));color:#173e2a!important}
html[data-theme="meeting"] .result-card.primary{background:#1d6844!important;border-color:#1d6844!important}
html[data-theme="meeting"] .result-card.primary strong{color:#fff!important}
html[data-theme="meeting"] .tablebox{border:2px solid #526f5c;box-shadow:none}
html[data-theme="meeting"] th{background:#315c43!important;color:#fff!important}
html[data-theme="meeting"] td{height:48px;font-size:calc(14px * var(--font-scale));font-weight:650;border-color:#899a8e}
html[data-theme="meeting"] tr.summary td{background:#eadcaf!important;color:#102d1e!important;border-top-color:#526f5c}
html[data-theme="meeting"] .result-final{background:#dcebd9!important;color:#153b28!important}
html[data-theme="meeting"] .app-back-button{border:2px solid #fff;background:#ffffff18;color:#fff}

@media(min-width:721px){
  #app>header{align-items:center;flex-direction:row}
  .header-actions{width:auto}
}
@media(max-width:720px){
  #app>header{grid-template-columns:42px 42px minmax(0,1fr) auto}
  .app-back-button{width:40px;min-width:40px;height:42px;min-height:42px;padding:0;border-color:#ffffff77;background:#ffffff12;font-size:19px}
  .app-back-button span{display:none}
  .brand img{width:48px;height:35px}
  .brand h1{font-size:calc(14px * var(--font-scale))}
  .panel{padding:10px 10px calc(34px + env(safe-area-inset-bottom))}
  .toolbar,.support-toolbar{box-shadow:none}
  .result-card,.support-card,.meeting-kpis>div,.meeting-summary-cards>div,.ceo-kpi{min-height:94px!important;padding:13px!important}
  .tablebox tr{border-color:#c3d0dc!important;box-shadow:0 2px 8px rgba(20,54,82,.06)!important}
  .tablebox tr.summary{border:2px solid #6896ba!important}
  html[data-theme="dark"] .tablebox tr{border-color:#40556b!important;background:#111c2b!important}
  html[data-theme="meeting"] .tablebox tr{border:2px solid #778b7d!important;box-shadow:none!important}
}

