/* Shared screen theme. Original layouts, actions and printed documents stay intact. */
@media screen {
  :root {
    --bg: #f5f1ea !important;
    --ink: #302b27 !important;
    --muted: #6e6258 !important;
    --line: #ddd3c5 !important;
    --teal: #243448 !important;
    --primary: #243448 !important;
    --pale: #ece4d6 !important;
    --ref-ink: #302b27 !important;
    --ref-teal: #243448 !important;
    --ref-border: #ddd3c5 !important;
    --suite-ink: #302b27 !important;
    --suite-muted: #6e6258 !important;
    --suite-accent: #243448 !important;
    --suite-line: #ddd3c5 !important;
  }
  html, body {
    font-family: "Segoe UI", "Malgun Gothic", "맑은 고딕", sans-serif !important;
    color: #302b27;
    background-color: #f5f1ea !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  button, input, select, textarea { font-family: inherit !important; }
  button { border-radius: 8px; }
  :where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid #b89464 !important;
    outline-offset: 3px;
  }
  body > header {
    background: #fff !important;
    border-bottom-color: #ddd3c5 !important;
    box-shadow: 0 1px 0 #302b2704 !important;
  }
  body > header h1 { color: #332b25 !important; letter-spacing: -.6px; }
  body > header :is(.version,.version-badge) {
    color: #70523e !important;
    background: #ece4d6 !important;
  }
  #nav { background-color: #332b25 !important; }
  #nav :is(button,a) { color: #e3d8c9 !important; border-radius: 8px !important; }
  #nav :is(button,a):hover { color: #fff !important; background-color: #4b3a2c !important; }
  #nav :is(button,a).active,
  #nav :is(button,a)[aria-current="page"],
  #nav :is(button,a)[aria-selected="true"] {
    color: #fff !important;
    background-color: #70523e !important;
    border-color: #b89464 !important;
  }
  :is(button,.button).primary,
  button.btn-primary,
  button[data-primary],
  #savePortable {
    background: #243448 !important;
    color: #fff !important;
    border-color: #243448 !important;
    border-radius: 8px !important;
  }
  :is(button,.button).primary:hover,
  button.btn-primary:hover,
  #savePortable:hover { background: #31465f !important; }
  :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="color"]) {
    border-color: #d8cdbd;
    border-radius: 8px;
    accent-color: #243448;
  }
  input[type="checkbox"], input[type="radio"] { accent-color: #243448; }
  :is(.panel,.card,.stat-card,.metric-card) {
    border-color: #ddd3c5;
    box-shadow: 0 3px 12px #332b2505;
  }
  table { font-variant-numeric: tabular-nums; }
  thead th { background-color: #ece4d6 !important; color: #594b40 !important; border-color: #ddd3c5; }
  tbody td { border-color: #e6ddd1; }
  tbody tr:hover > td:not([style*="background"]) { background-color: #faf7f1; }
  dialog { border-color: #ddd3c5 !important; border-radius: 14px !important; box-shadow: 0 20px 70px #332b2530 !important; }
  dialog::backdrop { background: #332b2577; backdrop-filter: blur(3px); }
  #saveStatus, #saveState { color: #466c5d; font-size: 12px; }
  #saveStatus.error { color: #b3403e !important; }

  /* The hosted update flow replaces this offline-file instruction. */
  #updateHome21 { display: none !important; }
  body > header { min-height: 82px !important; padding: 12px 24px !important; }
  body > header .brand { padding: 0 !important; }
  body > header .brand small { font-size: 12px; letter-spacing: 1px; }
  body > header h1 { margin: 4px 0 !important; font-size: 24px !important; }
  body > header .app-version { background: #ece4d6 !important; color: #70523e !important; }
  body > header #saveStatus { margin: 4px 0 0 !important; }
  body > header .actions { gap: 8px !important; }
  [data-draft-save] {
    background: #243448 !important; color: white !important;
    border: 1px solid #243448 !important; border-radius: 8px !important;
    box-shadow: none !important;
  }
  #portableBtn.save-current, #savePortable { background: #fff !important; color: #243448 !important; border: 1px solid #bdcddd !important; box-shadow: none !important; }
  #portableBtn { padding: 12px 22px !important; font-size: 14px !important; }
  .layout > main { padding: 18px 24px !important; }
  .layout > main > #content { padding: 0 0 32px !important; }
  #content > .topbar { min-height: 58px !important; margin-bottom: 16px !important; }
  .work-date-card { padding: 8px 12px !important; border-radius: 10px !important; box-shadow: none !important; }
  .draft-bar39 {
    background: #f7f9fc !important; border-color: #ddd3c5 !important;
    padding: 8px 12px !important; border-radius: 9px !important; margin-bottom: 14px !important;
  }
  .draft-actions39 button { padding: 8px 12px !important; font-size: 12px !important; }
  [data-draft-status] { color: #6e6258 !important; font-size: 12px !important; }
  .ux-home-hero {
    background: #fff !important; border: 1px solid #ddd3c5 !important;
    border-left: 3px solid #426b92 !important; border-radius: 10px !important;
    padding: 16px 20px !important; margin-bottom: 16px !important; box-shadow: none !important;
  }
  .ux-home-hero h2 { font-size: 22px !important; color: #1b3854 !important; margin: 0 !important; }
  .ux-home-hero .eyebrow, .ux-home-hero p { display: none !important; }
  .ux-report-shortcuts button { border-color: #d8cdbd !important; border-radius: 8px !important; color: #243448 !important; }
  #liveWork34 { border-radius: 10px !important; }
  #liveWork34 .lw34-heading { padding-bottom: 0 !important; align-items: center !important; }
  #liveWork34 .lw34-heading h3 { font-size: 19px !important; margin: 5px 0 !important; }
  #liveWork34 .lw34-heading p { margin: 6px 0 0 !important; }
  #liveWork34 .lw34-toolbar { margin: 14px 0 !important; gap: 14px !important; }
  #liveWork34 .lw34-actions button[data-lw34-open], dialog #saveWork { background: #243448 !important; border-color: #243448 !important; color: #fff !important; }
  [data-bg-draft-restored] { outline: 2px solid #7294b5; outline-offset: 1px; }
  #nav { scrollbar-width: thin; scrollbar-color: #49647d #332b25; }
  #nav button { min-height: 44px; }
}
@media screen and (max-width: 760px) {
  body > header { padding: 12px !important; gap: 10px !important; }
  body > header h1 { font-size: 21px !important; }
  body > header .actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px !important; }
  body > header .actions #ownerControl { margin: 0 !important; }
  body > header .actions #workspaceInbox { justify-self: end; }
  body > header .actions #workspaceHelp,
  body > header .actions #portableBtn { min-width: 0 !important; width: 100% !important; margin: 0 !important; padding: 10px 8px !important; font-size: 12px !important; }
  body > header .actions #timeReviewNotice:not([hidden]) { grid-column: 1 / -1; }
  body > header .actions #workspaceHelp::after { content: none !important; }
  .layout > main { padding: 14px 12px !important; }
  #content > .topbar { gap: 10px !important; }
  #content > .topbar h2 { justify-content: flex-start !important; text-align: left !important; }
  .ux-home-hero { padding: 18px !important; gap: 14px !important; }
  .ux-home-hero h2 { font-size: 22px !important; }
  .draft-bar39 { flex-wrap: wrap; gap: 8px !important; }
  .draft-actions39 { flex-wrap: wrap; }
}
@media screen and (min-width: 330px) and (max-width: 760px) {
  #content > .topbar { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-between !important; }
  #content > .topbar h2 { width: auto !important; flex: 0 1 auto !important; gap: 6px !important; font-size: 16px !important; }
  #content > .topbar .help20-button { font-size: 12px !important; padding: 8px !important; white-space: nowrap; }
  #content > .topbar .work-date-card { width: 145px !important; min-width: 0 !important; flex: 0 0 145px !important; padding: 8px !important; }
  #content > .topbar .work-date-card input { min-width: 0 !important; width: 100% !important; font-size: 13px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media screen and (max-width:1024px){input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea,#content>.topbar .work-date-card input{font-size:16px!important}}
/* The host now owns the single category menu. Keep original utility actions
   available, while its hidden menu buttons remain valid navigation targets. */
@media screen {
 html body .layout {display:block!important;grid-template-columns:minmax(0,1fr)!important;background:#f5f1ea!important}
 html body .layout > #nav {position:static!important;width:auto!important;max-height:none!important;height:auto!important;min-height:0!important;transform:none!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:8px 20px 0!important}
 html body .layout > #nav > * {display:none!important}
 html body .layout > #nav > .nav-utilities24 {display:flex!important;justify-content:flex-end;gap:8px;padding:0!important;margin:0!important}
 html body .layout > #nav .nav-utilities24 button {color:#65513d!important;background:#fffaf2!important;border:1px solid #ddcfbb!important;min-height:34px;padding:7px 12px!important;font-size:12px!important}
 html body .layout > main,html body #content,html body #viewBody {background:#f5f1ea!important;min-width:0!important;width:auto!important;max-width:none!important;margin-left:0!important}
 html body #suiteMobileMenu,html body .suite-mobile-backdrop {display:none!important}
 html body > header {background:#fffdf8!important;border-color:#e0d5c5!important}
 html body .ux-home-hero {background:#fffdf8!important;border-left-color:#b89464!important}
 html body .ux-home-hero h2 {color:#25364a!important}
 html body .draft-bar39 {background:#f4eee4!important}
}
/* 2026-11-14 Claude 제안 — 원본 업무 화면(4파트) 모바일 버튼 높이 통일. 미배포 후보.
   원본 업무 HTML은 수정하지 않는다. 사이트가 모든 원본 화면에 덧입히는 public/work-theme.css 맨 끝에 추가.
   운영 .10 업무 탭 iframe에 임시 주입해 390폭 4파트 실측: 44px 미만 버튼 6~10개 → 1개(42px), 가로 넘침 0. */
@media(max-width:760px){
 button,a.button,[role=button],select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:44px!important;box-sizing:border-box}
 button,a.button,[role=button]{font-size:max(13px,1em)}
 table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
