:root {
  font-family:
    "DM Sans",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1d2b29;
  background: #f5f7f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  --ink: #1d2b29;
  --muted: #788581;
  --line: #e7ecea;
  --green: #087e69;
  --green-dark: #076954;
  --green-soft: #e8f5f0;
  --blue: #356ab5;
  --blue-soft: #edf3fc;
  --amber: #a66d18;
  --amber-soft: #fbf3e5;
  --red: #b14e49;
  --red-soft: #f9edeb;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 5;
  padding: 23px 14px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 26px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #e7f3ef;
  color: var(--green);
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.role-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin: 0 4px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #50615c;
  background: #fafcfb;
  font-size: 12px;
}
.role-chip span:last-child {
  color: var(--green);
  font-weight: 600;
}
.nav-label {
  font-size: 10px;
  color: #9aa6a2;
  letter-spacing: 0;
  padding: 0 12px 8px;
}
.nav-list {
  display: grid;
  gap: 3px;
}
.nav-item {
  height: 39px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: #62716d;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.nav-item:hover {
  background: #f6f9f7;
  color: var(--ink);
}
.nav-item.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  padding: 12px 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.sidebar-note strong {
  display: block;
  color: #4e605b;
  font-size: 12px;
  font-weight: 600;
}
.main {
  margin-left: 238px;
  min-height: 100vh;
}
.topbar {
  height: 65px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(12px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.icon-button {
  width: 34px;
  height: 34px;
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #63736f;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: #f1f6f4;
  border-color: var(--line);
}
.icon-button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.notification-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d76b5b;
  border: 1px solid white;
}
.user-menu {
  display: flex;
  gap: 9px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.avatar {
  width: 30px;
  height: 30px;
  background: #e8f1ed;
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.user-meta strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.user-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 34px 54px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 23px;
  gap: 16px;
}
.eyebrow {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 7px;
}
.page-heading h1 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0;
  font-weight: 600;
}
.page-heading p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 12px;
}
.heading-actions {
  display: flex;
  gap: 8px;
}
.button {
  height: 35px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  border: 1px solid #dce5e1;
  background: #fff;
  color: #495a55;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.button:hover {
  background: #f8faf9;
  border-color: #c7d6cf;
}
.button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.button-soft {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green);
}
.button-danger {
  color: var(--red);
  border-color: #efd8d5;
  background: #fff;
}
.button-small {
  height: 28px;
  padding: 0 9px;
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}
.stat {
  padding: 16px 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef5f2;
  color: var(--green);
}
.stat-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.stat-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.stat-icon.red {
  background: var(--red-soft);
  color: var(--red);
}
.stat-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.stat-value {
  font-size: 25px;
  line-height: 1;
  margin-top: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.stat-foot {
  font-size: 10px;
  color: #87938f;
  margin-top: 8px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(255px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.text-link {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  padding: 5px;
}
.table-wrap {
  overflow: auto;
}
.orders-panel { min-width: 0; overflow: hidden; }
.page.orders-page { max-width: none; }
.order-center-summary { margin-bottom: 20px; }
.order-stat-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0 0 12px; }
.stats.order-center-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 0; }
.order-center-stats .stat { min-width: 0; padding: 16px; }
.order-center-stats .stat-top { gap: 6px; }
.order-center-stats .stat-top > span:first-child { overflow-wrap: anywhere; }
.order-center-stats .stat-foot { line-height: 1.7; }
@media (max-width: 1350px) {
  .stats.order-center-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stats.order-center-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-center-stats .stat { padding: 12px; }
}
.orders-toolbar { gap: 12px 18px; padding: 16px 18px; }
.orders-toolbar .search-box { flex: 1 1 260px; max-width: 380px; }
.order-filter { display: flex; align-items: center; gap: 8px; color: #66766f; font-size: 12px; }
.orders-guidance { display: flex; align-items: flex-start; gap: 8px; padding: 12px 18px; font-size: 12px; color: #7b8982; background: #fcfdfc; line-height: 1.8; }
.orders-guidance svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.orders-guidance b { font-weight: 500; }
.orders-summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; color: #8a9690; font-size: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.orders-summary strong { color: #395d4d; }
.orders-scroll { max-width: 100%; max-height: 72vh; }
.orders-table { width: 100%; min-width: 1500px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.orders-table th { position: sticky; top: 0; z-index: 1; text-align: left; background: #f5f7f6; color: #718078; font-weight: 500; padding: 14px 12px; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.orders-table td { padding: 17px 12px; border-bottom: 1px solid #edf1ee; color: #46584e; vertical-align: top; line-height: 1.7; min-width: 92px; max-width: 220px; overflow-wrap: anywhere; }
.orders-table tbody tr:hover { background: #fafcfb; }
.orders-table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -5px 0 8px -8px #486253; }
.orders-table th:last-child { right: 0; z-index: 2; }
.orders-table tbody tr:hover td:last-child { background: #fafcfb; }
.orders-table .order-number { min-width: 50px; color: #9ba69f; }
.orders-table .order-wait { min-width: 190px; }
.orders-table .order-topic { min-width: 220px; max-width: 260px; }
.order-topic-link { display: block; width: 220px; padding: 0; border: 0; background: none; text-align: left; color: var(--green); font: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-topic-link:hover { text-decoration: underline; }
.order-reference, .order-wait time { display: block; color: #98a49d; font-size: 10px; margin-top: 4px; }
.order-urgent { display: inline-block; color: #d98236; font-size: 10px; margin-top: 5px; }
.order-tags, .delivery-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.order-tag { display: inline-block; background: #f1f4f2; color: #65796c; border-radius: 4px; padding: 1px 7px; font-size: 11px; }
.tag-edit { border: 0; background: transparent; padding: 3px 0; color: #8c9d92; cursor: pointer; font-size: 11px; white-space: nowrap; }
.tag-edit:hover { color: var(--green); }
.delivery-chip { border-radius: 4px; padding: 2px 8px; color: #b77931; background: #fff4df; white-space: nowrap; }
.delivery-1 { color: #568e65; background: #eaf5e8; }
.delivery-2 { color: #677eb5; background: #edf1fc; }
.wait-item + .wait-item { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e8ede9; }
.wait-item > span { display: block; font-size: 11px; color: #84968b; }
.wait-item > strong { display: block; font-weight: 500; }
.wait-normal { color: #699175; }
.wait-warning { color: #df963c; }
.wait-danger { color: #db6562; }
.order-muted { color: #9ca9a1; }
.order-table-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; min-width: 110px; }
.order-table-actions .button { font-size: 10px; padding: 3px 7px; min-height: 24px; }
.orders-pagination { justify-content: flex-end; padding: 14px 18px; }
.orders-wait-toolbar { gap: 10px; padding: 10px 16px; }
.orders-inline-guidance { color: #939d97; font-size: 10px; line-height: 1.7; }
.order-status-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.column-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 8px 0; }
.delivery-paper { color: #426b5b; background: #edf6f1; border: 1px solid #d1e0d8; }
.delivery-report { color: #426083; background: #edf2fc; border: 1px solid #d1d9e7; }
.delivery-other { color: #b77931; background: #fff4df; border: 1px solid #eee0c7; }
.admin-orders-page .orders-panel { border-radius: 2px; }
.admin-orders-panel .orders-toolbar { padding: 10px 16px; background: #fff; }
.admin-orders-panel .orders-wait-toolbar { background: #fcfdfc; padding: 7px 16px; gap: 9px; }
.admin-orders-panel .order-filter { font-size: 11px; gap: 7px; }
.admin-orders-panel .order-filter .select { min-width: 120px; height: 30px; }
.admin-orders-panel .orders-summary { align-items: center; justify-content: flex-start; padding: 9px 16px; gap: 12px; font-size: 11px; color: #53635a; border-top: 0; }
.admin-orders-panel .orders-summary strong { font-weight: 500; }
.admin-orders-panel .orders-summary .button { height: 30px; font-size: 11px; border-radius: 3px; }
.admin-orders-panel .orders-summary .button svg { width: 14px; height: 14px; }
.admin-orders-panel .orders-table { min-width: 1180px; table-layout: fixed; font-size: 11px; }
.admin-orders-panel .orders-table th { height: 36px; padding: 0 12px; color: #58645e; background: #f4f6f5; font-size: 11px; }
.admin-orders-panel .orders-table td { min-width: 0; max-width: none; padding: 14px 12px; vertical-align: middle; color: #35463c; line-height: 1.7; height: 82px; }
.admin-orders-panel .orders-table th:nth-child(1) { width: 4%; }
.admin-orders-panel .orders-table th:nth-child(2) { width: 10%; }
.admin-orders-panel .orders-table th:nth-child(3) { width: 6%; }
.admin-orders-panel .orders-table th:nth-child(4) { width: 14%; }
.admin-orders-panel .orders-table th:nth-child(5) { width: 20%; }
.admin-orders-panel .orders-table th:nth-child(6) { width: 7%; }
.admin-orders-panel .orders-table th:nth-child(7) { width: 8%; }
.admin-orders-panel .orders-table th:nth-child(8) { width: 6%; }
.admin-orders-panel .orders-table th:nth-child(9) { width: 12%; }
.admin-orders-panel .orders-table th:nth-child(10) { width: 7%; }
.admin-orders-panel .orders-table th:nth-child(11) { width: 6%; }
.admin-orders-panel .orders-table td:last-child { position: static; box-shadow: none; }
.admin-orders-panel .orders-table th:last-child { right: auto; }
.admin-orders-panel .order-topic-link { width: 100%; color: #263f32; font-size: 11px; font-weight: 600; }
.admin-orders-panel .order-reference { display: none; }
.admin-orders-panel .order-number { color: #8b9690; }
.admin-orders-panel .order-tag { border: 1px solid #d3e2da; background: #f1f7f4; color: #82988a; border-radius: 20px; padding: 0 8px; font-size: 10px; }
.admin-orders-panel .order-tags:not(:empty) + .tag-edit { display: none; }
.admin-orders-panel .tag-edit { color: #50705f; font-size: 10px; }
.admin-orders-panel .wait-item > span { color: #6e7c73; font-size: 10px; }
.admin-orders-panel .wait-item > strong { display: table; line-height: 1.6; font-weight: 600; font-size: 11px; margin: 3px 0; padding: 0 5px; border-radius: 2px; }
.admin-orders-panel .wait-danger { background: #fff1ee; color: #b64d43; }
.admin-orders-panel .wait-warning { background: #fff5e7; color: #b58038; }
.admin-orders-panel .order-wait time { font-size: 9px; color: #9da49f; margin-top: 0; white-space: nowrap; }
.admin-orders-panel .wait-item + .wait-item { padding-top: 8px; margin-top: 8px; border-top: 1px solid #f0f3f1; }
.admin-orders-panel .delivery-chips { gap: 6px; }
.admin-orders-panel .delivery-chip { font-size: 10px; padding: 3px 8px; border-radius: 4px; box-shadow: 0 1px 2px #243a2d08; }
.admin-orders-panel .delivery-chip::before { content: "•"; margin-right: 5px; }
.admin-orders-panel .status { font-size: 10px; padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.admin-orders-panel tr[data-status="assigned"] .status { color: #8d773f; background: #fbf6e8; }
.admin-orders-panel .orders-table tbody tr:hover, .admin-orders-panel .orders-table tbody tr:hover td:last-child { background: #f7f9f7; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.data-table th {
  height: 37px;
  text-align: left;
  padding: 0 13px;
  background: #fbfcfc;
  color: #89958f;
  font-size: 10px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  height: 55px;
  padding: 8px 13px;
  border-bottom: 1px solid #f0f3f2;
  font-size: 11px;
  color: #55645f;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fbfdfc;
}
.order-title {
  font-size: 11px;
  color: #283834;
  font-weight: 500;
  max-width: 275px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-sub {
  font-size: 10px;
  color: #96a19d;
  margin-top: 4px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.status-green {
  background: #eaf5f0;
  color: #188166;
}
.status-blue {
  background: #edf3fb;
  color: #416eaf;
}
.status-amber {
  background: #faf2e4;
  color: #a97927;
}
.status-gray {
  background: #f1f3f3;
  color: #707d79;
}
.status-red {
  background: #f9edeb;
  color: #b55951;
}
.row-action {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  padding: 4px;
}
.activity-list {
  padding: 3px 16px;
}
.activity {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f3f2;
}
.activity:last-child {
  border-bottom: 0;
}
.activity-mark {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: #edf5f1;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.activity-content {
  min-width: 0;
}
.activity-content strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: #3c4c47;
}
.activity-content p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.activity-time {
  color: #a2aca8;
  font-size: 9px;
}
.empty {
  padding: 38px 18px;
  text-align: center;
  color: #95a09c;
  font-size: 12px;
}
.filter-bar {
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search-box {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e4eae7;
  background: #fff;
  border-radius: 5px;
  padding: 0 9px;
  min-width: 190px;
}
.search-box svg {
  width: 14px;
  height: 14px;
  stroke: #93a09a;
  fill: none;
  stroke-width: 1.8;
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
}
.select {
  height: 32px;
  padding: 0 25px 0 9px;
  border: 1px solid #e4eae7;
  border-radius: 5px;
  background: #fff;
  color: #61716b;
  font-size: 11px;
}
.filter-spacer {
  flex: 1;
}
.order-cards {
  display: grid;
}
.order-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) 0.75fr 0.75fr 0.85fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f3f2;
}
.order-card:last-child {
  border-bottom: 0;
}
.order-card:hover {
  background: #fbfdfc;
}
.order-card-main {
  min-width: 0;
}
.order-card-main .order-title {
  max-width: 100%;
  font-size: 12px;
}
.order-cell-label {
  display: block;
  color: #9aa49f;
  font-size: 9px;
  margin-bottom: 4px;
}
.order-cell-value {
  font-size: 11px;
  color: #52615d;
}
.order-actions {
  display: flex;
  gap: 5px;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.template-list {
  padding: 3px 17px;
}
.template-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f3f2;
}
.template-item:last-child {
  border: 0;
}
.file-icon {
  width: 33px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f7efec;
  color: #aa655b;
  font-size: 9px;
  font-weight: 700;
}
.template-meta {
  flex: 1;
  min-width: 0;
}
.template-meta strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.template-meta span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.announcement {
  padding: 15px 17px;
  border-bottom: 1px solid #f0f3f2;
}
.announcement:last-child {
  border-bottom: 0;
}
.announcement strong {
  font-size: 12px;
  font-weight: 600;
}
.announcement p {
  margin: 7px 0;
  color: #66746f;
  line-height: 1.7;
  font-size: 11px;
}
.announcement time {
  color: #a1aba7;
  font-size: 10px;
}
.user-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f3f2;
  font-size: 11px;
  color: #5a6964;
}
.user-row:last-child {
  border-bottom: 0;
}
.user-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-name .avatar {
  width: 27px;
  height: 27px;
  font-size: 10px;
}
.mobile-menu {
  display: none;
}
.modal {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  box-shadow: 0 22px 70px #17241e2a;
  color: var(--ink);
}
.modal::backdrop {
  background: #19272369;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.modal-head p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.modal-body {
  padding: 18px 20px 20px;
  overflow: auto;
  max-height: calc(100vh - 140px);
}
.close-button {
  border: 0;
  background: none;
  font-size: 19px;
  color: #7f8b86;
  line-height: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 11px;
  color: #55645e;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dfe7e3;
  border-radius: 5px;
  padding: 9px 10px;
  outline: none;
  font-size: 12px;
  background: #fff;
  color: #2c3c36;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #80b9a7;
  box-shadow: 0 0 0 3px #0e8a6b14;
}
.field textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.6;
}
.field-help {
  font-size: 10px;
  color: #93a09a;
}
.form-error {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #edc4c4;
  border-radius: 5px;
  background: #fff3f3;
  color: #a12e2e;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.check-field {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5a6862;
  font-size: 11px;
}
.check-field input {
  accent-color: var(--green);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.detail-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 17px 0;
  padding: 13px;
  background: #f8faf9;
  border: 1px solid #eef1ef;
  border-radius: 5px;
}
.detail-meta span {
  display: block;
  color: #8b9791;
  font-size: 10px;
  margin-bottom: 5px;
}
.detail-meta strong {
  font-size: 11px;
  font-weight: 500;
}
.detail-section {
  margin-top: 15px;
}
.detail-section h3 {
  font-size: 11px;
  margin: 0 0 7px;
  color: #66736e;
}
.detail-section p {
  font-size: 11px;
  line-height: 1.8;
  color: #50615a;
  margin: 0;
  white-space: pre-wrap;
}
.timeline {
  border-left: 1px solid #dae5e0;
  margin: 9px 0 0 4px;
  padding-left: 14px;
}
.timeline-item {
  position: relative;
  padding: 0 0 13px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65a890;
}
.timeline-item p {
  margin: 0;
  font-size: 11px;
  color: #54625d;
}
.timeline-item time {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #a0aaa6;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 20;
  padding: 10px 14px;
  background: #25352f;
  color: white;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 480px);
  background: #f7faf8;
}
.login-aside {
  padding: 54px 7vw;
  background: #eff7f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-aside:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: -155px;
  border: 1px solid #cfe5da;
  border-radius: 50%;
  box-shadow:
    0 0 0 38px #eff7f3,
    0 0 0 39px #d8ebe2,
    0 0 0 84px #eff7f3,
    0 0 0 85px #dfede6;
}
.login-aside .brand {
  padding: 0;
}
.login-message {
  max-width: 500px;
  position: relative;
  z-index: 1;
}
.login-message .eyebrow {
  font-size: 12px;
}
.login-message h1 {
  font-size: 38px;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
  font-weight: 600;
}
.login-message p {
  max-width: 385px;
  font-size: 14px;
  line-height: 1.9;
  color: #667872;
  margin-top: 17px;
}
.login-flow {
  display: flex;
  gap: 0;
  margin-top: 34px;
  max-width: 450px;
}
.flow-step {
  flex: 1;
  border-top: 1px solid #b8d4c8;
  padding-top: 10px;
  font-size: 10px;
  color: #687a73;
}
.flow-step strong {
  display: block;
  font-size: 11px;
  color: #35554a;
  margin-bottom: 5px;
}
.login-footer {
  position: relative;
  z-index: 1;
  color: #81938b;
  font-size: 10px;
}
.login-card-wrap {
  display: grid;
  place-items: center;
  padding: 36px;
}
.login-card {
  width: min(100%, 340px);
}
.login-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.login-card > p {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.login-form {
  display: grid;
  gap: 13px;
}
.login-form .field input {
  height: 40px;
}
.login-submit {
  width: 100%;
  height: 40px;
  margin-top: 5px;
}
.login-error {
  min-height: 15px;
  font-size: 11px;
  color: var(--red);
}
@media (max-width: 1050px) {
  .sidebar {
    width: 205px;
  }
  .main {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 23px;
  }
  .page {
    padding: 25px 23px 42px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.8fr);
  }
  .order-card {
    grid-template-columns: minmax(150px, 1.3fr) 0.65fr 0.6fr 0.8fr auto;
    gap: 8px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .login-aside {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    transition: width 0.2s;
  }
  .sidebar.open {
    width: 238px;
    padding: 18px 14px 14px;
    border-right: 1px solid var(--line);
    box-shadow: 0 10px 28px #25352f22;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 14px;
  }
  .mobile-menu {
    display: grid;
  }
  .breadcrumb {
    margin-right: auto;
    margin-left: 7px;
  }
  .top-actions {
    gap: 7px;
  }
  .user-meta {
    display: none;
  }
  .user-menu {
    padding-left: 8px;
  }
  .page {
    padding: 22px 14px 34px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .button {
    flex: 1;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat-value {
    font-size: 22px;
  }
  .workspace-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .order-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 13px;
  }
  .order-card-main {
    grid-column: 1/-1;
  }
  .order-card .order-cell:nth-child(2) {
    grid-column: 1;
  }
  .order-card .order-cell:nth-child(3) {
    grid-column: 2;
  }
  .order-card .order-cell:nth-child(4) {
    grid-column: 1;
  }
  .order-card .order-actions {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-end;
  }
  .filter-bar {
    padding: 10px;
  }
  .search-box {
    flex: 1;
    min-width: 140px;
  }
  .order-card .status {
    white-space: nowrap;
  }
  .user-row {
    grid-template-columns: 1fr 1fr auto;
    gap: 9px;
  }
  .user-row .user-username {
    display: none;
  }
  .data-table th,
  .data-table td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-aside {
    display: none;
  }
  .login-card-wrap {
    min-height: 100vh;
    padding: 28px;
  }
  .login-card {
    width: min(100%, 360px);
  }
  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}
.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.inline-form {
  padding: 18px;
}
.ai-result {
  padding: 18px;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  min-height: 225px;
  max-height: 65vh;
  overflow: auto;
}
.report-bars {
  padding: 18px;
}
.report-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin: 0 0 17px;
}
.report-row:last-child {
  margin-bottom: 0;
}
.report-row > span {
  width: 70px;
  color: #66746e;
}
.report-track {
  flex: 1;
  height: 7px;
  background: #f0f4f2;
  border-radius: 4px;
  overflow: hidden;
}
.report-fill {
  background: #2a957b;
  height: 100%;
  min-width: 0;
  border-radius: 4px;
}
.report-fill.blue {
  background: #6590c9;
}
.report-fill.amber {
  background: #d5b16b;
}
.report-fill.red {
  background: #d18a82;
}
.report-fill.gray {
  background: #9daaa4;
}
.report-row > strong {
  width: 20px;
  text-align: right;
  font-weight: 500;
}
.button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.user-row {
  grid-template-columns:
    minmax(120px, 1fr) 0.6fr minmax(160px, 1.3fr) minmax(100px, 1fr)
    auto;
}
.user-username {
  overflow-wrap: anywhere;
}
.sidebar .nav-list {
  overflow-y: auto;
}
.sidebar {
  overflow-y: auto;
}
.template-meta {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .user-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .user-row > span:nth-of-type(2) {
    grid-column: 1;
  }
  .user-row .order-actions {
    grid-column: 2;
    grid-row: 1/3;
  }
  .report-bars {
    padding: 14px;
  }
}
:root {
  font-family:
    "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.brand-name,
.brand-caption {
  display: block;
}
.brand-name {
  font-size: 17px;
}
.brand-caption {
  font-size: 10px;
  margin-top: 3px;
}
.nav-item {
  font-size: 13px;
}
.data-table td {
  font-size: 12px;
}
.order-title {
  font-size: 12px;
}
.stat-top {
  font-size: 12px;
}
.activity-content strong {
  font-size: 12px;
}
.page-heading p {
  font-size: 13px;
}
.order-card-main .order-title {
  font-size: 13px;
}
.announcement p {
  font-size: 12px;
}
.template-meta strong {
  font-size: 12px;
}
