:root {
  --bg: #f4f8fb;
  --panel-soft: #f8fbfd;
  --ink: #102033;
  --muted: #60748a;
  --line: #d8e4ec;
  --line-soft: #e7eef4;
  --panel: #ffffff;
  --accent: #007c78;
  --accent-strong: #006e67;
  --accent-soft: #e5f5f3;
  --danger: #c43d3d;
  --ok: #138a52;
  --blue: #0f6fb4;
  --lime: #91c914;
  --amber: #b77700;
  --on-accent: #ffffff;
  --shadow: 0 10px 28px rgba(16, 32, 51, 0.08);
  --shadow-soft: 0 4px 14px rgba(16, 32, 51, 0.05);
  --sidebar-width: 264px;
  --sidebar-width-collapsed: 104px;
  --text: var(--ink);
  --surface-soft: var(--panel-soft);
  --card: var(--panel);
  --card-2: var(--panel-soft);
}

:root[data-theme="dark"] {
  --bg: #0f1720;
  --panel-soft: #172330;
  --ink: #edf4f8;
  --muted: #a7b7c6;
  --line: #314658;
  --line-soft: #243747;
  --panel: #16212c;
  --accent: #32c5b7;
  --accent-strong: #78e0d4;
  --accent-soft: #123b3a;
  --danger: #ff8585;
  --ok: #55d596;
  --blue: #7dbcf5;
  --lime: #addc54;
  --amber: #f5c162;
  --on-accent: #062b29;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.22);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
  font-size: 15.5px;
  scrollbar-gutter: stable;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  font-weight: 900;
}

h2 {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 900;
}

h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

