:root {
  font-family: Inter, "Segoe UI Variable", "Segoe UI", sans-serif;
  color: #242624;
  background: #f7f7f5;
  font-synthesis: none;
  --bg: #f7f7f5;
  --panel: #fff;
  --side: #f0f0ed;
  --line: #e1e3df;
  --muted: #666c65;
  --text: #242624;
  --soft: #ededeb;
  --inverse: #fff;
  --solid: #292c28;
  --red: #aa302b;
  --redbg: #fbebe9;
  --yellow: #825b06;
  --yellowbg: #fff5d9;
  --orange: #a64b14;
  --orangebg: #fff0e3;
  --blue: #235da0;
  --bluebg: #eaf2ff;
  --green: #286d4c;
  --greenbg: #eaf5ee;
  --violet: #6a4ca0;
  --violetbg: #f1edfb;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171918;
  --panel: #1e211f;
  --side: #1b1d1b;
  --line: #353a35;
  --muted: #a6aea6;
  --text: #edefea;
  --soft: #2b302b;
  --inverse: #20241f;
  --solid: #edefea;
  --red: #ff9b91;
  --redbg: #412521;
  --yellow: #efd27b;
  --yellowbg: #3c3320;
  --orange: #ffb67e;
  --orangebg: #3e2c22;
  --blue: #a4c9fa;
  --bluebg: #233349;
  --green: #98d5ae;
  --greenbg: #243a2e;
  --violet: #c3afef;
  --violetbg: #352b47;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.16s var(--ease-out),
    border-color 0.16s var(--ease-out),
    box-shadow 0.16s var(--ease-out),
    transform 0.16s var(--ease-out);
}
button:hover {
  background: var(--soft);
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--solid);
  color: var(--inverse);
  border-color: var(--solid);
}
.primary:hover {
  opacity: 0.85;
  background: var(--solid);
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.danger {
  color: var(--red);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 100;
  background: var(--panel);
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--side);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.8px;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 7px;
}
.workspace {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: var(--panel);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 700;
}
.workspace small,
.sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--muted);
  min-height: 42px;
}
.nav a:hover {
  background: var(--soft);
  color: var(--text);
}
.nav a.active {
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px #00000008;
}
.nav svg {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  border-radius: 4px;
  background: var(--soft);
  padding: 2px 6px;
  color: var(--text);
}
.side-footer {
  margin-top: auto;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  gap: 14px;
  background: var(--bg);
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: var(--text);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions select {
  width: 174px;
  padding: 8px 10px;
  font-size: 12px;
}
.icon-btn {
  width: 38px;
  padding: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.content {
  padding: 32px 36px 60px;
  max-width: 1560px;
  margin: auto;
}
.demo-bar {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  background: var(--panel);
}
.demo-bar b {
  font-weight: 600;
  color: var(--text);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 10px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 27px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: "Cascadia Code", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  margin-bottom: 26px;
  overflow: hidden;
}
.metric {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin: 9px 0 5px;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 19px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-body {
  padding: 20px;
}
.panel-head p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.section-label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
}
.count {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}
.task-row {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row:hover {
  background: var(--bg);
}
.task-row:focus-visible {
  outline-offset: -3px;
}
.rail {
  background: var(--line);
  border-radius: 3px;
}
.rail.red {
  background: var(--red);
}
.rail.yellow {
  background: var(--yellow);
}
.rail.blue {
  background: var(--blue);
}
.rail.orange {
  background: var(--orange);
}
.task-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.task-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.task-right {
  text-align: right;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: flex-end;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  color: var(--muted);
  background: var(--soft);
}
.badge.red {
  color: var(--red);
  background: var(--redbg);
}
.badge.yellow {
  color: var(--yellow);
  background: var(--yellowbg);
}
.badge.orange {
  color: var(--orange);
  background: var(--orangebg);
}
.badge.blue {
  color: var(--blue);
  background: var(--bluebg);
}
.badge.green {
  color: var(--green);
  background: var(--greenbg);
}
.badge.violet {
  color: var(--violet);
  background: var(--violetbg);
}
.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.person-row:last-child {
  border: 0;
}
.person-row b {
  font-size: 12px;
  font-weight: 550;
}
.person-row span:last-child {
  margin-left: auto;
}
.progress {
  height: 4px;
  background: var(--soft);
  border-radius: 3px;
  margin-top: 9px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--text);
  border-radius: 3px;
}
.mini-label {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 6px;
}
.renewal-card {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.renewal-card:last-child {
  border: 0;
}
.renewal-card h3 {
  line-height: 1.5;
  font-size: 12px;
}
.renewal-card p {
  font-size: 11px;
  margin: 7px 0;
  color: var(--muted);
}
.renewal-card button {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 11px;
  margin-top: 7px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.toolbar select {
  width: auto;
  min-width: 130px;
}
input,
select,
textarea {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  min-height: 41px;
  width: 100%;
  font-size: 13px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--solid);
}
input[type="file"] {
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  font-size: 12px;
  font-weight: 550;
  display: block;
  line-height: 1.5;
  margin-bottom: 6px;
}
.field {
  margin-bottom: 18px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
  font-size: 12px;
  margin: 14px 0;
  cursor: pointer;
}
.check input {
  margin-top: 2px;
}
.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.license-card {
  padding: 22px;
}
.license-card h2 {
  font-size: 17px;
  margin: 15px 0 8px;
}
.license-card footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.empty {
  padding: 32px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  padding: 13px 15px;
  color: var(--muted);
}
.tabs button.active {
  border-bottom-color: var(--text);
  color: var(--text);
}
.notice {
  font-size: 12px;
  line-height: 1.6;
  padding: 13px 15px;
  background: var(--soft);
  border-radius: 6px;
  margin-bottom: 18px;
}
.notice.warning {
  background: var(--yellowbg);
  color: var(--yellow);
}
.notice.blue {
  background: var(--bluebg);
  color: var(--blue);
}
.notice.orange {
  background: var(--orangebg);
  color: var(--orange);
}
.source {
  border-left: 2px solid var(--line);
  padding: 12px 15px;
  background: var(--bg);
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.source b {
  display: block;
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.sticky {
  position: sticky;
  top: 20px;
}
.condition {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.condition:last-child {
  border: 0;
}
.condition h3 {
  line-height: 1.6;
}
.condition-num {
  font-family: Consolas, monospace;
  color: var(--muted);
  font-size: 11px;
  display: inline-block;
  width: 28px;
}
.bulk-assignment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin: 20px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.bulk-assignment h3 {
  margin: 0 0 4px;
}
.bulk-assignment-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.suggestion-error {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line));
  border-radius: 8px;
  background: var(--redbg);
}
.suggestion-error > span,
.suggestion-error > small {
  color: var(--text);
}
.suggestion-actions {
  display: grid;
  gap: 8px;
}
.suggestion-actions button {
  width: 100%;
  white-space: normal;
  text-align: left;
  justify-content: flex-start;
}
.success-message {
  display: block;
  color: var(--green);
  padding: 10px 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.weekday {
  padding: 13px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day {
  min-height: 116px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px;
  min-width: 0;
}
.day.off {
  background: var(--bg);
  color: var(--muted);
}
.day-number {
  font-size: 11px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.day.today .day-number {
  background: var(--solid);
  color: var(--inverse);
  border-radius: 50%;
}
.event {
  display: block;
  width: 100%;
  padding: 5px 6px;
  border: 0;
  border-radius: 3px;
  min-height: 26px;
  font-size: 10px;
  text-align: left;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.5;
  white-space: normal;
  background: var(--soft);
}
.calendar-toolbar {
  align-items: flex-end;
}
.calendar-person {
  display: grid;
  gap: 6px;
  min-width: min(280px, 100%);
}
.calendar-person label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.calendar-person select {
  min-width: 240px;
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 0;
  box-shadow: -15px 0 80px #0002;
  padding: 0;
  width: min(640px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-left: 1px solid var(--line);
  overscroll-behavior: contain;
}
dialog[open] {
  animation: drawer-enter 0.24s var(--ease-out);
}
dialog::backdrop {
  background: #1117;
  backdrop-filter: blur(2px);
  animation: backdrop-enter 0.2s ease-out;
}
dialog.task-dialog {
  width: min(920px, calc(100vw - 48px));
  max-width: 920px;
  height: min(88dvh, 900px);
  max-height: 900px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 90px #0004;
}
dialog.task-dialog[open] {
  animation: task-dialog-enter 0.26s var(--ease-out);
}
dialog.task-dialog .drawer-head {
  padding: 24px 30px;
}
dialog.task-dialog .drawer-body {
  padding: 28px 30px 36px;
}
@keyframes drawer-enter {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}
@keyframes task-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
}
.drawer-head {
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.drawer-head h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 7px 0;
}
.drawer-body {
  padding: 24px 26px;
}
.drawer-body h3 {
  margin-top: 25px;
}
.drawer-body h3:first-child {
  margin-top: 0;
}
.step {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.step > span {
  flex: 1;
}
.step small {
  color: var(--muted);
}
.log {
  border-left: 1px solid var(--line);
  padding: 0 0 17px 16px;
  font-size: 12px;
  line-height: 1.6;
}
.log small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.upload-zone {
  border: 1px dashed var(--muted);
  border-radius: 8px;
  text-align: center;
  padding: 27px 20px;
  margin-bottom: 20px;
  background: var(--bg);
}
.upload-zone svg {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}
.upload-zone input {
  margin-top: 12px;
  background: var(--panel);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-frame {
  width: 100%;
  max-height: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field-card {
  padding: 20px;
}
.field-card h2 {
  margin: 10px 0;
  font-size: 17px;
}
.field-card p {
  font-size: 12px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.audit-list {
  max-height: 480px;
  overflow: auto;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.pill-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  background: var(--bg);
}
.pill-switch button {
  border: 0;
  background: transparent;
  min-height: 32px;
  padding: 7px 12px;
  font-size: 11px;
}
.pill-switch button.active {
  background: var(--panel);
  box-shadow: 0 1px 3px #0001;
}
.pending-item {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.pending-item:last-child {
  border: 0;
}
.pending-item h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--solid);
  color: var(--inverse);
  box-shadow: 0 5px 30px #0002;
  border-radius: 8px;
  font-size: 13px;
  padding: 14px 22px;
  max-width: min(520px, 90vw);
  z-index: 10;
  display: none;
}
#toast.show {
  display: block;
}
.mobile-menu {
  display: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.scroll {
  overflow: auto;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
}
.stats-inline {
  display: flex;
  gap: 25px;
  margin: 18px 0;
}
.stats-inline b {
  display: block;
  font-size: 21px;
  font-weight: 500;
}
.stats-inline small {
  font-size: 10px;
  color: var(--muted);
}
.error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 0;
}
.text-link {
  padding: 0;
  background: none;
  border: 0;
  min-height: 30px;
  text-decoration: underline;
  font-size: 12px;
  font-weight: 500;
}
.calendar-wrap {
  overflow: auto;
}
.event.red {
  background: var(--redbg);
  color: var(--red);
}
.event.yellow {
  background: var(--yellowbg);
  color: var(--yellow);
}
.event.violet {
  background: var(--violetbg);
  color: var(--violet);
}
.event.green {
  background: var(--greenbg);
  color: var(--green);
}
.event.blue {
  background: var(--bluebg);
  color: var(--blue);
}
.file-row {
  padding: 13px;
  background: var(--bg);
  border-radius: 6px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.6;
}
.version {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.help-list {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.85;
}
.mobile-only {
  display: none;
}
@media (min-width: 1550px) {
  .content {
    padding: 38px 50px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 12px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .metric {
    padding: 19px 17px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: static;
  }
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .settings-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }
  .topbar .crumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric small {
    font-size: 10px;
  }
  .metric strong {
    font-size: 29px;
  }
  .task-row {
    padding: 15px 14px;
  }
  .task-meta {
    gap: 7px;
  }
  .task-right {
    max-width: 165px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -240px;
    z-index: 5;
    width: 224px;
    transition: left 0.15s;
    box-shadow: 10px 0 40px #0002;
  }
  .shell.menu-open .sidebar {
    left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
    height: 62px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions select {
    width: 144px;
    font-size: 11px;
  }
  .content {
    padding: 21px 16px 45px;
  }
  .demo-bar {
    line-height: 1.6;
    align-items: flex-start;
    margin-bottom: 22px;
    font-size: 10px;
  }
  .demo-bar .dot {
    margin-top: 5px;
  }
  .page-head {
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .dashboard-aside,
  .field-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .bulk-assignment,
  .bulk-assignment-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .task-row {
    grid-template-columns: 3px minmax(0, 1fr);
    gap: 10px;
  }
  .task-right {
    grid-column: 2;
    flex-direction: row;
    text-align: left;
    align-items: center;
    max-width: none;
    justify-content: space-between;
  }
  .rail {
    grid-row: 1/3;
  }
  .task-title {
    font-size: 13px;
  }
  .task-meta {
    font-size: 10px;
  }
  .panel-head {
    padding: 16px;
  }
  .calendar {
    min-width: 650px;
  }
  .drawer-head {
    padding: 18px;
  }
  .drawer-body {
    padding: 20px 18px;
  }
  .settings-grid {
    gap: 0;
  }
  .mobile-only {
    display: block;
  }
}

/* v0.2 · orientação por próxima ação */
h1,
h2,
h3 {
  text-wrap: balance;
}
.task-row-button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-weight: 400;
  min-height: 72px;
}
.task-row-button > span {
  min-width: 0;
}
.task-row-button .task-title,
.task-row-button .task-meta {
  display: flex;
}
.task-row-button .task-meta {
  margin-top: 7px;
}
.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.welcome-card h2,
.welcome-card p {
  margin-bottom: 5px;
}
.welcome-card > div {
  max-width: 680px;
}
.next-card {
  padding: 26px 28px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 8px 28px #1015100a;
}
.next-card-kicker {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.next-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}
.next-card h2 {
  margin-bottom: 7px;
  font-size: 21px;
}
.next-card-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: wrap;
}
.next-dates {
  display: flex;
  gap: 34px;
  margin: 19px 0;
}
.next-dates span,
.task-overview > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.next-dates small,
.task-overview small {
  color: var(--muted);
  font-size: 10px;
}
.next-dates b,
.task-overview b {
  font-size: 13px;
  font-weight: 600;
}
.employee-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.employee-summary button {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 62px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.employee-summary button:last-child {
  border-right: 0;
}
.employee-summary b {
  font-size: 21px;
  font-weight: 550;
}
.employee-summary span {
  color: var(--muted);
  font-size: 11px;
}
.action-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 92px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-weight: 400;
  transition:
    background 0.16s var(--ease-out),
    transform 0.16s var(--ease-out);
}
.action-row:last-child {
  border-bottom: 0;
}
.action-row:hover,
.action-row:focus-visible {
  background: var(--bg);
  transform: translateY(-1px);
}
.action-date {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.action-date.red {
  background: var(--redbg);
  color: var(--red);
}
.action-date.yellow {
  background: var(--yellowbg);
  color: var(--yellow);
}
.action-date b {
  font-size: 17px;
  line-height: 1;
}
.action-date small {
  font-size: 9px;
  text-transform: uppercase;
}
.action-copy {
  min-width: 0;
}
.action-title,
.action-context,
.action-badges {
  display: block;
}
.action-title {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.action-context {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.action-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.action-cta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.task-next {
  padding: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--bg);
}
.task-next.blocked {
  border-left-color: var(--orange);
  background: var(--orangebg);
}
.task-next.done {
  border-left-color: var(--green);
  background: var(--greenbg);
}
.task-next-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.task-next h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.task-next p {
  margin-bottom: 14px;
}
.task-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--line);
}
.timeline {
  margin-bottom: 24px;
}
.timeline-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  position: absolute;
  top: 43px;
  bottom: -18px;
  left: 14px;
  width: 1px;
  background: var(--line);
  content: "";
}
.timeline-marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
}
.timeline-marker svg {
  width: 15px;
}
.timeline-step.current .timeline-marker {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--inverse);
}
.timeline-step.done .timeline-marker {
  border-color: var(--green);
  color: var(--green);
}
.timeline-step.future {
  color: var(--muted);
}
.timeline-copy {
  min-width: 0;
}
.timeline-copy b,
.timeline-copy small {
  display: block;
  overflow-wrap: anywhere;
}
.timeline-copy b {
  font-size: 12px;
  line-height: 1.5;
}
.timeline-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.admin-details {
  margin: 18px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.admin-details summary {
  padding: 15px 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.admin-grid {
  padding-top: 12px;
}
.send-preview {
  margin: 5px 0 13px;
  padding: 11px 13px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.help-steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.help-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}
.help-steps li::before {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--soft);
  content: counter(steps);
  font-size: 10px;
  font-weight: 700;
}
.help-steps b,
.help-steps span {
  line-height: 1.5;
}
.help-steps b {
  font-size: 12px;
}
.help-steps span {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 720px) {
  dialog.task-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  dialog.task-dialog .drawer-head,
  dialog.task-dialog .drawer-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .calendar-toolbar {
    align-items: stretch;
  }
  .calendar-person,
  .calendar-person select {
    width: 100%;
    min-width: 0;
  }
  .welcome-card,
  .next-card-grid,
  .task-next-head {
    display: block;
  }
  .welcome-card button,
  .next-card-status {
    margin-top: 14px;
  }
  .next-card {
    padding: 22px 18px;
  }
  .next-dates {
    gap: 18px;
  }
  .employee-summary {
    grid-template-columns: 1fr 1fr;
  }
  .employee-summary button:nth-child(2) {
    border-right: 0;
  }
  .employee-summary button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .action-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .action-date {
    width: 43px;
    height: 50px;
  }
  .action-cta {
    display: none;
  }
  .task-overview {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .timeline-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .timeline-step > button {
    grid-column: 2;
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .sidebar {
    visibility: hidden;
  }
  .shell.menu-open .sidebar {
    visibility: visible;
  }
}
