:root {
  --page: #f4f6f7;
  --paper: #fff;
  --ink: #182a32;
  --muted: #74838b;
  --line: #e7edef;
  --navy: #142c35;
  --teal: #117e79;
  --teal-dark: #09625e;
  --teal-soft: #e9f5f1;
  --red: #b84240;
  --red-soft: #fff0ef;
  --amber: #a06e20;
  --radius: 14px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.025em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #48aaa3;
}
a {
  color: var(--teal);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  letter-spacing: -0.055em;
}
h2,
h3 {
  letter-spacing: -0.04em;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 12px 20px;
  background: white;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.subtle {
  color: var(--muted);
}
.eyebrow {
  display: block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
}
.eyebrow.light {
  color: #95d2c6;
}
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #75bfaa;
  border-radius: 50%;
  flex-shrink: 0;
}
.boot-message {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.noscript {
  margin: 40px;
}

.login-screen {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100vh;
  background: #fff;
}
.login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
  padding: 48px 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.brand small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #9aafb5;
  margin-top: 6px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.12em;
  border: 1px solid #607a7e;
  border-radius: 10px;
  padding-bottom: 5px;
  padding-right: 4px;
}
.brand-mark span {
  color: #91cfb2;
}
.brand-large {
  gap: 14px;
  font-size: 20px;
}
.brand-large .brand-mark {
  width: 46px;
  height: 46px;
  font-size: 40px;
}
.login-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 100px 0;
}
.login-copy h1 {
  margin: 24px 0 28px;
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.38;
  font-weight: 600;
}
.login-copy p {
  color: #b3c8cc;
  font-size: 16px;
  line-height: 1.9;
}
.login-story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8da6ac;
  font-size: 9px;
  letter-spacing: 0.13em;
}
.orbit {
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  right: -470px;
  bottom: -140px;
}
.orbit-two {
  width: 450px;
  height: 450px;
  right: -325px;
  bottom: -45px;
  border-color: #ffffff0e;
}
.login-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 70px 40px 30px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  margin: auto 0;
  padding: 45px 0;
}
.login-card h2 {
  font-size: 29px;
  font-weight: 700;
  margin: 14px 0 10px;
}
.login-card > p {
  font-size: 13px;
  margin-bottom: 36px;
}
.login-card .field {
  margin-bottom: 20px;
  font-size: 12px;
}
.login-card input {
  min-height: 48px;
  font-size: 14px;
}
.login-submit {
  width: 100%;
  margin-top: 10px;
  justify-content: space-between;
  min-height: 49px;
}
.login-card .login-note {
  font-size: 11px;
  margin: 24px 0 0;
  text-align: center;
  color: #89949b;
}
.login-bottom {
  font-size: 10px;
  color: #9aa7ad;
  letter-spacing: 0.03em;
  margin: 24px 0 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 232px;
  background: var(--navy);
  color: #bacbd0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 24px;
}
.sidebar .brand {
  margin-left: 5px;
}
.workspace-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #38515a;
  border-radius: 8px;
  margin: 32px 0 30px;
  padding: 11px 10px;
  font-size: 8px;
  color: #b3c7cd;
  letter-spacing: 0.08em;
}
.tag-version {
  margin-left: auto;
  background: #2c4851;
  padding: 1px 4px;
  border-radius: 3px;
  color: #91acae;
}
.nav-label {
  font-size: 10px;
  color: #78939b;
  margin: 0 13px 10px;
  font-weight: 600;
}
.nav-label-second {
  margin-top: 30px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b2c6cb;
  padding: 11px 12px;
  margin-bottom: 5px;
  text-align: left;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #233f48;
  color: #fff;
}
.nav-item.active {
  background: #254e53;
  color: #b4ebd5;
  font-weight: 650;
}
.nav-symbol {
  font-size: 20px;
  line-height: 20px;
  width: 22px;
  text-align: center;
  color: #849fa7;
}
.nav-item.active .nav-symbol {
  color: #92d3bb;
}
.sidebar-footer {
  margin-top: auto;
  padding: 25px 9px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #c0cfd2;
}
.sidebar-footer small {
  display: block;
  color: #728f99;
  font-size: 9px;
  margin-top: 3px;
}
.footer-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #3b555e;
  border-radius: 8px;
  color: #86b9b1;
  font-size: 19px;
}
.main-shell {
  margin-left: 232px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 22px;
}
.breadcrumb {
  color: #9ba6ac;
  font-size: 11px;
}
.breadcrumb > span {
  margin: 0 12px;
  color: #c1cbce;
}
.breadcrumb strong {
  color: #5d7079;
  font-weight: 500;
}
.connection-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #6b827c;
  border: 1px solid #e4ece8;
  border-radius: 5px;
  padding: 4px 8px;
}
.connection-pill .small-dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.4;
}
.user-chip small {
  color: #8e9a9f;
  font-size: 9px;
  display: block;
  margin-top: 2px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #edf2ef;
  color: #57836e;
  font-size: 12px;
  font-weight: 650;
}
.mobile-menu {
  display: none !important;
}
#main-content {
  flex: 1;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 35px 40px 36px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading .eyebrow {
  margin-bottom: 6px;
  font-size: 8px;
}
.page-heading h1 {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #dfe7e9;
  border-radius: 7px;
  background: #fff;
  color: #536871;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: #f5f8f9;
}
.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.button.primary:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}
.button.danger {
  color: var(--red);
  border-color: #eacbc9;
}
.button.danger:hover {
  background: var(--red-soft);
}
.button.quiet {
  border-color: transparent;
  background: transparent;
  color: #88979e;
}
.button.compact {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #6f828b;
}
.text-button {
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 11px;
  padding: 3px 0;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 22px 19px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 12px;
  color: #788a91;
}
.stat-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf6f3;
  color: #4f9484;
  font-size: 17px;
}
.stat-symbol.blue {
  background: #eef2fb;
  color: #6586b7;
}
.stat-symbol.amber {
  background: #fcf6eb;
  color: #b18b4c;
}
.stat-symbol.slate {
  background: #f0f3f5;
  color: #7893a0;
}
.stat-value {
  font-size: 29px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: #203a42;
  overflow-wrap: anywhere;
}
.stat-unit {
  font-size: 12px;
  margin-left: 4px;
  color: #8c9a9f;
  font-weight: 400;
}
.stat-note {
  margin-top: 8px;
  font-size: 10px;
  color: #82939a;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 22px;
  margin-bottom: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 24px 18px;
}
.panel-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.panel-body {
  padding: 0 24px 24px;
}
.panel-header .eyebrow {
  margin: 0 0 6px;
  font-size: 8px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
thead {
  background: #f9fbfb;
}
th {
  font-size: 11px;
  font-weight: 550;
  color: #83949c;
  padding: 12px 22px;
  white-space: nowrap;
  border-top: 1px solid #f0f4f4;
  border-bottom: 1px solid #edf1f2;
}
td {
  padding: 15px 22px;
  border-bottom: 1px solid #f0f4f4;
  vertical-align: middle;
  color: #5f747d;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfefe;
}
.file-cell {
  min-width: 170px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.file-icon {
  background: #f0f5f4;
  border-radius: 7px;
  width: 30px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #6e9f91;
  font-size: 15px;
}
.file-name {
  display: block;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  color: #38535c;
  font-size: 12px;
}
.file-meta {
  display: block;
  font-size: 10px;
  color: #8d9da5;
  margin-top: 3px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0;
}
.muted-cell {
  color: #94a1a8;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  background: #f0f3f5;
  color: #8697a0;
}
.badge::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.completed,
.badge.active {
  background: #edf7f1;
  color: #46866b;
}
.badge.processing {
  background: #edf3ff;
  color: #6389be;
}
.badge.queued {
  background: #fcf5e8;
  color: #ae8a48;
}
.badge.failed,
.badge.inactive {
  background: #fff0ef;
  color: #b76762;
}
.badge.cancelled {
  background: #f1f3f5;
  color: #89979e;
}
.workload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.workload-item > span:first-child {
  font-size: 10px;
  color: #7a8e97;
  width: 42px;
  flex-shrink: 0;
}
.workload-item strong {
  font-size: 10px;
  color: #5a727b;
  width: 30px;
  text-align: right;
  font-weight: 500;
}
.bar-track {
  height: 6px;
  background: #f0f4f5;
  border-radius: 8px;
  flex: 1;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #99c5b6;
  min-width: 0;
}
.bar-fill.processing {
  background: #9fb9de;
}
.bar-fill.queued {
  background: #dec99f;
}
.bar-fill.failed {
  background: #dca9a5;
}
.workload-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 3px 0 19px;
}
.workload-total strong {
  font-size: 31px;
  font-weight: 600;
  color: #29464d;
}
.workload-total span {
  color: #98a8ad;
  font-size: 10px;
}
.panel-footnote {
  border-top: 1px solid #edf2f3;
  padding-top: 14px;
  margin: 20px 0 0;
  font-size: 9px;
  color: #9aa9ae;
  line-height: 1.7;
}
.info-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 25px;
  border: 1px solid #deebe6;
  border-radius: var(--radius);
  background: #ecf4f0;
  margin-bottom: 23px;
}
.info-banner > .banner-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #d2e3da;
  color: #6c9e8a;
  border-radius: 11px;
  font-size: 23px;
  flex-shrink: 0;
}
.info-banner h3 {
  font-size: 12px;
  margin: 0 0 3px;
  font-weight: 650;
  color: #426d5f;
}
.info-banner p {
  font-size: 10px;
  color: #82988e;
  margin: 0;
  line-height: 1.7;
}
.info-banner .button {
  margin-left: auto;
  border-color: #d0e1d7;
  color: #567d6c;
  background: transparent;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}