p {
  line-height: 1.55;
  margin: 8px 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

:root[data-sidebar="collapsed"] .app-shell {
  grid-template-columns: var(--sidebar-width-collapsed) minmax(0, 1fr);
}

.auth-shell {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: 48px 20px;
}

.auth-card {
  width: min(520px, 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--accent-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  line-height: 1;
}

.auth-brand {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border-bottom: 0;
  margin-bottom: 16px;
}

.brand-logo {
  width: 100%;
  max-width: 178px;
  height: 48px;
  padding: 5px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

.auth-brand-logo {
  max-width: 300px;
  height: 78px;
  padding: 7px 9px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.password-policy {
  display: grid;
  gap: 6px;
  margin: 4px 0 10px;
}

.password-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-rule-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 8px;
  background: var(--surface-soft);
}

.password-rule-list li::before {
  content: "×";
  display: inline-block;
  margin-right: 5px;
  color: var(--danger);
  font-weight: 900;
}

.password-rule-list li.passed {
  border-color: rgba(22, 163, 74, 0.36);
  color: #166534;
  background: #ecfdf5;
}

.password-rule-list li.passed::before {
  content: "✓";
  color: #16a34a;
}

.password-match-message {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.password-match-message.passed {
  color: #15803d;
}

.password-match-message.error {
  color: var(--danger);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  font-weight: 900;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: grid;
  padding: 14px 12px;
  gap: 6px;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 4px;
}

.nav-group-main .nav-button {
  min-width: 0;
}

.nav-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: #39516a;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-button:hover {
  background: #f1f7fa;
  color: var(--accent-strong);
}

.nav-button.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: #bfe4df;
  font-weight: 900;
}

.nav-button.has-badge .nav-label {
  color: var(--accent-strong);
  font-weight: 900;
}

.nav-group-toggle {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: #6a8198;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.nav-group-toggle:hover {
  background: #f1f7fa;
  color: var(--accent-strong);
}

.nav-group-toggle-icon::before {
  content: "⌄";
}

.nav-group[data-nav-group-collapsed="true"] .nav-group-toggle-icon::before {
  content: "›";
}

.nav-group[data-nav-group-collapsed="true"] .nav-subitems {
  display: none;
}

.nav-subitems {
  display: grid;
  gap: 3px;
  margin: -2px 0 4px 44px;
}

.nav-sub-divider {
  display: block;
  padding: 6px 8px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
  border-left: 2px solid transparent;
  margin-top: 4px;
}
.nav-sub-divider:first-child { margin-top: 0; }

/* BIZ 연구기록 펼치기 패널 */
.biz-rec-sect {
  border-top: 1px solid var(--line);
}
.biz-rec-sect:first-of-type {
  border-top: none;
}
.biz-rec-hd {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 9px 4px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
}
.biz-rec-hd:hover {
  background: var(--lsoft);
  border-radius: 5px;
}
.biz-rec-label {
  flex: 0 0 auto;
}
.biz-rec-body {
  padding: 4px 0 12px;
  overflow-x: auto;
}
.biz-rec-body table {
  border-collapse: collapse;
  width: 100%;
}
.biz-rec-body table thead th {
  border-bottom: 1px solid var(--line);
}
.biz-rec-body table tbody tr:hover td {
  background: var(--lsoft);
}

.nav-subitems a {
  min-height: 28px;
  padding: 5px 8px;
  border-left: 2px solid #d7e6ec;
  color: #587089;
  font-size: 13px;
}

.nav-subitems a:hover {
  color: var(--accent-strong);
  border-left-color: var(--accent);
  background: #f5faf9;
}

.nav-subitems a.active {
  color: var(--accent-strong);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 900;
}

.nav-ico {
  width: 22px;
  text-align: center;
  color: #6a8198;
  font-weight: 900;
  flex: 0 0 22px;
}

.nav-label {
  min-width: 0;
  flex: 1;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #0b8f86;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.sidebar-note {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding: 16px 18px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.sidebar-note strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
}

.workspace {
  min-width: 0;
  padding: 98px 28px 88px;
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin: 0;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

:root[data-sidebar="collapsed"] .topbar {
  left: var(--sidebar-width-collapsed);
}

:root[data-sidebar="collapsed"] .brand {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 28px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
}

:root[data-sidebar="collapsed"] .brand-logo {
  position: static;
  width: 34px;
  height: 34px;
  max-width: 34px;
  padding: 0;
  border-color: var(--line);
  border-radius: 50%;
  background: #fff;
}

:root[data-sidebar="collapsed"] .brand-logo img {
  display: none;
}

:root[data-sidebar="collapsed"] .brand-logo::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("/assets/lordin-logo.svg") center / cover no-repeat;
}

:root[data-sidebar="collapsed"] .sidebar-toggle {
  position: static;
}

:root[data-sidebar="collapsed"] .nav-label,
:root[data-sidebar="collapsed"] .sidebar-note,
:root[data-sidebar="collapsed"] .nav-group-toggle,
:root[data-sidebar="collapsed"] .nav-subitems {
  display: none;
}

:root[data-sidebar="collapsed"] .nav {
  padding: 12px 8px;
}

:root[data-sidebar="collapsed"] .nav-button {
  justify-content: center;
  padding: 0;
  gap: 0;
}

:root[data-sidebar="collapsed"] .nav-group-main {
  grid-template-columns: 1fr;
}

:root[data-sidebar="collapsed"] .nav-ico {
  flex-basis: auto;
}

:root[data-sidebar="collapsed"] .nav-badge {
  position: absolute;
  margin: -22px 0 0 28px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-updated {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-title-actions {
  display: none;
}

.topbar-more {
  display: none;
}

.topbar-more-button,
.mobile-menu-button,
.mobile-sidebar-close,
.mobile-sidebar-backdrop {
  display: none;
}

.topbar-title {
  min-width: 0;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin: 0;
}

.page-title-row h1.is-navigating {
  opacity: 0.72;
}

.page-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.back-to-top-button {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 86px;
  z-index: 130;
  width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.theme-toggle button {
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: var(--shadow-soft);
}

.language-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.language-switch {
  min-width: 44px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.language-switch.is-active {
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: var(--shadow-soft);
}

.auth-language {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 12px;
}

.user-chip {
  min-height: 40px;
  display: grid;
  gap: 3px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  align-content: center;
}

.user-chip span {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stats-metric-grid {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 6px;
}

.stats-metric-grid .metric {
  min-width: 150px;
}

.stats-metric-grid .metric-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 8px;
}

.stats-metric-grid .metric-card-link h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-metric-grid .metric-card-link strong {
  grid-column: 2;
  margin-top: 0;
  font-size: 24px;
  line-height: 1;
}

.stats-metric-grid .metric-card-link p {
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-mobile-timeline {
  display: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.research-days-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 0.94fr) minmax(460px, 1.06fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.research-days-workspace.single-view {
  grid-template-columns: minmax(0, 1fr);
}

.research-days-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.research-list-panel {
  overflow: visible;
  container-type: inline-size;
  min-width: 0;
}

.research-list-panel table:not(.research-day-table) {
  min-width: 0;
}

.research-list-scroll {
  max-height: min(640px, calc(100vh - 210px));
  overflow: auto;
  border-top: 1px solid var(--line-soft);
}

.research-list-scroll table {
  border-top: 0;
}

.research-list-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 7;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

.research-day-table {
  table-layout: fixed;
  width: 100%;
  min-width: 980px;
}

.research-list-panel .research-day-table {
  min-width: 980px;
}

.research-day-table th,
.research-day-table td {
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.45;
}

.research-day-table th:first-child,
.research-day-table td:first-child {
  width: 230px;
}

.research-day-table th:nth-child(2),
.research-day-table td:nth-child(2) {
  width: auto;
}

.research-day-table th:nth-child(3),
.research-day-table td:nth-child(3) {
  width: 150px;
  text-align: center;
  overflow-wrap: normal;
  word-break: keep-all;
}

.research-day-table th:nth-child(4),
.research-day-table td:nth-child(4) {
  width: 168px;
  text-align: center;
}

.research-day-table th:last-child,
.research-day-table td:last-child {
  width: 156px;
  text-align: center;
}

.research-day-table th:nth-child(3),
.research-day-table td:nth-child(3) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.status-attachment-heading {
  display: inline-block;
  min-width: 102px;
  white-space: nowrap;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
}

.research-list-status-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.research-list-status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  white-space: nowrap;
}

.research-list-status-chip strong {
  margin-left: auto;
  font-size: 15px;
}

@container (max-width: 560px) {
  .research-list-scroll {
    max-height: min(680px, calc(100vh - 230px));
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid var(--line-soft);
  }

  .research-list-panel .research-day-table,
  .research-list-panel .research-day-table tbody,
  .research-list-panel .research-day-table tr,
  .research-list-panel .research-day-table td {
    display: block;
    width: 100%;
  }

  .research-list-panel .research-day-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .research-list-panel .research-day-table-head {
    display: none;
  }

  .research-list-panel .research-day-table tr:not(.research-day-table-head) {
    position: relative;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel-soft);
  }

  .research-list-panel .research-day-table td {
    border: 0;
    padding: 0;
  }

  .research-list-panel .research-day-table td:first-child {
    padding-right: 154px;
  }

  .research-list-panel .research-day-table td:nth-child(2) {
    display: none;
  }

  .research-list-panel .research-day-table td:nth-child(3) {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 148px;
    text-align: center;
  }

  .research-list-panel .research-day-table td:nth-child(4),
  .research-list-panel .research-day-table td:last-child {
    margin-top: 10px;
  }

  .research-list-panel .research-day-table td:last-child {
    display: none;
  }

  .research-list-panel .record-project-cell {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
  }

  .research-list-panel .record-project-cell > span,
  .research-list-panel .record-project-cell > span small,
  .research-list-panel .record-card {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .research-list-panel .record-card {
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
  }

  .research-list-panel .record-action-group {
    flex-wrap: wrap;
    gap: 6px;
  }

  .research-list-status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin-bottom: 6px;
}

.report-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.research-list-title-row {
  align-items: center;
  flex-wrap: wrap;
}

.research-list-heading-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(560px, 100%);
}

.research-list-heading-tools h2 {
  margin: 0;
}

.research-day-project-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.research-day-project-dropdown {
  min-width: min(260px, 72vw);
}

.research-day-project-dropdown .checkbox-dropdown-panel {
  width: min(520px, 88vw);
}

.research-day-project-dropdown .checkbox-list-row {
  align-items: flex-start;
}

.research-day-project-dropdown .checkbox-list-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.research-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.project-list-filter {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.project-list-filter > label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.project-list-filter select {
  min-height: 32px;
  padding: 5px 8px;
}

.project-list-category-dropdown {
  min-width: 142px;
}

.project-list-category-dropdown summary {
  min-width: 142px;
}

.project-list-category-dropdown .checkbox-dropdown-panel {
  right: auto;
  left: 0;
  width: min(560px, 88vw);
}

.project-list-category-dropdown .checkbox-list-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.project-list-category-dropdown .checkbox-list-row input {
  margin-top: 3px;
}

.project-list-category-dropdown .checkbox-list-row span {
  min-width: 0;
  white-space: normal;
  word-break: keep-all;
}

.research-day-list-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.research-day-list-filter label {
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
}

.research-day-list-filter input[type="date"] {
  width: 130px;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.project-list-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
  min-width: 0;
}

.project-list-title-row h2 {
  margin: 0 0 6px;
}

.status-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.status-legend .pill {
  cursor: help;
}

.daily-status-field {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.daily-status-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-status-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
}

.daily-status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.daily-status-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 131, 125, 0.14);
}

.daily-status-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--panel-soft);
}

.daily-status-rule-message {
  margin: 0 0 8px;
  color: var(--danger);
  font-weight: 800;
}

.daily-status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.daily-status-dot.green {
  border-color: #008f63;
  background: #20c77a;
}

.daily-status-dot.orange {
  border-color: #bf7100;
  background: #f6a623;
}

.daily-status-dot.red {
  border-color: #b4232f;
  background: #e0444f;
}

.daily-status-dot.unknown {
  border-color: var(--line);
  background: #fff;
}

.auto-approval-field {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.approval-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--line-soft);
}

.approval-table {
  min-width: 1120px;
  table-layout: fixed;
  border-top: 0;
}

.approval-table th:nth-child(1),
.approval-table td:nth-child(1) {
  width: 112px;
}

.approval-table th:nth-child(2),
.approval-table td:nth-child(2) {
  width: 190px;
}

.approval-table th:nth-child(3),
.approval-table td:nth-child(3) {
  width: 98px;
}

.approval-table th:nth-child(4),
.approval-table td:nth-child(4) {
  width: auto;
}

.approval-table th:nth-child(5),
.approval-table td:nth-child(5) {
  width: 360px;
}

.approval-table td {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.approval-action-form {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 6px;
  align-items: start;
  margin: 0 0 8px;
}

.approval-action-form input,
.approval-action-form textarea {
  width: 100%;
  min-width: 0;
}

.approval-action-form textarea {
  min-height: 76px;
  resize: vertical;
}

.approval-action-form button {
  min-width: 72px;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tiny-check {
  white-space: nowrap;
  font-size: 12px;
}

.submit-research-day-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.manual-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.manual-example-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfe;
}

.manual-mini-screen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #f4f8fb;
}

.manual-mini-screen span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.template-picker {
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #f8fcfb;
}

.measurement-template-source {
  display: none;
}

.compact-help {
  margin: 0;
}

.login-options {
  margin-top: 10px;
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.login-options .check-row {
  min-height: 28px;
}

.login-save-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-panel label {
  font-weight: 700;
  text-transform: none;
}

.signup-panel h2 {
  letter-spacing: 0;
}

.auth-secondary-action {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.desktop-notification-box {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f8fcfb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.desktop-notification-box h2 {
  margin: 0;
  flex: 0 0 auto;
}

.desktop-notification-box strong {
  display: inline;
  margin: 0 8px 0 0;
}

.desktop-notification-box span {
  color: var(--muted);
}

.desktop-notification-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.desktop-notification-box[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.money-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.money-input-row span {
  font-weight: 900;
  color: var(--ink);
}

.money-cell {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.full {
  grid-column: 1 / -1;
}

.project-create-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-create-row {
  display: grid;
  gap: 10px 12px;
  align-items: end;
}

.project-create-row > * {
  min-width: 0;
}

.project-create-taxonomy-row {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.project-create-code-row {
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.8fr) minmax(220px, 1fr);
}

.project-create-media-row {
  grid-template-columns: minmax(160px, 0.25fr) minmax(0, 1fr);
}

.project-create-media-row > .full {
  grid-column: auto;
}

.project-create-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.draft-save-button {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
}

.draft-status {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.08);
  color: var(--accent-strong);
  font-weight: 800;
}

.project-create-submit {
  min-height: 54px;
  padding: 13px 16px;
  border-color: #1f5f86;
  background: #1f5f86;
  color: #fff;
  box-shadow: 0 10px 18px rgba(31, 95, 134, 0.16);
}

.project-create-submit:hover,
.project-create-submit:focus {
  background: #174a69;
  border-color: #174a69;
}

.project-expense-form {
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.75fr) minmax(220px, 1fr) minmax(180px, 0.8fr) auto;
  align-items: end;
}

.project-expense-form .form-actions {
  margin-top: 0;
}

.project-labor-rate-form,
.project-workday-form,
.project-labor-adjustment-form {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
}

.project-labor-assignment-form {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}

.project-labor-assignment-form > div {
  min-width: 0;
}

.readonly-field {
  min-height: 38px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 800;
}

.project-labor-table-scroll,
.project-labor-form-scroll {
  max-height: min(420px, calc(100dvh - 360px));
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  scrollbar-gutter: stable both-edges;
  margin-top: 10px;
}

.project-labor-table-scroll.compact-scroll {
  max-height: 260px;
}

.project-labor-rate-table,
.project-labor-assignment-table,
.project-labor-form-table {
  width: 100%;
  min-width: 920px;
}

.project-labor-form-table input,
.project-labor-form-table select {
  min-width: 130px;
}

.project-labor-details {
  margin-top: 4px;
}

.labor-assignment-edit-details summary {
  width: fit-content;
}

.project-labor-inline-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
  min-width: min(760px, calc(100vw - 80px));
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.project-labor-inline-edit-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-labor-inline-edit-form input,
.project-labor-inline-edit-form select {
  min-width: 0;
}

.project-labor-inline-edit-form button {
  align-self: end;
  justify-self: start;
}

.project-budget-table-scroll,
.project-expense-table-scroll {
  max-height: min(520px, calc(100dvh - 300px));
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  scrollbar-gutter: stable both-edges;
}

.project-budget-table,
.project-expense-table {
  width: 100%;
  min-width: 1080px;
}

.project-budget-table thead th,
.project-expense-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--panel);
}

.expense-edit-details {
  position: relative;
}

.expense-edit-details[open] summary {
  display: none;
}

.expense-edit-details summary {
  width: max-content;
  list-style: none;
  cursor: pointer;
}

.expense-edit-details summary::-webkit-details-marker {
  display: none;
}

.expense-edit-form {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 210px auto;
  gap: 6px;
  align-items: center;
  min-width: 760px;
  margin-top: 8px;
}

.expense-edit-form .form-actions {
  margin-top: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.compact {
  padding: 12px;
}

details.panel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

details.panel > summary::-webkit-details-marker {
  display: none;
}

.report-security-details summary::after {
  content: "펼치기";
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-security-details[open] summary::after {
  content: "접기";
}

.report-security-details table {
  margin-top: 10px;
}

.notice {
  border-left: 4px solid var(--accent);
}

.danger {
  border-left-color: var(--danger);
}

.ok {
  border-left-color: var(--ok);
}

label {
  display: block;
  margin: 0 0 5px;
  font-weight: 900;
  font-size: 13px;
  color: #354554;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}

.check-row input {
  width: auto;
  min-height: 0;
}

.mode-choice {
  display: grid;
  gap: 6px;
  margin: 6px 0 8px;
}

.mode-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mode-switch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.mode-switch-card.active {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c7cfdb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(20, 32, 51, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.required-missing {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.field-error {
  margin: 5px 0 0;
  color: #dc2626;
  font-size: 0.86rem;
  font-weight: 800;
}

textarea {
  min-height: 66px;
  resize: vertical;
  line-height: 1.45;
}

textarea.tall {
  min-height: 92px;
}

button {
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.primary-button {
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.ghost-button,
.secondary {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.danger-button {
  background: #fff1f0;
  border-color: #e4b5b5;
  color: var(--danger);
}

.inline-form {
  display: inline;
}

.export-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-cell .export-actions {
  justify-content: center;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 8px;
}

.compact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.action-cell {
  text-align: center;
}

.action-cell > .muted {
  display: block;
  text-align: center;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edit-draft {
  margin-top: 7px;
  text-align: left;
}

.edit-draft summary {
  width: max-content;
  margin: 6px auto 0;
  list-style: none;
}

.edit-draft,
.entry-view-action {
  position: relative;
  display: inline-block;
}

.edit-draft summary::-webkit-details-marker,
.entry-view-action summary::-webkit-details-marker {
  display: none;
}

.edit-draft[open] summary {
  margin-left: 0;
}

.edit-draft-panel {
  display: grid;
  gap: 12px;
  position: absolute;
  z-index: 70;
  right: 0;
  top: 38px;
  width: min(620px, 70vw);
  max-height: min(560px, 72vh);
  overflow: auto;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  text-align: left;
}

.edit-draft-form {
  display: grid;
  gap: 8px;
}

.edit-draft-panel label {
  text-align: left;
}

.edit-attachment-box {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.editable-attachment-list {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}

.editable-attachment-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.attachment-file-meta {
  min-width: min(220px, 100%);
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.attachment-file-meta strong {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-file-meta em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.attachment-no-permission {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  cursor: not-allowed;
}

.attachment-lock {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #9ca3af;
  color: white;
  font-size: 10px;
  line-height: 1;
}

.edit-attachment-upload {
  grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.8fr) auto auto;
}

.entry-view-popover {
  position: fixed;
  z-index: 130;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(75vw, calc(100vw - 32px));
  max-height: min(840px, calc(100vh - 40px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
  text-align: left;
}

.entry-view-action[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(1px);
}

.entry-view-meta {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.entry-view-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.entry-view-meta dd {
  margin: 0;
}

.entry-view-title-row {
  align-items: flex-start;
}

.entry-view-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  min-width: max-content;
}

.entry-view-body {
  display: grid;
  gap: 5px;
}

.entry-view-body p {
  max-height: none;
  overflow: visible;
  margin: 0 0 7px;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-soft);
  white-space: pre-wrap;
}

.entry-view-approval-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.entry-view-approval-panel .approval-action-form {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: stretch;
}

.record-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
}

.record-action-group .entry-view-action {
  order: 10;
}

.view-memo-stack {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.view-memo-stack .entry-view-action {
  order: 0;
}

.entry-view-memo-section {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.entry-view-memo-card {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0, 130, 122, 0.08);
}

.entry-view-memo-card p {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.record-action-group form {
  margin: 0;
}

.project-row-actions,
.project-status-form,
.user-status-form,
.user-management-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.project-row-actions {
  justify-content: flex-start;
  min-width: max-content;
}

.row-action-details {
  position: relative;
}

.row-action-details summary {
  list-style: none;
  cursor: pointer;
  width: max-content;
  display: inline-flex;
  align-items: center;
}

.row-action-details summary::-webkit-details-marker {
  display: none;
}

.row-action-details[open] summary {
  position: relative;
  z-index: 72;
}

.row-action-details[open] .project-status-form,
.row-action-details[open] .user-status-form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 75;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.row-action-details[open] .user-status-form {
  min-width: 320px;
}

.row-action-details[open] .project-status-form {
  min-width: 270px;
}

.user-management-actions .muted {
  flex: 1 1 auto;
}

.user-management-actions {
  justify-content: flex-end;
  min-width: 0;
}

.user-reset-form {
  margin: 0;
}

.password-reset-result {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 128, 128, 0.28);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f3f3c;
  display: grid;
  gap: 5px;
  max-width: 460px;
  scroll-margin-top: 120px;
}

.password-reset-result code {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 128, 128, 0.22);
  color: #102033;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.project-memo-action {
  position: relative;
}

.project-memo-action summary {
  list-style: none;
  width: 32px;
  min-width: 32px;
}

.project-memo-action summary::-webkit-details-marker {
  display: none;
}

.project-memo-popover {
  position: fixed;
  z-index: 60;
  right: 42px;
  top: 180px;
  width: min(460px, 78vw);
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.project-memo-popover h3 {
  margin: 0 0 8px;
}

.project-memo-popover .compact-title-row {
  align-items: center;
  margin-bottom: 8px;
}

.project-memo-popover .compact-title-row h3 {
  margin: 0;
}

.project-memo-popover ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.project-memo-popover textarea {
  min-height: 86px;
}

.project-status-form input,
.user-status-form input {
  width: auto;
  min-width: 150px;
  height: 34px;
}

.project-status-form input {
  flex: 1 1 130px;
  width: 130px;
  min-width: 130px;
  height: 32px;
  padding: 6px 8px;
}

.user-status-form input {
  flex: 1 1 190px;
  max-width: 260px;
}

.project-status-form button,
.user-status-form button,
.project-row-actions > button,
.user-reset-form button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
  white-space: nowrap;
}

.project-editor-row[hidden],
.project-detail-row[hidden] {
  display: none;
}

.project-editor-panel {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #fbfdfe;
}

.project-edit-form .form-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: start;
}

.project-period-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.compact-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 8px 10px;
}

.compact-details summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent-strong);
}

.project-table td {
  vertical-align: top;
}

.project-table-scroll {
  height: min(760px, calc(100vh - 245px));
  min-height: 520px;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
}

#project-list {
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100dvh - 132px));
  min-height: 440px;
  max-height: calc(100dvh - 132px);
  overflow: hidden;
}

#project-list .project-list-title-row {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--panel);
  padding-bottom: 10px;
}

#project-list .research-list-actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
}

#project-list .research-list-actions > button {
  flex: 0 0 auto;
}

#project-list .project-list-filter {
  flex: 1 1 640px;
}

#project-list .project-table-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.project-table {
  width: 100%;
  min-width: 1430px;
  table-layout: fixed;
}

.project-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--panel);
}

.project-table th:nth-child(1),
.project-table td:nth-child(1) {
  width: 58px;
}

.project-table th:nth-child(2),
.project-table td:nth-child(2) {
  width: 128px;
}

.project-table th:nth-child(3),
.project-table td:nth-child(3) {
  width: 200px;
}

.project-table th:nth-child(4),
.project-table td:nth-child(4) {
  width: 56px;
}

.project-table th:nth-child(5),
.project-table td:nth-child(5) {
  width: 42px;
}

.project-table th:nth-child(6),
.project-table td:nth-child(6) {
  width: 74px;
}

.project-table th:nth-child(7),
.project-table td:nth-child(7) {
  width: 110px;
}

.project-table th:nth-child(8),
.project-table td:nth-child(8) {
  width: 86px;
}

.project-table th:nth-child(9),
.project-table td:nth-child(9) {
  width: 122px;
}

.project-table th:nth-child(10),
.project-table td:nth-child(10) {
  width: 88px;
}

.project-table th:nth-child(11),
.project-table td:nth-child(11) {
  width: 82px;
}

.project-table th:nth-child(12),
.project-table td:nth-child(12) {
  width: 52px;
  text-align: center;
}

.project-table th:nth-child(13),
.project-table td:nth-child(13) {
  width: 46px;
  text-align: center;
}

.project-table th:nth-child(14),
.project-table td:nth-child(14) {
  width: 42px;
  text-align: center;
}

.project-table th:nth-child(15),
.project-table td:nth-child(15) {
  width: 132px;
}

.project-table td.project-kind-cell,
.project-table td.project-related-cell,
.project-table td.project-creator-cell,
.project-table td.project-part-leader-cell,
.project-table td.project-current-leader-cell,
.project-table td.project-period-cell,
.project-table td.project-daily-status-cell,
.project-table td.project-status-cell,
.project-table td.project-level-cell,
.project-table td.project-chat-cell,
.project-table td.project-memo-cell,
.project-table td.project-action-cell {
  vertical-align: middle;
  white-space: nowrap;
}

.project-part-leader-list {
  display: grid;
  gap: 2px;
  max-width: 100%;
  line-height: 1.2;
}

.project-part-leader-list span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-current-leader {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.project-current-leader strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-daily-status-stack {
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  line-height: 1.15;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.project-daily-status-stack small {
  color: var(--muted);
  font-size: 11px;
}

.daily-status-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
}

.daily-status-project-pill.status-green {
  border-color: rgba(16, 185, 129, 0.42);
  background: #ecfdf5;
  color: #047857;
}

.daily-status-project-pill.status-orange {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fff7ed;
  color: #b45309;
}

.daily-status-project-pill.status-red {
  border-color: rgba(239, 68, 68, 0.45);
  background: #fef2f2;
  color: #b91c1c;
}

.project-table td.project-creator-cell {
  overflow: visible;
  position: relative;
  text-overflow: clip;
}

.project-table td.project-action-cell {
  overflow: visible;
}

.project-table th small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
}

.project-creator-hover {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  outline: none;
}

.project-creator-name {
  display: inline-block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.project-creator-popover {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  white-space: normal;
  line-height: 1.5;
}

.project-creator-hover:hover .project-creator-popover,
.project-creator-hover:focus-within .project-creator-popover {
  display: grid;
  gap: 4px;
}

.project-period-stack {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.project-period-stack span {
  white-space: nowrap;
}

.project-code-cell {
  display: block;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-kind-pill {
  white-space: nowrap;
}

.project-detail-row td {
  padding-top: 8px;
}

.project-row.is-detail-open td {
  position: sticky;
  top: 46px;
  z-index: 3;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line), 0 10px 20px rgba(15, 23, 42, 0.06);
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

.project-member-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.project-member-summary.member-count-details {
  position: relative;
  display: inline-block;
}

.project-member-summary.member-count-details summary {
  list-style: none;
  cursor: pointer;
}

.project-member-summary.member-count-details summary::-webkit-details-marker {
  display: none;
}

.project-member-summary span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7f6;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.member-count-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 150px;
  max-width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.member-count-popover ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-count-popover li {
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-member-search-group.required-missing {
  border-color: rgba(196, 61, 61, 0.65);
}

.project-members-detail {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.project-members-detail h3 {
  margin: 0 0 8px;
}

.project-member-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.project-member-list dt {
  font-weight: 900;
  color: var(--muted);
}

.project-member-list dd {
  margin: 0;
}

.project-member-pills {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.project-member-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 0;
  min-width: 0;
}

.project-member-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.project-member-picker h3 {
  margin: 0;
  color: var(--accent-strong);
}

.project-member-search-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.project-member-search-group > label {
  margin: 0;
  white-space: normal;
}

.member-search-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 0.8fr) max-content;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.member-search-input,
.member-select {
  min-height: 34px;
  margin: 0;
}

.selected-member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}

.selected-member-chips:empty {
  display: none;
}

.selected-member-chip {
  min-height: 28px;
  padding: 4px 8px;
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

.member-picker-list {
  display: grid;
  gap: 3px;
  max-height: 112px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.member-picker-list[hidden] {
  display: none;
}

.empty-picker-guide {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.empty-picker-guide p {
  margin: 0;
}

.project-user-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 30px;
  align-items: start;
  padding: 4px 6px;
  border-radius: 6px;
  margin: 0;
}

.project-user-check input[type="checkbox"] {
  margin: 2px 0 0;
}

.project-user-check:has(input[type="checkbox"]:checked) {
  display: none;
}

.project-user-check span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-height: 1.25;
}

.project-user-check small {
  color: var(--muted);
  font-size: 11px;
}

.project-status-stack {
  display: inline-flex;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.project-list-filter {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  justify-self: stretch;
  width: 100%;
  margin: 0;
}

.project-list-filter label {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.project-list-filter select {
  min-width: 132px;
  width: auto;
}

.role-adjust-cell {
  white-space: nowrap;
}

.role-permission-dialog {
  width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.role-permission-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
}

.lls-confirm-dialog {
  width: min(440px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.lls-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.lls-confirm-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px;
}

.lls-confirm-card h3,
.lls-confirm-card p {
  margin: 0;
}

.lls-confirm-card h3 {
  font-size: 18px;
}

.lls-confirm-card p {
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
}

.lls-confirm-actions {
  justify-content: flex-end;
  margin: 0;
}

.role-permission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.role-permission-head h3,
.role-permission-head p {
  margin: 0;
}

.role-permission-head h3 {
  margin-bottom: 4px;
}

.role-permission-form {
  margin: 0;
}

.additional-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 38px;
  align-items: center;
}

.device-evaluation-form {
  display: grid;
  gap: 18px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.number-cell {
  text-align: right;
  white-space: nowrap;
}

.device-evaluation-runner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.device-evaluation-runner section {
  min-width: 0;
}

.device-evaluation-runner h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.device-evaluation-material-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.device-evaluation-material-input {
  display: grid;
  gap: 5px;
  min-width: 96px;
}

.device-evaluation-material-input span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.device-evaluation-material-input input {
  min-width: 0;
}

.device-evaluation-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#device-evaluation-results {
  display: flex;
  flex-direction: column;
  height: min(696px, calc(100dvh - 196px));
  min-height: min(416px, calc(100dvh - 196px));
  max-height: calc(100dvh - 196px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.device-evaluation-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.device-evaluation-quick-actions .fbtn {
  gap: 6px;
  text-decoration: none;
}

.device-evaluation-quick-action-icon {
  font-size: 15px;
  line-height: 1;
}

.device-evaluation-quick-action--project {
  background: #9a4708 !important;
  color: #ffffff !important;
}

.device-evaluation-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.device-evaluation-filter-bar input,
.device-evaluation-filter-bar select {
  flex: 1 1 240px;
  min-width: 180px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
}

.device-evaluation-filter-count {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#device-evaluation-results .table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.device-evaluation-results-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

body:not(.mobile-view) .device-evaluation-results-table {
  width: 100%;
  min-width: 1000px;
  table-layout: fixed;
}

body:not(.mobile-view) .device-evaluation-results-table th,
body:not(.mobile-view) .device-evaluation-results-table td {
  word-break: keep-all;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(1),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(1) {
  width: 64px;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(2),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(2) {
  width: 100px;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(3),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(3) {
  width: 320px;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(4),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(4) {
  width: 250px;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(5),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(5) {
  width: 96px;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(6),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(6) {
  width: 170px;
}

body:not(.mobile-view) .device-evaluation-results-table td:nth-child(3),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(4) {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.device-evaluation-detail-action .entry-view-popover {
  width: min(75vw, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.device-evaluation-memo-action[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(1px);
}

.device-evaluation-memo-action .status-memo-popover {
  position: fixed;
  z-index: 170;
  left: 50%;
  right: auto;
  top: 50%;
  width: min(560px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 72px);
  overflow: auto;
  transform: translate(-50%, -50%);
}

.device-evaluation-memo-action .status-memo-popover textarea {
  min-height: 150px;
}

.report-memo-action[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(1px);
}

.report-memo-action .status-memo-popover {
  position: fixed;
  z-index: 170;
  left: 50%;
  right: auto;
  top: 50%;
  width: min(560px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 72px);
  overflow: auto;
  transform: translate(-50%, -50%);
}

.report-memo-action .status-memo-popover textarea {
  min-height: 130px;
}

.device-evaluation-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.device-evaluation-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
}

.device-evaluation-detail {
  display: grid;
  gap: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.detail-grid dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-grid dd {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
}

.device-evaluation-detail h4 {
  margin: 6px 0 0;
  font-size: 15px;
}

.device-evaluation-material-list {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.device-evaluation-material-list span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.device-evaluation-image-scroll {
  max-width: 100%;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.device-evaluation-attachment-list {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.device-evaluation-attachment-list .device-evaluation-image-scroll {
  max-height: none;
  overflow: visible;
}

.device-evaluation-image-preview {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.device-evaluation-image-scroll img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #fff;
}

.attachment-preview-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.attachment-preview-caption strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview-caption small {
  flex: 0 0 auto;
  font-weight: 900;
  opacity: 0.9;
}

.device-evaluation-detail-action .device-evaluation-image-scroll.attachment-preview-scroll,
.device-evaluation-dialog .device-evaluation-image-scroll.attachment-preview-scroll {
  width: 100%;
  max-width: 100%;
}

.device-evaluation-detail-action .device-evaluation-image-scroll img,
.device-evaluation-dialog .device-evaluation-image-scroll img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

.device-evaluation-file-card,
.device-evaluation-current-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--soft);
}

.device-evaluation-file-card {
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: zoom-in;
}

.device-evaluation-current-file {
  margin-top: 8px;
}

.device-evaluation-current-file-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.device-evaluation-current-file-list > .muted {
  font-weight: 800;
}

.device-evaluation-file-card strong,
.device-evaluation-current-file a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.device-evaluation-upload-preview .daily-attachment-preview-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.device-evaluation-upload-preview .daily-attachment-preview-card-shell {
  width: 100%;
  height: auto;
  min-height: 140px;
}

.device-evaluation-upload-preview .daily-attachment-preview-card {
  min-height: 140px;
  height: auto;
}

.device-evaluation-upload-preview .daily-attachment-preview-card img {
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
}

.device-evaluation-upload-preview .daily-attachment-preview-pdf {
  min-height: 120px;
}

.device-evaluation-conclusion {
  margin: 0;
  white-space: pre-wrap;
}

.device-evaluation-memo-list {
  display: grid;
  gap: 8px;
}

.device-evaluation-memo-card {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.device-evaluation-memo-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.device-evaluation-memo-card p {
  margin: 0;
  white-space: pre-wrap;
}

[data-detail-list-expanded="true"] .entry-view-action {
  display: block;
}

[data-detail-list-expanded="true"] .entry-view-action[open]::before {
  content: none;
}

[data-detail-list-expanded="true"] .entry-view-popover {
  position: static;
  transform: none;
  width: 100%;
  max-height: none;
  margin-top: 8px;
  box-shadow: var(--shadow);
}

[data-detail-list-expanded="true"] .device-evaluation-detail-action .entry-view-popover {
  width: 100%;
}

.user-create-panel {
  padding: 0;
  overflow: hidden;
}

.user-create-summary {
  display: grid;
  grid-template-columns: max-content minmax(140px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.user-create-summary::-webkit-details-marker {
  display: none;
}

.user-create-summary h2,
.user-create-summary p {
  margin: 0;
}

.user-create-summary p {
  line-height: 1.35;
  font-size: 13.5px;
  min-width: 0;
}

.summary-caret {
  color: var(--accent-strong);
  font-weight: 900;
  transition: transform 0.16s ease;
}

.user-create-panel[open] .summary-caret {
  transform: rotate(90deg);
}

.user-create-body {
  padding: 0 18px 18px;
}

.user-create-guide {
  margin: 0 0 10px;
}

.user-create-form {
  margin-top: 10px;
}

.user-create-grid {
  grid-template-columns: minmax(130px, 0.7fr) minmax(230px, 1.2fr) minmax(180px, 0.95fr) minmax(150px, 0.85fr);
  align-items: end;
}

.user-create-grid input,
.user-create-grid select,
.user-create-grid .checkbox-dropdown summary {
  min-height: 34px;
}

.user-create-projects {
  grid-column: span 2;
}

.user-create-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.user-list-title-row {
  align-items: center;
  margin-bottom: 8px;
}

.user-list-title-row h2 {
  margin: 0;
}

.user-list-title-row .muted {
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 6px;
}

.permission-approval-panel {
  padding: 0;
  overflow: hidden;
}

.permission-approval-summary {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px 18px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.permission-approval-summary::-webkit-details-marker {
  display: none;
}

.permission-approval-panel[open] .summary-caret {
  transform: rotate(90deg);
}

.permission-approval-summary h2,
.permission-approval-summary p {
  margin: 0;
}

.permission-approval-body {
  padding: 0 18px 18px;
}

.permission-approval-table-scroll {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.permission-approval-table-scroll table {
  margin: 0;
}

.permission-approval-status {
  margin-left: auto;
  font-weight: 900;
}

.permission-approval-status.ok {
  color: var(--accent-strong);
}

.permission-approval-status.wait {
  color: #b7791f;
}

.user-table-scroll {
  height: clamp(420px, calc(100vh - 430px), 760px);
  max-height: 760px;
  overflow: auto;
  overscroll-behavior: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.user-table {
  /* 2열(이메일)을 고정할 위치는 1열(이름) 폭과 같아야 한다. 둘이 어긋나면
     가로로 스크롤할 때 두 고정열이 서로를 덮는다. 한 곳에서만 정한다. */
  --user-table-name-width: 150px;
  /* 고정 배치라야 선언한 폭이 그대로 쓰인다. 자동 배치에서는 남는 폭이 모든
     열에 나눠 붙어 1열이 150px 보다 넓어지고, 위 고정 위치와 어긋났다. */
  min-width: 1180px;
  table-layout: fixed;
  font-size: 15px;
}

.user-table th,
.user-table td {
  padding: 10px 9px;
  vertical-align: middle;
}

.user-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  font-size: 13.5px;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  min-height: auto;
}

.table-sort-button:hover,
.table-sort-button.is-active {
  color: var(--accent-strong);
}

.user-table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}

.user-table-pager .secondary {
  min-width: 64px;
  text-decoration: none;
}

.user-table-pager .secondary.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-table .pill {
  font-size: 13px;
}

/* 마지막 관리 열만 폭을 비워 둔다. 고정 배치에서 폭을 지정하지 않은 열이
   남는 공간을 모두 가져가므로, 화면이 넓어져도 앞 열들은 선언한 폭 그대로
   있고 1열은 항상 150px 이다. 여기가 흔들리면 고정열이 서로 겹친다.
   지정한 6개 열 합 850px + 관리 열 최소 330px = 표 최소폭 1180px. */
.user-table-name {
  width: var(--user-table-name-width);
}

.user-table-email {
  width: 230px;
}

.user-table-role {
  width: 145px;
}

.user-table-scope {
  width: 155px;
}

.user-table-role-adjust {
  width: 95px;
}

.user-table-status {
  width: 75px;
}

/* 비활성화/비밀번호 리셋 두 버튼이 들어간다. 230px 로는 잘렸다.
   폭을 지정하지 않아 남는 공간을 받는다. 표 최소폭 기준 330px 이다. */
.user-table-action {
  width: auto;
}

.user-table th:nth-child(1),
.user-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--panel);
}

.user-table th:nth-child(2),
.user-table td:nth-child(2) {
  position: sticky;
  left: var(--user-table-name-width);
  z-index: 4;
  background: var(--panel);
}

.user-table th:nth-child(1),
.user-table th:nth-child(2) {
  z-index: 6;
  background: #fbfdfe;
}

.user-action-cell {
  min-width: 220px;
}

.user-action-cell .user-status-form {
  width: 100%;
}

.user-action-cell input,
.user-action-cell button {
  min-height: 38px;
  font-size: 13px;
}

.user-action-cell .user-status-details {
  flex: 0 0 auto;
}

.permission-requests-table {
  font-size: 14px;
}

.permission-requests-table th {
  font-size: 13px;
}

.checkbox-dropdown {
  position: relative;
  max-width: 100%;
}

.checkbox-dropdown summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.checkbox-dropdown summary::after {
  content: "⌄";
  color: var(--muted);
}

.checkbox-dropdown summary::-webkit-details-marker {
  display: none;
}

.checkbox-dropdown[open] summary {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.checkbox-dropdown-panel {
  position: absolute;
  z-index: 80;
  left: 0;
  top: calc(100% + 4px);
  width: min(680px, 86vw);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkbox-dropdown-panel .checkbox-grid,
.checkbox-dropdown-panel .checkbox-list {
  max-height: 220px;
  overflow: auto;
  border: 0;
  padding: 0;
}

.checkbox-list {
  display: grid;
  gap: 2px;
}

.checkbox-list-row {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 6px;
}

.checkbox-list-row:hover {
  background: #f4f7fa;
}

.checkbox-select-all {
  min-height: 34px;
  margin: 0 0 6px;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.compact-checkbox-grid {
  max-height: 96px;
  overflow: auto;
}

.compact-checkbox-list {
  max-height: 180px;
  overflow: auto;
}

.status-attachment-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 116px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.status-dot-line,
.status-pill-line,
.attachment-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.status-attachment-cell .pill,
.status-attachment-cell .status-memo-action,
.status-attachment-cell .attachment-clip {
  white-space: nowrap;
  max-width: 100%;
}

.status-attachment-cell .attachment-clip {
  margin-inline: auto;
}

.leader-status-cell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 132px;
}

.leader-status-history-details,
.leader-status-edit-details {
  position: relative;
}

.leader-status-history-popover,
.leader-status-edit-popover {
  position: absolute;
  right: 0;
  z-index: 50;
  width: min(360px, 82vw);
  max-height: min(420px, 72vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  text-align: left;
}

.leader-status-history-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.leader-status-history-list li {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.leader-status-history-list p {
  margin: 4px 0 0;
}

.status-memo-action {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.status-memo-action summary {
  list-style: none;
}

.status-memo-button {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  width: auto;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
}

.status-memo-action summary::-webkit-details-marker,
.status-memo-button::-webkit-details-marker {
  display: none;
}

.status-memo-action[open] .status-memo-button {
  border-color: var(--accent);
  background: rgba(0, 130, 122, 0.1);
}

.status-memo-popover {
  position: absolute;
  z-index: 150;
  right: 0;
  top: calc(100% + 8px);
  width: min(390px, calc(100vw - 56px));
  max-width: 390px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.status-memo-popover form {
  display: grid;
  gap: 8px;
}

.status-memo-current {
  max-height: 78px;
  overflow: auto;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  white-space: pre-wrap;
}

.status-memo-popover textarea {
  min-height: 96px;
  resize: vertical;
}

.status-memo-actions {
  justify-content: flex-end;
  margin: 0;
}

.approval-comment-action {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.approval-comment-button {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(15, 118, 110, 0.35);
}

.approval-comment-button::-webkit-details-marker {
  display: none;
}

.approval-comment-action[open] .approval-comment-button,
.approval-comment-action:hover .approval-comment-button {
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

.approval-comment-popover {
  display: none;
  position: absolute;
  z-index: 160;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 56px));
  max-width: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
  white-space: normal;
}

.approval-comment-action[open] .approval-comment-popover,
.approval-comment-action:hover .approval-comment-popover {
  display: block;
}

.approval-comment-popover p {
  margin: 8px 0;
  white-space: pre-wrap;
}

.daily-status-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
}

.record-project-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 7px;
}

.record-project-cell span,
.record-project-cell small {
  display: block;
  min-width: 0;
}

.record-project-text {
  min-width: 0;
  max-width: 100%;
  max-height: 86px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.record-project-code,
.record-project-cell small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.record-project-cell small {
  color: var(--muted);
  font-size: 12px;
}

.record-feedback {
  margin: 2px 0 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.record-feedback.ok {
  background: #e9f7ef;
  border-color: #bfe8d0;
  color: var(--ok);
}

.record-feedback.danger {
  background: #fdecec;
  border-color: #f4c2c2;
  color: var(--danger);
}

.record-feedback.status {
  background: #f1fbfb;
  border-color: #bcebea;
  color: var(--ink);
}

.record-feedback.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.measurement-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.measurement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.measurement-rows {
  display: grid;
  gap: 6px;
}

.measurement-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(86px, 0.65fr) minmax(112px, 0.75fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.measurement-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.measurement-tags span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  padding: 4px 7px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.measurement-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.measurement-chip-row span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-strong);
  font-size: 12px;
}

.project-workload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 720px;
}

.project-workload-chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 6px;
  min-width: 154px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--ink);
  font-size: 12px;
}

.project-workload-chip strong {
  font-size: 12px;
}

.project-workload-chip em {
  justify-self: end;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 900;
  font-size: 11px;
}

.project-workload-chip small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.project-plan {
  display: grid;
  gap: 4px;
  padding: 10px 0;
}

.project-plan p,
.project-memos p {
  margin: 2px 0;
}

.project-plan-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.project-plan-text-grid textarea {
  min-height: 96px;
}

.project-memos {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-attachments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-record-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.project-record-links .ghost-button {
  white-space: nowrap;
}

.project-attachments h3,
.project-memos h3 {
  margin: 0 0 6px;
}

.project-memos ul {
  margin: 6px 0;
  padding-left: 18px;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-icon-viewer {
  position: relative;
}

.project-icon-viewer summary {
  list-style: none;
}

.project-icon-viewer summary::-webkit-details-marker {
  display: none;
}

.project-icon-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.project-image-thumb-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
}

.project-image-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-image-dialog {
  width: min(75vw, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.project-image-dialog::backdrop {
  background: rgba(2, 8, 23, 0.62);
}

.project-image-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.project-image-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  background: var(--panel-soft);
}

.project-daily-dialog {
  width: min(960px, 92vw);
  max-height: 84vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.project-daily-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.project-daily-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.project-daily-dialog-head h3,
.project-daily-dialog-head p {
  margin: 0;
}

.project-daily-dialog-body {
  max-height: calc(84vh - 78px);
  overflow: auto;
  padding: 12px 18px 18px;
}

.project-daily-dialog-body thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
}

.project-evaluation-scroll {
  max-height: min(560px, calc(100dvh - 260px));
  overflow: auto;
  border-top: 1px solid var(--line-soft);
}

.project-evaluation-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.project-evaluation-filter label {
  display: grid;
  gap: 4px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-evaluation-filter select {
  min-height: 36px;
}

.project-evaluation-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
}

.device-file-dialog {
  width: min(75vw, calc(100vw - 24px));
}

.daily-attachment-preview-dialog {
  width: min(75vw, calc(100vw - 24px));
}

.daily-attachment-preview-dialog-body {
  min-height: 220px;
  background: var(--panel-soft);
}

.daily-attachment-preview-dialog-body img,
.daily-attachment-preview-dialog-body iframe {
  display: block;
  width: 100%;
  border: 0;
}

.daily-attachment-preview-dialog-body img {
  height: auto;
  max-height: none;
}

.daily-attachment-preview-dialog-body iframe {
  height: min(72vh, 760px);
  object-fit: contain;
}

@media (max-width: 1180px), (pointer: coarse) {
  .device-evaluation-attachment-list {
    grid-template-columns: repeat(auto-fill, minmax(168px, 220px));
    justify-content: start;
  }

  .device-evaluation-image-scroll {
    overflow: hidden;
  }

  .device-evaluation-image-preview {
    min-height: 128px;
    background: #fff;
  }

  .device-evaluation-image-scroll img,
  .device-evaluation-detail-action .device-evaluation-image-scroll img,
  .device-evaluation-dialog .device-evaluation-image-scroll img {
    height: 128px;
    max-height: 128px;
    object-fit: contain;
  }

  .device-evaluation-file-card {
    min-height: 128px;
    align-content: center;
  }

  .device-evaluation-detail-action .entry-view-popover {
    width: min(86vw, calc(100vw - 24px));
  }

  .daily-attachment-preview-dialog,
  .device-file-dialog {
    width: min(86vw, calc(100vw - 24px));
  }
}

@media (max-width: 760px) {
  .entry-view-popover,
  .device-evaluation-detail-action .entry-view-popover,
  .project-image-dialog,
  .device-file-dialog,
  .daily-attachment-preview-dialog {
    width: calc(100vw - 24px);
  }
}

.project-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.project-icon-large {
  position: absolute;
  z-index: 50;
  top: 62px;
  left: 0;
  width: min(420px, 72vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-icon-large img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: #f8fbfd;
  border-radius: 6px;
  margin-bottom: 8px;
}

.project-image-thumb,
.project-image-empty {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.project-image-thumb {
  cursor: zoom-in;
}

.project-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-image-empty {
  border-style: dashed;
  background: #f8fbfd;
  box-shadow: none;
}

.project-image-square.list .project-image-thumb,
.project-image-empty.list {
  width: 58px;
  height: 58px;
}

.daily-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

[data-research-day-editor] > .section-title-row {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

[data-research-day-editor] .daily-entry-layout {
  position: relative;
  z-index: 2;
}

:root[data-theme="dark"] [data-research-day-editor] > .section-title-row {
  border-bottom-color: #33485a;
  background: rgba(22, 33, 44, 0.96);
}

.daily-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-action-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
}

.research-project-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.daily-header-actions .research-project-preview {
  display: grid;
  grid-template-columns: auto 58px;
  grid-template-rows: auto auto auto;
  gap: 3px 8px;
  align-items: center;
  min-width: 230px;
  max-width: 310px;
  padding: 7px 9px;
}

.daily-header-actions .previous-log-loader,
.daily-header-actions .previous-log-empty-button {
  flex: 0 0 auto;
}

.research-project-preview h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.daily-header-actions .research-project-preview h3,
.daily-header-actions .research-project-preview p {
  grid-column: 1;
  margin: 0;
}

.daily-header-actions .research-project-preview h3 {
  font-size: 13px;
}

.daily-header-actions .research-project-preview p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.research-project-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.daily-header-actions .research-project-preview-image {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 54px;
}

.research-project-preview-empty {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 54px;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  line-height: 1.25;
}

.previous-log-loader {
  position: relative;
  margin-top: 0;
}

.previous-log-loader summary {
  width: fit-content;
  list-style: none;
}

.previous-log-loader summary::-webkit-details-marker {
  display: none;
}

.previous-log-loader-panel {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  right: auto;
  left: 0;
  width: min(420px, 78vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.previous-log-loader-panel select {
  width: 100%;
}

.research-project-preview-image.is-empty {
  border-style: dashed;
  background: #f8fbfd;
  pointer-events: none;
}

.research-project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

/* 후속/연계 프로젝트 검색 피커 */
.related-proj-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.related-proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 0;
  min-height: 0;
}
.related-proj-tags:empty {
  padding: 0;
}
.related-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--acf);
  color: var(--acs);
  font-size: 12px;
  font-weight: 600;
}
.related-chip-rm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--acs);
  font-size: 11px;
  padding: 0 0 0 2px;
  line-height: 1;
  opacity: 0.7;
}
.related-chip-rm:hover { opacity: 1; }
.related-proj-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  margin-top: 6px;
}
.related-proj-search::placeholder { color: var(--muted); }
.related-proj-list {
  max-height: 220px;
  overflow-y: auto;
}
.related-proj-item {
  padding: 7px 12px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.1s;
}
.related-proj-item:last-child { border-bottom: none; }
.related-proj-item:hover { background: var(--lsoft); }
.related-proj-item.selected {
  background: var(--acf);
  color: var(--acs);
  font-weight: 600;
}
.related-proj-item[hidden] { display: none; }

:root[data-theme="dark"] .related-proj-search {
  color: #c7d4df;
}
:root[data-theme="dark"] .related-proj-item:hover {
  background: #1c2d3d;
}
:root[data-theme="dark"] .related-proj-item.selected {
  background: #0d3447;
}

.project-taxonomy-form {
  grid-template-columns: minmax(170px, 0.7fr) repeat(3, minmax(180px, 1fr)) auto;
  align-items: end;
}

.taxonomy-create-actions {
  align-self: end;
}

.taxonomy-kind {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  margin-top: 10px;
  overflow: visible;
}

.taxonomy-kind summary {
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
}

.taxonomy-kind summary span,
.taxonomy-kind summary em {
  color: var(--muted);
  font-style: normal;
}

.taxonomy-table {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.taxonomy-table > .taxonomy-grid,
.taxonomy-table > .taxonomy-path-list {
  min-width: 820px;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) repeat(3, minmax(150px, 1fr)) minmax(150px, 0.8fr);
  gap: 10px;
  align-items: center;
  justify-items: start;
}

.taxonomy-grid > span,
.taxonomy-grid > div {
  min-width: 0;
}

.taxonomy-grid > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-grid-head {
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}

.taxonomy-path-list {
  border-top: 1px solid var(--line-soft);
}

.taxonomy-path-row,
.taxonomy-empty-row {
  min-height: 38px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.taxonomy-path-row:last-child,
.taxonomy-empty-row:last-child {
  border-bottom: 0;
}

.taxonomy-kind-cell {
  min-width: 0;
}

.taxonomy-action-cell {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.taxonomy-action-cell > * {
  flex: 0 0 auto;
}

.taxonomy-projects-details {
  position: relative;
}

.taxonomy-projects-details summary {
  list-style: none;
  cursor: pointer;
}

.taxonomy-projects-details summary::-webkit-details-marker {
  display: none;
}

.taxonomy-project-list {
  min-width: min(440px, 80vw);
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.taxonomy-project-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.taxonomy-empty-message {
  grid-column: span 3;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-tree,
.taxonomy-tree ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
}

.taxonomy-tree {
  padding: 6px 12px 12px;
}

.taxonomy-tree li {
  margin: 6px 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 10px;
}

.taxonomy-node-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(170px, auto);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 4px 0;
}

.taxonomy-node-line span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.taxonomy-node-line em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.taxonomy-delete-note {
  justify-self: start;
  white-space: nowrap;
  cursor: pointer;
}

.taxonomy-projects-details {
  position: relative;
}

.taxonomy-projects-details summary {
  list-style: none;
  cursor: pointer;
}

.taxonomy-projects-details summary::-webkit-details-marker {
  display: none;
}

.taxonomy-project-list {
  position: absolute;
  left: 0;
  z-index: 30;
  min-width: 360px;
  max-width: min(520px, 80vw);
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.taxonomy-action-cell .taxonomy-project-list {
  left: auto;
  right: 0;
}

.taxonomy-count-details summary .pill {
  cursor: pointer;
  user-select: none;
}

.taxonomy-project-list ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.taxonomy-project-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.taxonomy-project-list li span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.taxonomy-delete-form {
  justify-self: start;
}

.taxonomy-empty {
  padding: 0 12px 12px;
}

.compact-form {
  display: grid;
  gap: 8px;
}

.tiny-button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.attachment-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.report-row-actions {
  min-width: 190px;
}

.report-status-cell {
  white-space: nowrap;
}

.report-attachment-box {
  display: grid;
  grid-template-columns: auto minmax(34px, 1fr);
  gap: 6px 8px;
  align-items: center;
}

.report-attachment-title {
  font-size: 12px;
  color: var(--muted);
}

.report-attachment-box .attachment-list,
.report-attachment-box .attachment-upload {
  grid-column: 1 / -1;
}

.report-attachment-box .attachment-preview-scroll,
.report-attachment-box .attachment-preview-file-card {
  max-width: min(360px, 100%);
}

.report-attachment-box .attachment-empty-square {
  justify-self: start;
}

.attachment-list {
  margin: 0 0 8px;
  padding-left: 16px;
}

.attachment-list li {
  margin: 4px 0;
}

.attachment-list-item-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.attachment-preview-scroll,
.attachment-preview-file-card {
  margin-top: 6px;
  width: 100%;
  max-width: min(460px, 100%);
}

.attachment-preview-scroll img {
  max-height: 220px;
}

.attachment-preview-file-card {
  justify-content: flex-start;
}

.disabled-row {
  opacity: 0.62;
}

.attachment-upload {
  display: grid;
  gap: 6px;
  align-items: center;
}

.attachment-upload {
  grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.8fr) auto auto;
}

.attachment-upload-preview {
  grid-column: 1 / -1;
}

.attachment-upload .toggle-chip {
  min-height: 38px;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  white-space: nowrap;
}

.project-attachment-upload {
  grid-template-columns: max-content minmax(150px, 180px) minmax(220px, 520px);
  align-items: center;
}

.project-attachment-upload .file-picker-button {
  min-width: 86px;
  min-height: 34px;
  padding: 6px 10px;
}

.clearable-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-icon-upload-line {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(260px, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.project-icon-upload-line .compact-help {
  margin: 0;
}

.project-icon-file-row {
  width: 100%;
}

.clearable-file-row input[type="file"] {
  min-width: 0;
}

.project-icon-file-row input[type="file"] {
  width: 100%;
}

.file-picker-button {
  position: relative;
  display: inline-flex;
  justify-self: start;
  width: auto;
  min-width: 108px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.file-picker-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lls-file-input-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-file-control {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.custom-file-button {
  white-space: nowrap;
}

.custom-file-status {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-attachment-upload {
  display: grid;
  gap: 8px;
}

.selected-attachment-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 5px 7px 5px 10px;
}

.selected-attachment-item span {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.selected-attachment-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-attachment-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.daily-attachment-preview {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.daily-attachment-preview-empty {
  display: grid;
  min-height: 72px;
  place-items: center;
  margin: 8px 0 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.daily-attachment-preview-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.daily-attachment-preview-card-shell {
  position: relative;
  flex: 0 0 180px;
  height: 116px;
}

.daily-attachment-preview-card {
  display: grid;
  place-items: center;
  width: 100%;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
}

.daily-attachment-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 32, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.daily-attachment-preview-remove:hover {
  background: #fff;
  border-color: rgba(196, 61, 61, 0.45);
}

.daily-attachment-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.daily-attachment-preview-pdf {
  display: grid;
  gap: 6px;
  justify-items: center;
  max-width: 100%;
  padding: 12px;
  color: var(--ink);
}

.daily-attachment-preview-pdf strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  border-radius: 6px;
  background: #fee2e2;
  color: #991b1b;
}

.daily-attachment-preview-pdf em {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.research-day-summary-media {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px 0 8px;
  scroll-snap-type: x proximity;
}

.research-day-summary-image {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: zoom-in;
  overflow: hidden;
  scroll-snap-align: start;
}

.research-day-summary-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

.attachment-clip {
  position: relative;
  display: inline-block;
}

.attachment-clip summary {
  list-style: none;
}

.attachment-clip summary::-webkit-details-marker {
  display: none;
}

.clip-button,
.attachment-empty-square {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
  color: var(--accent-strong);
}

.clip-button {
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.clip-button strong {
  font-size: 12px;
}

.attachment-empty-square {
  border-style: dashed;
  background: #f8fbfd;
  color: transparent;
}

.attachment-popover {
  position: absolute;
  z-index: 45;
  right: 0;
  top: 40px;
  min-width: 340px;
  max-width: min(520px, 80vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.deleted-records-popover {
  position: relative;
  display: inline-block;
}

.deleted-records-popover summary {
  list-style: none;
}

.deleted-records-popover summary::-webkit-details-marker {
  display: none;
}

.deleted-records-menu {
  position: absolute;
  z-index: 55;
  right: 0;
  top: 38px;
  width: min(900px, 84vw);
  max-height: 560px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.compact-table {
  font-size: 12px;
}

.research-day-table th:nth-child(3),
.research-day-table th:nth-child(4),
.research-day-table td:nth-child(3),
.research-day-table td:nth-child(4) {
  text-align: center;
}

.research-day-table td.action-cell {
  text-align: left;
}

.research-day-table .action-cell .record-action-group {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
}

.research-day-table .view-memo-stack {
  justify-items: stretch;
  width: 78px;
}

.research-day-table .entry-view-action > summary.ghost-button.tiny-button,
.research-day-table .leader-status-edit-details > summary.secondary.tiny-button,
.research-day-table .status-memo-button {
  box-sizing: border-box;
  width: 78px;
  min-width: 78px;
  min-height: 30px;
  height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1;
}

.msg {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #eef6ff;
  color: #073763;
}

.compact-message {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.error {
  background: #fff1f0;
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 8px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #fbfdfe;
  border-bottom: 1px solid var(--line);
  text-transform: none;
}

tr:hover td {
  background: #fbfdfe;
}

.notification-table-scroll {
  max-height: min(680px, calc(100vh - 270px));
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.notification-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.notification-list-header h2 {
  margin: 0;
  white-space: nowrap;
}

.notification-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.notification-bulk-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
  padding-bottom: 0;
}

.notification-bulk-actions button,
.notification-bulk-actions .check-row {
  white-space: nowrap;
}

.notification-page-size {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
  font-weight: 800;
}

.notification-page-size select {
  width: auto;
  min-width: 96px;
  min-height: 34px;
}

.audit-table-scroll {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.audit-table {
  min-width: 1180px;
  table-layout: fixed;
  font-size: 15px;
}

.audit-summary-table th:nth-child(1),
.audit-summary-table td:nth-child(1) {
  width: 260px;
}

.audit-summary-table th:nth-child(2),
.audit-summary-table td:nth-child(2) {
  width: 150px;
}

.audit-summary-table th:nth-child(3),
.audit-summary-table td:nth-child(3),
.audit-summary-table th:nth-child(5),
.audit-summary-table td:nth-child(5) {
  width: 190px;
}

.audit-summary-table th:nth-child(4),
.audit-summary-table td:nth-child(4) {
  width: 310px;
}

.audit-summary-table th:nth-child(6),
.audit-summary-table td:nth-child(6) {
  width: 120px;
}

.audit-summary-table th:nth-child(7),
.audit-summary-table td:nth-child(7) {
  width: 220px;
}

.audit-summary-table th:nth-child(8),
.audit-summary-table td:nth-child(8) {
  width: 150px;
}

.notification-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  font-size: 15px;
}

.notification-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fbfdfe;
  box-shadow: 0 1px 0 var(--line);
}

.notification-table th:nth-child(1),
.notification-table td:nth-child(1) {
  width: 74px;
  min-width: 74px;
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--panel);
  text-align: center;
}

.notification-table th:nth-child(2),
.notification-table td:nth-child(2) {
  width: 128px;
  min-width: 128px;
}

.notification-table th:nth-child(3),
.notification-table td:nth-child(3) {
  width: 78px;
  min-width: 78px;
  text-align: center;
}

.notification-table th:nth-child(4),
.notification-table td:nth-child(4) {
  width: 82px;
  min-width: 82px;
  text-align: center;
}

.notification-table th:nth-child(1) {
  z-index: 6;
  background: #fbfdfe;
}

.notification-table th:nth-child(5),
.notification-table td:nth-child(5) {
  width: 210px;
  overflow-wrap: anywhere;
}

.notification-table th:nth-child(6),
.notification-table td:nth-child(6) {
  width: auto;
  overflow-wrap: anywhere;
}

.notification-table th:nth-child(7),
.notification-table td:nth-child(7) {
  width: 116px;
}

.notification-table th:nth-child(8),
.notification-table td:nth-child(8) {
  width: 88px;
}

.notification-table th,
.notification-table td {
  overflow-wrap: normal;
  word-break: keep-all;
}

.notification-row[data-notification-href] {
  cursor: pointer;
}

.notification-row[data-notification-href]:hover td {
  background: #f6fbfb;
}

.notification-row.unread td {
  background: #f8fffe;
}

.notification-row.unread td:nth-child(5),
.notification-row.unread td:nth-child(5) a,
.notification-row.unread td:nth-child(6) strong,
.notification-row.unread td:nth-child(6) p,
.notification-row.unread td:nth-child(7),
.notification-row.unread td:nth-child(7) a {
  color: var(--ink);
  font-weight: 900;
}

.notification-row.unread td:nth-child(6) p.muted {
  color: #334155;
}

.plain-link {
  color: inherit;
  text-decoration: none;
}

.plain-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.notification-time-stack {
  display: grid;
  gap: 2px;
  line-height: 1.25;
  white-space: nowrap;
}

.notification-table td:nth-child(6) strong,
.notification-table td:nth-child(6) p {
  overflow-wrap: anywhere;
}

.notification-select-title,
.notification-select-all {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.notification-select-title {
  margin-bottom: 4px;
}

.notification-select-all {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.notification-select-all input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.notification-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

.row-checkbox {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--accent);
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

code {
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 4px;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #30485a;
  font-size: 12px;
  font-weight: 900;
}

.pill-link {
  text-decoration: none;
  cursor: pointer;
}

.pill-link:hover,
.pill-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 115, 185, 0.18);
}

.pill.ok {
  background: #e9f7ef;
  color: var(--ok);
}

.pill.wait {
  background: #fff5df;
  color: var(--amber);
}

.pill.danger {
  background: #fdecec;
  color: var(--danger);
}

.pill.draft {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.metric {
  min-height: 92px;
  padding: 14px;
  border-left: 3px solid var(--accent);
  display: block;
  background: #fff;
}

.metric-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.metric:nth-child(2) {
  border-left-color: var(--blue);
}

.metric:nth-child(3) {
  border-left-color: var(--lime);
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-link {
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.metric-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: var(--shadow);
}

.table-link {
  font-weight: 800;
  color: var(--accent-strong);
  border-bottom: 1px solid rgba(15, 118, 110, 0.28);
}

.lls-form-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.lls-form-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(148, 163, 184, 0.06);
}

.lls-form-section h3 {
  margin: 0 0 6px;
}

.lls-form-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.lls-form-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.lls-form-link-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lls-form-link-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.lls-form-link-card:hover {
  border-color: rgba(15, 118, 110, 0.38);
  transform: translateY(-1px);
}

.approval-pending-panel {
  border-left-color: var(--amber);
}

.approval-pending-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.approval-pending-table td:nth-child(1) {
  width: 72px;
}

.approval-pending-table td:nth-child(3) {
  width: 150px;
  white-space: nowrap;
}

.approval-pending-table td:nth-child(4) {
  width: 110px;
  text-align: right;
}

.bar-cell {
  position: relative;
  min-width: 44px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bar-cell span {
  position: absolute;
  inset: auto auto -2px 0;
  height: 3px;
  min-width: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.55), rgba(8, 115, 185, 0.45));
}

.bar-cell strong {
  position: relative;
  z-index: 1;
}

.bar-link {
  display: block;
  color: var(--ink);
}

.trend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}

.trend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 9px;
}

.trend-card strong,
.trend-card p,
.trend-card small {
  display: block;
}

.trend-card p {
  margin: 6px 0 2px;
  font-weight: 900;
}

.trend-card small {
  color: var(--muted);
  font-size: 12px;
}

.trend-bar {
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf4f7;
  overflow: hidden;
}

.trend-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.trend-bar span[data-progress="0"] {
  width: 0 !important;
}

.scope-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}

.scope-chips strong,
.scope-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.scope-chips span {
  background: #f4f7fa;
  color: #405872;
}

.project-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.project-progress-strip {
  display: flex;
  overflow-x: auto;
  padding-bottom: 8px;
}

.project-progress-strip .project-progress-card {
  flex: 0 0 292px;
}

.project-progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.daily-status-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.daily-status-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.daily-status-summary-card strong {
  font-size: 22px;
  line-height: 1;
}

.daily-status-summary-card span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-weight: 800;
}

.research-list-status-summary-block {
  display: grid;
  gap: 6px;
}

.compact-status-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.compact-status-panel h2 {
  margin: 0;
  white-space: nowrap;
}

.compact-status-heading {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
}

.compact-status-heading p {
  margin: 0;
  max-width: 220px;
}

.status-scope-note,
.approval-target-context {
  margin: 0 0 8px;
}

.approval-target-context strong {
  color: var(--ink);
}

.compact-status-panel .daily-status-summary-grid {
  flex: 1;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 8px;
}

.compact-status-panel .daily-status-summary-card {
  grid-template-columns: auto auto minmax(0, 1fr);
  min-height: 42px;
  padding: 8px 10px;
}

.compact-status-panel .daily-status-summary-card strong {
  font-size: 20px;
}

.compact-status-panel .daily-status-summary-card span:last-child {
  grid-column: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-period-panel {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.stats-period-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-period-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
  background: var(--panel);
}

.stats-period-tabs a.active {
  border-color: rgba(45, 199, 184, 0.7);
  color: var(--accent-strong);
  background: rgba(45, 199, 184, 0.12);
}

.stats-period-form {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.stats-project-filter {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-period-form label,
.stats-project-filter label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stats-period-form input,
.stats-period-form select,
.stats-project-filter select {
  min-height: 32px;
  padding: 5px 8px;
}

.statistics-project-dropdown {
  min-width: 220px;
}

.statistics-project-dropdown .checkbox-dropdown-panel {
  right: 0;
  left: auto;
  width: min(520px, 86vw);
}

.statistics-project-dropdown .checkbox-list-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.statistics-project-dropdown .checkbox-list-row input {
  margin-top: 3px;
}

.statistics-project-dropdown .checkbox-list-row span {
  min-width: 0;
  white-space: normal;
  word-break: keep-all;
}

.stats-project-selection {
  flex-basis: 100%;
  margin: -2px 0 0;
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(170px, 0.75fr) minmax(420px, 2.5fr);
  gap: 14px;
  margin-bottom: 4px;
  align-items: stretch;
}

.stats-overview-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  min-width: 0;
}

.stats-overview-card-center {
  text-align: center;
}

.stats-overview-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 12px;
}

.stats-overview-card-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.stats-overview-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stats-progress-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.stats-progress-row {
  margin-bottom: 12px;
}

.stats-progress-row-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 4px;
}

.stats-progress-row-head span:first-child {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-progress-row-head span:last-child {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.stats-progress-meter {
  position: relative;
  height: 8px;
  margin-bottom: 3px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
}

.stats-progress-legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.stats-summary-panel {
  padding: 14px 16px;
}

.stats-summary-panel ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.stats-summary-panel li + li {
  margin-top: 5px;
}

.stats-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 12px;
}

.stats-section-head h2,
.stats-section-head p {
  margin: 0;
}

.stats-visual-panel > .stats-section-head,
.dashboard-executive-layout .stats-section-head {
  flex-direction: column;
  align-items: flex-start;
}

.stats-section-head .compact-help {
  flex-basis: 100%;
  width: 100%;
}

.stats-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 12px;
}

.stats-visual-panel {
  min-height: 280px;
  overflow: hidden;
}

.stats-visual-panel-wide {
  grid-column: 1 / -1;
}

.stats-heatmap-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.stats-heatmap {
  display: grid;
  gap: 6px;
  align-items: center;
  min-width: 610px;
}

.heatmap-label,
.heatmap-month,
.heatmap-project {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.heatmap-project {
  min-width: 0;
  color: var(--ink);
}

.heatmap-project strong,
.heatmap-project span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-project span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.heatmap-cell {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--accent-strong);
  background: rgba(148, 163, 184, 0.08);
}

.heatmap-cell.level-1 { background: rgba(45, 199, 184, 0.12); }
.heatmap-cell.level-2 { background: rgba(45, 199, 184, 0.24); }
.heatmap-cell.level-3 { background: rgba(45, 199, 184, 0.4); color: #053b3b; }
.heatmap-cell.level-4 { background: rgba(15, 118, 110, 0.82); color: #fff; }

.portfolio-plot {
  position: relative;
  height: 292px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(148, 163, 184, 0.25) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(148, 163, 184, 0.25) 50%, transparent 50.2%),
    rgba(148, 163, 184, 0.06);
  overflow: hidden;
}

.plot-axis {
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plot-x {
  right: 12px;
  bottom: 8px;
}

.plot-y {
  left: 12px;
  top: 8px;
}

.portfolio-bubble {
  position: absolute;
  transform: translate(-10px, 50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  max-width: 178px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  background: rgba(148, 163, 184, 0.12);
  white-space: nowrap;
}

.portfolio-bubble.label-left {
  transform: translate(calc(-100% + 10px), 50%);
  flex-direction: row-reverse;
  padding: 4px 4px 4px 8px;
}

.portfolio-dot {
  width: var(--bubble-size);
  height: var(--bubble-size);
  min-width: var(--bubble-size);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.portfolio-label {
  display: block;
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-bubble.risk-normal { border-color: rgba(45, 199, 184, 0.45); }
.portfolio-bubble.risk-warn { border-color: rgba(245, 158, 11, 0.5); }
.portfolio-bubble.risk-danger { border-color: rgba(248, 113, 113, 0.55); }
.portfolio-bubble.risk-normal .portfolio-dot { background: rgba(15, 118, 110, 0.95); }
.portfolio-bubble.risk-warn .portfolio-dot { background: rgba(217, 119, 6, 0.95); }
.portfolio-bubble.risk-danger .portfolio-dot { background: rgba(185, 28, 28, 0.95); }

.risk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.risk-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: rgba(148, 163, 184, 0.06);
}

.risk-card header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.risk-card header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.risk-card.risk-warn header span { background: #d97706; }
.risk-card.risk-danger header span { background: #dc2626; }
.risk-card h3,
.risk-card p {
  margin: 0 0 6px;
}

.risk-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.funnel-chart {
  display: grid;
  gap: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 86px 1fr 52px;
  align-items: center;
  gap: 10px;
}

.funnel-row span,
.funnel-row strong {
  font-weight: 900;
}

.funnel-row i {
  display: block;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.funnel-row.draft i { background: #64748b; }
.funnel-row.submitted i { background: #d97706; }
.funnel-row.approved i { background: #0f766e; }
.funnel-row.rejected i { background: #dc2626; }

.funnel-row.is-zero i {
  border: 1px dashed var(--line);
  background: transparent;
}

.funnel-row.is-zero .prog-fill {
  width: 0 !important;
}

.pipeline-empty-note {
  margin: 0 0 8px;
}

.radar-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.radar-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.06);
  padding: 10px;
}

.radar-card svg {
  width: 92px;
  height: 92px;
}

.radar-bg {
  fill: rgba(148, 163, 184, 0.09);
  stroke: rgba(148, 163, 184, 0.5);
}

.radar-shape {
  fill: rgba(45, 199, 184, 0.36);
  stroke: var(--accent);
  stroke-width: 2.6;
}

.radar-card circle {
  fill: var(--accent);
}

.radar-card:nth-child(2n) .radar-shape {
  fill: rgba(59, 130, 246, 0.28);
  stroke: #2563eb;
}

.radar-card:nth-child(3n) .radar-shape {
  fill: rgba(217, 119, 6, 0.28);
  stroke: #d97706;
}

.radar-card:nth-child(4n) .radar-shape {
  fill: rgba(124, 58, 237, 0.24);
  stroke: #7c3aed;
}

.radar-card strong,
.radar-card small {
  display: block;
}

.budget-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.stats-visual-panel-wide .budget-gauge-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  justify-content: start;
}

.budget-gauge-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.06);
  text-align: center;
  align-content: start;
  min-width: 0;
}

.budget-gauge {
  width: 112px;
  height: 62px;
  position: relative;
  overflow: hidden;
}

.budget-gauge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 112px 112px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--accent) var(--gauge), rgba(148, 163, 184, 0.2) 0 180deg, transparent 0);
}

.budget-gauge::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 46px;
  border-radius: 80px 80px 0 0;
  background: var(--panel);
}

.budget-gauge span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  z-index: 1;
  font-weight: 900;
}

.budget-gauge-card.warn .budget-gauge::before { background: conic-gradient(from 270deg at 50% 100%, #d97706 var(--gauge), rgba(148, 163, 184, 0.2) 0 180deg, transparent 0); }
.budget-gauge-card.danger .budget-gauge::before { background: conic-gradient(from 270deg at 50% 100%, #dc2626 var(--gauge), rgba(148, 163, 184, 0.2) 0 180deg, transparent 0); }

.budget-gauge-name {
  display: -webkit-box;
  width: 100%;
  min-height: 2.5em;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.budget-gauge-card .muted {
  width: 100%;
  overflow-wrap: anywhere;
}

.project-progress-card header {
  display: grid;
  gap: 2px;
}

.project-progress-card header span {
  color: var(--muted);
  font-size: 12px;
}

.progress-bar {
  margin: 10px 0 8px;
}

.mini-sparkline {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  min-width: 74px;
  height: 44px;
  margin-right: 8px;
  padding: 5px;
  border-radius: 8px;
  background: #f4f7fa;
  vertical-align: middle;
}

.mini-sparkline i {
  display: block;
  width: 7px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--blue), var(--accent));
}

.measurement-history summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.measurement-history ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.stats-budget-table th,
.stats-budget-table td {
  vertical-align: middle;
}

.stats-budget-table th:first-child,
.stats-budget-table td:first-child {
  min-width: 170px;
}

.stats-budget-row .money-cell {
  white-space: nowrap;
  text-align: right;
}

.stats-inline-meter {
  display: grid;
  grid-template-columns: auto minmax(52px, 92px);
  align-items: center;
  gap: 6px;
  min-width: 92px;
  max-width: 140px;
}

.stats-inline-meter strong {
  white-space: nowrap;
}

.stats-mini-bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f7;
}

.stats-mini-bar i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.95) 0 5px, rgba(45, 199, 184, 0.9) 5px 10px);
}

.stats-mini-bar i[data-progress="0"] {
  width: 0 !important;
}

.stats-mini-bar.over i {
  background: repeating-linear-gradient(90deg, rgba(220, 38, 38, 0.95) 0 5px, rgba(248, 113, 113, 0.9) 5px 10px);
}

.stats-collapsible-panel {
  padding: 0;
}

.stats-collapsible-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.stats-collapsible-panel summary::-webkit-details-marker {
  display: none;
}

.stats-collapsible-panel summary h2 {
  margin: 0;
}

.stats-collapsible-panel > table {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

.stats-collapsible-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-strong);
  font-weight: 900;
}

.stats-collapsible-toggle::after {
  content: "펼치기";
}

.stats-collapsible-panel[open] .stats-collapsible-toggle::after {
  content: "접기";
}

.highlight-row {
  background: #f0fdfa;
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: -2px;
}

.ops-check-row.ops-check-warn {
  background: rgba(245, 158, 11, 0.09);
}

.ops-check-row.ops-check-error {
  background: rgba(220, 38, 38, 0.1);
}

.ops-check-row.ops-check-warn td:first-child,
.ops-check-row.ops-check-error td:first-child {
  box-shadow: inset 3px 0 0 currentColor;
}

.ops-check-row.ops-check-warn td:first-child {
  color: #b7791f;
}

.ops-check-row.ops-check-error td:first-child {
  color: #c53030;
}

.ops-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 7px;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
  background: rgba(15, 118, 110, 0.07);
}

.ops-action-link:hover {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.12);
}

.record-card {
  display: grid;
  gap: 6px;
}

.watermark {
  position: fixed;
  right: 18px;
  bottom: 12px;
  color: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  pointer-events: none;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.mobile-bottom-nav,
.pull-refresh-indicator {
  display: none;
}

.mobile-bottom-nav button {
  font: inherit;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(600px, 1.35fr) minmax(340px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.dashboard-executive-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.discussion-panel {
  display: grid;
  gap: 14px;
}

.discussion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discussion-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.discussion-head h2,
.discussion-head p {
  margin: 0;
}

.discussion-head h2 {
  flex: 0 0 auto;
}

.discussion-head p {
  min-width: 260px;
  flex: 1 1 620px;
}

.discussion-link-box {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #cddde7;
  border-radius: 8px;
  background: #f7fbfd;
}

.discussion-link-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-weight: 900;
}

.discussion-direct-link {
  font-weight: 900;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.discussion-link-box.compact {
  grid-template-columns: max-content minmax(160px, 0.55fr) max-content minmax(240px, 1fr);
}

.discussion-room-list {
  display: grid;
  gap: 12px;
}

.discussion-room-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid #c7d9e3;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(90deg, #eefaf8 0%, #ffffff 42%, #fbfdff 100%);
  box-shadow: 0 5px 16px rgba(16, 32, 51, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.discussion-room-card:hover {
  border-color: #9bbbc9;
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.12);
  transform: translateY(-1px);
}

.discussion-room-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 124, 120, 0.2);
}

.discussion-room-main {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  white-space: nowrap;
}

.discussion-room-main strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-room-main span {
  flex: 1 1 auto;
  min-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-room-main span,
.discussion-room-count {
  color: var(--muted);
  font-weight: 700;
}

.discussion-room-side {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  white-space: nowrap;
}

.discussion-unread {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d8e7ed;
  background: #eef6f8;
  color: var(--muted);
  font-weight: 900;
}

.discussion-unread.active {
  background: #fff3d6;
  color: #9a5b00;
}

.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
}

.dashboard-executive-metrics {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dashboard-executive-metrics .metric {
  min-height: 86px;
}

.dashboard-executive-metrics .metric strong {
  font-size: 28px;
}

.dday-label {
  color: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.dday-label.dday-warning {
  color: #a86500;
}

.dday-label.dday-danger {
  color: var(--danger);
}

.dashboard-status-panel {
  min-width: 0;
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dashboard-status-bucket {
  position: relative;
  min-width: 0;
}

.dashboard-status-bucket summary {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.dashboard-status-bucket summary::-webkit-details-marker {
  display: none;
}

.dashboard-status-bucket summary > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-status-count {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.dashboard-status-bucket.status-green .dashboard-status-count {
  color: #16803b;
  background: #ecfdf3;
}

.dashboard-status-bucket.status-orange .dashboard-status-count {
  color: #b45309;
  background: #fff7ed;
}

.dashboard-status-bucket.status-red .dashboard-status-count {
  color: #dc2626;
  background: #fef2f2;
}

.dashboard-status-bucket.status-unknown .dashboard-status-count {
  color: #64748b;
  background: #fff;
}

.dashboard-status-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(340px, calc(100vw - 48px));
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-status-bucket:nth-child(n + 3) .dashboard-status-popover {
  left: auto;
  right: 0;
}

.dashboard-status-popover h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dashboard-status-log-popover {
  width: min(720px, calc(100vw - 48px));
}

.dashboard-status-project-list {
  display: grid;
  gap: 6px;
}

.dashboard-status-log-list {
  display: grid;
  gap: 6px;
  min-width: 680px;
}

.dashboard-status-log {
  display: grid;
  grid-template-columns: minmax(140px, 1.15fr) minmax(150px, 1.25fr) minmax(74px, 0.55fr) minmax(92px, 0.7fr) minmax(96px, 0.75fr) 56px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: inherit;
  background: #fbfdfe;
}

.dashboard-status-log-head {
  position: sticky;
  top: -12px;
  z-index: 1;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-status-log span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-status-log .daily-status-dot {
  margin-right: 4px;
}

.dashboard-status-project {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: inherit;
  background: #fbfdfe;
}

.dashboard-status-project:hover {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f3fbfa;
}

.dashboard-status-project strong,
.dashboard-status-project span,
.dashboard-status-project small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-status-project small {
  color: var(--muted);
  font-weight: 800;
}

.notification-summary-panel {
  overflow: auto;
}

.notification-summary-table {
  min-width: 760px;
  table-layout: fixed;
}

.notification-summary-table th:nth-child(1),
.notification-summary-table td:nth-child(1) {
  width: 74px;
  text-align: center;
}

.notification-summary-table th:nth-child(2),
.notification-summary-table td:nth-child(2) {
  width: 190px;
}

.notification-summary-table th:nth-child(4),
.notification-summary-table td:nth-child(4) {
  width: 124px;
}

.notification-summary-table th,
.notification-summary-table td {
  overflow-wrap: anywhere;
}

.notification-group-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.32);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-stack {
  display: grid;
  gap: 14px;
}

.action-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-title-row h2 {
  margin: 0;
}

.panel-action-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-action-header h2 {
  margin-top: 0;
}

.backup-action-strip {
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
}

.backup-action-strip form {
  margin: 0;
}

.activity-history-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.activity-history-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
}

.activity-history-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.activity-history-modal-head h3 {
  margin: 0 0 4px;
}

.activity-history-scroll {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.activity-history-scroll table {
  min-width: 1180px;
  font-size: 14px;
}

.table-actions {
  margin-bottom: 10px;
}

.report-export-body {
  background: #fff;
}

.report-page {
  max-width: 920px;
  margin: 28px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.report-head h1 {
  font-size: 24px;
}

.report-section {
  margin: 18px 0;
}

.report-watermark {
  position: static;
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0 auto 12px;
  padding: 5px 12px;
  border: 1px solid rgba(15, 118, 110, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 900;
  color: #006e67;
  white-space: nowrap;
}

.print-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 16px auto 0;
  max-width: 920px;
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .sidebar-note,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .auth-card .panel,
:root[data-theme="dark"] .project-editor-panel,
:root[data-theme="dark"] .compact-details,
:root[data-theme="dark"] .manual-example-card,
:root[data-theme="dark"] .project-members-detail,
:root[data-theme="dark"] .checkbox-dropdown summary,
:root[data-theme="dark"] .checkbox-dropdown-panel,
:root[data-theme="dark"] .project-memo-popover,
:root[data-theme="dark"] .deleted-records-menu,
:root[data-theme="dark"] .discussion-link-box,
:root[data-theme="dark"] .discussion-room-card,
:root[data-theme="dark"] .attachment-popover,
:root[data-theme="dark"] .research-project-preview,
  :root[data-theme="dark"] .activity-history-dialog,
  :root[data-theme="dark"] .role-permission-dialog,
  :root[data-theme="dark"] .lls-confirm-dialog,
  :root[data-theme="dark"] .activity-history-scroll,
:root[data-theme="dark"] .selected-attachment-item,
:root[data-theme="dark"] .user-chip,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .dashboard-status-bucket summary,
:root[data-theme="dark"] .dashboard-status-popover,
:root[data-theme="dark"] .dashboard-status-project,
:root[data-theme="dark"] .dashboard-status-log,
:root[data-theme="dark"] .trend-card,
:root[data-theme="dark"] .project-progress-card,
:root[data-theme="dark"] .stats-collapsible-toggle,
:root[data-theme="dark"] .desktop-notification-box,
:root[data-theme="dark"] .msg {
  background: var(--panel);
}

:root[data-theme="dark"] .dashboard-status-project:hover {
  background: #16283a;
}

:root[data-theme="dark"] .dashboard-status-bucket.status-green .dashboard-status-count {
  color: #86efac;
  background: rgba(22, 101, 52, 0.2);
}

:root[data-theme="dark"] .dashboard-status-bucket.status-orange .dashboard-status-count {
  color: #fbbf24;
  background: rgba(146, 64, 14, 0.2);
}

:root[data-theme="dark"] .dashboard-status-bucket.status-red .dashboard-status-count {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.22);
}

:root[data-theme="dark"] .dashboard-status-bucket.status-unknown .dashboard-status-count {
  color: #d1d5db;
  background: #111c26;
}

:root[data-theme="dark"] .password-rule-list li {
  background: #111827;
}

:root[data-theme="dark"] .password-rule-list li.passed {
  border-color: rgba(74, 222, 128, 0.42);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.24);
}

:root[data-theme="dark"] .password-match-message.passed {
  color: #86efac;
}

:root[data-theme="dark"] .topbar {
  background: rgba(22, 33, 44, 0.9);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .ghost-button,
:root[data-theme="dark"] .secondary,
:root[data-theme="dark"] .sidebar-toggle {
  background: #111c26;
  color: var(--ink);
}

:root[data-theme="dark"] button:disabled,
:root[data-theme="dark"] .secondary:disabled,
:root[data-theme="dark"] .ghost-button:disabled {
  background: #203142;
  border-color: #3b5266;
  color: #b7c6d4;
  opacity: 1;
}

:root[data-theme="dark"] label,
:root[data-theme="dark"] .nav-button,
:root[data-theme="dark"] .nav-group-toggle,
:root[data-theme="dark"] .nav-subitems a {
  color: #c7d4df;
}
:root[data-theme="dark"] .nav-sub-divider {
  color: #6b8499;
}
:root[data-theme="dark"] .biz-rec-hd {
  color: #c7d4df;
}
:root[data-theme="dark"] .biz-rec-hd:hover {
  background: #1c2d3d;
}
:root[data-theme="dark"] .biz-rec-sect {
  border-top-color: #2a3f52;
}

:root[data-theme="dark"] .nav-ico {
  color: #91a6b8;
}

:root[data-theme="dark"] .discussion-room-card {
  border-color: #3b5966;
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(45, 199, 184, 0.12), rgba(17, 28, 38, 0.7));
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .discussion-room-card:hover {
  border-color: #537284;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .project-workload-chip {
  border-color: #3b5966;
  background: linear-gradient(135deg, rgba(45, 199, 184, 0.12), rgba(20, 34, 47, 0.96));
  color: #edf7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .project-workload-chip strong {
  color: #f6fbff;
}

:root[data-theme="dark"] .project-workload-chip em {
  background: rgba(45, 199, 184, 0.18);
  color: #8df3e8;
}

:root[data-theme="dark"] .project-workload-chip small {
  color: #a9bfd1;
}

:root[data-theme="dark"] .discussion-unread {
  border-color: #344b5c;
  background: #203142;
  color: #c7d4df;
}

:root[data-theme="dark"] .discussion-unread.active {
  background: rgba(255, 184, 77, 0.18);
  color: #ffd18b;
}

:root[data-theme="dark"] .nav-button:hover,
:root[data-theme="dark"] .nav-group-toggle:hover,
:root[data-theme="dark"] .nav-subitems a:hover {
  background: #1d2c39;
  color: var(--accent-strong);
}

:root[data-theme="dark"] .nav-subitems a {
  border-left-color: #405568;
}

:root[data-theme="dark"] .nav-subitems a.active {
  background: rgba(45, 199, 184, 0.16);
  color: var(--accent-strong);
  border-left-color: var(--accent);
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] tr:hover td,
:root[data-theme="dark"] .manual-mini-screen,
:root[data-theme="dark"] .manual-mini-screen span,
:root[data-theme="dark"] .record-card,
:root[data-theme="dark"] .measurement-editor,
:root[data-theme="dark"] .inline-attachment-upload,
:root[data-theme="dark"] .project-image-empty,
:root[data-theme="dark"] .research-project-preview-image.is-empty,
:root[data-theme="dark"] .attachment-empty-square {
  background: var(--panel-soft);
}

:root[data-theme="dark"] .research-project-preview-image,
:root[data-theme="dark"] .previous-log-loader-panel {
  border-color: #344b5c;
  background: #111c26;
}

:root[data-theme="dark"] .user-table-scroll,
:root[data-theme="dark"] .notification-table-scroll,
:root[data-theme="dark"] .audit-table-scroll {
  border-color: var(--line);
  background: var(--panel);
}

:root[data-theme="dark"] .user-table th,
:root[data-theme="dark"] .user-table td:nth-child(1),
:root[data-theme="dark"] .user-table td:nth-child(2),
:root[data-theme="dark"] .notification-table th,
:root[data-theme="dark"] .notification-table td:nth-child(1),
:root[data-theme="dark"] .notification-select-all input {
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="dark"] .user-table th:nth-child(1),
:root[data-theme="dark"] .user-table th:nth-child(2),
:root[data-theme="dark"] .notification-table th:nth-child(1) {
  background: var(--panel-soft);
}

:root[data-theme="dark"] .notification-row[data-notification-href]:hover td {
  background: #16283a;
}

:root[data-theme="dark"] .notification-row.unread td {
  background: rgba(45, 199, 184, 0.08);
}

:root[data-theme="dark"] .notification-row.unread td:nth-child(5),
:root[data-theme="dark"] .notification-row.unread td:nth-child(5) a,
:root[data-theme="dark"] .notification-row.unread td:nth-child(6) strong,
:root[data-theme="dark"] .notification-row.unread td:nth-child(6) p,
:root[data-theme="dark"] .notification-row.unread td:nth-child(7),
:root[data-theme="dark"] .notification-row.unread td:nth-child(7) a,
:root[data-theme="dark"] .notification-row.unread td:nth-child(6) p.muted {
  color: #f8fafc;
}

:root[data-theme="dark"] .highlight-row {
  background: rgba(45, 199, 184, 0.16);
  outline-color: rgba(45, 199, 184, 0.38);
}

:root[data-theme="dark"] .ops-check-row.ops-check-warn {
  background: rgba(245, 158, 11, 0.12);
}

:root[data-theme="dark"] .ops-check-row.ops-check-error {
  background: rgba(220, 38, 38, 0.14);
}

:root[data-theme="dark"] .ops-check-row.ops-check-error td:first-child {
  color: var(--danger);
}

:root[data-theme="dark"] .ops-action-link {
  border-color: rgba(45, 199, 184, 0.34);
  background: rgba(45, 199, 184, 0.1);
  color: var(--accent-strong);
}

:root[data-theme="dark"] .manual-mini-screen span {
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

:root[data-theme="dark"] .nav-button.active,
:root[data-theme="dark"] .project-member-summary span {
  background: var(--accent-soft);
}

:root[data-theme="dark"] .nav-button.active {
  border-color: rgba(120, 224, 212, 0.45);
  color: #d8fffb;
}

:root[data-theme="dark"] .nav-button.has-badge .nav-label,
:root[data-theme="dark"] .user-chip strong,
:root[data-theme="dark"] .metric strong,
:root[data-theme="dark"] .metric-card-link {
  color: var(--ink);
}

:root[data-theme="dark"] .user-chip span,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .trend-card small,
:root[data-theme="dark"] .project-progress-card header span {
  color: var(--muted);
}

:root[data-theme="dark"] .stats-mini-bar {
  background: #203142;
}

:root[data-theme="dark"] .stats-collapsible-toggle {
  border-color: var(--line);
  color: #8df3e8;
}

:root[data-theme="dark"] .pill {
  background: #233241;
  color: #d8e6f0;
}

:root[data-theme="dark"] .pill.ok {
  background: #12382a;
  color: #86efb8;
}

:root[data-theme="dark"] .pill.wait {
  background: #3a2f16;
  color: #ffd88a;
}

:root[data-theme="dark"] .pill.danger {
  background: #3b2024;
  color: #ff9f9f;
}

:root[data-theme="dark"] .record-feedback.ok {
  background: rgba(45, 199, 184, 0.13);
  border-color: rgba(120, 224, 212, 0.42);
  color: #d8fffb;
}

:root[data-theme="dark"] .record-feedback.danger {
  background: rgba(117, 37, 44, 0.34);
  border-color: rgba(255, 133, 133, 0.5);
  color: #ffd0d0;
}

:root[data-theme="dark"] .record-feedback.status {
  background: rgba(45, 199, 184, 0.12);
  border-color: rgba(120, 224, 212, 0.34);
  color: #eafffd;
}

:root[data-theme="dark"] .record-feedback.warning {
  background: rgba(154, 52, 18, 0.32);
  border-color: rgba(251, 146, 60, 0.48);
  color: #fed7aa;
}

:root[data-theme="dark"] .status-memo-popover {
  background: #132331;
  border-color: rgba(120, 224, 212, 0.35);
  color: var(--ink);
}

:root[data-theme="dark"] .attachment-no-permission {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.34);
  color: #cbd5e1;
}

:root[data-theme="dark"] .attachment-lock {
  background: #64748b;
  color: #f8fafc;
}

:root[data-theme="dark"] .status-memo-button {
  border-color: #365168;
  background: #0f1b27;
  color: #f1f7fb;
}

:root[data-theme="dark"] .status-memo-current,
:root[data-theme="dark"] .entry-view-memo-card,
:root[data-theme="dark"] .approval-comment-popover {
  background: #0f1b27;
  border-color: rgba(120, 224, 212, 0.28);
  color: #f1f7fb;
}

:root[data-theme="dark"] .measurement-tags span,
:root[data-theme="dark"] .measurement-chip-row span {
  background: rgba(45, 199, 184, 0.13);
  border-color: rgba(120, 224, 212, 0.34);
  color: #ccfbf1;
}

:root[data-theme="dark"] .measurement-tags span strong,
:root[data-theme="dark"] .measurement-chip-row span strong {
  color: #8df1df;
}

:root[data-theme="dark"] .desktop-notification-box {
  border-color: rgba(120, 224, 212, 0.28);
}

:root[data-theme="dark"] .desktop-notification-actions .secondary,
:root[data-theme="dark"] .desktop-notification-actions .ghost-button {
  border-color: #4d6578;
  background: #10202d;
  color: #f1f7fb;
}

:root[data-theme="dark"] .desktop-notification-box strong {
  color: var(--ink);
}

:root[data-theme="dark"] .desktop-notification-box span {
  color: #c7d4df;
}

:root[data-theme="dark"] .ghost-button.is-active {
  border-color: rgba(120, 224, 212, 0.52);
  background: rgba(45, 199, 184, 0.16);
  color: #bff8ef;
}

:root[data-theme="dark"] .daily-status-project-pill.status-green {
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

:root[data-theme="dark"] .daily-status-project-pill.status-orange {
  border-color: rgba(251, 191, 36, 0.52);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

:root[data-theme="dark"] .daily-status-project-pill.status-red {
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

:root[data-theme="dark"] .daily-attachment-preview-card img {
  background: #0e1a24;
}

:root[data-theme="dark"] .daily-attachment-preview-empty {
  background: #0e1a24;
}

:root[data-theme="dark"] .daily-attachment-preview-remove {
  border-color: #40576b;
  background: rgba(16, 31, 43, 0.94);
  color: #fecaca;
}

:root[data-theme="dark"] .daily-attachment-preview-pdf strong {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

:root[data-theme="dark"] .research-day-summary-image {
  background: #0e1a24;
}

:root[data-theme="dark"] .project-progress-card,
:root[data-theme="dark"] .daily-status-summary-card,
:root[data-theme="dark"] .taxonomy-project-list {
  background: #10202d;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .daily-status-summary-card span:last-child,
:root[data-theme="dark"] .project-progress-card header span,
:root[data-theme="dark"] .taxonomy-project-list li span {
  color: #b9c8d5;
}

:root[data-theme="dark"] .money-input-row span {
  color: #edf4f8;
}

:root[data-theme="dark"] .watermark {
  background: rgba(22, 33, 44, 0.92);
  color: rgba(237, 244, 248, 0.88);
  border: 1px solid rgba(237, 244, 248, 0.22);
  opacity: 1;
}

:root[data-theme="dark"] code {
  background: #203142;
  color: #edf4f8;
}

:root[data-theme="dark"] .activity-history-dialog,
:root[data-theme="dark"] .role-permission-dialog {
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .activity-history-dialog::backdrop,
:root[data-theme="dark"] .role-permission-dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
}

:root[data-theme="dark"] .activity-history-scroll {
  border-color: var(--line);
}

:root[data-theme="dark"] .activity-history-scroll td,
:root[data-theme="dark"] .activity-history-scroll th {
  background: transparent;
  color: var(--ink);
}

:root[data-theme="dark"] .msg {
  color: #d8e9f8;
  border: 1px solid var(--line);
}

:root[data-theme="dark"] .password-reset-result {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(94, 234, 212, 0.42);
  color: #dffcf8;
}

:root[data-theme="dark"] .password-reset-result code {
  background: #0b1724;
  border-color: rgba(148, 163, 184, 0.42);
  color: #f8fbff;
}

:root[data-theme="dark"] .error {
  color: #ffb1b1;
}

.time-cell {
  min-width: 176px;
  white-space: nowrap;
}

:root[data-theme="dark"] .danger-button,
:root[data-theme="dark"] .error {
  background: #351b1f;
}

:root[data-theme="dark"] .back-to-top-button,
:root[data-theme="dark"] .project-mobile-timeline,
:root[data-theme="dark"] .mobile-project-deadline {
  color: #dce7f1;
}

body.mobile-view {
  background: #f6f8f9;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

body.mobile-view .watermark {
  display: none;
}

body.mobile-view .app-shell {
  display: block;
  min-height: 100vh;
}

body.mobile-view .sidebar,
body.mobile-view .topbar {
  display: none;
}

body.mobile-view .workspace {
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background: #f6f8f9;
}

body.mobile-view .back-to-top-button {
  display: inline-flex;
}

.mobile-app-shell {
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 28px;
}

.mobile-app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -10px 8px;
  padding: 8px 10px 9px;
  border-bottom: 1px solid rgba(216, 228, 236, 0.82);
  background: rgba(246, 248, 249, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.mobile-app-header p {
  margin: 0 0 2px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.mobile-last-updated {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-app-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.25;
}

.mobile-header-actions {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
  align-items: center;
}

.mobile-app-header > div:first-child {
  min-width: 0;
}

.mobile-logout-form {
  display: flex;
  margin: 0;
}

.mobile-header-actions a,
.mobile-header-actions button,
.mobile-tabs a,
.mobile-filter-actions a,
.mobile-filter-actions button,
.mobile-card-close,
.mobile-memo-form button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-header-actions a,
.mobile-header-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
}

.mobile-notification-link {
  position: relative;
}

.mobile-notification-link span {
  display: inline-flex;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.mobile-notification-link.active {
  border-color: rgba(0, 124, 120, 0.34);
  background: var(--accent);
  color: #fff;
}

.mobile-app-top::after {
  content: "";
  position: absolute;
  top: 44px;
  right: 0;
  bottom: 2px;
  width: 28px;
  background: linear-gradient(to right, transparent, rgba(246, 248, 249, 0.96));
  pointer-events: none;
}

.mobile-tabs {
  display: flex;
  gap: 6px;
  max-width: 100%;
  margin-top: 8px;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mobile-tabs::-webkit-scrollbar {
  height: 5px;
}

.mobile-tabs::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 999px;
}

.mobile-tabs a {
  flex: 0 0 auto;
  display: grid;
  gap: 1px;
  min-width: 70px;
  min-height: 40px;
  align-items: center;
  justify-content: stretch;
  padding: 7px 10px;
  text-align: left;
}

.mobile-tabs a strong {
  color: inherit;
  font-size: 12px;
}

.mobile-tabs a span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.mobile-tabs a.active {
  border-color: rgba(0, 124, 120, 0.34);
  background: var(--accent);
  color: #fff;
}

.mobile-tabs a.active span {
  color: rgba(255, 255, 255, 0.82);
}

.mobile-back-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 0 8px;
  padding: 0 4px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-back-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mobile-back-link-row .mobile-back-link {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.mobile-filter-panel {
  margin: 6px 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.mobile-filter-panel summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  font-size: 13px;
}

.mobile-filter-panel summary::-webkit-details-marker {
  display: none;
}

.mobile-filter-panel summary strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.mobile-filter {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: none;
}

.mobile-filter label {
  display: grid;
  gap: 5px;
}

.mobile-filter label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-filter select,
.mobile-filter input,
.mobile-memo-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.35;
}

.mobile-filter select,
.mobile-filter input {
  min-height: 40px;
  padding: 7px 9px;
}

.mobile-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-filter-actions button,
.mobile-filter-actions a,
.mobile-memo-form button {
  min-height: 40px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: center;
}

.mobile-filter-actions button,
.mobile-memo-form button {
  border-color: rgba(0, 124, 120, 0.34);
  background: var(--accent);
  color: #fff;
}

.mobile-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 7px;
  color: var(--ink);
}

.mobile-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-record-list {
  display: grid;
  gap: 8px;
}

.mobile-notification-list {
  display: grid;
  gap: 8px;
}

.mobile-notification-filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin: 6px 0 10px;
}

.mobile-notification-filter a,
.mobile-notification-filter button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.mobile-notification-filter a.active,
.mobile-notification-filter button {
  border-color: rgba(0, 124, 120, 0.34);
  background: var(--accent);
  color: #fff;
}

.mobile-notification-filter button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.mobile-notification-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.mobile-notification-card.unread {
  border-color: rgba(0, 124, 120, 0.34);
  box-shadow: 0 0 0 1px rgba(0, 124, 120, 0.1), var(--shadow-soft);
}

.mobile-notification-card.unread strong,
.mobile-notification-card.unread p,
.mobile-notification-card.unread .mobile-notification-target b {
  font-weight: 900;
}

.mobile-notification-card-head,
.mobile-notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-notification-card-head > span:last-child,
.mobile-notification-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-notification-card strong,
.mobile-notification-target b {
  color: var(--ink);
  line-height: 1.35;
}

.mobile-notification-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mobile-notification-target {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mobile-notification-target span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-notification-meta a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(0, 124, 120, 0.34);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-project-list {
  display: grid;
  gap: 8px;
}

.mobile-issue-hero {
  display: grid;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.mobile-issue-hero > span:not(.mobile-issue-okmark) {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
}

.mobile-issue-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.18;
}

.mobile-issue-hero h2 b {
  font-size: 30px;
}

.mobile-issue-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.mobile-issue-hero a,
.mobile-issue-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-issue-hero.has-issues {
  border-color: rgba(197, 48, 48, 0.26);
  background: #fffafa;
}

.mobile-issue-hero.no-issues {
  min-height: 58vh;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.mobile-issue-okmark {
  display: inline-grid;
  width: 88px;
  height: 88px;
  align-items: center;
  border: 3px solid rgba(47, 133, 90, 0.42);
  border-radius: 50%;
  background: #f0fff4;
  color: #276749;
  font-size: 28px;
  font-weight: 1000;
}

.mobile-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mobile-issue-list-head {
  margin-top: 12px;
}

.mobile-issue-list {
  display: grid;
  gap: 10px;
}

.mobile-issue-card {
  display: grid;
  gap: 9px;
  min-height: 148px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-left: 6px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.mobile-issue-card.status-red {
  border-left-color: #c53030;
}

.mobile-issue-card.status-orange {
  border-left-color: #b7791f;
}

.mobile-issue-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.mobile-issue-card p,
.mobile-issue-card small {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
}

.mobile-issue-status-label {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}

.mobile-issue-status-label span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.mobile-issue-status-label strong {
  color: inherit;
  font-size: 16px;
}

.mobile-issue-status-label.status-red {
  background: #fff5f5;
  color: #c53030;
}

.mobile-issue-status-label.status-orange {
  background: #fffaf0;
  color: #b7791f;
}

.mobile-issue-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mobile-issue-streak {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mobile-status-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.mobile-status-breakdown-item {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 8px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.mobile-status-breakdown-item strong {
  font-size: 22px;
  line-height: 1.1;
}

.mobile-status-breakdown-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-status-breakdown-item.status-red {
  border-color: rgba(197, 48, 48, 0.3);
}

.mobile-status-breakdown-item.status-red strong {
  color: #c53030;
}

.mobile-status-breakdown-item.status-orange {
  border-color: rgba(183, 121, 31, 0.3);
}

.mobile-status-breakdown-item.status-orange strong {
  color: #b7791f;
}

.mobile-status-breakdown-item.status-green {
  border-color: rgba(0, 143, 99, 0.3);
}

.mobile-status-breakdown-item.status-green strong {
  color: #008f63;
}

.mobile-status-breakdown-item.status-unknown strong {
  color: var(--muted);
}

.mobile-biz-head {
  display: grid;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.mobile-biz-head span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.mobile-biz-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.mobile-biz-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.mobile-biz-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.mobile-biz-kpi {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.mobile-biz-kpi span,
.mobile-biz-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.mobile-biz-kpi strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.05;
}

.mobile-biz-link-card {
  margin-bottom: 8px;
}

.mobile-biz-link-card-static {
  cursor: default;
  opacity: 0.72;
}

.mobile-biz-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 10px;
}

.mobile-biz-shortcut-card {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 7px 3px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.mobile-biz-shortcut-card > span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.mobile-biz-shortcut-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.mobile-biz-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.mobile-biz-status-pill {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 7px 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.mobile-biz-status-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mobile-biz-status-pill strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.mobile-biz-status-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-biz-status-pill.ongoing {
  border-color: rgba(19, 138, 82, 0.35);
}

.mobile-biz-status-pill.pending {
  border-color: rgba(183, 119, 0, 0.35);
}

.mobile-biz-status-pill.done {
  border-color: rgba(15, 111, 180, 0.35);
}

.mobile-project-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.mobile-project-code {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.mobile-project-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.mobile-project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.mobile-project-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-project-deadline strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
}

.mobile-project-progress {
  height: 7px;
  margin-top: 2px;
}

.mobile-project-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.mobile-project-chips,
.mobile-project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-project-chips span,
.mobile-project-detail-actions a,
.mobile-project-detail-head > a,
.mobile-project-section-head a,
.mobile-project-bottom-link a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-project-chips span {
  padding: 4px 7px;
}

.mobile-project-detail-head {
  display: grid;
  gap: 7px;
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.mobile-project-detail-head > a,
.mobile-project-section-head a,
.mobile-project-bottom-link a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
}

.mobile-project-detail-head > a {
  justify-self: start;
}

.mobile-project-detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.mobile-project-detail-actions a {
  min-height: 40px;
  padding: 8px 10px;
}

.mobile-project-record-section {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.mobile-project-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-project-section-head div {
  display: grid;
  gap: 2px;
}

.mobile-project-section-head strong {
  color: var(--ink);
  font-size: 14px;
}

.mobile-project-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-record-list.compact {
  gap: 7px;
}

.mobile-project-bottom-link {
  display: flex;
  justify-content: center;
  padding: 14px 0 0;
}

.mobile-record-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.mobile-record-card summary {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 42px 10px 10px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}

.mobile-record-card-link {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 42px 10px 10px;
  color: inherit;
  text-decoration: none;
}

.mobile-record-card-link:hover,
.mobile-record-card-link:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.mobile-record-card-link strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.mobile-record-card-link .mobile-record-action-hint::before {
  content: "보기";
}

.mobile-record-card summary::-webkit-details-marker {
  display: none;
}

.mobile-record-card[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.mobile-record-action-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-record-action-hint::before {
  content: "열기";
}

.mobile-record-card[open] .mobile-record-action-hint::before {
  content: "닫기";
}

.mobile-record-date {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.mobile-record-card summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.mobile-record-sub {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mobile-record-badges {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.mobile-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 2px;
}

.mobile-load-more a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-load-more span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-record-body {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.mobile-card-close {
  justify-self: end;
  min-height: 40px;
  padding: 6px 9px;
  cursor: pointer;
}

.mobile-detail-section {
  display: grid;
  gap: 6px;
  padding-top: 1px;
}

.mobile-detail-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.mobile-detail-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mobile-record-body .research-day-summary-media {
  padding: 0 0 4px;
}

.mobile-record-body .research-day-summary-image img {
  max-height: 240px;
}

.mobile-attachment-strip,
.mobile-linked-days {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mobile-attachment-thumb,
.mobile-attachment-file,
.mobile-linked-day {
  flex: 0 0 148px;
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-attachment-thumb img {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.mobile-device-attachment-list {
  display: grid;
  gap: 8px;
}

.mobile-device-attachment-image,
.mobile-device-attachment-file {
  width: 100%;
  display: grid;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mobile-device-attachment-image {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 102px;
}

.mobile-device-attachment-image img {
  display: block;
  width: 112px;
  height: 86px;
  max-height: 86px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.mobile-device-attachment-image span {
  display: grid;
  gap: 4px;
}

.mobile-device-attachment-image strong,
.mobile-device-attachment-file strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.mobile-device-attachment-image small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-device-attachment-file small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-attachment-thumb span,
.mobile-attachment-file strong,
.mobile-linked-day strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.mobile-attachment-file small,
.mobile-linked-day span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-memo-current {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbfb;
}

.mobile-memo-current span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-memo-form {
  display: grid;
  gap: 8px;
}

.mobile-memo-form textarea {
  min-height: 84px;
  padding: 8px;
  resize: vertical;
}

.mobile-empty-line,
.mobile-empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mobile-empty-state {
  padding: 12px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

:root[data-theme="dark"] body.mobile-view,
:root[data-theme="dark"] body.mobile-view .workspace,
:root[data-theme="dark"] .mobile-app-top {
  background: #0b1724;
}

:root[data-theme="dark"] .mobile-app-top::after {
  background: linear-gradient(to right, transparent, #0b1724);
}

:root[data-theme="dark"] .mobile-filter,
:root[data-theme="dark"] .mobile-filter-panel,
:root[data-theme="dark"] .mobile-filter-panel summary,
:root[data-theme="dark"] .mobile-notification-card,
:root[data-theme="dark"] .mobile-notification-filter a,
:root[data-theme="dark"] .mobile-notification-filter button,
:root[data-theme="dark"] .mobile-biz-head,
:root[data-theme="dark"] .mobile-biz-kpi,
:root[data-theme="dark"] .mobile-biz-shortcut-card,
:root[data-theme="dark"] .mobile-biz-status-pill,
:root[data-theme="dark"] .mobile-issue-hero,
:root[data-theme="dark"] .mobile-issue-card,
:root[data-theme="dark"] .mobile-status-breakdown-item,
:root[data-theme="dark"] .mobile-project-card,
:root[data-theme="dark"] .mobile-project-detail-head,
:root[data-theme="dark"] .mobile-record-card,
:root[data-theme="dark"] .mobile-record-card summary,
:root[data-theme="dark"] .mobile-header-actions a,
:root[data-theme="dark"] .mobile-header-actions button,
:root[data-theme="dark"] .mobile-tabs,
:root[data-theme="dark"] .mobile-tabs a,
:root[data-theme="dark"] .mobile-filter-actions a,
:root[data-theme="dark"] .mobile-card-close,
:root[data-theme="dark"] .mobile-empty-state {
  background: #102033;
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] .mobile-filter select,
:root[data-theme="dark"] .mobile-filter input,
:root[data-theme="dark"] .mobile-memo-form textarea {
  background: #0b1724;
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] .mobile-memo-current,
:root[data-theme="dark"] .mobile-notification-target,
:root[data-theme="dark"] .mobile-project-chips span,
:root[data-theme="dark"] .mobile-project-detail-actions a,
:root[data-theme="dark"] .mobile-project-detail-head > a,
:root[data-theme="dark"] .mobile-project-section-head a,
:root[data-theme="dark"] .mobile-project-bottom-link a,
:root[data-theme="dark"] .mobile-attachment-thumb,
:root[data-theme="dark"] .mobile-attachment-file,
:root[data-theme="dark"] .mobile-device-attachment-image,
:root[data-theme="dark"] .mobile-device-attachment-file,
:root[data-theme="dark"] .mobile-linked-day {
  background: #0e1a24;
  border-color: var(--line);
}

:root[data-theme="dark"] .mobile-tabs a.active,
:root[data-theme="dark"] .mobile-notification-link.active,
:root[data-theme="dark"] .mobile-notification-filter a.active,
:root[data-theme="dark"] .mobile-notification-filter button {
  border-color: rgba(0, 124, 120, 0.5);
  background: var(--accent);
  color: #fff;
}

:root[data-theme="dark"] .mobile-issue-hero.has-issues {
  border-color: rgba(245, 101, 101, 0.36);
  background: #2a1720;
}

:root[data-theme="dark"] .mobile-issue-okmark {
  border-color: rgba(104, 211, 145, 0.45);
  background: #10251c;
  color: #9ae6b4;
}

:root[data-theme="dark"] .mobile-issue-status-label.status-red {
  background: #3a1820;
  color: #feb2b2;
}

:root[data-theme="dark"] .mobile-issue-status-label.status-orange {
  background: #352411;
  color: #fbd38d;
}

:root[data-theme="dark"] .mobile-status-breakdown-item.status-red strong {
  color: #feb2b2;
}

:root[data-theme="dark"] .mobile-status-breakdown-item.status-orange strong {
  color: #fbd38d;
}

:root[data-theme="dark"] .mobile-status-breakdown-item.status-green strong {
  color: #9ae6b4;
}

@media (max-width: 520px) {
  .mobile-app-shell {
    padding: 0 8px 24px;
  }

  .mobile-app-header h1 {
    font-size: 16px;
  }

  .mobile-attachment-thumb,
  .mobile-attachment-file,
  .mobile-linked-day {
    flex-basis: 138px;
  }

  .mobile-device-attachment-image {
    grid-template-columns: 1fr;
  }

  .mobile-device-attachment-image img {
    width: 100%;
    height: auto;
    max-height: 40vh;
  }
}

body.mobile-view .daily-attachment-preview-dialog,
body.mobile-view .device-file-dialog,
body.mobile-view .project-image-dialog {
  width: min(94vw, 560px);
  max-height: min(86dvh, 760px);
  border-radius: 12px;
}

body.mobile-view .daily-attachment-preview-dialog-body {
  min-height: 180px;
}

body.mobile-view .daily-attachment-preview-dialog-body iframe {
  height: min(72dvh, 620px);
}

@media print {
  @page {
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111827 !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a {
    color: #111827 !important;
    text-decoration: none !important;
  }

  .app-shell,
  :root[data-sidebar="collapsed"] .app-shell {
    display: block !important;
    min-height: auto !important;
  }

  .sidebar,
  .sidebar-note,
  .sidebar-toggle,
  .topbar-actions,
  .theme-toggle,
  .watermark,
  .print-actions,
  .action-strip,
  .export-actions,
  .pagination-row,
  .desktop-notification-box,
  .notification-bulk-actions,
  .notification-page-size,
  .project-list-filter,
  .backup-action-strip,
  dialog,
  button,
  input[type="button"],
  input[type="submit"],
  .ghost-button,
  .secondary,
  .danger-button {
    display: none !important;
  }

  .topbar,
  :root[data-sidebar="collapsed"] .topbar {
    position: static !important;
    inset: auto !important;
    min-height: auto !important;
    margin: 0 0 8mm !important;
    padding: 0 0 5mm !important;
    background: transparent !important;
    border-bottom: 1px solid #d0d7de !important;
    backdrop-filter: none !important;
  }

  .topbar h1 {
    font-size: 20pt;
    margin: 0;
  }

  .eyebrow {
    color: #0f766e !important;
  }

  .workspace {
    padding: 0 !important;
  }

  .panel {
    background: #fff !important;
    border: 1px solid #d7dee8 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .grid,
  .grid-2,
  .dashboard-layout,
  .research-days-workspace,
  .daily-entry-layout {
    display: block !important;
  }

  .metric-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .stats-period-panel,
  .stats-collapsible-toggle,
  .stats-collapsible-panel:not([open]) {
    display: none !important;
  }

  .stats-summary-panel {
    margin-bottom: 8px !important;
  }

  .stats-visual-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .stats-visual-panel {
    min-height: auto !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .portfolio-plot {
    height: 190px !important;
  }

  .budget-gauge-grid,
  .radar-card-grid,
  .risk-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .research-list-scroll,
  .project-table-scroll,
  .user-table-scroll,
  .notification-table-scroll,
  .audit-table-scroll,
  .activity-history-scroll,
  .calendar-month-groups,
  .calendar-person-scroll {
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    border: 0 !important;
  }

  #project-list {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    font-size: 9.5pt !important;
  }

  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  th,
  td {
    background: #fff !important;
    color: #111827 !important;
    border-color: #d7dee8 !important;
  }

  th {
    position: static !important;
  }

  .pill,
  .status-pill {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #111827 !important;
  }

  .report-page {
    margin: 0;
    padding: 18mm 14mm;
    border: 0;
    box-shadow: none;
    max-width: none;
  }
}

@media (max-width: 880px) {
  .device-evaluation-runner {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  body:not(.mobile-view) {
    background: #f6f8f9;
  }

  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  body:not(.mobile-view) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(84vw, 320px);
    min-height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-104%);
    transition: transform 0.18s ease;
    box-shadow: 18px 0 34px rgba(16, 32, 51, 0.18);
  }

  :root[data-mobile-sidebar="open"] body:not(.mobile-view) .sidebar {
    transform: translateX(0);
  }

  body:not(.mobile-view) .mobile-sidebar-backdrop {
    display: none;
  }

  :root[data-mobile-sidebar="open"] body:not(.mobile-view) .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(8, 19, 32, 0.42);
    padding: 0;
  }

  body:not(.mobile-view) .brand {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  body:not(.mobile-view) .sidebar-toggle {
    display: none;
  }

  body:not(.mobile-view) .mobile-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--accent-strong);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }

  body:not(.mobile-view) .nav {
    grid-template-columns: 1fr;
    padding: 10px 12px 14px;
  }

  body:not(.mobile-view) .nav-group-main {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  body:not(.mobile-view) .nav-subitems {
    display: grid;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .brand {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 34px;
    justify-content: stretch;
    padding: 0 12px 0 16px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .brand-logo {
    width: 100%;
    max-width: 178px;
    height: 48px;
    padding: 5px 7px;
    border-radius: 10px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .brand-logo img {
    display: block;
    width: 100%;
    object-position: left center;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .brand-logo::before {
    display: none;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .sidebar-note {
    display: block;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav {
    padding: 10px 12px 14px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-group-main {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-label,
  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-group-toggle,
  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-subitems {
    display: initial;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-group-toggle {
    display: inline-flex;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-label {
    display: inline;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-subitems {
    display: grid;
  }

  .dashboard-status-log-list {
    min-width: 620px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-button,
  body:not(.mobile-view) .nav-button {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .workspace {
    padding: 66px 12px 132px;
    background: #f6f8f9;
  }

  body:not(.mobile-view) .mobile-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 105;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(162, 181, 195, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(16, 32, 51, 0.18);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav-item {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 54px;
    padding: 5px 3px;
    border: 0;
    border-radius: 14px;
    color: #587089;
    background: transparent;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
  }

  .mobile-bottom-nav-item.active {
    color: var(--accent-strong);
    background: rgba(45, 199, 184, 0.14);
  }

  .mobile-bottom-icon {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-bottom-badge {
    position: absolute;
    top: 3px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
  }

  .pull-refresh-indicator {
    position: fixed;
    top: 2px;
    left: 50%;
    z-index: 160;
    display: block;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -120%);
    transition: opacity 0.16s ease, transform 0.16s ease;
    box-shadow: var(--shadow-soft);
  }

  .pull-refresh-indicator.visible {
    opacity: 1;
  }

  .pull-refresh-indicator.ready {
    background: var(--accent);
    color: #fff;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0 !important;
    right: 0;
    min-height: 56px;
    margin: 0;
    padding: 7px 10px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    background: rgba(246, 248, 249, 0.96);
    z-index: 100;
  }

  .topbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar-title > div {
    min-width: 0;
  }

  .mobile-menu-button,
  .topbar-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--accent-strong);
    font-size: 20px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
  }

  .topbar-more {
    display: block;
    position: relative;
    flex: 0 0 auto;
  }

  .topbar-more summary::-webkit-details-marker {
    display: none;
  }

  .topbar-actions-desktop {
    display: none;
  }

  .topbar-more:not([open]) .topbar-actions-menu {
    display: none;
  }

  .topbar-actions-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 140;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    width: min(318px, calc(100vw - 20px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .topbar-actions .theme-toggle,
  .topbar-actions .language-switch-group,
  .topbar-actions .mobile-title-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions .mobile-title-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topbar-actions .mobile-title-actions form {
    display: grid;
    width: 100%;
  }

  .topbar-actions .theme-toggle button,
  .topbar-actions .language-switch,
  .topbar-actions .mobile-title-actions button,
  .topbar-actions .mobile-title-actions .ghost-button,
  .topbar-actions .mobile-title-actions .secondary {
    flex: 1 1 0;
    width: 100%;
    min-height: 38px;
    justify-content: center;
    text-align: center;
  }

  .topbar-actions .user-chip {
    display: none;
  }

  .topbar-actions > a {
    min-height: 38px;
    justify-content: center;
    text-align: center;
  }

  .eyebrow {
    display: none;
  }

  .page-title-row {
    min-width: 0;
    gap: 6px;
  }

  .page-title-row h1 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.25;
  }

  .page-title-actions {
    width: 100%;
    gap: 6px;
  }

  .watermark {
    display: none;
  }

  .grid-2,
  .dashboard-layout,
  .dashboard-executive-layout,
  .stats-visual-grid,
  .research-days-workspace,
  .daily-entry-layout,
  .project-period-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-executive-layout,
  .stats-visual-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px;
  }

  .stats-visual-panel {
    width: 100%;
    min-width: 0 !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .risk-card-grid,
  .budget-gauge-grid,
  .radar-card-grid {
    grid-template-columns: 1fr;
  }

  .funnel-row {
    grid-template-columns: minmax(72px, max-content) minmax(0, 1fr) max-content;
    gap: 8px;
  }

  .funnel-row span,
  .funnel-row strong {
    white-space: nowrap;
  }

  .stats-period-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .stats-period-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .stats-period-tabs a {
    min-width: 0;
    justify-content: center;
    padding: 7px 6px;
    white-space: nowrap;
  }

  .stats-period-tabs a:not(.primary) {
    display: none;
  }

  .stats-period-form,
  .stats-project-filter {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .stats-project-filter .checkbox-dropdown,
  .stats-project-filter button,
  .stats-project-filter a,
  .stats-period-form label,
  .stats-period-form button {
    width: 100%;
  }

  .dashboard-status-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .dashboard-status-bucket:nth-child(n) .dashboard-status-popover {
    left: 0;
    right: auto;
  }

  .attachment-upload {
    grid-template-columns: 1fr;
  }

  .desktop-notification-box,
  .notification-list-header,
  .discussion-head,
  .discussion-title-row,
  .discussion-link-box,
  .discussion-link-box.compact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .discussion-link-box code,
  .discussion-direct-link {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .discussion-room-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .discussion-room-side {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .discussion-room-main {
    flex-wrap: wrap;
    gap: 3px 8px;
    white-space: normal;
  }

  .discussion-room-main strong,
  .discussion-room-main span {
    flex: 1 1 100%;
    min-width: 0;
  }

  .desktop-notification-box,
  .discussion-head {
    flex-wrap: wrap;
  }

  :root[data-sidebar="collapsed"] .app-shell {
    grid-template-columns: 1fr;
  }

  :root[data-sidebar="collapsed"] .topbar {
    left: auto;
  }

  .desktop-notification-actions,
  .notification-page-size {
    margin-left: 0;
    justify-content: flex-start;
  }

  .panel {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .stats-section-head,
  .panel-action-header,
  .section-title-row,
  .notification-list-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .stats-section-head h2,
  .panel-action-header h2,
  .section-title-row h2 {
    line-height: 1.25;
    word-break: keep-all;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-executive-metrics .metric strong {
    font-size: clamp(48px, 14vw, 56px);
    line-height: 0.95;
  }

  body:not(.mobile-view) .back-to-top-button {
    display: inline-flex;
  }

  .stats-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

  .stats-metric-grid .metric {
    min-width: 0;
  }

  .stats-metric-grid .metric-card-link {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .stats-metric-grid .metric-card-link h3,
  .stats-metric-grid .metric-card-link p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .stats-metric-grid .metric-card-link strong {
    grid-column: auto;
    font-size: 34px;
  }

  .metric {
    min-width: 0;
  }

  .metric h3,
  .metric p {
    overflow-wrap: anywhere;
  }

  .metric h3 {
    font-size: 12px;
  }

  .metric p {
    font-size: 11px;
  }

  .notification-table-scroll,
  .project-table-scroll,
  .audit-table-scroll,
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .notification-table-scroll::after,
  .project-table-scroll::after,
  .audit-table-scroll::after,
  .table-scroll::after {
    content: "← →";
    position: sticky;
    left: 8px;
    bottom: 4px;
    display: inline-block;
    margin: 4px 0 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
  }

  .notification-summary-panel {
    overflow: visible;
  }

  .notification-summary-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .notification-summary-table tbody,
  .notification-summary-table tr,
  .notification-summary-table td {
    display: block;
    width: 100%;
  }

  .notification-summary-table tr:has(th) {
    display: none;
  }

  .notification-summary-table tr {
    padding: 10px;
    margin: 8px 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .notification-summary-table td {
    border: 0;
    padding: 3px 0;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .notification-summary-table td:nth-child(1) {
    width: auto;
    text-align: left;
  }

  .notification-summary-table td:nth-child(2) {
    width: auto;
    font-weight: 900;
  }

  .notification-summary-table td:nth-child(4) {
    width: auto;
    color: var(--muted);
    font-size: 12px;
  }

  .notification-table {
    display: block;
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  .notification-table thead,
  .notification-table th {
    display: none;
  }

  .notification-table tbody,
  .notification-table tr,
  .notification-table td {
    display: block;
    width: 100%;
    min-width: 0;
    position: static;
    left: auto;
  }

  .notification-table tr {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .notification-table td {
    border: 0;
    padding: 4px 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    background: transparent !important;
    text-align: left !important;
  }

  .notification-table td:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .notification-table td:nth-child(1)::before {
    content: "선택";
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  :lang(en) .notification-table td:nth-child(1)::before {
    content: "Select";
  }

  .notification-table td:nth-child(4) {
    width: 100%;
  }

  .notification-table td:nth-child(5) {
    font-weight: 900;
  }

  .notification-table td:nth-child(7),
  .notification-table td:nth-child(8) {
    width: 100%;
  }

  .notification-time-stack {
    white-space: normal;
  }

  .project-table {
    display: block;
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  .project-table thead,
  .project-table th {
    display: none;
  }

  .project-table tbody,
  .project-table tr,
  .project-table td {
    display: block;
    width: 100% !important;
    min-width: 0;
    position: static;
    left: auto;
  }

  .project-table tr {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .project-table td {
    border: 0;
    padding: 5px 0;
    background: transparent !important;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left !important;
  }

  .project-table td:first-child {
    width: 54px !important;
    padding-bottom: 2px;
  }

  .project-table td:nth-child(2)::before,
  .project-table td:nth-child(3)::before,
  .project-table td:nth-child(6)::before,
  .project-table td:nth-child(7)::before,
  .project-table td:nth-child(8)::before,
  .project-table td:nth-child(9)::before,
  .project-table td:nth-child(10)::before,
  .project-table td:nth-child(11)::before,
  .project-table td:nth-child(15)::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .project-table td:nth-child(2)::before {
    content: "코드";
  }

  .project-table td:nth-child(3)::before {
    content: "프로젝트명";
  }

  .project-table td:nth-child(6)::before {
    content: "생성자";
  }

  .project-table td:nth-child(7)::before {
    content: "프로젝트리더";
  }

  .project-table td:nth-child(8)::before {
    content: "팀리더";
  }

  .project-table td:nth-child(9)::before {
    content: "기간";
  }

  .project-table td:nth-child(10)::before {
    content: "일지 Status";
  }

  .project-table td:nth-child(11)::before {
    content: "상태";
  }

  .project-table td:nth-child(15)::before {
    content: "관리";
  }

  :lang(en) .project-table td:nth-child(2)::before {
    content: "Code";
  }

  :lang(en) .project-table td:nth-child(3)::before {
    content: "Project";
  }

  :lang(en) .project-table td:nth-child(6)::before {
    content: "Creator";
  }

  :lang(en) .project-table td:nth-child(7)::before {
    content: "Project Lead";
  }

  :lang(en) .project-table td:nth-child(8)::before {
    content: "Team Leader";
  }

  :lang(en) .project-table td:nth-child(9)::before {
    content: "Period";
  }

  :lang(en) .project-table td:nth-child(10)::before {
    content: "Daily Status";
  }

  :lang(en) .project-table td:nth-child(11)::before {
    content: "Status";
  }

  :lang(en) .project-table td:nth-child(15)::before {
    content: "Actions";
  }

  .project-table td.project-part-leader-cell,
  .project-table td.project-current-leader-cell,
  .project-table td.project-creator-cell {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .project-mobile-timeline {
    display: grid;
    gap: 5px;
    margin-top: 6px;
  }

  .project-mobile-timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .project-mobile-timeline-meta strong {
    color: var(--ink);
    font-size: 14px;
  }

  .project-mobile-progress {
    height: 7px;
  }

  .audit-table {
    display: block;
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }

  .audit-table tbody,
  .audit-table tr,
  .audit-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .audit-table tr:has(th) {
    display: none;
  }

  .audit-table tr {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .audit-table td {
    border: 0;
    padding: 4px 0;
    background: transparent;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }

  .ops-check-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .ops-check-table tbody,
  .ops-check-table tr,
  .ops-check-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .ops-check-table tr:has(th) {
    display: none;
  }

  .ops-check-table tr {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .ops-check-table td {
    border: 0;
    padding: 5px 0;
    background: transparent !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .ops-check-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .ops-check-table td:nth-child(1)::before { content: "항목"; }
  .ops-check-table td:nth-child(2)::before { content: "상태"; }
  .ops-check-table td:nth-child(3)::before { content: "현재 값"; }
  .ops-check-table td:nth-child(4)::before { content: "조치 기준"; }

  :lang(en) .ops-check-table td:nth-child(1)::before { content: "Item"; }
  :lang(en) .ops-check-table td:nth-child(2)::before { content: "Status"; }
  :lang(en) .ops-check-table td:nth-child(3)::before { content: "Current Value"; }
  :lang(en) .ops-check-table td:nth-child(4)::before { content: "Action Standard"; }

  .research-day-project-filter {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .research-day-project-filter .checkbox-dropdown,
  .research-day-project-filter button {
    width: 100%;
    min-width: 0;
  }

  .research-day-project-filter button {
    white-space: nowrap;
  }

  .research-list-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .research-list-actions > *,
  .research-day-list-filter,
  .research-day-list-filter > * {
    min-width: 0;
    width: 100%;
  }

  .research-day-list-filter {
    display: grid;
    grid-template-columns: 1fr;
    white-space: normal;
  }

  .research-day-list-filter label {
    white-space: normal;
  }

  .research-day-list-filter input[type="date"] {
    width: 100%;
  }

  .research-list-actions button,
  .research-list-actions .ghost-button,
  .research-list-actions .secondary {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .user-create-summary {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 6px 10px;
  }

  .user-create-summary h2 {
    min-width: max-content;
    white-space: nowrap;
    word-break: keep-all;
    font-size: 18px;
    line-height: 1.25;
  }

  .user-create-summary p {
    grid-column: 1 / -1;
  }

  .permission-approval-summary {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 6px 10px;
  }

  .permission-approval-summary h2 {
    min-width: max-content;
    white-space: nowrap;
    word-break: keep-all;
    font-size: 18px;
    line-height: 1.25;
  }

  .permission-approval-summary p,
  .permission-approval-summary .permission-approval-status {
    grid-column: 1 / -1;
  }

  .permission-requests-table {
    min-width: 0;
    table-layout: fixed;
  }

  .permission-requests-table th:first-child,
  .permission-requests-table td:first-child {
    width: 124px;
    min-width: 124px;
    white-space: normal;
    word-break: keep-all;
  }

  .permission-requests-table a {
    white-space: normal;
    word-break: keep-all;
  }

  .manual-quickstart-table th:first-child,
  .manual-quickstart-table td:first-child {
    width: 48px;
    min-width: 48px;
  }

  .manual-quickstart-table th:nth-child(2),
  .manual-quickstart-table td:nth-child(2) {
    width: 148px;
    min-width: 148px;
    white-space: normal;
    word-break: keep-all;
  }

  .manual-quickstart-table td:nth-child(2) a {
    display: inline-block;
    white-space: normal;
    word-break: keep-all;
  }

  .nav-label {
    white-space: nowrap;
  }

  body:not(.mobile-view) .nav-label {
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    word-break: keep-all;
  }

  .backup-status-table {
    table-layout: auto !important;
  }

  .backup-status-table th:first-child,
  .backup-status-table td:first-child {
    width: 148px !important;
    min-width: 148px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .backup-status-table td:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .compact-status-panel {
    display: grid;
    align-items: stretch;
  }

  .compact-status-panel h2 {
    white-space: normal;
  }

  .compact-status-panel .daily-status-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-status-panel .daily-status-summary-card {
    grid-template-columns: auto auto minmax(max-content, 1fr);
  }

  .compact-status-panel .daily-status-summary-card span:last-child {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .page-title-actions {
    display: none;
  }

  .device-evaluation-material-strip {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .device-evaluation-material-input {
    min-width: 0;
  }

  .device-evaluation-row-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

:root[data-theme="dark"] body:not(.mobile-view),
  :root[data-theme="dark"] body:not(.mobile-view) .workspace,
  :root[data-theme="dark"] body:not(.mobile-view) .topbar {
    background: #0b1724;
  }

  :root[data-theme="dark"] body:not(.mobile-view) .topbar-actions,
  :root[data-theme="dark"] body:not(.mobile-view) .mobile-menu-button,
  :root[data-theme="dark"] body:not(.mobile-view) .topbar-more-button,
  :root[data-theme="dark"] body:not(.mobile-view) .mobile-sidebar-close,
  :root[data-theme="dark"] body:not(.mobile-view) .mobile-bottom-nav,
  :root[data-theme="dark"] body:not(.mobile-view) .calendar-mobile-project-card,
  :root[data-theme="dark"] body:not(.mobile-view) .pull-refresh-indicator {
    background: var(--panel);
    border-color: var(--line);
  }

  :root[data-theme="dark"] body:not(.mobile-view) .mobile-bottom-nav-item.active {
    background: rgba(45, 199, 184, 0.18);
  }

  :root[data-theme="dark"] body:not(.mobile-view) .calendar-mobile-progress {
    background: #1f3446;
  }

  .project-create-taxonomy-row,
  .project-create-code-row {
    grid-template-columns: 1fr;
  }

  .project-icon-upload-line,
  .member-search-row {
    grid-template-columns: 1fr;
  }

  .project-member-picker,
  .project-member-picker-grid,
  .project-member-search-group {
    grid-template-columns: 1fr;
  }

  .project-member-picker h3,
  .project-member-search-group > label,
  .selected-member-chips,
  .member-picker-list {
    grid-column: auto;
  }

  .project-plan-text-grid {
    grid-template-columns: 1fr;
  }

  .user-create-actions {
    justify-content: flex-start;
  }

  .project-attachment-upload {
    grid-template-columns: max-content minmax(130px, 1fr);
  }

  .project-attachment-upload input[name="projectAttachmentNote"] {
    grid-column: 1 / -1;
  }

.deleted-records-menu {
    position: fixed;
    inset: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
  }

  .measurement-row {
    grid-template-columns: 1fr 1fr;
  }
}

.stats-summary-collapsible {
  padding: 0;
  overflow: hidden;
}

.stats-summary-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.stats-summary-collapsible summary::-webkit-details-marker {
  display: none;
}

.stats-summary-collapsible summary span {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  word-break: keep-all;
}

.stats-summary-collapsible summary small {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6fbfb;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.stats-summary-collapsible ul {
  margin: 0;
  padding: 0 16px 14px 36px;
}

.discussion-room-card {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 880px) {
  .page-updated,
  .mobile-last-updated {
    display: none !important;
  }

  body.mobile-view .mobile-app-shell {
    padding-bottom: 28px;
  }

  .mobile-native-bottom-nav {
    display: none !important;
  }

  body:not(.mobile-view) .mobile-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mobile-bottom-nav-item {
    padding-inline: 2px;
    font-size: 10px;
  }

  .desktop-notification-box,
  .notification-page-size {
    display: none !important;
  }

  .notification-bulk-actions button:nth-child(1),
  .notification-bulk-actions button:nth-child(3),
  .notification-bulk-actions button:nth-child(4) {
    display: none;
  }

  .notification-bulk-actions button:nth-child(2) {
    width: 100%;
    min-height: 44px;
  }

  .stats-summary-collapsible summary {
    min-height: 44px;
    padding: 12px;
  }

  .stats-summary-collapsible summary span {
    font-size: 16px;
  }

  .stats-summary-collapsible summary small {
    font-size: 10px;
  }

  .stats-period-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-list-filter,
  #project-list .project-list-filter {
    grid-template-columns: 1fr;
  }

  .project-list-filter > label,
  .project-list-filter select,
  .project-list-filter button,
  .project-list-filter a,
  .project-list-category-dropdown,
  .project-list-category-dropdown summary {
    width: 100%;
    min-width: 0;
  }

  .mobile-project-chips {
    display: none;
  }

  .discussion-head {
    align-items: stretch;
  }

  .discussion-head > .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .discussion-link-box code {
    display: none;
  }

  .discussion-link-box.compact {
    grid-template-columns: 1fr;
  }

  .discussion-room-card {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 76px;
  }

  .discussion-room-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .auth-shell {
    min-height: 100dvh;
    padding: 18px 12px;
    place-items: start center;
  }

  .auth-card {
    width: 100%;
  }

  .auth-brand {
    margin-bottom: 10px;
  }

  .auth-brand-logo {
    max-width: 208px;
    height: 58px;
    margin: 0 auto;
    padding: 5px 7px;
  }

  .auth-language {
    justify-content: center;
    margin: 0 0 10px;
  }

  .auth-card .panel {
    padding: 14px 12px;
  }

  .auth-panel input,
  .auth-panel button[type="submit"] {
    min-height: 46px;
  }

  .auth-panel button[type="submit"] {
    width: 100%;
  }

  .login-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .login-options .check-row {
    min-height: 44px;
  }

  .login-options .check-row input {
    width: 20px;
    height: 20px;
  }

  .login-save-help {
    font-size: 12px;
    line-height: 1.45;
  }
}

:root[data-theme="dark"] .stats-summary-collapsible summary small {
  background: #0e1a24;
  border-color: var(--line);
}

:root[data-theme="dark"] body.mobile-view .mobile-native-bottom-nav {
  background: var(--panel);
  border-color: var(--line);
}

:root[data-theme="dark"] body.mobile-view .mobile-native-bottom-nav a.active {
  background: rgba(45, 199, 184, 0.18);
}

.mobile-filter-drawer {
  width: 100%;
}

.mobile-filter-drawer > summary {
  display: none;
}

.empty-state-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: center;
}

.empty-state-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(45, 199, 184, 0.14);
  color: var(--accent-strong);
  font-weight: 900;
}

.empty-state-card p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.notification-search-field {
  display: grid;
  gap: 4px;
  width: clamp(180px, 22vw, 260px);
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.notification-search-field input {
  min-height: 36px;
}

.discussion-health-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discussion-health {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.discussion-health.connected {
  border-color: rgba(16, 185, 129, 0.38);
  background: #ecfdf5;
  color: #047857;
}

.discussion-health.disconnected {
  border-color: rgba(239, 68, 68, 0.38);
  background: #fef2f2;
  color: #b91c1c;
}

.network-offline-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 220;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.34);
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

@media (max-width: 880px) {
  .topbar {
    padding-top: calc(7px + env(safe-area-inset-top));
  }

  body.mobile-view .mobile-app-top {
    padding-top: calc(8px + env(safe-area-inset-top));
  }

  body:not(.mobile-view) .mobile-menu-button {
    display: none;
  }

  .mobile-filter-drawer {
    display: block;
    margin: 4px 0 10px;
  }

  .mobile-filter-drawer > summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--accent-strong);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
  }

  .mobile-filter-drawer > summary::-webkit-details-marker {
    display: none;
  }

  .research-list-filter-body {
    display: grid;
    gap: 8px;
    padding: 10px 0 0;
  }

  .research-list-approval-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 6px;
    -webkit-overflow-scrolling: touch;
  }

  .research-list-approval-filter .pill,
  .research-list-approval-filter > span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .stats-period-tabs {
    gap: 8px;
  }

  .discussion-health-row {
    width: 100%;
  }

  .discussion-health-row .ghost-button {
    min-height: 34px;
  }
}

@media (max-width: 620px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .auth-card form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .research-list-panel .research-day-table td:first-child {
    padding-right: 0;
  }

  .research-list-panel .research-day-table td:nth-child(2) {
    display: block;
    margin-top: 8px;
  }

  .research-list-panel .research-day-table td:nth-child(3) {
    position: static;
    width: 100%;
    margin-top: 8px;
    text-align: left;
  }

  .research-list-panel .research-day-table td:nth-child(4) {
    margin-top: 8px;
  }

  .research-list-panel .record-card {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .research-list-panel .record-card > span.muted,
  .research-list-panel .record-card .measurement-table,
  .research-list-panel .record-card .research-feedback {
    display: none;
  }

  .research-list-panel .status-attachment-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .research-list-panel .attachment-line {
    display: none;
  }

  .research-list-panel .status-pill-line {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  #device-evaluation-results,
  #project-list {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  #device-evaluation-results .table-scroll,
  #project-list .project-table-scroll {
    overflow: visible;
    min-height: 0;
  }

  .device-evaluation-results-table,
  .device-evaluation-results-table tbody,
  .device-evaluation-results-table tr,
  .device-evaluation-results-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .device-evaluation-results-table thead {
    display: none;
  }

  .device-evaluation-results-table tr {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .device-evaluation-results-table td {
    border: 0;
    padding: 4px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .device-evaluation-results-table td:nth-child(1) {
    display: none;
  }

  .device-evaluation-results-table td:nth-child(2)::before,
  .device-evaluation-results-table td:nth-child(4)::before,
  .device-evaluation-results-table td:nth-child(5)::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .device-evaluation-results-table td:nth-child(2)::before {
    content: "날짜";
  }

  .device-evaluation-results-table td:nth-child(4)::before {
    content: "평가재료";
  }

  .device-evaluation-results-table td:nth-child(5)::before {
    content: "작성자";
  }

  :lang(en) .device-evaluation-results-table td:nth-child(2)::before {
    content: "Date";
  }

  :lang(en) .device-evaluation-results-table td:nth-child(4)::before {
    content: "Materials";
  }

  :lang(en) .device-evaluation-results-table td:nth-child(5)::before {
    content: "Author";
  }

  .device-evaluation-results-table td:nth-child(3) strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
  }

  .device-evaluation-results-table td:nth-child(6) {
    margin-top: 8px;
  }

  .device-evaluation-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .device-evaluation-row-actions > * {
    width: 100%;
    min-width: 0;
  }

  .device-evaluation-empty-row td {
    display: block !important;
  }

  .project-table tr.project-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: start;
  }

  .project-table tr.project-row td {
    display: none !important;
    width: auto !important;
    padding: 0;
  }

  .project-table tr.project-row td:nth-child(2),
  .project-table tr.project-row td:nth-child(3),
  .project-table tr.project-row td:nth-child(11) {
    display: block !important;
  }

  .project-table tr.project-row td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .project-table tr.project-row td:nth-child(3) {
    grid-column: 1 / 2;
  }

  .project-table tr.project-row td:nth-child(11) {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .project-table tr.project-row td::before {
    display: none !important;
  }

  .project-code-cell {
    display: inline-flex;
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .project-detail-toggle {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
  }

  .project-list-filter-drawer {
    flex: 1 1 100%;
  }

  .project-list-filter {
    margin-top: 8px;
  }

  .notification-search-field {
    width: 100%;
    min-width: 0;
  }

  .network-offline-banner {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

:root[data-theme="dark"] .empty-state-card,
:root[data-theme="dark"] .mobile-filter-drawer > summary {
  background: var(--panel);
  border-color: var(--line);
}

:root[data-theme="dark"] .discussion-health.connected {
  background: rgba(16, 185, 129, 0.16);
}

:root[data-theme="dark"] .discussion-health.disconnected,
:root[data-theme="dark"] .network-offline-banner {
  background: rgba(239, 68, 68, 0.16);
}

.stats-period-drawer {
  position: static;
  display: block;
  padding: 0;
  overflow: visible;
}

.stats-period-drawer > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--accent-strong);
  font-weight: 900;
}

.stats-period-drawer > summary::-webkit-details-marker {
  display: none;
}

.stats-period-drawer > summary small {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.stats-period-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

#project-list .project-list-title-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#project-list .project-list-title-row h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

#project-list .research-list-actions {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

#project-list .research-list-actions > * {
  width: auto;
  min-width: 0;
}

#project-list .research-list-actions button,
#project-list .research-list-actions .ghost-button,
#project-list .research-list-actions .secondary,
#project-list .project-list-filter-drawer > summary {
  min-height: 34px;
  white-space: nowrap;
}

#project-list .project-list-filter-drawer {
  position: relative;
  flex: 0 0 auto;
  width: auto;
}

#project-list .project-list-filter-drawer > summary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
}

#project-list .project-list-filter-drawer > summary::-webkit-details-marker {
  display: none;
}

#project-list .project-list-filter-drawer .project-list-filter {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  width: min(420px, calc(100vw - 24px));
  min-width: 280px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#project-list .project-list-filter-drawer .project-list-filter > label {
  margin: 0;
}

#project-list .project-list-filter-drawer .project-list-filter button,
#project-list .project-list-filter-drawer .project-list-filter a {
  width: 100%;
  justify-content: center;
}

@media (max-width: 880px) {
  .stats-period-drawer {
    display: block;
    padding: 0;
  }

  .stats-period-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px 12px;
  }
}

@media (max-width: 620px) {
  #project-list .project-list-title-row {
    flex-direction: row;
    align-items: center;
  }

  #project-list .research-list-actions {
    width: auto;
    gap: 6px;
  }

  #project-list .project-list-filter-drawer {
    flex: 0 0 auto;
  }

  #project-list .project-list-filter-drawer .project-list-filter {
    width: min(360px, calc(100vw - 24px));
    min-width: 0;
  }
}

:root[data-theme="dark"] .stats-period-drawer > summary small,
:root[data-theme="dark"] #project-list .project-list-filter-drawer > summary,
:root[data-theme="dark"] #project-list .project-list-filter-drawer .project-list-filter {
  background: var(--panel);
  border-color: var(--line);
}

.discussion-health-help {
  margin: -6px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.mobile-filter-hint {
  margin: -4px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.mobile-empty-state strong,
.mobile-empty-state span {
  display: block;
}

.mobile-empty-state strong {
  color: var(--ink);
  font-size: 14px;
}

.mobile-empty-state span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mobile-project-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mobile-project-progress-meta strong {
  color: var(--accent-strong);
  font-size: 13px;
}

@media (max-width: 880px) {
  .dashboard-executive-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-executive-metrics .metric {
    min-height: 112px;
  }

  .dashboard-executive-metrics .metric-card-link strong {
    font-size: 46px;
    line-height: 0.95;
  }

  .dashboard-executive-metrics .metric-card-link p {
    font-size: 12px;
    line-height: 1.35;
  }

  .dashboard-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-status-bucket summary {
    min-height: 76px;
  }

  .dashboard-status-count {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .stats-period-tabs a,
  .stats-period-form input,
  .stats-period-form select,
  .stats-period-form button,
  .stats-project-filter select,
  .stats-project-filter button,
  .stats-project-filter a,
  .statistics-project-dropdown > summary {
    min-height: 44px;
  }

  .stats-period-tabs a {
    justify-content: center;
    padding: 9px 10px;
  }

  .stats-summary-collapsible:not([open]) {
    margin-bottom: 8px;
  }
}

@media (max-width: 620px) {
  body:not(.mobile-view) .research-list-scroll {
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--line-soft);
  }

  body:not(.mobile-view) .research-list-panel .research-day-table,
  body:not(.mobile-view) .research-list-panel .research-day-table tbody,
  body:not(.mobile-view) .research-list-panel .research-day-table tr,
  body:not(.mobile-view) .research-list-panel .research-day-table td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  body:not(.mobile-view) .research-list-panel .research-day-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  body:not(.mobile-view) .research-list-panel .research-day-table-head {
    display: none;
  }

  body:not(.mobile-view) .research-list-panel .research-day-table tr:not(.research-day-table-head) {
    position: relative;
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  body:not(.mobile-view) .research-list-panel .research-day-table td {
    border: 0;
    padding: 4px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body:not(.mobile-view) .research-list-panel .research-day-table td:first-child {
    padding-right: 0;
  }

  body:not(.mobile-view) .research-list-panel .research-day-table td:nth-child(2),
  body:not(.mobile-view) .research-list-panel .research-day-table td:last-child {
    display: none !important;
  }

  body:not(.mobile-view) .research-list-panel .research-day-table td:nth-child(3) {
    position: static;
    width: 100%;
    margin-top: 8px;
    text-align: left;
  }

  body:not(.mobile-view) .research-list-panel .status-attachment-cell {
    display: grid;
    gap: 6px;
  }

  body:not(.mobile-view) .research-list-panel .record-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body:not(.mobile-view) .research-list-panel .record-action-group > *,
  body:not(.mobile-view) .research-list-panel .record-action-group button,
  body:not(.mobile-view) .research-list-panel .record-action-group .ghost-button,
  body:not(.mobile-view) .research-list-panel .record-action-group .secondary {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
  }

  .research-day-list-filter input[type="date"],
  .research-day-list-filter button,
  .research-day-project-filter button,
  .research-day-project-dropdown > summary,
  .research-list-actions button,
  .research-list-actions .ghost-button,
  .research-list-actions .secondary {
    min-height: 44px;
  }

  body:not(.mobile-view) .notification-table-scroll {
    overflow: visible;
  }

  body:not(.mobile-view) .notification-table tr {
    padding: 12px;
  }

  body:not(.mobile-view) .notification-table td:nth-child(2),
  body:not(.mobile-view) .notification-table td:nth-child(3),
  body:not(.mobile-view) .notification-table td:nth-child(4) {
    display: inline-flex;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
  }

  body:not(.mobile-view) .notification-table td:nth-child(5) {
    padding-top: 8px;
    font-size: 15px;
  }

  body:not(.mobile-view) .notification-table td:nth-child(6) {
    padding-top: 6px;
  }

  .mobile-header-actions a,
  .mobile-header-actions button,
  .mobile-filter select,
  .mobile-filter input,
  .mobile-filter-actions button,
  .mobile-filter-actions a,
  .mobile-notification-filter a,
  .mobile-notification-filter button,
  .mobile-memo-form button {
    min-height: 40px;
  }

  .mobile-filter-panel summary {
    min-height: 40px;
  }

  .mobile-project-card {
    padding: 12px;
  }

  .mobile-project-deadline strong {
    font-size: 16px;
  }

  .mobile-device-attachment-image,
  .mobile-device-attachment-file,
  .mobile-attachment-thumb,
  .mobile-attachment-file {
    min-height: 104px;
  }
}

:root[data-theme="dark"] .mobile-filter-hint {
  background: var(--panel);
  border-color: var(--line);
}

:root[data-theme="light"] body,
:root[data-theme="light"] body:not(.mobile-view),
:root[data-theme="light"] body:not(.mobile-view) .workspace {
  background: var(--bg);
  color: var(--ink);
}

:root[data-theme="light"] body:not(.mobile-view) .topbar,
:root[data-theme="light"] body:not(.mobile-view) .panel,
:root[data-theme="light"] body:not(.mobile-view) .metric,
:root[data-theme="light"] body:not(.mobile-view) .dashboard-status-bucket summary,
:root[data-theme="light"] body:not(.mobile-view) .dashboard-status-popover,
:root[data-theme="light"] body:not(.mobile-view) .dashboard-status-project,
:root[data-theme="light"] body:not(.mobile-view) .dashboard-status-log,
:root[data-theme="light"] body:not(.mobile-view) .notification-table-scroll,
:root[data-theme="light"] body:not(.mobile-view) .activity-history-scroll,
:root[data-theme="light"] body:not(.mobile-view) .discussion-link-box,
:root[data-theme="light"] body:not(.mobile-view) .discussion-room-card {
  background: var(--panel);
  color: var(--ink);
}

.file-download-button {
  width: 36px;
  min-width: 36px;
  min-height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.project-icon-empty::before,
.project-image-empty::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e5edf3, #f8fbfd);
}

.funnel-row i {
  min-width: 0;
}

.funnel-row i[style^="width:0"] {
  border: 1px dashed var(--line);
  background: transparent;
}

.mobile-project-owner {
  color: var(--ink) !important;
  font-size: 12px;
  font-weight: 900 !important;
}

.empty-table-cell {
  text-align: center;
}

.empty-table-cell strong,
.empty-table-cell p {
  display: block;
  margin: 4px 0;
}

@media (max-width: 1100px) {
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }

  .stats-progress-row-head {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .stats-progress-row-head span:last-child {
    white-space: normal;
  }

  .device-evaluation-material-strip {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: visible;
  }
}

@media (max-width: 760px) {
  .device-evaluation-material-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dashboard-executive-metrics .metric,
  .dashboard-executive-metrics .metric-card-link,
  .dashboard-status-bucket summary,
  .dashboard-status-project,
  .dashboard-status-log {
    min-height: 44px;
  }

  .dashboard-executive-metrics .metric-card-link p,
  .dashboard-executive-metrics .metric p {
    font-size: 13px;
    line-height: 1.35;
  }

  .research-day-list-filter input[type="date"],
  .research-day-list-filter button,
  .research-day-project-filter button,
  .research-day-project-dropdown > summary {
    min-height: 44px !important;
  }

  .research-list-scroll {
    max-height: none !important;
    overflow: visible !important;
    border-top: 0;
  }

  .research-list-panel .research-day-table,
  .research-list-panel .research-day-table tbody,
  .research-list-panel .research-day-table tr,
  .research-list-panel .research-day-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .research-list-panel .research-day-table {
    min-width: 0 !important;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

  .research-list-panel .research-day-table thead,
  .research-list-panel .research-day-table th,
  .research-list-panel .research-day-table-head {
    display: none !important;
  }

  .research-list-panel .research-day-table tr:not(.research-day-table-head) {
    position: relative !important;
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .research-list-panel .research-day-table td {
    position: static !important;
    border: 0;
    padding: 4px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: left !important;
  }

  .research-list-panel .research-day-table td:nth-child(2),
  .research-list-panel .research-day-table td:last-child {
    display: none !important;
  }

  .research-list-panel .research-day-table td:nth-child(3) {
    margin-top: 8px;
  }

  .research-list-panel .status-attachment-cell,
  .research-list-panel .record-action-group {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .research-list-panel .record-action-group > *,
  .research-list-panel .record-action-group button,
  .research-list-panel .record-action-group .ghost-button,
  .research-list-panel .record-action-group .secondary {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .notification-table-scroll {
    max-height: none !important;
    overflow: visible !important;
    border: 0;
  }

  .notification-table,
  .notification-table tbody,
  .notification-table tr,
  .notification-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .notification-table {
    min-width: 0 !important;
    table-layout: auto;
  }

  .notification-table thead,
  .notification-table th {
    display: none !important;
  }

  .notification-table tr {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .notification-table td {
    position: static !important;
    left: auto !important;
    border: 0;
    padding: 4px 0 !important;
    background: transparent !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: left !important;
  }

  .notification-table td:nth-child(1) {
    display: none !important;
  }

  .notification-table td[colspan] {
    display: block !important;
    text-align: center !important;
  }

  .notification-table td:nth-child(1)::before {
    display: none !important;
    content: "";
  }

  .notification-table td:nth-child(2),
  .notification-table td:nth-child(3),
  .notification-table td:nth-child(4) {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 6px 4px 0;
    align-items: center;
    vertical-align: middle;
  }

  .notification-table td:nth-child(5) {
    padding-top: 8px !important;
    font-size: 15px;
    font-weight: 900;
  }

  .notification-table td:nth-child(8) .ghost-button,
  .notification-table td:nth-child(8) .tiny-button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .stats-budget-table,
  .stats-budget-table tbody,
  .stats-budget-table tr,
  .stats-budget-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .stats-budget-table {
    min-width: 0 !important;
    table-layout: auto;
  }

  .stats-budget-table tr:first-child,
  .stats-budget-table th {
    display: none !important;
  }

  .stats-budget-table tr {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--panel);
  }

  .stats-budget-table td {
    border: 0;
    padding: 4px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .stats-budget-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .stats-budget-table td:nth-child(1)::before { content: "프로젝트"; }
  .stats-budget-table td:nth-child(2)::before { content: "종료일"; }
  .stats-budget-table td:nth-child(3)::before { content: "진행률"; }
  .stats-budget-table td:nth-child(4)::before { content: "예상 비용"; }
  .stats-budget-table td:nth-child(5)::before { content: "누적 사용"; }
  .stats-budget-table td:nth-child(6)::before { content: "소진율"; }
  .stats-budget-table td:nth-child(7)::before { content: "상태"; }

  :lang(en) .stats-budget-table td:nth-child(1)::before { content: "Project"; }
  :lang(en) .stats-budget-table td:nth-child(2)::before { content: "End Date"; }
  :lang(en) .stats-budget-table td:nth-child(3)::before { content: "Progress"; }
  :lang(en) .stats-budget-table td:nth-child(4)::before { content: "Budget"; }
  :lang(en) .stats-budget-table td:nth-child(5)::before { content: "Spent"; }
  :lang(en) .stats-budget-table td:nth-child(6)::before { content: "Burn Rate"; }
  :lang(en) .stats-budget-table td:nth-child(7)::before { content: "Status"; }
}

@media (max-width: 520px) {
  .device-evaluation-material-strip {
    grid-template-columns: 1fr;
  }
}

/* v2 desktop shell: mapped from the 2026-06-15 LLS demo HTML.
   Keep server-rendered functionality, but make the shared chrome feel like the new product shell. */
:root {
  --sidebar-width: 264px;
  --sidebar-width-collapsed: 50px;
}

body:not(.mobile-view) {
  min-height: 100vh;
  overflow: hidden;
  font-size: 13.5px;
}

body:not(.mobile-view) .app-shell {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

body:not(.mobile-view) .sidebar {
  position: relative;
  top: auto;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  height: 100vh;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: none;
  transition: none;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .sidebar {
  width: var(--sidebar-width-collapsed);
  min-width: var(--sidebar-width-collapsed);
  max-width: var(--sidebar-width-collapsed);
}

body:not(.mobile-view) .brand {
  min-height: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

body:not(.mobile-view) .brand-logo {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.mobile-view) .brand-logo img {
  object-fit: contain;
  object-position: left center;
}

:root[data-theme="dark"] body:not(.mobile-view) .brand-logo {
  padding: 0;
  border-radius: 7px;
  background: #fff;
}

:root[data-theme="dark"][data-sidebar="collapsed"] body:not(.mobile-view) .brand-logo {
  padding: 0;
  border-radius: 50%;
}

body:not(.mobile-view) .sidebar-toggle {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 14px;
}

body:not(.mobile-view) .nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 6px;
  overflow-x: hidden;
  overflow-y: auto;
}

body:not(.mobile-view) .nav-group {
  gap: 1px;
}

body:not(.mobile-view) .nav-group-main {
  display: flex;
  align-items: center;
  gap: 0;
}

body:not(.mobile-view) .nav-button {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 7px;
  gap: 8px;
  color: #39516a;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}

body:not(.mobile-view) .nav-button:hover {
  background: #f1f7fa;
}

body:not(.mobile-view) .nav-button.active {
  background: var(--accent-soft);
  border-color: #bfe4df;
  color: var(--accent-strong);
  font-weight: 700;
}

body:not(.mobile-view) .nav-ico {
  width: 20px;
  flex: 0 0 20px;
  font-size: 14px;
}

body:not(.mobile-view) .nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.mobile-view) .nav-group-toggle {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 13px;
}

body:not(.mobile-view) .nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 4px 4px 32px;
}

body:not(.mobile-view) .nav-subitems a {
  min-height: 0;
  padding: 5px 9px;
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
}

body:not(.mobile-view) .sidebar-note {
  display: none;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .brand {
  display: flex;
  justify-content: center;
  padding: 0;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .brand-logo {
  display: none;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .sidebar-toggle {
  position: static;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .nav {
  padding: 8px 6px;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-button {
  min-height: 36px;
  justify-content: center;
  padding: 0;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-ico {
  flex-basis: 20px;
}

body:not(.mobile-view) .workspace {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--bg);
}

body:not(.mobile-view) .workspace-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 72px;
  background: var(--bg);
}

body:not(.mobile-view) .topbar {
  position: relative;
  top: 0;
  left: auto;
  right: auto;
  z-index: 80;
  flex: 0 0 56px;
  min-height: 56px;
  height: 56px;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  backdrop-filter: none;
  box-shadow: none;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .topbar {
  left: auto;
}

body:not(.mobile-view) .topbar-title {
  flex: 1 1 auto;
}

body:not(.mobile-view) .topbar-title > div {
  min-width: 0;
}

body:not(.mobile-view) .page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body:not(.mobile-view) .page-title-row h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.mobile-view) .page-title-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body:not(.mobile-view) .eyebrow {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

body:not(.mobile-view) .topbar h1 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

body:not(.mobile-view) .page-updated {
  display: none;
}

body:not(.mobile-view) .topbar-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

body:not(.mobile-view) .topbar-actions-desktop {
  display: flex;
}

body:not(.mobile-view) .topbar-more {
  display: none;
}

body:not(.mobile-view) .theme-toggle,
body:not(.mobile-view) .language-switch-group {
  padding: 0;
  gap: 4px;
  border: 0;
  background: transparent;
}

body:not(.mobile-view) .theme-toggle button,
body:not(.mobile-view) .language-switch,
body:not(.mobile-view) .ghost-button,
body:not(.mobile-view) .secondary,
body:not(.mobile-view) button {
  border-radius: 6px;
}

body:not(.mobile-view) .theme-toggle button,
body:not(.mobile-view) .language-switch,
body:not(.mobile-view) .topbar-actions .ghost-button {
  min-height: 26px;
  padding: 4px 10px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

body:not(.mobile-view) .theme-toggle button[aria-pressed="true"],
body:not(.mobile-view) .language-switch.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

:root[data-theme="dark"] body:not(.mobile-view) .theme-toggle button[aria-pressed="true"],
:root[data-theme="dark"] body:not(.mobile-view) .language-switch.is-active {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #021a19;
}

body:not(.mobile-view) .user-chip {
  display: none;
}

body:not(.mobile-view) .panel,
body:not(.mobile-view) details.panel {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

body:not(.mobile-view) .panel.notice,
body:not(.mobile-view) .panel.danger,
body:not(.mobile-view) .auth-panel.panel {
  box-shadow: none;
}

body:not(.mobile-view) .panel h2,
body:not(.mobile-view) details.panel > summary h2,
body:not(.mobile-view) .panel-action-header h2 {
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

body:not(.mobile-view) .panel-action-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body:not(.mobile-view) .panel-action-header > div:first-child,
body:not(.mobile-view) .stats-section-head {
  min-width: 0;
}

body:not(.mobile-view) .panel-action-header h2,
body:not(.mobile-view) .stats-section-head h2 {
  margin: 0 0 4px;
}

body:not(.mobile-view) .panel-action-header p,
body:not(.mobile-view) .stats-section-head p,
body:not(.mobile-view) .compact-help {
  color: var(--muted);
  font-size: 12px;
}

body:not(.mobile-view) .grid {
  gap: 10px;
  margin-bottom: 14px;
}

body:not(.mobile-view) .grid-2,
body:not(.mobile-view) .stats-visual-grid {
  gap: 14px;
}

body:not(.mobile-view) .metric,
body:not(.mobile-view) .dashboard-executive-metrics .metric {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 9px;
}

body:not(.mobile-view) .metric h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

body:not(.mobile-view) .metric strong,
body:not(.mobile-view) .dashboard-executive-metrics .metric strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
}

body:not(.mobile-view) .metric p {
  margin: 3px 0 0;
  font-size: 11px;
}

body:not(.mobile-view) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body:not(.mobile-view) .table-scroll,
body:not(.mobile-view) .notification-table-scroll,
body:not(.mobile-view) .user-table-scroll,
body:not(.mobile-view) .audit-table-scroll,
body:not(.mobile-view) .project-cost-table-scroll,
body:not(.mobile-view) .research-list-scroll {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.mobile-view) th {
  padding: 8px 11px;
  border-bottom: 1px solid var(--line-soft);
  background: #f4f8fb;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

body:not(.mobile-view) td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

body:not(.mobile-view) tr:hover td {
  background: rgba(0, 124, 120, 0.04);
}

body:not(.mobile-view) tr:last-child td {
  border-bottom: 0;
}

body:not(.mobile-view) label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

body:not(.mobile-view) input,
body:not(.mobile-view) select,
body:not(.mobile-view) textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}

body:not(.mobile-view) textarea {
  min-height: 64px;
}

body:not(.mobile-view) .form-row,
body:not(.mobile-view) .form-grid,
body:not(.mobile-view) .project-filter,
body:not(.mobile-view) .stats-period-form {
  gap: 10px;
}

body:not(.mobile-view) button,
body:not(.mobile-view) .primary-button {
  min-height: 32px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
}

body:not(.mobile-view) .ghost-button,
body:not(.mobile-view) .secondary {
  min-height: 31px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
}

body:not(.mobile-view) .tiny-button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}

body:not(.mobile-view) .pill,
body:not(.mobile-view) .badge {
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

body:not(.mobile-view) .msg {
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
}

body:not(.mobile-view) .empty-state-card,
body:not(.mobile-view) .project-image-empty,
body:not(.mobile-view) .attachment-empty-square {
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--muted);
}

body:not(.mobile-view) .dashboard-layout,
body:not(.mobile-view) .dashboard-executive-layout {
  gap: 14px;
}

:root[data-theme="dark"] body:not(.mobile-view) .nav-button {
  color: var(--muted);
}

:root[data-theme="dark"] body:not(.mobile-view) .nav-button:hover {
  background: #1e2f3f;
  color: var(--accent-strong);
}

:root[data-theme="dark"] body:not(.mobile-view) .nav-button.active {
  border-color: #1d4a47;
  color: var(--accent-strong);
}

:root[data-theme="dark"] body:not(.mobile-view) th {
  background: #1e2f3f;
}

:root[data-theme="dark"] body:not(.mobile-view) .topbar,
:root[data-theme="dark"] body:not(.mobile-view) .sidebar {
  background: var(--panel);
}

/* Demo HTML class mapping: keep auth/permission/data logic from LLS, but use
   the 2026-06-15 demo shell vocabulary as the desktop frontend contract. */
:root {
  --sb: var(--panel);
  --lsoft: var(--line-soft);
  --acc: var(--accent);
  --acs: var(--accent-strong);
  --acf: var(--accent-soft);
}

body:not(.mobile-view) #root {
  display: flex;
  flex: 1;
  height: 100vh;
  overflow: hidden;
}

body:not(.mobile-view) #sb {
  width: 220px;
  flex-shrink: 0;
  background: var(--sb);
  border-right: 1px solid var(--line);
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) #sb {
  width: 50px;
}

body:not(.mobile-view) #ws {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

body:not(.mobile-view) #nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 6px;
  gap: 3px;
}

body:not(.mobile-view) .ni {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 8px;
  color: #39516a;
  background: transparent;
  white-space: nowrap;
  font-size: 13px;
}

body:not(.mobile-view) .ni:hover {
  background: #f1f7fa;
  color: var(--acs);
}

body:not(.mobile-view) .ni.on {
  background: var(--acf);
  color: var(--acs);
  border-color: #bfe4df;
  font-weight: 700;
}

body:not(.mobile-view) .ni-ico {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
}

body:not(.mobile-view) .ni-lbl {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.mobile-view) .ni-tog {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6a8198;
  box-shadow: none;
}

body:not(.mobile-view) .ni-tog:hover {
  background: #f1f7fa;
  color: var(--acs);
}

body:not(.mobile-view) .sub {
  padding: 2px 4px 4px 32px;
  margin: 0;
  gap: 1px;
}

body:not(.mobile-view) .sub a {
  display: block;
  min-height: 0;
  padding: 5px 9px;
  border-left: 2px solid #d7e6ec;
  border-radius: 0 4px 4px 0;
  color: #587089;
  font-size: 12.5px;
}

body:not(.mobile-view) .sub a:hover {
  color: var(--acs);
  border-left-color: var(--acc);
  background: #f5faf9;
}

body:not(.mobile-view) .sub a.on {
  color: var(--acs);
  border-left-color: var(--acc);
  background: var(--acf);
  font-weight: 700;
}

:root[data-sidebar="collapsed"] body:not(.mobile-view) .ni-lbl,
:root[data-sidebar="collapsed"] body:not(.mobile-view) .ni-tog,
:root[data-sidebar="collapsed"] body:not(.mobile-view) .sub {
  display: none;
}

body:not(.mobile-view) .tb-info {
  flex: 1;
  min-width: 0;
}

body:not(.mobile-view) .tb-eye {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

body:not(.mobile-view) .tb-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

body:not(.mobile-view) .tb-ctrls {
  display: flex;
  gap: 6px;
  align-items: center;
}

body:not(.mobile-view) .cbtn {
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

body:not(.mobile-view) .cbtn:hover {
  border-color: var(--acc);
  color: var(--acs);
}

body:not(.mobile-view) .cbtn.on,
body:not(.mobile-view) .cbtn[aria-pressed="true"],
body:not(.mobile-view) .language-switch.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

body:not(.mobile-view) .ws-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 72px;
  background: var(--bg);
}

body:not(.mobile-view) .sect,
body:not(.mobile-view) .panel,
body:not(.mobile-view) details.panel,
body:not(.mobile-view) .stats-visual-panel {
  background: var(--panel);
  border: 1px solid var(--lsoft);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: none;
}

body:not(.mobile-view) .sect h2,
body:not(.mobile-view) .panel h2,
body:not(.mobile-view) details.panel > summary h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--lsoft);
}

body:not(.mobile-view) .kpi-row,
body:not(.mobile-view) .dashboard-metrics,
body:not(.mobile-view) .stats-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body:not(.mobile-view) .kpi {
  background: var(--panel);
  border: 1px solid var(--lsoft);
  border-radius: 9px;
  padding: 12px 14px;
}

body:not(.mobile-view) .kpi-l,
body:not(.mobile-view) .metric h3 {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

body:not(.mobile-view) .kpi-v,
body:not(.mobile-view) .metric strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.05;
}

body:not(.mobile-view) .kpi-s,
body:not(.mobile-view) .metric p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

body:not(.mobile-view) .form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

body:not(.mobile-view) .form-row label {
  min-width: 72px;
}

body:not(.mobile-view) .fbtn,
body:not(.mobile-view) button:not(.mobile-menu-button):not(.topbar-more-button):not(.mobile-sidebar-close):not(.mobile-sidebar-backdrop):not(.sidebar-toggle) {
  border-radius: 7px;
}

:root[data-theme="dark"] body:not(.mobile-view) .ni {
  color: var(--muted);
}

:root[data-theme="dark"] body:not(.mobile-view) .ni:hover {
  background: #1e2f3f;
  color: var(--acs);
}

:root[data-theme="dark"] body:not(.mobile-view) .ni.on {
  color: var(--acs);
  border-color: #1d4a47;
}

:root[data-theme="dark"] body:not(.mobile-view) .sub a {
  color: var(--muted);
  border-left-color: #314658;
}

:root[data-theme="dark"] body:not(.mobile-view) .sub a:hover {
  background: #1e2f3f;
}

:root[data-theme="dark"] body:not(.mobile-view) .cbtn.on,
:root[data-theme="dark"] body:not(.mobile-view) .cbtn[aria-pressed="true"],
:root[data-theme="dark"] body:not(.mobile-view) .language-switch.is-active {
  background: var(--acs);
  border-color: var(--acs);
  color: #021a19;
}

/* Project list policy, desktop option 2: keep every operational column and
   make the horizontal table scroll explicit instead of hiding fields. */
body:not(.mobile-view) #project-list .project-table-scroll {
  position: relative;
  overflow: auto;
  border: 1px solid var(--lsoft);
  border-radius: 8px;
  background: var(--panel);
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

body:not(.mobile-view) #project-list .project-table-scroll::after {
  content: "전체 컬럼 보기: 좌우 스크롤";
  position: sticky;
  left: 10px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 6px 0 0;
  padding: 2px 8px;
  border: 1px solid rgba(0, 124, 120, 0.18);
  border-radius: 999px;
  background: rgba(229, 245, 243, 0.92);
  color: var(--acs);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

:lang(en) body:not(.mobile-view) #project-list .project-table-scroll::after {
  content: "All columns: scroll horizontally";
}

body:not(.mobile-view) #project-list .project-table {
  min-width: 1430px;
  width: 1430px;
  table-layout: fixed;
}

body:not(.mobile-view) #project-list .project-table tr.project-row {
  display: table-row !important;
}

body:not(.mobile-view) #project-list .project-table tr.project-row td {
  display: table-cell !important;
}

body:not(.mobile-view) #project-list .project-table th {
  background: #f4f8fb;
}

:root[data-theme="dark"] body:not(.mobile-view) #project-list .project-table-scroll::after {
  border-color: rgba(120, 224, 212, 0.22);
  background: rgba(18, 59, 58, 0.92);
  color: var(--acs);
}

:root[data-theme="dark"] body:not(.mobile-view) #project-list .project-table th {
  background: #1e2f3f;
}

body:not(.mobile-view) .metric-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

body:not(.mobile-view) .metric-card span,
body:not(.mobile-view) .metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

body:not(.mobile-view) .metric-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

body:not(.mobile-view) .metric-card.is-active {
  border-color: rgba(0, 124, 120, 0.42);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

body:not(.mobile-view) .patent-adm-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body:not(.mobile-view) .patent-adm-step-list span {
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

:root[data-theme="dark"] body:not(.mobile-view) #sb,
:root[data-theme="dark"] body:not(.mobile-view) .sidebar {
  background: #16212c;
  border-right-color: #314658;
}

:root[data-theme="dark"] body:not(.mobile-view) .brand,
:root[data-theme="dark"] body:not(.mobile-view) .sidebar-note {
  background: #16212c;
  border-color: #243747;
}

:root[data-theme="dark"] body:not(.mobile-view) .ni,
:root[data-theme="dark"] body:not(.mobile-view) .nav-button {
  color: #a7b7c6;
}

:root[data-theme="dark"] body:not(.mobile-view) .ni:hover,
:root[data-theme="dark"] body:not(.mobile-view) .nav-button:hover,
:root[data-theme="dark"] body:not(.mobile-view) .ni-tog:hover {
  background: #1e2f3f;
  color: #78e0d4;
}

:root[data-theme="dark"] body:not(.mobile-view) .ni.on,
:root[data-theme="dark"] body:not(.mobile-view) .nav-button.active {
  background: #123b3a;
  border-color: #1d4a47;
  color: #78e0d4;
}

:root[data-theme="dark"] body:not(.mobile-view) .sub a {
  color: #a7b7c6;
  border-left-color: #314658;
}

:root[data-theme="dark"] body:not(.mobile-view) .sub a:hover {
  background: #1e2f3f;
  color: #78e0d4;
}

:root[data-theme="dark"] body:not(.mobile-view) .sub a.on,
:root[data-theme="dark"] body:not(.mobile-view) .sub a.active {
  background: #123b3a;
  color: #78e0d4;
  border-left-color: #32c5b7;
}

:root[data-theme="dark"] body:not(.mobile-view) .metric-card {
  border-color: #243747;
  background: #16212c;
}

:root[data-theme="dark"] body:not(.mobile-view) .metric-card.is-active {
  border-color: rgba(120, 224, 212, 0.38);
  background: #123b3a;
  box-shadow: inset 3px 0 0 #32c5b7;
}

:root[data-theme="dark"] body:not(.mobile-view) .patent-adm-step-list span {
  border-color: #314658;
  background: #111c26;
  color: #a7b7c6;
}

body:not(.mobile-view) .sect > h2,
body:not(.mobile-view) details.sect > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body:not(.mobile-view) details.sect > summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--lsoft);
}

body:not(.mobile-view) details.sect > summary::-webkit-details-marker {
  display: none;
}

body:not(.mobile-view) .fbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--acs);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

body:not(.mobile-view) .fbtn:hover {
  opacity: 0.88;
}

body:not(.mobile-view) .fbtn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 13px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

body:not(.mobile-view) .fbtn-sec:hover {
  border-color: var(--acc);
  color: var(--acs);
}

body:not(.mobile-view) .fbtn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1.5px solid #e05656;
  border-radius: 7px;
  background: #e05656;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
body:not(.mobile-view) .fbtn-danger:hover {
  background: #c73d3d;
  border-color: #c73d3d;
}

body:not(.mobile-view) .badge.b-ok {
  background: #e0f5f1;
  color: #006e67;
}

body:not(.mobile-view) .badge.b-wait {
  background: #fef8e6;
  color: #8a6500;
}

body:not(.mobile-view) .badge.b-sub {
  background: #e6f1fb;
  color: #185fa5;
}

body:not(.mobile-view) .badge.b-info {
  background: #f0eaff;
  color: #5b21b6;
}

body:not(.mobile-view) .badge.b-rej {
  background: #fceae9;
  color: #9e2a2a;
}

:root[data-theme="dark"] body:not(.mobile-view) .badge.b-ok {
  background: #0d3530;
  color: #78e0d4;
}

:root[data-theme="dark"] body:not(.mobile-view) .badge.b-wait {
  background: #3a2e00;
  color: #e8c040;
}

:root[data-theme="dark"] body:not(.mobile-view) .badge.b-sub {
  background: #082240;
  color: #85b7eb;
}

:root[data-theme="dark"] body:not(.mobile-view) .badge.b-info {
  background: #1e1040;
  color: #c4b5fd;
}

:root[data-theme="dark"] body:not(.mobile-view) .badge.b-rej {
  background: #3a0e0e;
  color: #f09595;
}

body:not(.mobile-view) .stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lsoft);
  font-size: 13px;
}

body:not(.mobile-view) .stat-row:last-child {
  border-bottom: 0;
}

body:not(.mobile-view) .prog-bar {
  width: 100%;
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e0ecf4;
}

body:not(.mobile-view) .prog-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--acc);
}

body:not(.mobile-view) .pipeline-value {
  display: grid;
  grid-template-columns: auto minmax(0, 220px);
  align-items: center;
  gap: 10px;
  min-width: 220px;
  text-align: right;
}

body:not(.mobile-view) .demo-stat-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body:not(.mobile-view) .metric-link {
  color: inherit;
}

body:not(.mobile-view) .metric-link:hover {
  border-color: var(--acc);
  color: inherit;
}

/* Mobile QA hardening: these rules intentionally sit at the end of the file so
   the v2 desktop shell overrides cannot undo the mobile layout fixes. */
@media (max-width: 880px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  .research-list-approval-filter.status-legend {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 2px 0 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .research-list-approval-filter > span,
  .research-list-approval-filter .pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .research-list-title-row {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .research-list-heading-tools {
    flex: 1 1 auto;
    min-width: 0;
  }

  .research-list-heading-tools h2 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .research-list-actions {
    flex: 0 0 auto;
    display: flex !important;
    grid-template-columns: none !important;
    width: auto;
    margin-left: auto;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .research-list-actions button,
  .research-list-actions .ghost-button,
  .research-list-actions .secondary {
    flex: 0 0 auto;
    min-width: auto;
    white-space: nowrap !important;
    line-height: 1.1;
  }
}

@media (max-width: 620px) {
  .auth-panel button[type="submit"],
  .auth-card form button[type="submit"] {
    display: flex !important;
    width: 100% !important;
    min-height: 46px;
    justify-content: center;
  }

  .research-day-list-filter input[type="date"],
  .research-day-list-filter button,
  .research-day-project-filter button,
  .research-day-project-dropdown > summary,
  .research-list-filter-drawer > summary {
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .research-list-filter-drawer:not([open]) .research-list-filter-body {
    display: none !important;
  }

  .research-list-scroll {
    max-height: none !important;
    overflow: visible !important;
  }

  .research-list-panel .research-day-table,
  .research-list-panel .research-day-table tbody,
  .research-list-panel .research-day-table tr,
  .research-list-panel .research-day-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .research-list-panel .research-day-table {
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  .research-list-panel .research-day-table thead,
  .research-list-panel .research-day-table th,
  .research-list-panel .research-day-table-head {
    display: none !important;
  }

  .research-list-panel .research-day-table tr:not(.research-day-table-head) {
    position: relative !important;
    margin: 0 0 10px !important;
    padding: 12px !important;
    border: 1px solid var(--line-soft) !important;
    border-radius: 9px !important;
    background: var(--panel) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .research-list-panel .research-day-table td {
    position: static !important;
    border: 0 !important;
    padding: 5px 0 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: left !important;
    background: transparent !important;
  }

  .research-list-panel .research-day-table td:nth-child(2),
  .research-list-panel .research-day-table td:last-child {
    display: none !important;
  }

  .research-list-panel .research-day-table td:first-child::before,
  .research-list-panel .research-day-table td:nth-child(3)::before,
  .research-list-panel .research-day-table td:nth-child(4)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }

  .research-list-panel .research-day-table td:first-child::before {
    content: "일자 / 프로젝트";
  }

  .research-list-panel .research-day-table td:nth-child(3)::before {
    content: "Status / 첨부";
  }

  .research-list-panel .research-day-table td:nth-child(4)::before {
    content: "작업";
  }

  :lang(en) .research-list-panel .research-day-table td:first-child::before {
    content: "Date / Project";
  }

  :lang(en) .research-list-panel .research-day-table td:nth-child(3)::before {
    content: "Status / Files";
  }

  :lang(en) .research-list-panel .research-day-table td:nth-child(4)::before {
    content: "Action";
  }

  .research-list-panel .record-action-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .research-list-panel .record-action-group > *,
  .research-list-panel .record-action-group button,
  .research-list-panel .record-action-group .ghost-button,
  .research-list-panel .record-action-group .secondary {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    white-space: nowrap;
  }
}

/* Mobile QA final fixes: keep login controls tappable and prevent iOS input zoom. */
@media (max-width: 880px) {
  body,
  body.mobile-view {
    font-size: 16px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  .auth-shell input,
  .auth-shell select,
  .auth-shell textarea,
  body.mobile-view input,
  body.mobile-view select,
  body.mobile-view textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 620px) {
  .auth-shell button[type="submit"],
  .auth-shell input[type="submit"],
  .auth-card form button[type="submit"],
  .auth-card form input[type="submit"],
  .auth-panel button[type="submit"],
  .auth-panel input[type="submit"] {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

/* ── v152 프로젝트 생성 섹션 ── */
.v152-sect{background:var(--panel);border:1px solid var(--lsoft);border-radius:10px;padding:18px 20px;margin-bottom:14px}
.v152-sect-hd{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:14px;user-select:none;display:flex;align-items:center;gap:6px}
.v152-arr{font-size:12px;color:var(--muted);transition:transform .2s;display:inline-block}
.v152-row{display:grid;gap:10px;margin-bottom:10px}
.v152-c4{grid-template-columns:1fr 1fr 1fr 1fr}
.v152-c5{grid-template-columns:1fr 1fr 1fr 1fr 1fr}
.v152-c3{grid-template-columns:1fr 1fr 1fr}
.v152-c2{grid-template-columns:1fr 1fr}
.v152-c-name{grid-template-columns:2fr 1.2fr 1fr}
.v152-c-period{grid-template-columns:1fr 1.5fr 1.5fr 1fr}
.v152-fl{display:flex;flex-direction:column;gap:3px}
.v152-fl label{font-size:11px;color:var(--muted);font-weight:600}
.v152-fl input,.v152-fl select,.v152-fl textarea{border:1px solid var(--line);border-radius:7px;padding:7px 10px;font-size:13px;outline:none;font-family:inherit;color:var(--ink);background:var(--panel);width:100%;transition:border-color .15s}
.v152-fl input:focus,.v152-fl select:focus,.v152-fl textarea:focus{border-color:var(--acc)}
.v152-fl textarea{resize:vertical;min-height:80px}
.v152-member-block{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:4px}
.v152-member-col label.v152-col-lbl{font-size:11px;color:var(--muted);font-weight:600;display:block;margin-bottom:6px}
.v152-member-inner{display:flex;gap:4px;align-items:center}
.v152-member-inner input,.v152-member-inner select{flex:1;border:1px solid var(--line);border-radius:7px;padding:6px 8px;font-size:12px;outline:none;font-family:inherit;color:var(--ink);background:var(--panel)}
.v152-add-btn{padding:5px 10px;border:1px solid var(--acc);border-radius:6px;background:var(--panel);color:var(--acs);font-size:12px;cursor:pointer;white-space:nowrap;font-weight:600}
.v152-add-btn:hover{background:var(--acf)}
.v152-labor-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.v152-labor-tbl th{padding:7px 10px;text-align:left;border-bottom:1px solid var(--lsoft);font-weight:600;color:var(--muted);font-size:11px}
.v152-labor-tbl td{padding:6px 6px;border-bottom:1px solid var(--lsoft);vertical-align:middle}
.v152-labor-tbl td input,.v152-labor-tbl td select{border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:12px;outline:none;width:100%;font-family:inherit;background:var(--panel);color:var(--ink)}

/* ── 연구일지 입력 (dj) ── */
.dj-hd{display:flex;align-items:center;justify-content:space-between;background:var(--panel);border:1px solid var(--lsoft);border-radius:10px;padding:12px 18px;margin-bottom:10px;gap:12px;flex-wrap:wrap}
.dj-hd-left{display:flex;flex-direction:column;gap:2px}
.dj-hd-title{font-size:18px;font-weight:700;color:var(--ink)}
.dj-hd-status{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.dj-hd-status .dj-st-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b;flex-shrink:0}
.dj-hd-right{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}
.dj-proj-thumb{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--lsoft);border-radius:8px;padding:5px 10px;font-size:11px;color:var(--muted);max-width:220px;overflow:hidden}
.dj-thumb-img{width:30px;height:30px;border-radius:5px;background:#dc2626;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700}
.dj-thumb-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}
.dj-hd-btn{padding:6px 11px;border:1px solid var(--line);border-radius:7px;font-size:12px;font-weight:500;cursor:pointer;background:var(--panel);color:var(--ink);white-space:nowrap;transition:background .15s;text-decoration:none;display:inline-block}
.dj-hd-btn:hover{background:var(--bg);border-color:var(--acc)}
.dj-btn-sub{background:var(--acs)!important;color:#fff!important;border-color:var(--acs)!important}
.dj-btn-sub:hover{opacity:.88}
.dj-banner{display:flex;align-items:center;gap:8px;background:#fffbeb;border:1px solid #f59e0b;border-radius:8px;padding:9px 14px;font-size:12px;color:#92400e;margin-bottom:10px}
.dj-banner strong{color:#d97706}
.dj-card{background:var(--panel);border:1px solid var(--lsoft);border-radius:10px;padding:16px 18px;margin-bottom:10px}
.dj-lbl{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:5px;display:block}
.dj-inp{width:100%;border:1px solid var(--line);border-radius:7px;padding:8px 11px;font-size:13px;outline:none;font-family:inherit;color:var(--ink);background:var(--panel);transition:border-color .15s}
.dj-inp:focus{border-color:var(--acc)}
.dj-ta{width:100%;border:1px solid var(--line);border-radius:7px;padding:8px 11px;font-size:13px;outline:none;font-family:inherit;color:var(--ink);background:var(--panel);resize:vertical;min-height:80px;transition:border-color .15s}
.dj-ta:focus{border-color:var(--acc)}
.dj-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.dj-fl{display:flex;flex-direction:column;gap:3px}
.dj-upload{border:1.5px dashed var(--line);border-radius:8px;min-height:72px;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--muted);font-size:13px;cursor:pointer;transition:border-color .2s;margin-bottom:0}
.dj-upload:hover{border-color:var(--acc)}
.dj-num-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.dj-num-add{padding:5px 12px;border:1px solid var(--acc);border-radius:6px;background:var(--panel);color:var(--acs);font-size:12px;cursor:pointer;font-weight:600}
.dj-num-add:hover{background:var(--acf)}
.dj-num-row{display:grid;grid-template-columns:2fr 1fr 1.2fr 1.5fr auto;gap:6px;align-items:center;margin-bottom:6px}
.dj-num-row input,.dj-num-row select{border:1px solid var(--line);border-radius:7px;padding:7px 9px;font-size:12px;outline:none;width:100%;font-family:inherit;background:var(--panel);color:var(--ink);transition:border-color .15s}
.dj-num-row input:focus,.dj-num-row select:focus{border-color:var(--acc)}
.dj-num-del{padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:12px;cursor:pointer;white-space:nowrap}
.dj-num-del:hover{background:#fee2e2;color:#dc2626;border-color:#dc2626}
.dj-num-hint{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.6}
.dj-file-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dj-file-btn{padding:6px 14px;border:1px solid var(--acc);border-radius:6px;background:var(--acs);color:#fff;font-size:12px;cursor:pointer;font-weight:600;white-space:nowrap;flex-shrink:0}
.dj-file-btn:hover{opacity:.88}
.dj-status-opt{display:inline-flex;align-items:center;gap:7px;padding:5px 16px;border-radius:20px;border:2px solid var(--line);background:var(--bg);cursor:pointer;font-size:13px;font-weight:700;color:var(--ink);user-select:none;transition:border-color .15s,box-shadow .15s}
.dj-status-opt input[type=radio]{display:none}
.dj-status-opt:has(input:checked){box-shadow:0 0 0 3px rgba(0,131,125,.18)}
.dj-status-opt.dj-status-opt-green{border-color:#008f63}
.dj-status-opt.dj-status-opt-orange{border-color:#bf7100}
.dj-status-opt.dj-status-opt-red{border-color:#b4232f}
.dj-status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0}
.dj-upload{position:relative;overflow:hidden}
.dj-upload .daily-attachment-preview-empty{margin:0;min-height:72px}
.dj-upload .daily-attachment-preview-list{padding:10px 14px;gap:8px;flex-wrap:wrap}

/* ── 연구일지 입력 팝업 스타일 (djw) ── */
.djw-meta{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid var(--line-soft)}
.djw-field{display:flex;flex-direction:column;gap:4px;flex:1;min-width:160px}
.djw-field-lbl{color:var(--muted);font-weight:900;font-size:12px}
.djw-body{display:grid;gap:14px;padding-top:2px}
.djw-sect{display:flex;flex-direction:column;gap:6px}
.djw-lbl{font-size:13px;font-weight:700;color:var(--ink)}

/* ── 보고서 폼 (rpt) — 주간/월간 입력 ── */
.rpt-fg{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.rpt-fl{display:flex;flex-direction:column;gap:3px}
.rpt-ff{grid-column:1/-1}
.rpt-fl label{font-size:12px;color:var(--muted);font-weight:600;display:block;margin-bottom:3px}
.rpt-fl input,.rpt-fl select,.rpt-fl textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:7px 10px;font-size:13px;outline:none;font-family:inherit;color:var(--ink);background:var(--panel);transition:border-color .15s}
.rpt-fl input:focus,.rpt-fl select:focus,.rpt-fl textarea:focus{border-color:var(--acc)}
.rpt-fl textarea{resize:vertical;min-height:70px}
.rpt-mat-sec{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:10px;margin-bottom:14px;background:var(--bg)}
.rpt-mat-sec-lbl{font-size:12px;color:var(--muted);margin-bottom:8px;font-weight:600}
.rpt-img-drop{min-height:72px;border:1px dashed var(--line);border-radius:7px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;cursor:pointer;background:var(--panel);transition:border-color .2s}
.rpt-img-drop:hover{border-color:var(--acc)}
.rpt-sect-hd{display:flex;align-items:center;gap:8px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--lsoft)}
.rpt-sect-icon{font-size:15px}
.rpt-sect-hd h2{margin:0;padding:0;border:none}
.rpt-filter-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:var(--panel);border:1px solid var(--lsoft);border-radius:10px;margin-bottom:10px}
.rpt-count-badge{background:var(--acf);color:var(--acs);border-radius:20px;padding:3px 9px;font-size:11px;font-weight:700}
/* ── 대시보드 (db) ── */
.db-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.db-kpi{background:var(--panel);border:1px solid var(--lsoft);border-radius:8px;padding:16px 18px}
.db-kpi-l{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.db-kpi-v{font-size:28px;font-weight:900;color:var(--ink);line-height:1.1}
.db-kpi-s{font-size:11px;color:var(--muted);margin-top:5px}
.db-sect{background:var(--panel);border:1px solid var(--lsoft);border-radius:8px;padding:16px 18px;margin-bottom:14px}
.db-sect-hd{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:14px;padding-bottom:9px;border-bottom:1px solid var(--lsoft);display:flex;align-items:center;justify-content:space-between}
.db-sect-hd span{font-size:11px;font-weight:400;color:var(--muted)}
.dashboard-project-table-scroll{
  position:relative;
  isolation:isolate;
  max-height:min(70vh,640px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  border-top:1px solid var(--lsoft);
  background:var(--panel);
}
.db-tbl{width:100%;min-width:1060px;table-layout:fixed;border-collapse:collapse;font-size:13px}
.db-tbl th{padding:8px 12px;text-align:left;border-bottom:1px solid var(--lsoft);color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.db-tbl td{padding:10px 12px;border-bottom:1px solid var(--lsoft);color:var(--ink);vertical-align:middle;word-break:keep-all}
.db-tbl tr:last-child td{border-bottom:none}
.db-tbl col:nth-child(1){width:250px}
.db-tbl col:nth-child(2){width:92px}
.db-tbl col:nth-child(3){width:68px}
.db-tbl col:nth-child(4){width:76px}
.db-tbl col:nth-child(5){width:116px}
.db-tbl col:nth-child(6){width:86px}
.db-tbl col:nth-child(7){width:118px}
.db-tbl col:nth-child(8){width:105px}
.db-tbl col:nth-child(9){width:149px}
.db-project-cell{min-width:0;line-height:1.45;overflow-wrap:anywhere}
.db-leader-cell,.db-biz-cell{white-space:nowrap;word-break:keep-all}
.db-prog-cell{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%}
.db-prog-bar{display:block;height:10px;width:100%;min-width:60px;border:0;border-radius:20px;overflow:hidden;background:var(--line);appearance:none;-webkit-appearance:none}
.db-prog-bar::-webkit-progress-bar{border-radius:20px;background:var(--line)}
.db-prog-bar::-webkit-progress-value{border-radius:20px;background:linear-gradient(90deg,var(--acc),var(--acs));transition:width .2s}
.db-prog-bar::-moz-progress-bar{border-radius:20px;background:linear-gradient(90deg,var(--acc),var(--acs));transition:width .2s}
.db-prog-label{font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap}
.db-badge{display:inline-block;border-radius:5px;padding:2px 8px;font-size:11px;font-weight:700;white-space:nowrap}
.db-b-go{background:#e0f5f1;color:#006e67}
.db-b-wait{background:#fef8e6;color:#8a6500}
.db-b-done{background:#e8f1fb;color:#185fa5}
[data-theme=dark] .db-b-go{background:#0d3530;color:#78e0d4}
[data-theme=dark] .db-b-wait{background:#3a2e00;color:#e8c040}
[data-theme=dark] .db-b-done{background:#082240;color:#85b7eb}
.db-biz-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.db-biz-card{background:var(--panel);border:1px solid var(--lsoft);border-radius:8px;padding:10px 14px;display:flex;align-items:center;gap:12px;min-width:0}
.db-biz-title{font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap;flex-shrink:0}
.db-biz-nums{display:flex;justify-content:space-between;gap:8px;flex:1;min-width:0}
.db-biz-num{display:flex;align-items:baseline;justify-content:center;gap:4px;min-width:44px;white-space:nowrap}
.db-biz-num-v{font-size:18px;font-weight:900;color:var(--ink);line-height:1}
.db-biz-num-v.is-ongoing{color:#007c78}
.db-biz-num-v.is-pending{color:#8a6500}
.db-biz-num-v.is-done{color:#185fa5}
.db-biz-num-l{font-size:11px;color:var(--muted);white-space:nowrap;word-break:keep-all}
[data-theme=dark] .db-biz-num-v.is-ongoing{color:#78e0d4}
[data-theme=dark] .db-biz-num-v.is-pending{color:#e8c040}
[data-theme=dark] .db-biz-num-v.is-done{color:#85b7eb}
@media(max-width:1280px){.db-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.db-kpi-row{grid-template-columns:1fr}.db-biz-card{padding:10px 12px}}
.rd-status-trio{display:flex;gap:5px;align-items:center;justify-content:center}
.rd-role-labels,.rd-role-statuses,.rd-role-actions{display:flex;flex-direction:column;gap:0}
.rd-role-item{display:flex;align-items:center;gap:6px;min-height:32px;padding:2px 0;font-size:12px;border-bottom:1px solid var(--line-soft)}
.rd-role-item:last-child{border-bottom:none}
.rd-role-labels .rd-role-item{font-weight:600;color:var(--ink);white-space:nowrap}
.rd-role-statuses .rd-role-item{gap:5px}
.rd-status-label{font-size:11px;color:var(--ink)}
.rd-no-action{font-size:12px}
.rd-role-labels-cell,.rd-role-statuses-cell,.rd-role-actions-cell{vertical-align:top;padding:6px 8px}
.rd-role-action-member .record-action-group,.rd-role-action-lead .record-action-group,.rd-role-action-director .record-action-group{flex-wrap:wrap;gap:4px}
[data-db-filter]{cursor:pointer;user-select:none;transition:border-color .15s,box-shadow .15s}
[data-db-filter]:hover{border-color:var(--acc)}
[data-db-filter].is-active{border-color:var(--acs);box-shadow:0 0 0 3px rgba(0,131,125,.15)}
.db-dday-ok{color:#16a34a;font-weight:700}
.db-dday-warn{color:#d97706;font-weight:700}
.db-dday-over{color:#dc2626;font-weight:700}
/* ── 프로젝트 편집/생성 (pc/pjcr) ── */
.pjcr-sect{background:var(--panel);border:1px solid var(--lsoft);border-radius:10px;padding:16px 20px;margin-bottom:12px}
.pjcr-sect-hd{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--lsoft)}
.pc-phase-row{display:grid;grid-template-columns:110px 1fr 1fr 1fr auto;gap:8px;align-items:center;margin-bottom:6px}
.pc-phase-row input{border:1px solid var(--line);border-radius:7px;padding:7px 10px;font-size:13px;background:var(--bg);color:var(--ink);width:100%;box-sizing:border-box}
.pc-phase-row input:first-child{font-weight:600;text-align:center}
.pc-phase-rm{padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted);font-size:12px;cursor:pointer;white-space:nowrap}
.pc-phase-rm:hover{color:var(--danger,#dc2626);border-color:var(--danger,#dc2626)}
.pjcr-hidden{display:none!important}
.pjall-pat-hidden{display:none!important}
.biz-pat-row{display:none}
.ip-hidden{display:none}
.ip-dropzone{border:2.5px dashed var(--acc);border-radius:12px;min-height:130px;padding:36px 20px;text-align:center;background:var(--acf);margin-bottom:18px;cursor:pointer;transition:background .2s,border-color .2s;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ip-dropzone:hover{background:color-mix(in srgb,var(--acf) 80%,var(--acc) 20%)}
.ip-sect-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;color:#fff;font-size:11px;font-weight:700;flex-shrink:0}
.ip-sect-det{margin-bottom:0}
.ip-sect-det>summary{cursor:pointer;list-style:none;user-select:none}
.ip-sect-det>summary::-webkit-details-marker{display:none}
.ip-sect-det>summary::marker{display:none}
.ip-sect-sum{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:8px;transition:background .15s}
.ip-sect-sum:hover{background:var(--acf)}
.ip-sect-det:not([open])>.ip-sect-sum{border-radius:8px}
.pat-sect-label{flex:1;font-size:14px;font-weight:700;color:var(--ink)}
.ip-sect-chev{font-size:13px;color:var(--muted);transition:transform .2s;margin-left:4px}
.ip-sect-det[open]>.ip-sect-sum .ip-sect-chev{transform:rotate(180deg)}
/* ── 특허 페이지 그리드 (pat) ── */
.pat-kpi8{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin-bottom:14px}
.pat-kpi7{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:14px}
.pat-kpi6{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}
.pat-kpi4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.pat-kpi3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.pat-tab-bar{display:flex;gap:4px}
.pat-tab-btn{display:inline-block;padding:6px 18px;border-radius:20px;font-size:13px;font-weight:700;text-decoration:none;border:1.5px solid var(--line);background:var(--panel);color:var(--ink);transition:background .15s,color .15s,border-color .15s}
.pat-tab-btn.is-on{background:var(--acs);color:#fff;border-color:var(--acs)}
.pat-cntry{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}
.pat-kpi-card{border-radius:10px;padding:14px;text-align:center;background:var(--panel);border:1px solid var(--line)}
a.pat-kpi-card{cursor:pointer;transition:opacity .15s}
a.pat-kpi-card:hover{opacity:.82}
.pat-cntry-card{border:1.5px solid var(--line);transition:border-color .15s,box-shadow .15s}
.pat-cntry-card:hover{border-color:var(--cntry-color,var(--acc));box-shadow:0 2px 8px rgba(0,0,0,.08)}
.pat-cntry-card.is-active{border-color:var(--cntry-color,var(--acc));background:var(--acf)}
.pat-cntry-reg{font-size:10px;color:var(--ok);margin-top:4px;font-weight:600}
.pat-kpi-label{font-size:10.5px;font-weight:700;margin-bottom:4px;letter-spacing:.02em}
.pat-kpi-value{font-size:24px;font-weight:900}
.pat-sect-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--lsoft)}
.pat-sect-bar h2{margin:0;padding:0;border:none}
.pat-sect-label{font-size:13px;font-weight:700;color:var(--muted)}
.pat-controls{margin-left:auto;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pat-search-form{display:inline-flex;gap:4px;align-items:center}
.pat-search-inp{border:1px solid var(--line);border-radius:7px;padding:4px 10px;font-size:12px;background:var(--panel);color:var(--ink);width:180px}
.pat-filter-btn{display:inline-block;padding:4px 11px;border-radius:7px;font-size:12px;font-weight:700;text-decoration:none;border:1.5px solid var(--line);background:var(--panel);color:var(--muted)}
.pat-filter-btn.is-on{border-color:var(--acc);background:var(--acf);color:var(--acs)}
.pat-table-wrap{overflow-x:auto}
.horizontal-table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.pat-count{margin-top:8px;font-size:12px;color:var(--muted)}
.pat-page-title{font-size:19px;font-weight:600;color:var(--ink);margin-bottom:2px}
.pat-page-breadcrumb{font-size:12.5px;color:var(--muted)}
.pat-cat-grid{display:grid;grid-template-columns:160px 1fr 1fr 1fr;gap:10px;flex:1}
.ip-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-bottom:10px}
.ip-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin-bottom:10px}
.ip-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;margin-bottom:10px}
.ip-grid-2>div,.ip-grid-3>div,.ip-grid-4>div{min-width:0}
.ip-grid-2 input,.ip-grid-2 select,.ip-grid-3 input,.ip-grid-3 select,.ip-grid-4 input,.ip-grid-4 select{width:100%;box-sizing:border-box}
/* ── 프로젝트 코드 분류 추가 폼 (tax) ── */
.tax-form-row{display:grid;grid-template-columns:160px 1fr 1fr 1fr auto;gap:10px;align-items:end}
.pat-tax-grid{grid-template-columns:repeat(3,minmax(150px,1fr)) minmax(80px,0.5fr)}
.tax-form-row-pat{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end}
/* ── 특허 비용 입력 폼 ── */
.pcost-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.pcost-form-grid label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:4px;font-weight:600}
.pcost-currency-row{grid-column:1/-1;display:flex;gap:8px;align-items:flex-end}
.pcost-currency-row label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:4px;font-weight:600}
@media(max-width:860px){.pcost-form-grid{grid-template-columns:repeat(2,1fr)}}
.pcost-entry-grid{display:grid;grid-template-columns:1fr 2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}
.pcost-entry-grid label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:4px;font-weight:600}
@media(max-width:900px){.pcost-entry-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.pcost-entry-grid{grid-template-columns:1fr}}
/* ── BIZ 일지 상세 모달 ── */
.biz-day-view-btn{background:none;border:none;cursor:pointer;color:var(--acs);font-size:12px;padding:0;text-align:left;font-family:inherit}
.biz-day-view-btn:hover{text-decoration:underline}
.biz-day-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.55);z-index:900;display:flex;align-items:center;justify-content:center;padding:20px}
.biz-day-modal-overlay[hidden]{display:none}
.biz-day-modal-box{background:var(--panel);border-radius:12px;width:100%;max-width:640px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 8px 40px rgba(0,0,0,0.35)}
.biz-day-modal-hd{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 20px 14px;border-bottom:1px solid var(--line-soft)}
.biz-day-modal-title{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:4px}
.biz-day-modal-meta{font-size:12px;color:var(--muted)}
.biz-day-modal-close{background:none;border:none;cursor:pointer;font-size:17px;color:var(--muted);padding:2px 7px;border-radius:5px;line-height:1;flex-shrink:0}
.biz-day-modal-close:hover{background:var(--lsoft);color:var(--ink)}
.biz-day-modal-body{padding:18px 20px;overflow-y:auto;font-size:13.5px;color:var(--ink);line-height:1.75;white-space:pre-wrap}
/* ── 알림함 2열 레이아웃 ── */
.notif-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px;align-items:start}
@media(max-width:880px){.notif-two-col{grid-template-columns:1fr}}
/* ── Sticky 헤더/필터 (UI/UX v2 review 2026-07-02) ── */
/* 대시보드: 프로젝트 현황 테이블 컬럼 헤더 */
.db-tbl th{position:sticky;top:0;z-index:4;background:var(--panel)}
/* 연구일지 목록: 확인 상태 필터 탭 (전체/확인대기/확인완료 등) */
body:not(.mobile-view) .research-list-approval-filter{position:sticky;top:0;z-index:20;background:var(--bg);padding-top:6px;padding-bottom:6px}
/* 주간/월간업무 목록: 프로젝트 탭 필터 */
body:not(.mobile-view) .rpt-filter-bar{position:sticky;top:0;z-index:20}
.tax-form-btn{padding-top:18px}

/* Index/list scroll containment */
body:not(.mobile-view) .project-all-list-shell {
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100dvh - 132px));
  min-height: 440px;
  max-height: calc(100dvh - 132px);
  overflow: hidden;
}

body:not(.mobile-view) .project-all-list-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.28fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  z-index: 8;
}

body:not(.mobile-view) .project-all-list-toolbar h2 {
  margin: 0;
  border: 0;
  padding: 0;
}

body:not(.mobile-view) #pjall-badge {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
}

body:not(.mobile-view) .project-all-list-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body:not(.mobile-view) .project-all-list-search-row {
  flex: 1 1 360px;
  min-width: min(360px, 100%);
  max-width: 720px;
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(2, minmax(112px, 0.8fr));
  gap: 8px;
}

body:not(.mobile-view) .project-all-list-search-row input,
body:not(.mobile-view) .project-all-list-search-row select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
}

body:not(.mobile-view) .project-all-list-hint {
  flex: 0 1 290px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

body:not(.mobile-view) .project-all-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

body:not(.mobile-view) .project-all-list-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

body:not(.mobile-view) .project-all-list-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

body:not(.mobile-view) .project-all-list-table td {
  vertical-align: middle;
}

.project-list-manage-trigger {
  min-width: 58px;
  white-space: nowrap;
}

.project-manage-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.project-manage-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.project-manage-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.project-manage-dialog-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.project-manage-dialog-head strong,
.project-manage-dialog-head span {
  overflow-wrap: anywhere;
}

.project-manage-dialog-head span {
  color: var(--muted);
  font-size: 14px;
}

.project-manage-dialog-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.project-manage-dialog [hidden] {
  display: none !important;
}

.project-manage-edit-link {
  justify-self: start;
  text-decoration: none;
}

.project-manage-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.project-manage-status-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  text-align: left;
}

.project-manage-status-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-manage-status-form input {
  width: 100%;
  min-width: 0;
}

.project-manage-delete-form {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
  .project-manage-status-form {
    grid-template-columns: 1fr;
  }

  .project-manage-status-form button,
  .project-manage-delete-form button,
  .project-manage-edit-link {
    width: 100%;
    justify-content: center;
  }
}

body:not(.mobile-view) .index-table-scroll,
body:not(.mobile-view) .pat-table-wrap {
  max-height: min(620px, calc(100dvh - 260px));
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

body:not(.mobile-view) .index-table,
body:not(.mobile-view) .pat-table-wrap table {
  width: 100%;
}

body:not(.mobile-view) .index-table thead th,
body:not(.mobile-view) .pat-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

body:not(.mobile-view) .biz-project-table-scroll .index-table {
  width: 100% !important;
  min-width: 1100px;
  table-layout: auto !important;
}

body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(1) { width: 70px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(2) { width: 145px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(3) { width: 75px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(4) { width: 220px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(5) { width: 105px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(6) { width: 90px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(7) { width: 105px !important; }
body:not(.mobile-view) .biz-project-table-scroll .index-table th:nth-child(8) { width: 300px !important; }

body:not(.mobile-view) .patent-project-table-scroll .index-table {
  min-width: 1600px;
  table-layout: fixed;
}

body:not(.mobile-view) .biz-record-action-row {
  display: inline-grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: max-content;
  white-space: nowrap;
}

body:not(.mobile-view) .files-table-scroll .index-table {
  min-width: 980px;
}

body:not(.mobile-view) .report-table-scroll .index-table {
  min-width: 760px;
}

body:not(.mobile-view) .patent-admin-table-scroll .index-table {
  min-width: 980px;
}

body:not(.mobile-view) .project-evaluation-table-scroll .index-table {
  min-width: 820px;
}

body:not(.mobile-view) .approval-table-scroll,
body:not(.mobile-view) .audit-table-scroll {
  max-height: min(560px, calc(100dvh - 300px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

body:not(.mobile-view) .approval-table-scroll th,
body:not(.mobile-view) .audit-table-scroll th,
body:not(.mobile-view) .permission-approval-table-scroll th,
body:not(.mobile-view) .project-labor-table-scroll th,
body:not(.mobile-view) .project-labor-form-scroll th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

body:not(.mobile-view) .taxonomy-table {
  max-height: min(620px, calc(100dvh - 260px));
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

body:not(.mobile-view) .taxonomy-grid-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
}

@media (max-width: 880px) {
  .project-all-list-shell {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .project-all-list-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 10px;
  }

  .project-all-list-controls {
    justify-content: flex-start;
  }

  .project-all-list-search-row {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-all-list-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }

  body:not(.mobile-view) .index-table-scroll,
  body:not(.mobile-view) .pat-table-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .taxonomy-table {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }
}

/* UI QA 2026-07-01: sidebar table labels, action buttons, patent tabs, stats gauges */
body:not(.mobile-view) table th {
  white-space: nowrap;
  word-break: keep-all;
}

body:not(.mobile-view) .fbtn,
body:not(.mobile-view) .fbtn-sec,
body:not(.mobile-view) .ghost-button,
body:not(.mobile-view) .primary-button,
body:not(.mobile-view) .secondary,
body:not(.mobile-view) .danger-button,
body:not(.mobile-view) .tiny-button,
body:not(.mobile-view) .pill,
body:not(.mobile-view) .badge,
body:not(.mobile-view) .db-badge,
body:not(.mobile-view) .daily-status-project-pill {
  white-space: nowrap;
  word-break: keep-all;
}

body:not(.mobile-view) .fbtn,
body:not(.mobile-view) .fbtn-sec,
body:not(.mobile-view) .ghost-button,
body:not(.mobile-view) .primary-button,
body:not(.mobile-view) .secondary,
body:not(.mobile-view) .danger-button,
body:not(.mobile-view) .tiny-button {
  flex-shrink: 0;
}

body:not(.mobile-view) #tbody-pj-all td:nth-child(1) {
  min-width: 72px;
}

body:not(.mobile-view) #tbody-pj-all td:nth-child(8),
body:not(.mobile-view) #tbody-pj-all td:nth-child(9),
body:not(.mobile-view) #tbody-pj-all td:nth-child(10) {
  min-width: 68px;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(1),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(1) {
  width: 64px !important;
  min-width: 64px;
  white-space: nowrap;
}

body:not(.mobile-view) .device-evaluation-results-table th:nth-child(6),
body:not(.mobile-view) .device-evaluation-results-table td:nth-child(6) {
  min-width: 142px;
}

body:not(.mobile-view) .device-evaluation-row-actions {
  flex-wrap: nowrap;
}

body:not(.mobile-view) .device-evaluation-detail-action > summary {
  min-width: 96px;
}

.rpt-filter-bar {
  max-width: 100%;
  overflow-x: auto;
}

.rpt-filter-bar a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.patent-biz-tab-bar,
.patent-stage-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.patent-biz-tab,
.patent-stage-filter {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-break: keep-all;
  text-decoration: none;
  flex: 0 0 auto;
}

.patent-biz-tab.is-active {
  background: var(--acs) !important;
  border-color: var(--acs) !important;
  color: #fff !important;
}

.patent-stage-filter.is-active {
  background: var(--acf) !important;
  border-color: var(--acc) !important;
  color: var(--acs) !important;
}

.budget-gauge {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: visible;
}

.budget-gauge-card.normal .budget-gauge::before,
.budget-gauge-card.warn .budget-gauge::before,
.budget-gauge-card.danger .budget-gauge::before,
.budget-gauge-card .budget-gauge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-fill, var(--accent)) 0 var(--gauge, 0deg), rgba(148, 163, 184, 0.26) var(--gauge, 0deg) 360deg);
}

.budget-gauge::after {
  content: "";
  position: absolute;
  inset: 12px;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: var(--panel);
}

.budget-gauge span {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
}

.budget-gauge-card.warn .budget-gauge {
  --gauge-fill: #d97706;
}

.budget-gauge-card.danger .budget-gauge {
  --gauge-fill: #dc2626;
}

/* Patent/IP styles live in patent.css. */

/* Slack 공휴일/회사 휴무일 설정 */
.slack-holiday-settings { display:grid;gap:8px }
.slack-holiday-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap }
.slack-holiday-heading .check-row { margin:0 }
.slack-holiday-help { margin:0 }
.slack-holiday-add-row { display:grid;grid-template-columns:minmax(180px,320px) max-content;justify-content:start;gap:8px;align-items:center }
.slack-holiday-add-row input { margin:0 }
.slack-holiday-add-row button { width:max-content;min-height:38px;white-space:nowrap }
.slack-excluded-date-list { display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:28px }
.slack-excluded-date-chip time { font-variant-numeric:tabular-nums }
.slack-excluded-date-empty { font-size:12px }
@media (max-width:560px) {
  .slack-holiday-add-row { grid-template-columns:minmax(0,1fr) max-content }
}

/* QA 2026-07-25: keep the desktop shell from reserving sidebar space on
   tablet and mobile widths. The regular pages use an off-canvas drawer here. */
@media (max-width: 880px) {
  body:not(.mobile-view) #root {
    display: block;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body:not(.mobile-view) #sb,
  :root[data-sidebar="collapsed"] body:not(.mobile-view) #sb {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(84vw, 320px);
    min-width: min(84vw, 320px);
    max-width: min(84vw, 320px);
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    flex-shrink: 0;
    transform: translateX(-104%);
    transition: transform 0.18s ease;
    box-shadow: 18px 0 34px rgba(16, 32, 51, 0.18);
  }

  :root[data-mobile-sidebar="open"] body:not(.mobile-view) #sb {
    transform: translateX(0);
  }

  body:not(.mobile-view) #ws {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body:not(.mobile-view) .workspace-body {
    padding: 12px 12px 96px;
  }

  body:not(.mobile-view) .mobile-menu-button {
    display: inline-flex;
  }

  body:not(.mobile-view) .topbar-actions-desktop {
    display: none;
  }

  body:not(.mobile-view) .topbar-more {
    display: block;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .brand {
    justify-content: flex-start;
    padding: 0 10px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .brand-logo {
    display: block;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-button {
    justify-content: flex-start;
    padding: 0 8px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-ico {
    flex-basis: 20px;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .ni-lbl {
    display: block;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .ni-tog {
    display: inline-flex;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .sub {
    display: grid;
  }

  :root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-group[data-nav-group-collapsed="true"] .sub {
    display: none;
  }
}

/* ===== 조작 영역 크기 =====
   데스크톱 컨트롤 높이가 26/28/30/32/34/36/38/40px 여덟 가지로 흩어져 있어
   필터와 버튼을 정확히 누르기 어려웠다. 좁은 화면 규칙은 이미 44px 을 쓰고
   있었고 데스크톱만 남아 있어, 같은 기준으로 맞춘다.
   개별 규칙 93곳을 고치는 대신 여기서 바닥값만 올린다. 파일 끝이라 같은
   특이도끼리는 이 규칙이 이긴다. */
body:not(.mobile-view) button,
body:not(.mobile-view) select,
body:not(.mobile-view) textarea,
body:not(.mobile-view) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  min-height: 44px;
}

/* 펼침 단추로 쓰는 summary 도 실제로는 누르는 자리다. */
body:not(.mobile-view) .row-action-details > summary,
body:not(.mobile-view) .checkbox-dropdown > summary,
body:not(.mobile-view) summary.secondary {
  min-height: 44px;
}

/* 아래는 클래스 선택자라 위의 요소 선택자보다 특이도가 높다. 같은 형태로
   다시 적어 파일 순서로 이긴다. 값을 여기 한 곳에 모아 두면 되돌리기 쉽다. */
body:not(.mobile-view) .theme-toggle button,
body:not(.mobile-view) .language-switch,
body:not(.mobile-view) .topbar-actions .ghost-button,
body:not(.mobile-view) .nav-button,
:root[data-sidebar="collapsed"] body:not(.mobile-view) .nav-button,
body:not(.mobile-view) .nav-subitems a,
body:not(.mobile-view) .tiny-button,
body:not(.mobile-view) .ghost-button,
body:not(.mobile-view) .secondary,
body:not(.mobile-view) .primary-button,
body:not(.mobile-view) .fbtn,
body:not(.mobile-view) .fbtn-sec,
body:not(.mobile-view) .fbtn-danger,
body:not(.mobile-view) .cbtn,
body:not(.mobile-view) .file-download-button,
body:not(.mobile-view) .file-picker-button,
body:not(.mobile-view) .project-attachment-upload .file-picker-button,
body:not(.mobile-view) .attachment-upload .toggle-chip,
body:not(.mobile-view) .stats-collapsible-toggle,
body:not(.mobile-view) .checkbox-select-all,
body:not(.mobile-view) .member-search-input,
body:not(.mobile-view) .member-select,
body:not(.mobile-view) .readonly-field,
body:not(.mobile-view) .back-to-top-button,
body:not(.mobile-view) .notification-page-size select,
body:not(.mobile-view) .notification-search-field input,
body:not(.mobile-view) .research-day-list-filter input[type="date"],
body:not(.mobile-view) .project-all-list-search-row input,
body:not(.mobile-view) .project-list-filter select,
body:not(.mobile-view) .project-evaluation-filter select,
body:not(.mobile-view) .device-evaluation-filter-bar input,
body:not(.mobile-view) .device-evaluation-filter-bar select,
body:not(.mobile-view) .stats-period-form input,
body:not(.mobile-view) .stats-period-form select,
body:not(.mobile-view) .stats-project-filter select,
body:not(.mobile-view) .user-create-grid input,
body:not(.mobile-view) .user-create-grid select,
body:not(.mobile-view) .user-action-cell input,
body:not(.mobile-view) .user-action-cell button,
body:not(.mobile-view) .user-status-form button,
body:not(.mobile-view) .user-reset-form button,
body:not(.mobile-view) .project-status-form button,
body:not(.mobile-view) .project-row-actions > button,
body:not(.mobile-view) .slack-holiday-add-row button,
body:not(.mobile-view) .discussion-health-row .ghost-button,
body:not(.mobile-view) .checkbox-dropdown summary,
body:not(.mobile-view) .mobile-menu-button,
body:not(.mobile-view) .topbar-more-button {
  min-height: 44px;
}

/* 프로젝트 목록은 id 선택자로 34px/32px 을 못 박아 두었다. id 를 같이 써야
   이긴다. */
body:not(.mobile-view) #project-list .research-list-actions button,
body:not(.mobile-view) #project-list .research-list-actions .ghost-button,
body:not(.mobile-view) #project-list .research-list-actions .secondary,
body:not(.mobile-view) #project-list .project-list-filter-drawer > summary {
  min-height: 44px;
}

/* 고른 항목이 "전체" 처럼 짧으면 드롭다운이 68px 까지 줄어 누르기 어려웠다. */
body:not(.mobile-view) select {
  min-width: 120px;
}

/* 공통 LORDIN 상단 제어: 다른 앱과 같은 선택형 테마와 아이콘 로그아웃. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.theme-select-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body:not(.mobile-view) .theme-select {
  width: 76px;
  min-width: 76px;
  height: 36px;
  min-height: 36px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body:not(.mobile-view) .user-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 154px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.mobile-view) .user-chip strong,
body:not(.mobile-view) .user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-icon {
  display: inline-flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
}

.logout-icon:hover,
.logout-icon:focus-visible {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  outline: none;
}

.logout-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1040px) {
  .topbar-actions-menu .theme-select-wrap,
  .topbar-actions-menu .theme-select,
  .topbar-actions-menu .user-chip,
  .topbar-actions-menu .logout-icon {
    width: 100%;
    max-width: none;
  }
}
