:root {
  --ink: #17261f;
  --muted: #66756d;
  --forest: #145c3d;
  --forest-dark: #0c452d;
  --forest-soft: #e4f2e9;
  --leaf: #2f8a5d;
  --cream: #f5f4ee;
  --paper: #fffefa;
  --line: #dde3dd;
  --amber: #b56616;
  --amber-soft: #fff0d8;
  --red: #b83a39;
  --red-soft: #fde8e7;
  --blue: #356f91;
  --blue-soft: #e3f0f7;
  --violet: #7153a5;
  --violet-soft: #eee9f7;
  --shadow-sm: 0 1px 2px rgba(23, 38, 31, .07), 0 7px 24px rgba(23, 38, 31, .04);
  --shadow-lg: 0 20px 60px rgba(12, 69, 45, .14);
  --radius: 18px;
  --sidebar: 252px;
}
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.55 "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body, input, select, textarea, button { font-family: inherit; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button, input, select, textarea { font-size: 15px; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(47, 138, 93, .35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 16px; }

.icon {
  display: inline-grid;
  min-width: 1.15em;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 22px 16px 18px;
  overflow-y: auto;
  background: #123f2c;
  color: #eef8f1;
}

.sidebar-brand { padding: 0 8px 22px; }
.sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}
.sidebar-brand a:hover { text-decoration: none; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 14px; line-height: 1.45; letter-spacing: .01em; }
.sidebar-brand small { margin-top: 1px; color: #b8d2c3; font-size: 11px; }

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #d9efcf;
  color: #154d35;
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.brand-mark-large { width: 58px; height: 58px; border-radius: 18px; font-size: 28px; }

.sidebar nav { display: grid; gap: 4px; }
.nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #cfe1d6;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav-link .icon { color: inherit; font-size: 18px; }
.nav-link:hover { background: rgba(255,255,255,.08); color: white; text-decoration: none; transform: translateX(2px); }
.nav-link.active { background: #e9f4e5; color: var(--forest-dark); }
.nav-link.active .icon { color: var(--forest); }
.nav-section-label {
  margin: 22px 12px 7px;
  color: #7da28e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.user-menu {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  color: white;
}
.user-card:hover { background: rgba(255,255,255,.11); text-decoration: none; }
.user-card strong, .user-card small { display: block; }
.user-card strong { font-size: 13px; }
.user-card small { color: #a9c8b7; font-size: 11px; }
.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #d9efcf;
  color: var(--forest-dark);
  font-weight: 800;
}

.main {
  width: calc(100% - var(--sidebar));
  max-width: 1440px;
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 40px clamp(24px, 4vw, 64px) 24px;
}

.mobile-header, .sidebar-backdrop { display: none; }

.footer { padding: 50px 0 14px; color: var(--muted); font-size: 12px; text-align: center; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-header h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.18; letter-spacing: -.025em; }
.page-subtitle { max-width: 720px; margin: 7px 0 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.eyebrow {
  margin: 0 0 5px;
  color: var(--leaf);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.card, .detail-hero, .table-frame, .filter-form {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.card { padding: 22px; border-radius: var(--radius); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
.section-heading h2 { margin: 0; font-size: 19px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.metric-card > span {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--forest-soft);
  color: var(--forest);
}
.metric-card strong { display: block; margin-top: 18px; font-size: 31px; line-height: 1; }
.metric-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
.task-list { display: grid; gap: 4px; }
.task-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--ink);
}
.task-row:hover { background: #f2f6f2; text-decoration: none; }
.task-row strong, .task-row small { display: block; }
.task-row strong { font-size: 14px; }
.task-row small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.task-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; }
.task-icon.amber { background: var(--amber-soft); color: var(--amber); }
.task-icon.red { background: var(--red-soft); color: var(--red); }
.empty-inline { display: flex; align-items: center; gap: 12px; padding: 18px; color: var(--muted); }
.empty-inline span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--forest-soft); color: var(--forest); }
.empty-inline p { margin: 0; }

.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.module-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
}
.module-card > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: transparent; font-size: 25px; }
.module-card strong { font-size: 13px; }
.module-card small { grid-column: 2 / 4; color: var(--muted); font-size: 11px; }
.module-card:hover { border-color: #b9d0c1; background: #fbfdfb; text-decoration: none; }

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: white; box-shadow: 0 5px 12px rgba(20,92,61,.14); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-secondary { border-color: var(--line); background: white; color: var(--ink); }
.btn-secondary:hover { background: #f6f8f5; }
.btn-success { background: var(--forest-soft); color: var(--forest-dark); }
.btn-danger { background: var(--red); color: white; }
.btn-danger-quiet { border-color: #ecc7c5; background: white; color: var(--red); }
.btn-quiet { border-color: rgba(255,255,255,.16); background: transparent; color: #dcebe1; }
.btn-quiet:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: 12px; }
.btn-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: inline; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.badge-green { background: var(--forest-soft); color: var(--forest-dark); }
.badge-blue { background: var(--blue-soft); color: #245975; }
.badge-amber { background: var(--amber-soft); color: #8a4c0d; }
.badge-red { background: var(--red-soft); color: #942a2a; }
.badge-violet { background: var(--violet-soft); color: #594083; }
.badge-gray { background: #edf0ed; color: #59645e; }

.alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.alert a { font-weight: 700; }
.alert-success { border-color: #b6d8c2; background: var(--forest-soft); color: var(--forest-dark); }
.alert-error { border-color: #f0c5c3; background: var(--red-soft); color: #842b2a; }
.alert-info { border-color: #c7dce8; background: var(--blue-soft); color: #245975; }

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 15px;
}
.filter-form:has(.field:nth-of-type(3)) { grid-template-columns: repeat(3, minmax(140px, 1fr)) auto; }
.single-filter { grid-template-columns: minmax(220px, 420px) auto; justify-content: start; }
.filter-form .field { margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-weight: 700; }
.filter-chip:hover, .filter-chip.active { border-color: var(--forest); background: var(--forest); color: white; text-decoration: none; }

.field { min-width: 0; margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; color: #4f5e56; font-size: 13px; font-weight: 700; }
.required { margin-right: 3px; color: var(--red); }
.field-help { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
input:not([type="hidden"]), select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8d1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,138,93,.14); }
input[type="file"] { padding: 8px; background: #f8faf8; }
.stack-form { display: grid; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-card { max-width: 920px; }
.compact-form { display: grid; margin-top: 14px; }
.section-divider { height: 1px; margin: 12px 0 24px; background: var(--line); }

.table-frame { width: 100%; overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e8ece8; text-align: left; vertical-align: middle; }
th { background: #f1f4f0; color: #5a6860; font-size: 11px; letter-spacing: .035em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfa; }
td { max-width: 360px; }
.table-link { color: var(--ink); font-weight: 800; }
.cell-sub { display: block; max-width: 360px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wrap-text { display: block; min-width: 180px; max-width: 460px; overflow-wrap: anywhere; }
.danger-text { color: var(--red); }
.empty-state { display: grid; min-height: 170px; place-items: center; align-content: center; gap: 7px; border: 1px dashed #ccd5ce; border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.55); }
.empty-state span { font-size: 30px; color: #98aaa0; }
.empty-state p { margin: 0; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: 26px;
  margin-bottom: 18px;
  padding: 25px;
  border-radius: var(--radius);
}
.detail-hero > div:first-child { display: grid; align-content: center; justify-items: start; padding: 7px 12px; border-right: 1px solid var(--line); }
.detail-hero p { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.detail-hero strong { margin-bottom: 9px; font-size: 32px; line-height: 1.1; }
.detail-hero strong small { color: var(--muted); font-size: 14px; }
.detail-hero > div > small { color: var(--muted); }
.detail-status { font-size: 16px !important; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; margin: 0; }
.detail-list > div { min-width: 0; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); gap: 18px; align-items: start; }
.action-card { margin: 0; }
.note-box { margin: 0; padding: 14px; border-radius: 11px; background: #f3f5f2; color: #49574f; white-space: pre-wrap; overflow-wrap: anywhere; }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.create-panel { margin-top: 16px; }
.approval-panel { min-width: 120px; }
.approval-form { width: min(360px, 76vw); padding-top: 12px; }
.review-buttons { flex-wrap: nowrap; }
.admin-record-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.admin-record-actions .inline-form { display: inline-flex; margin: 0; }
.admin-record-actions .btn { min-width: 48px; }

.inline-control .field { margin: 0; }
.inline-control label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inline-control select { min-width: 100px; min-height: 36px; padding: 5px 8px; font-size: 12px; }

.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.group-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcf9; }
.group-card > div { display: flex; justify-content: space-between; gap: 10px; }
.group-card small, .group-card p { color: var(--muted); }
.group-card p { min-height: 42px; margin: 8px 0; font-size: 12px; }

.permission-panel { min-width: 150px; }
.permission-panel[open] { position: relative; z-index: 3; }
.permission-panel .compact-form { width: min(620px, 76vw); max-height: 72vh; overflow: auto; }
.permission-heading { margin: 0 0 8px; font-size: 13px; }
.permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.permission-page { width: min(100%, 820px); }
.permission-instruments { margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.permission-instruments[hidden] { display: none; }
.check-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.check-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: var(--forest);
}
.check-option span, .check-option small { display: block; min-width: 0; }
.check-option small { margin-top: 2px; color: var(--muted); font-weight: 500; }
.choice-field { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.choice-field legend { padding: 0 6px; color: #4f5e56; font-size: 13px; font-weight: 700; }
.presenter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.instrument-assignment { max-height: 230px; overflow: auto; padding-right: 3px; }

.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.score-card { display: grid; justify-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf9; text-align: center; }
.score-card h3 { margin: 2px 0; }
.score-card small { color: var(--muted); }
.score-summary { display: grid; margin: 0; }
.score-summary strong { color: var(--forest); font-size: 28px; }
.score-summary span { color: var(--muted); font-size: 12px; }
.score-qr { width: 180px; height: 180px; max-width: 100%; border: 8px solid #fff; border-radius: 10px; }
.qr-help { display: block; max-width: 620px; margin: 10px 0 14px; color: var(--muted); line-height: 1.65; }
.combined-score-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.combined-score-card h2 { margin: 2px 0 8px; }
.presenter-score-block { display: grid; gap: 16px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.presenter-score-block legend { display: flex; align-items: baseline; gap: 10px; padding: 0 8px; }
.presenter-score-block legend span { color: var(--muted); font-size: 12px; }
.table-qr { width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.cabinet-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.cabinet-qr { width: 220px; height: 220px; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.score-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.approval-stack { display: grid; gap: 5px; font-size: 11px; }
.approval-stack > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.approval-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.approval-stage { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf9; }
.approval-stage > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.approval-stage p, .approval-stage small { display: block; margin: 8px 0 0; color: var(--muted); }

.invoice-upload-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, .45fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
}
.invoice-upload-box .field { margin: 0; }
.ocr-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.repeat-list { display: grid; gap: 10px; margin-bottom: 18px; }
.repeat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) auto; align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf9; }
.repeat-row .field { margin: 0; }
.repeat-remove { margin-bottom: 1px; }

.expense-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expense-filter {
  grid-template-columns: 92px 150px minmax(155px, 1fr) minmax(155px, 1fr) 78px !important;
  gap: 10px;
}
.expense-filter .btn { min-width: 0; padding-right: 10px; padding-left: 10px; white-space: nowrap; }
.expense-metric strong { font-size: 25px; }
.total-banner { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 16px 0; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--forest), #236844); color: white; box-shadow: var(--shadow-md); }
.total-banner p, .total-banner strong { display: block; margin: 0; }
.total-banner p { color: #c9dfd1; font-size: 13px; }
.total-banner strong { margin-top: 5px; font-size: clamp(28px, 4vw, 42px); }
.total-banner small { color: #dceae1; }
.expense-progress { width: min(220px, 100%); height: 10px; border: 0; border-radius: 99px; overflow: hidden; accent-color: var(--forest); }
.expense-progress::-webkit-progress-bar { border-radius: 99px; background: #e6ebe6; }
.expense-progress::-webkit-progress-value { border-radius: 99px; background: var(--forest); }
.expense-share-comparison { display: flex; width: min(220px, 100%); flex-direction: column; align-items: stretch; gap: 8px; }
.expense-share-comparison strong { display: block; width: 100%; line-height: 1; }
.expense-share-comparison .expense-progress { display: block; width: 100%; margin: 0; }
.expense-ranking { align-items: start; }

.meeting-score-shell { padding: clamp(18px, 3vw, 34px); }
.meeting-score-title { margin: 0; color: #319342; font-size: clamp(25px, 4vw, 43px); line-height: 1.2; text-align: center; word-break: keep-all; overflow-wrap: normal; }
.meeting-score-reminder { margin: 10px 0 28px; color: #3694b1; font-size: clamp(16px, 2vw, 23px); font-weight: 800; text-align: center; }
.meeting-score-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid #626762; background: #fff; }
.meeting-score-column-head, .meeting-score-person { display: grid; grid-template-columns: 18% 17% 17% 16% 16% 16%; min-width: 0; }
.meeting-score-column-head { background: #f6f8f5; }
.meeting-score-column-head > span { display: grid; min-height: 76px; place-content: center; padding: 12px 8px; border-left: 1px solid #aeb7af; text-align: center; font-size: 16px; font-weight: 800; }
.meeting-score-column-head > span:first-child { border-left: 0; }
.meeting-score-column-head small { display: block; font-size: 12px; font-weight: 600; }
.meeting-score-person { border-top: 1px solid #626762; background: #fff; }
.meeting-score-person > header, .meeting-score-fields { display: contents; }
.meeting-score-person > header > div:first-child { display: grid; grid-row: 1; grid-column: 1; min-height: 88px; place-content: center; padding: 12px; text-align: center; }
.meeting-score-person > header > div:first-child > small { display: none; }
.meeting-score-person header small, .meeting-score-total span { color: var(--muted); font-size: 12px; font-weight: 700; }
.meeting-score-person h3 { margin: 0; font-size: 18px; }
.meeting-score-total { display: flex; grid-row: 1; grid-column: 6; align-items: baseline; justify-content: center; gap: 3px; min-height: 88px; padding: 12px 8px; border-left: 1px solid #aeb7af; white-space: nowrap; }
.meeting-score-total span { display: none; }
.meeting-score-field { display: grid; min-width: 0; min-height: 88px; place-items: center; padding: 12px 10px; border-left: 1px solid #aeb7af; }
.meeting-score-field:nth-child(1) { grid-row: 1; grid-column: 2; }
.meeting-score-field:nth-child(2) { grid-row: 1; grid-column: 3; }
.meeting-score-field:nth-child(3) { grid-row: 1; grid-column: 4; }
.meeting-score-field:nth-child(4) { grid-row: 1; grid-column: 5; }
.meeting-score-field > span { display: none; align-items: baseline; justify-content: space-between; gap: 5px; font-size: 13px; font-weight: 800; }
.meeting-score-field > span small { color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.meeting-score-field input[type="number"] { width: min(124px, 100%); min-width: 0; padding: 12px 8px; border: 1px solid #929992; border-radius: 8px; text-align: center; font-size: 16px; }
.score-total { color: var(--forest); font-size: 20px; font-weight: 900; }
.scorer-info-row { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; overflow: hidden; border: 1px solid #aeb7af; border-radius: 14px; background: #fff; }
.scorer-info-row > * { min-height: 116px; padding: 28px; }
.scorer-info-row > * + * { border-left: 1px solid #626762; }
.scorer-identity, .scorer-name { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 18px; }
.scorer-identity label { display: inline-flex; align-items: center; gap: 7px; }
.scorer-identity input { width: 19px; height: 19px; }
.scorer-name input { width: min(220px, 100%); padding: 12px; border: 1px solid #929992; border-radius: 5px; }
.score-submit-row { display: flex; justify-content: center; gap: 26px; padding: 30px 16px 4px; }
.score-submit-row .btn { min-width: 110px; font-size: 17px; }
.check-option.is-disabled { opacity: .45; background: #f1f3f0; }
.feedback-alert { color: #9a5b0d; font-weight: 800; }
.feedback-submit-form { margin-bottom: 6px; }
.feedback-history-title { margin: 18px 0 12px; }
.feedback-handle-form { display: flex; min-width: 220px; align-items: center; gap: 7px; }
.feedback-handle-form input { min-width: 125px; padding: 8px 9px; }
.feedback-result { display: grid; gap: 3px; min-width: 140px; }
.feedback-result small { color: var(--muted); font-size: 11px; }

.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow-sm); }
.pagination-summary { margin-right: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pagination-links, .pagination-settings, .pagination-jump { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination-settings label, .pagination-jump label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pagination-settings select { width: 82px; min-height: 34px; padding: 4px 7px; }
.pagination-jump input[type="number"] { width: 58px; min-height: 34px; padding: 4px 7px; text-align: center; }
.page-number { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #f5f7f5; color: var(--ink); font-size: 13px; font-weight: 700; }
.page-number:hover { border-color: var(--forest); text-decoration: none; }
.page-number.is-current { border-color: var(--forest); background: var(--forest); color: white; }
.page-number.is-disabled { pointer-events: none; opacity: .38; }
.page-ellipsis { display: grid; min-width: 28px; height: 34px; place-items: center; color: var(--muted); font-weight: 800; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.purchase-total { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3px 16px; padding: 18px 20px; border: 1px solid #b9d3c1; border-radius: 14px; background: var(--forest-soft); }
.purchase-total span { color: var(--muted); font-weight: 700; }
.purchase-total strong { color: var(--forest); font-size: 28px; }
.purchase-total small { grid-column: 1 / -1; color: var(--muted); }
.achievement-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.achievement-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); }
.achievement-card-head, .achievement-card-head > div, .achievement-actions { display: flex; align-items: center; gap: 8px; }
.achievement-card-head { justify-content: space-between; color: var(--muted); font-size: 12px; }
.achievement-card h2 { margin: 14px 0 5px; font-size: 19px; overflow-wrap: anywhere; }
.achievement-authors { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.achievement-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.achievement-meta > div { min-width: 0; padding: 10px; border-radius: 10px; background: #f5f7f4; }
.achievement-meta dt { color: var(--muted); font-size: 11px; }
.achievement-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.achievement-projects { grid-column: 1 / -1; }
.achievement-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.achievement-actions .review-buttons { margin-right: auto; }
.page-indicator { color: var(--muted); font-size: 12px; }
.achievement-title-cell, .achievement-detail-cell { display: grid; min-width: 0; gap: 3px; }
.achievement-title-cell { min-width: 270px; }
.achievement-title-cell strong, .achievement-title-cell small, .achievement-detail-cell small { overflow-wrap: anywhere; }
.achievement-title-cell small, .achievement-detail-cell small { color: var(--muted); font-size: 11px; }
.achievement-tag-cell { display: flex; min-width: 96px; flex-wrap: wrap; gap: 5px; }
.achievement-row-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.achievement-row-actions .button-row { flex-wrap: nowrap; }
.wrap-text { display: block; min-width: 110px; max-width: 260px; overflow-wrap: anywhere; }
.achievement-table table { table-layout: fixed; }
.achievement-table th, .achievement-table td { max-width: none; padding-right: 7px; padding-left: 7px; overflow-wrap: anywhere; }
.achievement-table th { white-space: normal; }
.achievement-table td { font-size: 12px; }
.achievement-table th:nth-child(1) { width: 7%; }
.achievement-table th:nth-child(2) { width: 7%; }
.achievement-table th:nth-child(3) { width: 25%; }
.achievement-table th:nth-child(4) { width: 8%; }
.achievement-table th:nth-child(5) { width: 8%; }
.achievement-table th:nth-child(6) { width: 9%; }
.achievement-table th:nth-child(7) { width: 10%; }
.achievement-table th:nth-child(8) { width: 16%; }
.achievement-table th:nth-child(9) { width: 10%; }
.achievement-table .achievement-title-cell, .achievement-table .achievement-tag-cell { min-width: 0; }
.achievement-table .wrap-text { min-width: 0; max-width: none; }
.achievement-table .achievement-row-actions, .achievement-table .review-buttons { flex-wrap: wrap; white-space: normal; }
.achievement-table .admin-record-actions .btn, .achievement-table .review-buttons .btn { min-width: 40px; padding-right: 7px; padding-left: 7px; }

.error-card { max-width: 600px; margin: 12vh auto; padding: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; box-shadow: var(--shadow-lg); }
.error-card h1 { margin: 0 0 8px; }
.error-card p { color: var(--muted); }
.error-card .error-code { margin: 0; color: var(--forest); font-size: 58px; font-weight: 900; }

/* Authentication */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 15%, rgba(217,239,207,.15), transparent 31%),
    radial-gradient(circle at 85% 80%, rgba(255,240,216,.12), transparent 26%),
    #103d2a;
}
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); min-height: 100vh; }
.auth-intro { display: grid; align-content: center; max-width: 720px; padding: clamp(50px, 8vw, 120px); color: white; }
.auth-intro .eyebrow { margin-top: 25px; color: #a7cbb7; }
.auth-intro h1 { max-width: 650px; margin: 6px 0 19px; font-size: clamp(35px, 4.5vw, 62px); line-height: 1.12; letter-spacing: -.035em; }
.auth-intro > p:not(.eyebrow) { max-width: 600px; color: #c7dbcf; font-size: 17px; }
.auth-intro ul { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; color: #dceae1; }
.auth-intro li::before { content: "✓"; display: inline-grid; width: 24px; height: 24px; margin-right: 9px; place-items: center; border-radius: 50%; background: rgba(217,239,207,.13); color: #d9efcf; font-weight: 800; }
.auth-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.auth-scope span { padding: 6px 11px; border: 1px solid rgba(217,239,207,.22); border-radius: 999px; background: rgba(217,239,207,.08); color: #dceae1; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.auth-panel { display: grid; align-content: center; padding: clamp(22px, 5vw, 70px); background: var(--cream); }
.auth-card { width: min(100%, 520px); margin: 0 auto; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-lg); }
.auth-card h2 { margin: 0 0 5px; font-size: 28px; }
.auth-subtitle { margin: 0 0 23px; color: var(--muted); }
.auth-link { margin: 18px 0 0; text-align: center; }
.auth-foot { margin: 18px auto 0; color: var(--muted); font-size: 11px; text-align: center; }
.success-panel { display: grid; justify-items: center; gap: 8px; padding: 25px 5px 8px; text-align: center; }
.success-panel > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--forest-soft); color: var(--forest); font-size: 27px; font-weight: 900; }
.success-panel h3, .success-panel p { margin: 0; }
.success-panel p { margin-bottom: 12px; color: var(--muted); }

@media (max-width: 1120px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .expense-grid { grid-template-columns: 1fr 1fr; }
  .presenter-grid { grid-template-columns: 1fr 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar: 286px; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,254,250,.96);
    backdrop-filter: blur(12px);
  }
  .mobile-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; }
  .mobile-brand:hover { text-decoration: none; }
  .mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
  .menu-toggle { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
  .sidebar { transform: translateX(-105%); box-shadow: 20px 0 60px rgba(0,0,0,.24); transition: transform .22s ease; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(10,25,17,.45); }
  body.nav-open .sidebar-backdrop { display: block; }
  .main { width: 100%; margin-left: 0; padding: 26px 20px 20px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 40px 26px 24px; }
  .auth-intro h1 { font-size: 32px; }
  .auth-intro ul { display: none; }
  .auth-intro > p:not(.eyebrow) { max-width: 620px; margin: 0; font-size: 14px; }
  .auth-scope { margin-top: 14px; }
  .auth-panel { padding: 20px 20px 42px; }
}

@media (max-width: 720px) {
  .main { padding: 22px 14px 18px; overflow-x: hidden; }
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .page-header h1 { font-size: 27px; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .page-actions .btn, .page-actions form { flex: 1 1 auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 16px; }
  .metric-card strong { margin-top: 26px; font-size: 26px; }
  .dashboard-grid, .two-column, .detail-grid, .form-grid, .group-grid { grid-template-columns: minmax(0, 1fr); }
  .achievement-grid { grid-template-columns: minmax(0, 1fr); }
  .achievement-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .approval-flow, .permission-grid, .presenter-grid, .repeat-row, .invoice-upload-box, .score-grid, .score-form-grid, .combined-score-card, .cabinet-hero { grid-template-columns: minmax(0, 1fr); }
  .combined-score-card, .cabinet-hero { justify-items: start; }
  .permission-panel .compact-form { width: min(88vw, 620px); }
  .repeat-remove { width: 100%; }
  .total-banner { align-items: flex-start; flex-direction: column; }
  .module-grid { grid-template-columns: 1fr; }
  .card { padding: 17px; }
  .filter-form, .filter-form:has(.field:nth-of-type(3)), .single-filter { grid-template-columns: minmax(0, 1fr); }
  .expense-filter { grid-template-columns: minmax(0, 1fr) !important; }
  .filter-form .btn { width: 100%; }
  .detail-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .detail-hero > div:first-child { padding: 4px 0 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .table-frame { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody { display: grid; gap: 11px; }
  tr { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-sm); }
  td {
    display: grid;
    grid-template-columns: minmax(90px, 35%) minmax(0, 1fr);
    max-width: none;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e6e2;
    overflow-wrap: anywhere;
  }
  td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; }
  tbody tr:hover td { background: transparent; }
  .meeting-score-grid { gap: 16px; overflow: visible; border: 0; background: transparent; }
  .meeting-score-column-head { display: none; }
  .meeting-score-person { display: block; overflow: hidden; border: 1px solid #aeb7af; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
  .meeting-score-person > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #f6faf6; }
  .meeting-score-person > header > div:first-child { display: block; min-height: 0; padding: 0; text-align: left; }
  .meeting-score-person > header > div:first-child > small { display: block; }
  .meeting-score-person h3 { margin: 3px 0 0; font-size: 21px; }
  .meeting-score-total { display: flex; min-height: 0; padding: 0; border: 0; }
  .meeting-score-total span { display: inline; }
  .meeting-score-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  .meeting-score-field, .meeting-score-field:nth-child(n) { display: grid; grid-row: auto; grid-column: auto; min-height: 0; place-items: stretch; gap: 7px; padding: 0; border: 0; }
  .meeting-score-field > span { display: flex; }
  .meeting-score-field input[type="number"] { width: 100%; }
  .meeting-score-shell { padding: 14px; }
  .meeting-score-reminder { margin-bottom: 20px; }
  .scorer-info-row { grid-template-columns: 1fr; }
  .scorer-info-row > * { min-height: 88px; padding: 20px 14px; }
  .scorer-info-row > * + * { border-top: 1px solid #626762; border-left: 0; }
  .scorer-identity, .scorer-name { flex-wrap: wrap; gap: 14px; font-size: 16px; }
  .feedback-handle-form { min-width: 0; flex-wrap: wrap; }
  .feedback-handle-form input { min-width: 0; width: 100%; }
  .wrap-text, .cell-sub { max-width: 100%; white-space: normal; }
  .approval-form { width: 100%; }
  .review-buttons { flex-wrap: wrap; }
  .inline-control select { min-width: 0; }
  .pagination-links, .pagination-controls { width: 100%; flex-wrap: wrap; }
  .pagination-settings, .pagination-jump { flex: 1 1 250px; }
  .auth-intro { padding: 28px 20px 14px; }
  .auth-intro .eyebrow { margin-top: 16px; }
  .auth-intro h1 { margin-bottom: 0; font-size: 25px; }
  .auth-card { padding: 24px 20px; border-radius: 19px; }
}

@media (max-width: 430px) {
  .detail-list { grid-template-columns: 1fr; }
  .btn { min-height: 44px; }
  .page-actions { display: grid; grid-template-columns: 1fr; }
  .auth-card h2 { font-size: 24px; }
  .meeting-score-title { font-size: 25px; }
  .meeting-score-person > header { padding: 14px; }
  .meeting-score-fields { gap: 10px; padding: 14px; }
  .meeting-score-field > span { align-items: flex-start; flex-direction: column; }
  .scorer-identity, .scorer-name { align-items: flex-start; flex-direction: column; width: 100%; }
  .scorer-name input { width: 100%; }
}

/* Android /app workbench */
.native-app-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 4% 7%, rgba(194, 255, 238, .58), transparent 25rem),
    radial-gradient(circle at 96% 18%, rgba(207, 236, 255, .72), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #f4faf8 48%, #f7f8fb 100%);
  color: #26323a;
}
.native-app-page a { color: inherit; }
.native-app-page a:hover { text-decoration: none; }
.mobile-workbench {
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 18px calc(94px + env(safe-area-inset-bottom));
}
.mobile-workbench > .alert { margin: 0 0 14px; border-radius: 16px; }
.app-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 3px 2px 8px; }
.app-profile-head h1 { margin: 4px 0 0; color: #1d2a31; font-size: clamp(20px, 5.5vw, 27px); line-height: 1.25; letter-spacing: -.02em; }
.app-context { max-width: 390px; margin: 0; overflow: hidden; color: #64737b; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.app-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 3px solid rgba(255,255,255,.85);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffd95e, #ff982f);
  box-shadow: 0 8px 22px rgba(231, 148, 35, .28);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.app-tabs { display: flex; gap: 28px; margin: 14px 8px 13px; }
.app-tabs a { position: relative; padding: 6px 2px 10px; color: #626b72; font-size: 17px; font-weight: 700; }
.app-tabs a.active { color: #248cf4; }
.app-tabs a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 9px; background: #2b98ff; content: ""; }
.app-count-badge {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  padding: 0 4px;
  place-items: center;
  border-radius: 9px;
  background: #ff6868;
  color: #fff;
  font: 800 10px/1 system-ui, sans-serif;
  vertical-align: top;
}
.app-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.app-hero-card {
  position: relative;
  display: flex;
  min-height: 117px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 17px 13px 15px 17px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 23px;
  box-shadow: 0 12px 28px rgba(79, 124, 152, .11);
}
.app-hero-card::after { position: absolute; width: 95px; height: 95px; right: -28px; bottom: -47px; border-radius: 50%; background: rgba(255,255,255,.28); content: ""; }
.app-hero-card.teal { background: linear-gradient(135deg, #62e6d1, #a8f5ee); }
.app-hero-card.orange { background: linear-gradient(135deg, #ffc77e, #ffe1ad); }
.app-hero-card span { position: relative; z-index: 1; display: grid; gap: 2px; min-width: 0; }
.app-hero-card small { color: rgba(26, 51, 59, .62); font-size: 11px; font-weight: 700; }
.app-hero-card strong { font-size: clamp(18px, 4.8vw, 23px); line-height: 1.35; white-space: nowrap; }
.app-hero-card em { margin-top: 4px; overflow: hidden; color: rgba(26, 51, 59, .7); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.app-hero-card.notice em { overflow: visible; line-height: 1.45; text-overflow: clip; white-space: normal; }
.app-hero-card b { position: relative; z-index: 1; align-self: flex-end; font-size: 36px; line-height: 1; filter: drop-shadow(0 5px 6px rgba(66, 87, 96, .18)); transform: rotate(-5deg); }
.app-mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(223, 234, 239, .8);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(62, 96, 113, .08);
}
.app-mini-actions a { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 14px 13px; }
.app-mini-actions a + a { border-left: 1px solid #edf1f3; }
.app-mini-actions a > span:last-child { display: grid; min-width: 0; }
.app-mini-actions strong { font-size: 13px; }
.app-mini-actions small { overflow: hidden; color: #89949a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.app-mini-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #d9f8ff, #e8f2ff); font-size: 22px; }
.app-section-title { margin: 28px 2px 12px; color: #303b42; font-size: 18px; letter-spacing: .01em; }
.app-feature-card, .app-pending-card, .app-notice-card {
  border: 1px solid rgba(226, 235, 240, .78);
  border-radius: 23px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(64, 96, 111, .07);
}
.app-feature-card { padding: 17px 10px 12px; }
.app-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; }
.app-feature-item { display: grid; min-width: 0; justify-items: center; gap: 8px; color: #39454c; font-size: 12px; font-weight: 600; text-align: center; }
.app-feature-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 15px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), 0 7px 15px rgba(67, 105, 127, .13);
  color: #fff;
  font-size: 25px;
  font-style: normal;
  line-height: 1;
}
.app-feature-icon.blue { background: linear-gradient(145deg, #83dcff, #309cf1); }
.app-feature-icon.red { background: linear-gradient(145deg, #ffaaa9, #ff626b); }
.app-feature-icon.green { background: linear-gradient(145deg, #a2f1d6, #4ad7a7); }
.app-feature-icon.orange { background: linear-gradient(145deg, #ffd87f, #ff9f42); }
.app-feature-icon.coral { background: linear-gradient(145deg, #ffc09d, #ff8259); }
.app-feature-icon.violet { background: linear-gradient(145deg, #a9a0ff, #665bea); }
.app-service-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(223, 234, 239, .8); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(62, 96, 113, .07); }
.app-service-card > span:nth-child(2) { display: grid; }
.app-service-card strong { font-size: 14px; }
.app-service-card small { margin-top: 2px; color: #849199; font-size: 10px; }
.app-service-card i, .app-notice-card i { color: #aab3b8; font-size: 25px; font-style: normal; }
.app-todo-banner { position: relative; display: grid; min-height: 95px; align-content: center; overflow: hidden; padding: 18px 23px; border-radius: 22px; background: linear-gradient(105deg, #effeff, #c5f3ff); box-shadow: 0 10px 30px rgba(54, 151, 181, .1); }
.app-todo-banner strong { width: max-content; max-width: 72%; overflow: hidden; color: #273941; font-size: 25px; text-overflow: ellipsis; white-space: nowrap; }
.app-todo-banner span:not(.app-banner-art) { color: #71848c; font-size: 11px; }
.app-banner-art { position: absolute; right: 19px; bottom: 16px; font-size: 42px; filter: drop-shadow(0 5px 6px rgba(70, 162, 190, .2)); }
.app-pending-card { margin-top: 12px; padding: 17px 14px 18px; }
.app-pending-card h3, .app-notice-card h3 { margin: 0 0 14px 3px; font-size: 16px; }
.app-pending-card h3 small { margin-left: 6px; color: #96a0a6; font-size: 10px; font-weight: 500; }
.app-pending-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 5px; }
.app-pending-grid a { display: grid; justify-items: center; gap: 2px; text-align: center; }
.app-pending-grid strong { font-size: 20px; line-height: 1.25; }
.app-pending-grid span { color: #69777f; font-size: 9px; white-space: nowrap; }
.app-notice-card { margin-top: 12px; padding: 17px; }
.app-notice-card > a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 72px; padding: 9px 4px 2px; border-top: 1px solid #eff2f3; }
.app-notice-card > a > span:first-child { font-size: 31px; text-align: center; }
.app-notice-card > a > span:nth-child(2) { display: grid; min-width: 0; }
.app-notice-card strong, .app-notice-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-notice-card strong { font-size: 14px; }
.app-notice-card small { color: #8b969c; font-size: 10px; }
.app-bottom-nav {
  position: fixed;
  z-index: 80;
  right: 50%;
  bottom: 0;
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(3, 1fr);
  padding: 9px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  border-top: 1px solid rgba(224, 232, 236, .92);
  background: rgba(255,255,255,.94);
  box-shadow: 0 -10px 30px rgba(61, 93, 108, .08);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}
.app-bottom-nav > a { position: relative; display: grid; justify-items: center; gap: 1px; color: #7d898f; }
.app-bottom-nav > a > span { position: relative; min-height: 27px; color: inherit; font-size: 21px; font-weight: 800; line-height: 1.25; }
.app-bottom-nav > a > small { font-size: 10px; }
.app-bottom-nav > a.active { color: #238ff3; }
.app-bottom-nav .app-count-badge { position: absolute; top: -2px; right: -15px; }
.contact-list { display: grid; gap: 11px; }
.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(226, 235, 240, .82);
  border-radius: 19px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(64, 96, 111, .07);
}
.contact-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #88ddff, #319bf0); color: white; font-size: 18px; font-weight: 900; }
.contact-info { display: grid; min-width: 0; }
.contact-info strong, .contact-info small, .contact-info em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-info strong { font-size: 15px; }
.contact-info small { color: #78868d; font-size: 10px; }
.contact-info em { margin-top: 3px; color: #48585f; font-size: 11px; font-style: normal; }
.contact-actions { display: flex; gap: 7px; }
.contact-action { display: grid; width: 39px; height: 39px; place-items: center; align-content: center; gap: 0; border-radius: 13px; color: white !important; font-size: 17px; }
.contact-action.call { background: linear-gradient(145deg, #80e9bc, #35bf83); }
.contact-action.sms { background: linear-gradient(145deg, #8bcfff, #438ef1); }
.contact-action small { font-size: 7px; line-height: 1; }
.contact-no-phone { color: #9aa5aa; font-size: 9px; }
.app-profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; margin-top: 10px; padding: 17px; border: 1px solid rgba(226, 235, 240, .82); border-radius: 21px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(64, 96, 111, .07); }
.app-profile-card > span:last-child { display: grid; min-width: 0; }
.app-profile-card strong { font-size: 17px; }
.app-profile-card small { margin-top: 3px; color: #7b888f; font-size: 11px; }
.app-settings-card { margin-top: 14px; overflow: hidden; border: 1px solid rgba(226, 235, 240, .82); border-radius: 21px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(64, 96, 111, .07); }
.app-settings-card > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 72px; padding: 12px 16px; }
.app-settings-card > a + a { border-top: 1px solid #edf2f3; }
.app-settings-card > a > span:first-child { font-size: 24px; text-align: center; }
.app-settings-card > a > span:nth-child(2) { display: grid; }
.app-settings-card strong { font-size: 14px; }
.app-settings-card small { margin-top: 2px; color: #839098; font-size: 10px; }
.app-settings-card i { color: #aab3b8; font-size: 25px; font-style: normal; }
.scan-page-head { margin-bottom: 15px; padding: 19px 18px; border: 1px solid rgba(213,229,220,.9); border-radius: 21px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(62,96,113,.07); }
.scan-page-head h1 { margin: 3px 0 5px; color: #153b2a; font-size: clamp(25px, 7vw, 34px); }
.scan-page-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.scan-footnote { margin: 16px 6px 0; color: #819088; font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 370px) {
  .mobile-workbench { padding-right: 13px; padding-left: 13px; }
  .app-hero-grid { gap: 9px; }
  .app-hero-card { min-height: 108px; padding: 14px 9px 13px 13px; }
  .app-hero-card b { font-size: 29px; }
  .app-mini-actions a { gap: 7px; padding: 12px 8px; }
  .app-pending-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) and (min-width: 721px) {
  .pagination { justify-content: flex-start; flex-wrap: wrap; }
  .pagination-summary { margin-right: 0; }
}

@media (max-width: 720px) {
  .pagination { justify-content: center; flex-wrap: wrap; padding: 10px; }
  .pagination-summary { width: 100%; margin-right: 0; text-align: center; }
  .pagination-links { order: 2; width: 100%; }
  .pagination-jump { order: 3; }
  .page-number { width: 32px; height: 32px; }
  .achievement-title-cell { min-width: 0; }
  .wrap-text { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .sidebar, .mobile-header, .page-actions, .filter-form, .footer { display: none !important; }
  .main { width: 100%; margin: 0; padding: 0; }
  .card, .table-frame, .detail-hero { box-shadow: none; }
}