.filter-bar .field {
  margin: 0;
  min-width: 130px;
}
.filter-bar input,
.filter-bar select {
  min-height: 34px;
  font-size: 11px;
}
.filter-bar .search-field {
  flex: 1;
  min-width: 180px;
}
.filter-bar .filter-caption {
  margin-left: auto;
  color: #9aa8af;
  font-size: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #546a74;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 17px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 41px;
  border: 1px solid #dfe7e9;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: #38515d;
  font-size: 12px;
  font-weight: 400;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b4bfc4;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #7db0a8;
  outline: 2px solid #117e7912;
  outline-offset: 0;
}
.field small {
  color: #98a5ac;
  font-size: 10px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field select {
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .wide {
  grid-column: 1 / -1;
}
.upload-panel {
  margin-bottom: 23px;
}
.upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.05fr);
  gap: 27px;
  padding: 0 24px 23px;
}
.upload-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 184px;
  padding: 25px 18px;
  border: 1px dashed #bfd5cc;
  border-radius: 10px;
  background: #f7fbf9;
  text-align: center;
  cursor: pointer;
}
.upload-drop.dragging {
  background: #eaf5ef;
  border-color: var(--teal);
}
.upload-drop:focus-within {
  outline: 3px solid #48aaa3;
  outline-offset: 3px;
}
.upload-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  background: #e8f2ec;
  color: #649780;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 25px;
  margin-bottom: 12px;
}
.upload-drop strong {
  font-size: 12px;
  font-weight: 600;
  color: #4e7263;
  overflow-wrap: anywhere;
}
.upload-drop small {
  font-size: 10px;
  color: #8fa79b;
  margin-top: 5px;
}
.upload-controls .field {
  margin-bottom: 12px;
}
.upload-controls .form-grid {
  gap: 0 12px;
}
.upload-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.upload-bottom p {
  margin: 0;
  color: #98a7ae;
  font-size: 9px;
  line-height: 1.6;
}
.empty-state {
  padding: 44px 24px;
  text-align: center;
  color: #9caab1;
}
.empty-symbol {
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  width: 43px;
  height: 43px;
  border: 1px solid #e6eeed;
  border-radius: 12px;
  font-size: 22px;
  color: #8faea5;
  background: #f7faf9;
}
.empty-state strong {
  display: block;
  font-size: 12px;
  color: #6e848d;
  margin-bottom: 5px;
  font-weight: 550;
}
.empty-state p {
  font-size: 10px;
  margin: 0;
}
.initial-loading {
  padding: 60px 20px;
  text-align: center;
  color: #96a7ae;
  font-size: 12px;
}
.inline-error {
  color: var(--red);
  font-size: 11px;
  border: 1px solid #f2d9d6;
  border-radius: 7px;
  background: #fff5f4;
  padding: 10px 12px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.view-error {
  margin: 15px 24px 24px;
}
.notice {
  border: 1px solid #dce9e3;
  background: #f1f8f4;
  border-radius: 8px;
  padding: 12px 14px;
  color: #648575;
  font-size: 11px;
  margin: 0 0 18px;
}
.notice.warning {
  border-color: #ecdfc2;
  background: #fcf7eb;
  color: #957d43;
}
.usage-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 24px 22px;
  color: #8c9da5;
  font-size: 11px;
}
.usage-summary strong {
  color: #315450;
  font-size: 25px;
  font-weight: 600;
}
.main-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a0adb2;
  border-top: 1px solid #e4ebed;
  padding: 16px 40px;
  font-size: 9px;
  margin-top: auto;
  letter-spacing: 0.01em;
  gap: 12px;
}
.notification {
  position: fixed;
  right: 26px;
  top: 20px;
  z-index: 100;
  max-width: min(460px, calc(100vw - 40px));
  padding: 13px 19px;
  border: 1px solid #cde5d8;
  background: #f4fbf6;
  color: #37624e;
  border-radius: 10px;
  box-shadow: 0 8px 35px #16352a12;
  font-size: 12px;
}
.notification.error {
  background: #fff5f4;
  border-color: #ebcfcb;
  color: #aa5149;
}
.action-dialog {
  width: min(540px, calc(100vw - 36px));
  max-height: calc(100dvh - 50px);
  margin: auto;
  border: 1px solid #dfe8e8;
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 25px 100px #142c3533;
}
.action-dialog.wide-dialog {
  width: min(850px, calc(100vw - 36px));
}
.action-dialog::backdrop {
  background: #142c356b;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 26px 18px;
  border-bottom: 1px solid #edf2f3;
}
.dialog-header h2 {
  margin: 0;
  font-size: 18px;
}
.dialog-body {
  padding: 23px 26px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 5px;
}
.dialog-description {
  color: #81959e;
  font-size: 11px;
  margin-bottom: 22px;
  line-height: 1.8;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.detail-heading .file-name {
  max-width: 560px;
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: #f7faf9;
  border: 1px solid #e9f0ed;
  border-radius: 10px;
  margin-bottom: 19px;
}
.detail-item {
  min-width: 0;
}
.detail-item dt {
  font-size: 9px;
  color: #96a6ae;
  margin-bottom: 4px;
}
.detail-item dd {
  margin: 0;
  color: #56737c;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.result-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #506772;
  line-height: 1.9;
  font-size: 12px;
  padding: 20px;
  background: #fafcfc;
  border: 1px solid #e7eeee;
  border-radius: 9px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0 0 18px;
}
.download-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.download-row > span {
  color: #8b9da5;
  font-size: 10px;
  margin-right: 6px;
}
.download-row .button {
  min-height: 31px;
  font-size: 10px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
  border-top: 1px solid #edf2f3;
  padding-top: 18px;
}
.secret-box {
  display: block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  border: 1px solid #ceded7;
  border-radius: 8px;
  padding: 15px;
  background: #f4faf6;
  color: #3e6a55;
  overflow-wrap: anywhere;
  user-select: all;
  margin-bottom: 16px;
}
.checkbox-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #6c838b;
  font-size: 11px;
  margin: 12px 0;
}
.checkbox-row input {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
}
.code-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafb;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #647d88;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.section-gap {
  margin-bottom: 23px;
}
.metadata-details {
  border-top: 1px solid #edf2f3;
  margin: 0 24px 22px;
  padding-top: 14px;
}
.metadata-details summary {
  cursor: pointer;
  font-size: 11px;
  color: #648578;
  padding: 3px 0 11px;
}
.metadata-details > p {
  font-size: 10px;
  color: #97a8ae;
  margin: 0 0 15px;
}
.timeline-heading {
  font-size: 12px;
  font-weight: 600;
  margin: 21px 0 10px;
  color: #52756c;
}
.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.timeline-toolbar .timeline-heading { margin: 0; }
.timeline-view-switch { display: flex; gap: 4px; }
.timeline-view-switch .button { padding: 7px 12px; font-size: 11px; }
.timeline-view-switch .button[aria-pressed="true"] {
  color: #2d6356;
  background: #eaf4ef;
  border-color: #9fc5b7;
}
.timeline-summary { font-size: 11px; color: #657d86; margin: 12px 0; }
.conversation-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.conversation-turn {
  border: 1px solid #e1ece7;
  border-left: 3px solid #87b6a3;
  border-radius: 10px;
  padding: 14px 17px;
  background: #f8fbf9;
  min-width: 0;
}
.conversation-turn.tone-1 { border-left-color: #94acd0; background: #f8faff; }
.conversation-turn.tone-2 { border-left-color: #cbb586; background: #fcfaf6; }
.conversation-turn.tone-3 { border-left-color: #b59ac5; background: #fbf8fc; }
.conversation-turn.unassigned { border-left-color: #a9b0b4; background: #f7f8f9; }
.conversation-turn-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.conversation-time { color: #657d86; font-size: 10px; }
.conversation-turn-text {
  margin: 9px 0 0;
  color: #29444f;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.timeline-info { margin-top: 16px; color: #657d86; font-size: 11px; }
.timeline-info summary { cursor: pointer; }
.timeline-info p { line-height: 1.7; overflow-wrap: anywhere; }
.timeline-wrap {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #e7eeee;
  border-radius: 9px;
  margin: 0 0 20px;
}
.timeline-wrap table {
  font-size: 11px;
}
.timeline-wrap th {
  position: sticky;
  top: 0;
  background: #f6faf8;
  z-index: 1;
}
.timeline-wrap th,
.timeline-wrap td {
  padding: 10px 13px;
}
.timeline-text {
  min-width: 220px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline-time {
  white-space: nowrap;
  font-size: 9px;
  color: #9aabb1;
}
.speaker-label {
  display: inline-block;
  font-size: 10px;
  color: #548674;
  background: #edf6f0;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.speaker-label.tone-1 {
  background: #edf2fb;
  color: #6d89b1;
}
.speaker-label.tone-2 {
  background: #faf3e8;
  color: #b19461;
}
.speaker-label.tone-3 {
  background: #f5eef8;
  color: #a180b0;
}

@media (min-width: 1600px) {
  #main-content {
    padding-top: 42px;
  }
  .stats-grid {
    gap: 22px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .main-shell {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 26px;
  }
  #main-content {
    padding: 30px 26px;
  }
  .main-footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  .topbar-end {
    gap: 13px;
  }
  .stat-card {
    padding: 18px 16px;
  }
  .stat-value {
    font-size: 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
    gap: 17px;
  }
  .login-story {
    padding-left: 40px;
    padding-right: 40px;
  }
  th,
  td {
    padding-left: 17px;
    padding-right: 17px;
  }
}
@media (max-width: 1000px) {
  .connection-pill {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .upload-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .upload-drop {
    min-height: 150px;
  }
  .login-story {
    padding-left: 30px;
    padding-right: 25px;
  }
  .login-copy h1 {
    font-size: 32px;
  }
  .login-story-footer {
    font-size: 7px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 232px;
    transition: transform 0.2s;
    box-shadow: 20px 0 50px #142c3524;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid !important;
  }
  .topbar {
    padding: 0 19px;
    height: 66px;
  }
  .topbar-start {
    gap: 12px;
  }
  .topbar-end {
    gap: 8px;
  }
  .user-chip > div {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb > span {
    margin: 0 7px;
  }
  #main-content {
    padding: 24px 19px;
  }
  .page-heading {
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    max-width: 240px;
    line-height: 1.7;
    font-size: 10px;
  }
  .heading-actions .button {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-note {
    font-size: 8px;
  }
  .info-banner {
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }
  .info-banner .button {
    display: none;
  }
  .panel-header {
    padding: 19px;
  }
  .panel-body {
    padding: 0 19px 20px;
  }
  .filter-bar {
    padding: 0 19px 17px;
    gap: 9px;
  }
  .filter-bar .filter-caption {
    display: none;
  }
  .upload-grid {
    padding: 0 19px 20px;
  }
  .upload-bottom {
    align-items: flex-end;
  }
  .main-footer {
    padding: 15px 19px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 25px 28px;
  }
  .brand-large {
    font-size: 16px;
  }
  .brand-large .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 30px;
  }
  .login-copy {
    padding: 38px 0 14px;
  }
  .login-copy h1 {
    font-size: 28px;
    margin: 13px 0 15px;
  }
  .login-copy p {
    font-size: 12px;
    margin: 0;
  }
  .login-story-footer {
    display: none;
  }
  .login-form-side {
    padding: 28px;
    min-height: 480px;
  }
  .login-card {
    padding: 20px 0;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .login-card > p {
    margin-bottom: 25px;
  }
  .login-bottom {
    font-size: 9px;
  }
  .dialog-body {
    padding: 21px;
  }
  .dialog-header {
    padding: 20px 21px 17px;
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-heading {
    align-items: flex-start;
  }
  .detail-heading .file-name {
    max-width: 230px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.audio-review { display: grid; gap: .5rem; margin: 1rem 0; }
.audio-review audio { width: 100%; }
.speaker-editor { margin-top: .5rem; font-size: .8rem; }
.speaker-editor summary { cursor: pointer; }
.speaker-edit-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem 0; }
.speaker-edit-controls select { width: auto; min-width: 7rem; }
.speaker-review-result p { margin: .45rem 0 0; overflow-wrap: anywhere; }
.speaker-review-result strong { font-size: .8rem; }
.speaker-review-badge { display: inline-block; color: #896222; background: #fcf3df; border: 1px solid #ead4a8; border-radius: 5px; font-size: .72rem; padding: .2rem .4rem; margin: .35rem .4rem .35rem 0; }
