:root {
  color-scheme: light;
  --ink: #202923;
  --muted: #59675e;
  --line: #e1e6e2;
  --wash: #f6f8f6;
  --green: #185d42;
  --tint: #edf5ee;
  --amber: #80531a;
  --font: 'Google Sans', 'Noto Sans Lao', 'Leelawadee UI', sans-serif;
  font: 16px/1.56 var(--font);
  color: var(--ink);
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 960px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 2px solid #2f7758;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
}
small,
.small {
  font-size: 13px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
#hub {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fafbf9;
  border-right: 1px solid var(--line);
  padding: 24px 13px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 24px;
  font-size: 25px;
  line-height: 1.5;
  color: #194937;
}
.emblem {
  width: 36px;
  aspect-ratio: 1;
  flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%3E%3Crect%20width='48'%20height='48'%20rx='13'%20fill='%23194937'/%3E%3Cpath%20d='M11%2013h17a3%203%200%200%201%203%203v9H19l-6%205v-5h-2z'%20fill='%23daebc8'/%3E%3Cpath%20d='M20%2020h16v12h-3v5l-7-5h-6z'%20fill='%23fff'%20stroke='%23194937'%20stroke-width='2.4'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}
.navlabel {
  font-size: 12px;
  color: var(--muted);
  margin: 17px 12px 6px;
}
.navlink {
  color: #46544b;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 10px 12px;
  min-height: 43px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.navlink:hover,
.btn:hover,
.case:hover {
  background: var(--wash);
}
.navlink.active {
  background: #e7efe8;
  color: #18452e;
  font-weight: 700;
}
.ico {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-foot {
  margin: auto 9px 0;
  padding-top: 25px;
  color: var(--muted);
  font-size: 13px;
}
.rail-foot:empty { display: none; }
.workspace {
  min-width: 0;
}
.toolbar {
  min-height: 69px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 3.4vw, 54px);
}
.switches,
.switches label,
.inline,
.actions,
.filters,
.rowline,
.section-head,
.heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.switches {
  width: 100%;
  gap: 16px;
}
#actor { margin-left: auto; }
.switches label {
  gap: 6px;
}
.switches label span {
  font-size: 12px;
  color: var(--muted);
}
.switches select,
select,
input,
textarea {
  background: white;
  border: 1px solid #ccd5ce;
  border-radius: 7px;
  padding: 8px 10px;
  min-width: 0;
}
.switches select {
  font-size: 14px;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 30px clamp(16px, 3.4vw, 54px) 55px;
}
.heading {
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 24px;
}
.heading time {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.heading h1 {
  font-size: clamp(27px, 3.1vw, 40px);
  line-height: 1.5;
}
.btn,
.symbol-button {
  border: 1px solid #cfd8d1;
  background: white;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  color: var(--ink);
}
.primary,
.primary:hover {
  background: #215b3e;
  color: white;
  border-color: #215b3e;
}
.symbol-button {
  padding: 7px;
  min-width: 38px;
}
.text-btn {
  color: var(--green);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
  font-weight: 600;
}
.overview-priorities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.overview-priorities h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.overview-priorities h2 .ico { color: var(--green); }
.list-total {
  border-radius: 6px;
  background: var(--tint);
  color: var(--green);
  padding: 1px 7px;
  font: 600 14px/1.6 var(--font);
}
.overview-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.overview-table th {
  background: var(--wash);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
}
.overview-table th:first-child { width: 45%; }
.overview-table th:last-child { width: 96px; }
.overview-table td {
  padding: 12px 10px;
  vertical-align: top;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.overview-table :is(th, td):first-child { padding-left: 16px; }
.overview-table .text-btn { padding: 0; text-align: left; font-size: 15px; }
.overview-table .text-btn:hover { text-decoration: underline; }
.overview-table small { display: block; margin-top: 3px; }
.overview-table time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.past-due { color: var(--amber); font-weight: 600; }
.handoff-arrow {
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(226px, 1fr);
  gap: 16px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.section-head {
  padding: 16px 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.panel > .section-head {
  border-bottom: 1px solid var(--line);
}
.padded {
  padding: 17px 18px;
}
.list .case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, .52fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}
.list .case:last-child {
  border-bottom: 0;
}
.routed-tasks .case { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.case strong {
  display: block;
  font-size: 15px;
}
.case-subject, .case-owner, .team-row > span, .timeline li > div { overflow-wrap: anywhere; min-width: 0; }
.case-owner { font-size: 14px; }
.case small {
  display: block;
  margin-top: 3px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f2f4f2;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 12px;
  color: #425348;
  white-space: nowrap;
}
.pill:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill.late {
  background: #f9efdf;
  color: #81511b;
}
.pill.done {
  background: #eaf4eb;
  color: #21613c;
}
.pill.wait {
  background: #eff1f7;
  color: #515f83;
}
.team-row {
  border-bottom: 1px solid var(--line);
  padding: 13px 17px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.team-row:last-child {
  border-bottom: none;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #edf1ec;
  color: #3d5a45;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 630;
}
.brand {
  font-size: 12px;
  letter-spacing: 0.015em;
  font-weight: 650;
  color: #4b6352;
}
.subsection {
  margin-top: 22px;
}
.filters {
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.filters > input {
  flex: 1 1 220px;
  max-width: 400px;
}
.filters select,
.filters input {
  font-size: 15px;
  min-height: 42px;
}
.record-list {
  display: grid;
  gap: 8px;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 14px;
}
.data-table th {
  padding: 10px 14px;
  background: #f7f9f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}
.data-table td small {
  display: block;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
:is(.queue-table, .customer-table, .handoff-table) { table-layout: fixed; }
.queue-table th:nth-child(2) { width: 28%; }
.queue-table th:nth-child(4) { width: 104px; }
.queue-table th:last-child { width: 125px; }
.customer-table th:nth-child(4) { width: 26%; }
.customer-table th:last-child { width: 142px; }
.handoff-table th:nth-child(2) { width: 14%; }
.handoff-table th:nth-child(4) { width: 26%; }
.handoff-table th:last-child { width: 122px; }
.handoff-table td { vertical-align: top; }
.handoff-note { white-space: pre-line; }
#handoff-history summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
#handoff-history[open] summary { border-bottom: 1px solid var(--line); }
:is(.queue-table, .customer-table, .handoff-table) td { overflow-wrap: anywhere; }
:is(.queue-table, .customer-table, .handoff-table) td:last-child { text-align: right; }
:is(.queue-table, .customer-table, .handoff-table) .text-btn { max-width: 100%; text-align: left; padding: 2px 0; overflow-wrap: anywhere; }
:is(.queue-table, .customer-table, .handoff-table) .text-btn:hover { text-decoration: underline; }
:is(.queue-table, .customer-table, .handoff-table) td:first-child .text-btn { font-size: 16px; color: var(--ink); }
.queue-table time, :is(.queue-table, .customer-table, .handoff-table) .btn { white-space: nowrap; }
.queue-table time { font-variant-numeric: tabular-nums; }
.empty {
  padding: 24px;
  color: var(--muted);
}
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.15fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.art-count { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.artcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  background: white;
}
.artcard:hover { border-color: #9ab6a3; }
.artcard[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--tint); }
.artcard img { width: 100%; height: clamp(82px, 8vw, 125px); object-fit: contain; background: var(--wash); border-radius: 5px; }
.artcard strong, .artcard small { margin: 4px 4px 2px; overflow-wrap: anywhere; }
.artcard strong { font-size: 14px; font-weight: 560; }
.artcard small { margin-top: 0; }
.art-preview {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
  padding: clamp(14px, 1.5vw, 22px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.art-preview h2 { font-size: 20px; overflow-wrap: anywhere; }
.art-preview .meta, .art-lightbox .meta { overflow-wrap: anywhere; }
.art-stage {
  position: relative;
  width: 100%;
  height: clamp(170px, 36vh, 390px);
  padding: 5px;
  border-radius: 8px;
  background: var(--wash);
  cursor: zoom-in;
}
.art-stage img { display: block; object-fit: contain; width: 100%; height: 100%; }
.art-stage span { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--green); background: white; border: 1px solid var(--line); }
.art-warning { display: flex; align-items: flex-start; gap: 7px; padding: 7px 10px; border-radius: 6px; color: #775219; background: #fbf6e9; font-size: 14px; }
.art-warning .ico { margin-top: 2px; width: 16px; }
.art-status { font-size: 14px; color: var(--green); }
.art-status:empty { display: none; }
.art-empty { text-align: center; padding: 38px 16px; border: 1px solid var(--line); border-radius: 12px; }
.art-empty h2 { margin: 6px 0 12px; font-size: 17px; }
.art-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
dialog:has(.art-lightbox) { width: min(94vw, 1080px); max-height: 95vh; }
.art-lightbox { display: grid; gap: 12px; }
.art-lightbox .media-preview { width: 100%; height: min(64vh, 740px); object-fit: contain; border-radius: 7px; background: var(--wash); }
dialog:has(.art-lightbox) .formerror:empty { display: none; }
.filters .count {
  margin-left: auto;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border: 0;
}
.timeline b {
  font-size: 14px;
}
.timeline small {
  display: block;
}
.timeline p {
  font-size: 14px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.flag {
  margin-left: 8px;
}
.actions {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 12px;
}
.info {
  background: #f3f6f2;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #425648;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tabs button {
  font-size: 14px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.tabs button[aria-pressed='true'] {
  background: var(--tint);
  border-color: #95b09d;
  color: var(--green);
}
dialog {
  color: var(--ink);
  width: min(540px, calc(100% - 24px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 80px #20292330;
}
dialog::backdrop {
  background: #17251b55;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.dialog-content {
  padding: 18px 21px;
  display: grid;
  gap: 15px;
}
.dialog-content label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 550;
}
.dialog-content select,
.dialog-content input,
.dialog-content textarea {
  width: 100%;
  font-size: 16px;
}
.dialog-content textarea {
  min-height: 70px;
  resize: vertical;
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.formerror {
  color: #9b3426;
  font-size: 14px;
}
.formerror:empty {
  display: none;
}
.meta {
  font-size: 14px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(500px, 90vw);
  background: #243a2b;
  color: #fff;
  z-index: 5;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 14px;
  box-shadow: 0 4px 15px #182b1e26;
}
#notice:empty {
  display: none;
}
.dialog-content .timeline li {
  padding: 9px 0;
}
.break {
  overflow-wrap: anywhere;
}

@media (max-width: 1060px) {
  #hub {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 8px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(200px, 1fr);
  }
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: white;
}
.login-panel {
  width: min(100%, 424px);
  padding: 32px 20px;
}
.login-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-heading h1 { font-size: 30px; line-height: 1.5; }
#login-form label { display: block; margin-bottom: 6px; font-weight: 550; }
#login-form input { width: 100%; min-height: 48px; }
#login-form > label { margin-top: 18px; }
#invite-identity { display: grid; gap: 2px; padding: 12px 16px; border-radius: 8px; background: var(--wash); }
#invite-identity span { font-size: 14px; color: var(--muted); }
#invite-account { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
#invite-feedback p { line-height: 1.65; }
#invite-feedback :is(a, button) { display: inline-block; margin-top: 18px; }
#invite-sign-in { color: var(--green); text-underline-offset: 3px; }
.login-heading .emblem { flex: none; }
.password-field { position: relative; }
.password-field input { padding-right: 78px; }
#password-visibility {
  position: absolute;
  inset: 4px 5px 4px auto;
  padding: 0 10px;
  color: var(--green);
  font-size: 14px;
  border-radius: 5px;
}
#password-visibility:hover { background: var(--tint); }
#password-hint { display: block; margin-top: 6px; }
#login-error:not(:empty) { margin-top: 14px; }
#submit-login { margin-top: 26px; min-height: 48px; width: 100%; font-size: 16px; }
#forgot-password { margin-top: 16px; font-size: 14px; }
#forgot-password summary { width: fit-content; color: var(--green); cursor: pointer; }
#forgot-password p { margin-top: 6px; color: var(--muted); }
.team-filters label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.team-filters :is(select, input) { color: var(--ink); }
.team-filters { align-items: end; margin-bottom: 18px; }
.team-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.team-layout .panel { min-width: 0; }
.team-layout .section-head h2 { font-size: 18px; }
.team-activity-table { table-layout: fixed; }
.team-activity-table th:first-child { width: 43%; }
.team-activity-table th:nth-child(2) { width: 32%; }
.team-activity-table :is(th, td) { padding: 10px 12px; overflow-wrap: anywhere; white-space: normal; vertical-align: top; }
.team-activity-table .person-group th { padding: 8px 12px; color: var(--green); background: var(--tint); font-weight: 650; }
.person-group .ico, .team-backlog .ico { width: 15px; height: 15px; }
.person-group small { margin-left: 7px; font-weight: 400; }
.team-activity-table td strong { font-weight: 550; }
.team-activity-table td p { margin-top: 3px; font-size: 13px; }
.team-layout .text-btn { text-align: left; overflow-wrap: anywhere; padding: 0; }
.team-activity-table td div + div { margin-top: 6px; }
.team-backlog { padding: 0; margin: 0; list-style: none; max-height: 60vh; overflow-y: auto; }
.team-backlog li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 9px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.team-backlog li:last-child { border: 0; }
.team-backlog small { display: block; overflow-wrap: anywhere; }
.team-backlog .due { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.team-backlog .past-due { font-size: 12px; }
.team-backlog p { grid-column: 1 / -1; font-size: 14px; overflow-wrap: anywhere; }
.team-backlog .ico { color: var(--muted); }
#team-audit { margin-top: 17px; }
#team-audit summary { cursor: pointer; padding: 12px 16px; font-weight: 550; font-size: 14px; }
.team-report :is(th, td) { text-align: center; font-variant-numeric: tabular-nums; }
.team-report :is(th, td):first-child { text-align: left; }
.account-table { table-layout: fixed; }
.account-table thead th:first-child { width: 30%; }
.account-table thead th:nth-child(2) { width: 14%; }
.account-table thead th:nth-child(3) { width: 22%; }
.account-table thead th:last-child, .account-table td:last-child { text-align: right; }
.account-table thead th, .account-table tbody :is(th, td) { padding: 13px 18px; }
.account-table tbody th { background: transparent; border-top: 1px solid var(--line); color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.account-table tbody th strong { display: block; font-size: 15px; font-weight: 600; }
.account-table tbody th small { display: block; font-weight: 400; }
.account-state { display: inline-flex; gap: 6px; align-items: center; color: var(--green); }
.account-state.pending { color: #79531b; background: #fbf5e8; border-radius: 6px; padding: 3px 8px; }
.account-state .ico { width: 15px; height: 15px; }
.account-state.closed { color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; }
.account-actions [data-act="close-account"] { color: #903e34; }
dialog:has(.account-work) { width: min(680px, 90vw); }
.account-work { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow-y: auto; }
.account-work li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 32%); gap: 16px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.account-work strong, .account-work small { display: block; overflow-wrap: anywhere; }
.account-work small { color: var(--muted); }
.btn.primary.close-confirm { background: #873e34; border-color: #873e34; }
.account-hint { margin-top: -10px; }
#invite-status { color: var(--green); font-size: 14px; }
