:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --ink: #172139;
  --ink-strong: #101a30;
  --muted: #7c879b;
  --muted-dark: #59647a;
  --line: #e7ebf2;
  --line-strong: #dce2ec;
  --brand: #df0012;
  --brand-dark: #b9000f;
  --brand-soft: #fff0f2;
  --navy: #13213c;
  --green: #16a678;
  --green-soft: #e9f8f2;
  --rose: #de5a75;
  --amber: #d99121;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(27, 42, 76, 0.08);
  --shadow-soft: 0 10px 30px rgba(27, 42, 76, 0.055);
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: 232px;
  flex-direction: column;
  padding: 28px 20px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}

.brand-logo-box {
  display: grid;
  width: 66px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}

.brand-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark,
.modal-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(19, 33, 60, 0.22);
}

.brand-mark span,
.modal-mark span {
  position: absolute;
  width: 15px;
  height: 5px;
  border-radius: 4px;
  background: #fff;
  transform: skewX(-22deg);
}

.brand-mark span:nth-child(1),
.modal-mark span:nth-child(1) {
  top: 10px;
  left: 10px;
}

.brand-mark span:nth-child(2),
.modal-mark span:nth-child(2) {
  top: 17px;
  left: 17px;
  width: 11px;
  opacity: 0.82;
}

.brand-mark span:nth-child(3),
.modal-mark span:nth-child(3) {
  top: 24px;
  left: 10px;
  width: 17px;
  opacity: 0.62;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy span {
  margin-top: 3px;
  color: #9aa2b2;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.primary-nav {
  margin-top: 44px;
}

.nav-label {
  margin: 0 12px 10px;
  color: #aab1bf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  gap: 13px;
  margin: 4px 0;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6f7a8f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item::before {
  position: absolute;
  left: -20px;
  width: 3px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  background: #f5f7fb;
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #c4cad5;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.nav-dot.is-open {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 166, 120, 0.12);
}

.sidebar-network {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8faff, #ffffff);
}

.network-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
}

.network-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-network div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.sidebar-network span {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-network strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease;
}

.profile-trigger:hover {
  background: #f6f8fc;
}

.avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dfe5f0;
  border-radius: 11px;
  background: linear-gradient(145deg, #f1f4fb, #eaf0ff);
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.profile-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  overflow: hidden;
  color: #9099a9;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger > svg {
  width: 14px;
  height: 14px;
  color: #a6adba;
}

.version {
  margin: 7px 8px 0;
  color: #b3b9c5;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.workspace {
  width: calc(100% - 232px);
  min-width: 0;
  max-width: 100%;
  margin-left: 232px;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid rgba(225, 230, 239, 0.88);
  background: rgba(250, 251, 253, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right,
.topbar-profile {
  display: flex;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #929bab;
  font-size: 12px;
}

.breadcrumb i {
  color: #c3c9d3;
  font-style: normal;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.topbar-right {
  gap: 12px;
}

.topbar-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
}

.topbar-date strong {
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.topbar-date span {
  color: var(--muted);
  font-size: 9px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.icon-button:hover {
  border-color: #ccd4e2;
  box-shadow: var(--shadow-soft);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--rose);
}

.topbar-profile {
  height: 42px;
  gap: 9px;
  margin-left: 2px;
  padding: 3px 9px 3px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: #59647a;
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease;
}

.topbar-profile:hover {
  background: #f0f3f8;
}

.topbar-profile .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.topbar-profile > svg {
  width: 13px;
  height: 13px;
  color: #929aaa;
}

.mobile-menu {
  display: none;
  margin-right: 10px;
}

.main {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 38px 24px;
}

.view {
  animation: view-in 320ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-areas: "copy tasks network";
  grid-template-columns: minmax(0, 1fr) 255px 310px;
  gap: 28px;
  overflow: hidden;
  padding: 45px 46px;
  border-radius: var(--radius-lg);
  background: linear-gradient(128deg, #12213d 0%, #172b51 56%, #1a3261 100%);
  box-shadow: 0 24px 55px rgba(17, 33, 62, 0.19);
  color: #fff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right, transparent 25%, #000 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  top: -180px;
  right: -60px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(226, 63, 46, 0.25), transparent 68%);
}

.hero-orb-two {
  right: 260px;
  bottom: -230px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(246, 177, 51, 0.16), transparent 65%);
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 46px;
  width: 190px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #df0012, #f14b4e 68%, transparent);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 700px;
  grid-area: copy;
}

.eyebrow,
.section-kicker,
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92a6ce;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f5a337;
  box-shadow: 0 0 0 4px rgba(245, 163, 55, 0.13);
}

.hero h1 {
  margin: 24px 0 13px;
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero h1 span:last-child {
  color: #fff;
  font-weight: 800;
}

.hero-copy > p {
  max-width: 600px;
  margin: 0;
  color: #aebbd4;
  font-size: 13px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button-primary {
  background: #fff;
  box-shadow: 0 9px 25px rgba(3, 10, 24, 0.14);
  color: var(--navy);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #d5def0;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary {
  border-color: #dfe4ed;
  background: #fff;
  color: #40506c;
}

.button-secondary:hover:not(:disabled) {
  border-color: #cdd5e2;
  background: #f8faff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.network-hero-card {
  position: relative;
  z-index: 2;
  grid-area: network;
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 40px rgba(4, 12, 28, 0.15);
  backdrop-filter: blur(12px);
}

.hero-task-card {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-self: stretch;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 40px rgba(4, 12, 28, 0.13);
  backdrop-filter: blur(12px);
  grid-area: tasks;
}

.hero-task-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hero-task-heading > div {
  min-width: 0;
}

.hero-task-heading span {
  color: #8094b8;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-task-heading h2 {
  margin: 4px 0 0;
  color: #f1f5fc;
  font-size: 15px;
  font-weight: 700;
}

.hero-task-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #9eb1d1;
  cursor: pointer;
  font-size: 7px;
  white-space: nowrap;
}

.hero-task-more:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-task-more svg {
  width: 11px;
  height: 11px;
}

.hero-task-form {
  margin-top: 13px;
}

.hero-task-list {
  min-height: 72px;
  max-height: 126px;
  margin-top: 2px;
}

.hero-task-list .task-empty {
  min-height: 72px;
  padding: 10px;
}

.hero-task-list .task-item {
  padding: 7px 7px;
}

.hero-task-list .task-title {
  font-size: 8px;
}

.hero-task-list .task-delete {
  display: none;
}

.hero-task-list .task-meta {
  font-size: 7px;
}

.network-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.network-hero-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #becbe3;
}

.network-hero-icon svg {
  width: 19px;
  height: 19px;
}

.status-pill {
  display: inline-flex;
  height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #7c879b;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.is-checking {
  background: #eef2fa;
  color: #7889a7;
}

.status-pill.is-open,
.status-pill.is-allowed {
  background: rgba(74, 205, 165, 0.12);
  color: #67d5b4;
}

.status-pill.is-blocked,
.status-pill.is-closed {
  background: rgba(255, 175, 122, 0.12);
  color: #f2ae78;
}

.network-hero-card > p {
  margin: 0 0 7px;
  color: #8fa0c0;
  font-size: 10px;
}

.network-ip {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-divider {
  height: 1px;
  margin: 20px 0 15px;
  background: rgba(255, 255, 255, 0.09);
}

.network-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #96a6c3;
  font-size: 10px;
}

.network-rule code {
  color: #c8d3e6;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10px;
}

.network-hero-card .network-note {
  margin: 14px 0 0;
  color: #7385a7;
  font-size: 9px;
  line-height: 1.65;
}

.overview-strip {
  display: grid;
  grid-template-columns: 0.85fr 0.9fr 1fr 1.35fr;
  gap: 0;
  margin: 18px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.overview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.overview-item:first-child {
  padding-left: 0;
}

.overview-item:nth-child(3) {
  border-right: 0;
}

.overview-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
}

.overview-icon svg {
  width: 18px;
  height: 18px;
}

.tone-blue {
  --tone: #3e67de;
  --tone-soft: #edf2ff;
}

.tone-green {
  --tone: #1ba57a;
  --tone-soft: #eaf8f3;
}

.tone-amber {
  --tone: #d68f21;
  --tone-soft: #fff5e3;
}

.tone-rose {
  --tone: #d75d78;
  --tone-soft: #fdf0f3;
}

.tone-violet {
  --tone: #7f62d9;
  --tone-soft: #f2effd;
}

.tone-orange {
  --tone: #db7343;
  --tone-soft: #fff2eb;
}

.tone-red {
  --tone: #d84d45;
  --tone-soft: #fdf0ee;
}

.tone-teal {
  --tone: #168e96;
  --tone-soft: #e9f7f8;
}

.tone-cyan {
  --tone: #1688a8;
  --tone-soft: #eaf7fb;
}

.overview-icon.tone-blue {
  background: var(--tone-soft);
  color: var(--tone);
}

.overview-icon.tone-green {
  background: var(--tone-soft);
  color: var(--tone);
}

.overview-icon.tone-amber {
  background: var(--tone-soft);
  color: var(--tone);
}

.overview-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.overview-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.overview-item div span {
  color: var(--muted);
  font-size: 9px;
}

.overview-server {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.overview-server span {
  color: var(--muted);
  font-size: 9px;
}

.overview-server a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #465778;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  font-weight: 600;
  transition: color 160ms ease;
}

.overview-server a:hover {
  color: var(--brand);
}

.overview-server svg {
  width: 13px;
  height: 13px;
}

.weather-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.5fr);
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.weather-current-panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 177, 51, 0.16), transparent 38%),
    linear-gradient(145deg, #fbfcff, #f6f8fc);
}

.weather-heading,
.weather-forecast-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weather-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.weather-heading h2,
.weather-forecast-heading h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.weather-locate-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #6f7c91;
  cursor: pointer;
  font-size: 8px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.weather-locate-button:hover:not(:disabled) {
  border-color: #c4cedd;
  background: #fff;
  color: var(--brand);
}

.weather-locate-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.weather-locate-button svg {
  width: 13px;
  height: 13px;
}

.weather-city-editor {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e2e7ef;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
}

.weather-city-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 25px;
  gap: 5px;
}

.weather-city-search input {
  min-width: 0;
  height: 29px;
  padding: 0 8px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.weather-city-search input:focus {
  border-color: #b1bfd6;
  box-shadow: 0 0 0 2px rgba(49, 89, 217, 0.05);
}

.weather-city-search > button {
  height: 29px;
  padding: 0 8px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #65748b;
  cursor: pointer;
  font-size: 8px;
}

.weather-city-search > button:hover:not(:disabled) {
  border-color: #c7d0df;
  color: var(--brand);
}

.weather-city-search .weather-city-close {
  display: grid;
  width: 25px;
  padding: 0;
  place-items: center;
}

.weather-city-close svg {
  width: 11px;
  height: 11px;
}

.weather-city-results {
  display: flex;
  max-height: 124px;
  flex-direction: column;
  gap: 4px;
  margin-top: 7px;
  overflow-y: auto;
}

.weather-city-results:empty {
  display: none;
}

.weather-city-result {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #fafbfd;
  color: #54637a;
  cursor: pointer;
  font-size: 8px;
  text-align: left;
}

.weather-city-result:hover {
  border-color: #dfe5ee;
  background: #fff;
  color: var(--brand);
}

.weather-city-result small {
  overflow: hidden;
  color: #9aa3b2;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-city-error {
  min-height: 11px;
  margin: 5px 0 0;
  color: #c36b54;
  font-size: 7px;
}

.weather-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
  color: #7c8799;
}

.weather-location svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.weather-location strong {
  overflow: hidden;
  color: #4b5b73;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-location span {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 4px;
  background: #edf1f7;
  color: #919aa9;
  font-size: 7px;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.weather-current-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff6dc, #f4e7c5);
  color: #d39a37;
  box-shadow: 0 8px 20px rgba(199, 151, 59, 0.13);
}

.weather-current-icon svg {
  width: 31px;
  height: 31px;
}

.weather-temperature {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.weather-temperature strong {
  color: var(--ink-strong);
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.weather-temperature span {
  overflow: hidden;
  color: #68758a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-current > p {
  margin: 16px 0 0 auto;
  color: #8c96a6;
  font-size: 8px;
  white-space: nowrap;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.weather-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(224, 229, 237, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.weather-metrics span {
  color: #959eac;
  font-size: 7px;
}

.weather-metrics strong {
  color: #4e5d74;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.weather-privacy {
  margin: 12px 0 0;
  color: #a2a9b5;
  font-size: 7px;
}

.weather-forecast-panel {
  min-width: 0;
  padding: 22px;
  background: #fff;
}

.weather-forecast-heading > div > span {
  color: #a1a9b6;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.weather-forecast-heading small {
  color: #a4abb7;
  font-size: 7px;
  white-space: nowrap;
}

.weather-days {
  display: grid;
  grid-template-columns: repeat(6, minmax(68px, 1fr));
  gap: 7px;
  margin-top: 17px;
}

.weather-day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 5px 10px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fafbfd;
  text-align: center;
}

.weather-day.is-today {
  border-color: #f0ded3;
  background: linear-gradient(160deg, #fffaf6, #fff);
  box-shadow: 0 5px 14px rgba(86, 62, 44, 0.05);
}

.weather-day-name {
  color: #53627a;
  font-size: 8px;
  font-weight: 700;
}

.weather-day-date {
  color: #a0a8b5;
  font-size: 7px;
}

.weather-day-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 2px 0;
  place-items: center;
  color: #7892ae;
}

.weather-day-icon svg {
  width: 24px;
  height: 24px;
}

.weather-day-temp {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.weather-day-temp strong {
  color: var(--ink);
  font-size: 12px;
}

.weather-day-temp span {
  color: #9ca5b3;
  font-size: 8px;
}

.weather-day-rain {
  color: #7a8ba5;
  font-size: 7px;
}

.weather-day.is-placeholder {
  min-height: 119px;
  border-color: #f1f3f7;
  background: linear-gradient(100deg, #f8f9fb 20%, #f1f4f8 38%, #f8f9fb 56%);
  background-size: 220% 100%;
  animation: weather-shimmer 1.5s infinite linear;
}

@keyframes weather-shimmer {
  to {
    background-position-x: -220%;
  }
}

.weather-message {
  margin: 11px 0 0;
  color: #9aa3b1;
  font-size: 8px;
  line-height: 1.55;
}

.weather-message.is-error {
  color: #c36b54;
}

.content-section {
  scroll-margin-top: 96px;
}

.section-heading,
.panel-heading,
.history-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker,
.page-eyebrow {
  color: #9aa4b5;
}

.section-heading h2,
.panel-heading h2,
.history-heading h2 {
  margin: 7px 0 0;
  color: var(--ink-strong);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reorder-hint {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px dashed #d7dde7;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  color: #939cac;
  font-size: 9px;
  white-space: nowrap;
}

.reorder-hint svg {
  width: 14px;
  height: 14px;
}

.reorder-hint.is-active {
  border-style: solid;
  border-color: #e5d5cf;
  background: #fff8f5;
  color: #a66d58;
}

.search-box {
  display: flex;
  width: 216px;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: #9da6b5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: #aebcdf;
  box-shadow: 0 0 0 3px rgba(49, 89, 217, 0.07);
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-box input::placeholder {
  color: #a8b0bd;
}

.search-key {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e1e5ec;
  border-radius: 5px;
  background: #f8f9fb;
  color: #a6adba;
  font-size: 9px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.service-card {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(27, 42, 76, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card::after {
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--tone-soft);
  content: "";
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease, transform 240ms ease;
}

.service-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--tone) 22%, #e3e8f0);
  box-shadow: 0 18px 35px rgba(27, 42, 76, 0.09);
  transform: translateY(-3px);
}

.service-card:hover::after {
  opacity: 0.7;
  transform: scale(1);
}

.service-card.is-draggable {
  cursor: grab;
}

.service-card.is-draggable:active {
  cursor: grabbing;
}

.service-card.is-dragging {
  opacity: 0.42;
  transform: scale(0.98);
}

.service-grid.is-sorting .service-card:not(.is-dragging) {
  transition: border-color 140ms ease, transform 140ms ease;
}

.service-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--tone-soft);
  color: var(--tone);
}

.service-icon svg {
  width: 21px;
  height: 21px;
}

.service-arrow {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  color: #b0b7c3;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.service-card:hover .service-arrow {
  border-color: var(--tone);
  background: var(--tone);
  color: #fff;
}

.service-arrow svg {
  width: 13px;
  height: 13px;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #8b95a6;
  font-size: 10px;
  line-height: 1.55;
}

.service-meta {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-meta span {
  color: #a5adba;
  font-size: 9px;
}

.service-meta code {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f6f8fb;
  color: #8b95a6;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 9px;
}

.empty-search {
  margin-top: 20px;
  padding: 45px 20px;
  border: 1px dashed #d7deea;
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.9fr);
  gap: 18px;
  margin-top: 32px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-heading {
  align-items: center;
}

.panel-heading h2 {
  font-size: 17px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #75829a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.text-button:hover {
  color: var(--brand);
}

.text-button svg {
  width: 13px;
  height: 13px;
}

.quick-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
}

.quick-clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.quick-clock strong {
  color: var(--ink-strong);
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.quick-clock span {
  color: var(--muted);
  font-size: 10px;
}

.quick-window-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 17px;
}

.window-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #edf0f5;
  border-radius: 11px;
  background: #fafbfd;
}

.window-box > span {
  color: var(--muted);
  font-size: 9px;
}

.window-box strong {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.window-box strong i {
  padding: 0 2px;
  color: #bcc3cf;
  font-style: normal;
  font-weight: 400;
}

.window-box small {
  color: #9ba4b3;
  font-size: 9px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-actions .button {
  height: 40px;
}

.quick-actions .button-primary {
  background: var(--brand);
  color: #fff;
}

.quick-actions .button-primary:hover:not(:disabled) {
  background: var(--brand-dark);
}

.inline-message {
  margin: 11px 0 0;
  color: #9ba4b3;
  font-size: 9px;
  line-height: 1.5;
}

.inline-message.is-error {
  color: var(--rose);
}

.inline-message.is-warning {
  color: #bd7625;
}

.inline-message.is-success {
  color: var(--green);
}

.date-chip {
  padding: 6px 9px;
  border-radius: 7px;
  background: #f5f7fa;
  color: #8a94a5;
  font-size: 9px;
}

.attendance-records {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 19px;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
}

.record-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
}

.record-icon svg {
  width: 14px;
  height: 14px;
}

.record-icon.is-in {
  background: #ecf1ff;
  color: var(--brand);
  transform: rotate(-90deg);
}

.record-icon.is-out {
  background: #eaf8f3;
  color: var(--green);
  transform: rotate(90deg);
}

.record-item > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.record-item div span {
  color: var(--muted);
  font-size: 9px;
}

.record-item div strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.record-state {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f5f6f9;
  color: #9ca5b3;
  font-size: 8px;
}

.record-state.is-complete {
  background: #eaf8f3;
  color: #159b73;
}

.record-state.is-active {
  background: #eef2ff;
  color: var(--brand);
}

.summary-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  border-radius: 11px;
  background: #f8fafc;
}

.summary-foot-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #74829b;
  box-shadow: 0 3px 8px rgba(27, 42, 76, 0.05);
}

.summary-foot-icon svg {
  width: 14px;
  height: 14px;
}

.summary-foot p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.summary-foot strong {
  color: #56647d;
  font-size: 9px;
}

.summary-foot span {
  color: #9aa3b1;
  font-size: 8px;
  line-height: 1.45;
}

.crm-dashboard-panel {
  margin-top: 18px;
}

.crm-panel-heading {
  align-items: center;
}

.crm-panel-heading > div p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.crm-link-status {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f3f5f8;
  color: #8c96a6;
  font-size: 8px;
  white-space: nowrap;
}

.crm-link-status.is-linked {
  background: var(--green-soft);
  color: var(--green);
}

.crm-dashboard-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.5fr);
  gap: 18px;
  margin-top: 18px;
}

.crm-link-form {
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 11px;
  background: #fafbfd;
}

.crm-link-form > label {
  display: block;
  margin-bottom: 7px;
  color: #69768b;
  font-size: 9px;
  font-weight: 600;
}

.crm-link-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.crm-link-form input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.crm-link-form input:focus {
  border-color: #aebbd2;
  box-shadow: 0 0 0 3px rgba(49, 89, 217, 0.05);
}

.crm-link-form button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #5c6b82;
  cursor: pointer;
  font-size: 8px;
  white-space: nowrap;
}

.crm-link-form button:hover:not(:disabled) {
  border-color: #c8d2e2;
  color: var(--brand);
}

.crm-link-form button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.crm-link-form button svg {
  width: 13px;
  height: 13px;
}

.crm-task-list {
  display: grid;
  min-height: 88px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.crm-task-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 11px;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.crm-task-card:hover {
  border-color: #dce2eb;
  box-shadow: 0 7px 18px rgba(27, 42, 76, 0.05);
}

.crm-task-card.is-urgent {
  border-left: 2px solid #dc5547;
}

.crm-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crm-task-source,
.crm-task-due {
  color: #9aa3b1;
  font-size: 7px;
}

.crm-task-status {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f2f4f8;
  color: #7f8999;
  font-size: 7px;
}

.crm-task-status.is-urgent {
  background: #fdf0ee;
  color: #c35146;
}

.crm-task-title {
  overflow: hidden;
  color: #3d4d65;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.crm-task-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #8b95a5;
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.crm-task-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: #697a92;
  font-size: 8px;
}

.crm-task-link:hover {
  color: var(--brand);
}

.crm-task-link svg {
  width: 11px;
  height: 11px;
}

.crm-empty-state {
  display: grid;
  min-height: 82px;
  grid-column: 1 / -1;
  place-items: center;
  padding: 16px;
  border: 1px dashed #dfe4ec;
  border-radius: 9px;
  color: #9aa3b1;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.crm-integration-note {
  margin: 12px 0 0;
  color: #a0a8b5;
  font-size: 8px;
}

.calendar-create-button {
  background: var(--brand);
  color: #fff;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 0.42fr);
  gap: 18px;
}

.calendar-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-nav-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.calendar-nav-buttons button {
  display: grid;
  height: 31px;
  min-width: 31px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #fff;
  color: #6e7b90;
  cursor: pointer;
  font-size: 9px;
}

.calendar-nav-buttons button:hover {
  border-color: #cfd6e2;
  color: var(--brand);
}

.calendar-nav-buttons svg {
  width: 13px;
  height: 13px;
}

.calendar-nav-buttons button:first-child svg {
  transform: rotate(180deg);
}

.calendar-month-title {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
}

.calendar-month-title strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.calendar-month-title span {
  color: #969fae;
  font-size: 8px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 20px;
  padding: 9px 0;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
  color: #8d97a7;
  font-size: 8px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid #edf0f5;
}

.calendar-day {
  position: relative;
  min-height: 108px;
  padding: 8px;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
  cursor: pointer;
  transition: background 150ms ease;
}

.calendar-day:hover {
  background: #fafbfd;
}

.calendar-day.is-outside {
  background: #fbfcfd;
  opacity: 0.48;
}

.calendar-day.is-today {
  background: #fffaf7;
}

.calendar-day-number {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #647189;
  font-size: 9px;
}

.calendar-day.is-today .calendar-day-number {
  background: var(--brand);
  color: #fff;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.calendar-event-chip {
  overflow: hidden;
  padding: 3px 5px;
  border-left: 2px solid #6d86b1;
  border-radius: 3px;
  background: #f1f5fb;
  color: #60718b;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-chip.is-first {
  border-left-color: var(--brand);
  background: #fff1f2;
  color: #a44747;
}

.calendar-more {
  color: #9ea7b4;
  font-size: 7px;
}

.calendar-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calendar-upcoming-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calendar-side-count {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f4f6f9;
  color: #909aaa;
  font-size: 8px;
}

.calendar-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.upcoming-event {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  background: #fafbfd;
  cursor: pointer;
}

.upcoming-event:hover {
  border-color: #dfe4ec;
  background: #fff;
}

.upcoming-date {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1px;
  color: var(--brand);
}

.upcoming-date strong {
  font-size: 15px;
  line-height: 1;
}

.upcoming-date span {
  color: #929dab;
  font-size: 7px;
}

.upcoming-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.upcoming-copy strong {
  overflow: hidden;
  color: #4d5b71;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-copy small {
  color: #969fae;
  font-size: 7px;
}

.calendar-reminder-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 17px;
  border: 1px solid #e7ebf2;
  border-radius: 13px;
  background: linear-gradient(145deg, #f9fbff, #f4f7fc);
}

.calendar-reminder-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: #7787a1;
}

.calendar-reminder-icon svg {
  width: 15px;
  height: 15px;
}

.calendar-reminder-card strong {
  color: #536179;
  font-size: 9px;
}

.calendar-reminder-card p {
  margin: 4px 0 0;
  color: #929baa;
  font-size: 8px;
  line-height: 1.7;
}

.notice-backdrop {
  justify-items: end;
  padding: 0;
}

.notice-drawer {
  width: min(520px, 100%);
  height: 100%;
  padding: 28px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  box-shadow: -24px 0 70px rgba(4, 12, 28, 0.2);
  animation: notice-in 240ms ease both;
}

@keyframes notice-in {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
}

.notice-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.notice-drawer-header h2 {
  margin: 8px 0 5px;
  color: var(--ink-strong);
  font-size: 23px;
}

.notice-drawer-header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.notice-drawer-header .modal-close {
  position: static;
  flex: 0 0 auto;
}

.notice-publish-card {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffaf7, #fff);
}

.notice-publish-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notice-publisher-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a5533e;
  font-size: 9px;
  font-weight: 700;
}

.notice-publisher-badge svg {
  width: 14px;
  height: 14px;
}

.notice-publish-heading small {
  color: #a1a8b3;
  font-size: 7px;
}

.notice-publish-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.notice-publish-card input,
.notice-publish-card textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  resize: vertical;
}

.notice-publish-card input:focus,
.notice-publish-card textarea:focus {
  border-color: #aebbd2;
  box-shadow: 0 0 0 3px rgba(49, 89, 217, 0.05);
}

.notice-publish-card .button {
  align-self: flex-end;
  height: 34px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.notice-card {
  padding: 16px;
  border: 1px solid #e9edf3;
  border-radius: 11px;
  background: #fff;
}

.notice-card.is-unread {
  border-color: #ecd8d3;
  background: #fffaf8;
}

.notice-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notice-card h3 {
  margin: 0;
  color: #394961;
  font-size: 12px;
}

.notice-unread-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.notice-card p {
  margin: 8px 0 0;
  color: #6e7a8d;
  font-size: 9px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.notice-card-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f2f6;
  color: #9ba4b2;
  font-size: 8px;
}

.notice-delete {
  margin-left: auto;
  padding: 3px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b36b5a;
  cursor: pointer;
  font-size: 8px;
}

.notice-delete:hover {
  background: #fff0ed;
}

.notice-empty {
  padding: 38px 16px;
  border: 1px dashed #dfe4ec;
  border-radius: 10px;
  color: #9ca5b2;
  font-size: 9px;
  text-align: center;
}

.event-editor-modal {
  position: relative;
  width: min(540px, 100%);
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(4, 12, 28, 0.3);
}

.event-editor-modal h2 {
  margin: 8px 0 5px;
  color: var(--ink-strong);
  font-size: 22px;
}

.event-editor-modal > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.event-editor-modal form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 21px;
}

.event-editor-modal label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-editor-modal label > span {
  color: #5d6a80;
  font-size: 9px;
  font-weight: 600;
}

.event-editor-modal input,
.event-editor-modal select,
.event-editor-modal textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  outline: 0;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  resize: vertical;
}

.event-editor-modal input:focus,
.event-editor-modal select:focus,
.event-editor-modal textarea:focus {
  border-color: #aebbd2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 89, 217, 0.05);
}

.event-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-form-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 4px;
}

.event-form-actions .button {
  height: 38px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 3px 0 24px;
}

.page-heading h1 {
  margin: 9px 0 8px;
  color: var(--ink-strong);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.page-heading-date {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(27, 42, 76, 0.03);
}

.page-heading-date > svg {
  width: 19px;
  height: 19px;
  color: #7887a2;
}

.page-heading-date span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-heading-date strong {
  color: var(--ink);
  font-size: 11px;
}

.page-heading-date small {
  color: var(--muted);
  font-size: 9px;
}

.attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.75fr);
  gap: 18px;
}

.clock-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 31px 36px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #13213c 0%, #172c52 68%, #1b3563 100%);
  box-shadow: 0 24px 55px rgba(17, 33, 62, 0.19);
  color: #fff;
}

.clock-panel::before {
  position: absolute;
  top: -140px;
  right: -130px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.018),
    0 0 0 110px rgba(255, 255, 255, 0.012);
  content: "";
}

.clock-panel::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to left, #000, transparent 80%);
  pointer-events: none;
}

.clock-panel-head,
.clock-content,
.big-clock,
.big-clock-date,
.clock-window-banner,
.punch-actions,
.clock-message {
  position: relative;
  z-index: 1;
}

.clock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clock-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 25px;
  margin-top: 30px;
}

.clock-primary {
  min-width: 0;
}

.clock-content .big-clock {
  margin-top: 0;
  font-size: clamp(52px, 5.3vw, 86px);
}

.clock-content .clock-window-banner {
  margin-top: 24px;
}

.personal-board {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.board-heading > div {
  min-width: 0;
}

.board-heading span {
  color: #7288aa;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.board-heading h2 {
  margin: 4px 0 0;
  color: #eff4fd;
  font-size: 16px;
  font-weight: 700;
}

.board-count {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #9fb2d0 !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.board-subtitle {
  margin: 5px 0 0;
  color: #6f849f;
  font-size: 8px;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 5px;
  margin-top: 14px;
}

.task-form input,
.task-form select,
.task-form button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: 0;
  font-size: 9px;
}

.task-form input {
  min-width: 0;
  padding: 0 10px;
  background: rgba(5, 13, 28, 0.22);
  color: #e5edfa;
}

.task-form input::placeholder {
  color: #7186a4;
}

.task-form input:focus {
  border-color: rgba(117, 152, 230, 0.7);
  background: rgba(5, 13, 28, 0.32);
}

.task-form input:disabled,
.task-form select:disabled,
.task-form button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.task-form select {
  width: 54px;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #b9c8df;
  cursor: pointer;
}

.task-form select option {
  background: #1a2b49;
  color: #fff;
}

.task-form button {
  display: grid;
  width: 34px;
  place-items: center;
  border-color: rgba(93, 132, 230, 0.5);
  background: #3158d5;
  color: #fff;
  cursor: pointer;
}

.task-form button:hover:not(:disabled) {
  background: #3c66e5;
}

.task-form button svg {
  width: 15px;
  height: 15px;
}

.task-form-error {
  min-height: 13px;
  margin: 5px 0 0;
  color: #f0a697;
  font-size: 8px;
}

.task-list {
  display: flex;
  min-height: 130px;
  max-height: 270px;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  margin-top: 1px;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.task-empty {
  display: grid;
  min-height: 130px;
  flex: 1;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #758ba8;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 160ms ease, border-color 160ms ease;
}

.task-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.task-item.is-urgent {
  border-left: 2px solid #ef705b;
}

.task-toggle {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  place-items: center;
  border: 1px solid #7c91af;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.task-toggle::after {
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.task-toggle:hover {
  border-color: #a8bce0;
}

.task-item.is-completed .task-toggle {
  border-color: #4fd0ac;
  background: #35ae8d;
  color: #fff;
}

.task-item.is-completed .task-toggle::after {
  opacity: 1;
}

.task-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.task-title {
  overflow-wrap: anywhere;
  color: #dbe5f4;
  font-size: 9px;
  line-height: 1.55;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7086a4;
  font-size: 7px;
}

.task-meta .task-type {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(103, 139, 211, 0.14);
  color: #9fb5db;
}

.task-meta .task-type.is-urgent {
  background: rgba(235, 104, 82, 0.14);
  color: #f0a092;
}

.task-item.is-completed .task-title {
  color: #7c8ca4;
  text-decoration: line-through;
}

.task-delete {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6e819d;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
}

.task-item:hover .task-delete,
.task-delete:focus-visible {
  opacity: 1;
}

.task-delete:hover {
  background: rgba(239, 112, 91, 0.12);
  color: #f2a395;
}

.task-delete svg {
  width: 12px;
  height: 12px;
}

.board-footnote {
  margin: auto 0 0;
  padding-top: 10px;
  color: #627995;
  font-size: 7px;
  line-height: 1.5;
}

.clock-network {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8b9d7;
  font-size: 10px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c8ca7;
}

.pulse-dot.is-allowed {
  background: #43d0a8;
  box-shadow: 0 0 0 5px rgba(67, 208, 168, 0.1);
  animation: pulse 2.1s infinite;
}

.pulse-dot.is-blocked {
  background: #f1a76e;
  box-shadow: 0 0 0 5px rgba(241, 167, 110, 0.1);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(67, 208, 168, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(67, 208, 168, 0.025);
  }
}

.clock-policy-tag {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #788dab;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.big-clock {
  margin-top: 44px;
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  font-size: clamp(64px, 8vw, 104px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.052em;
  line-height: 0.95;
}

.big-clock-date {
  margin: 13px 0 0;
  color: #8599bc;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.clock-window-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 31px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.window-banner-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #a5b6d2;
}

.window-banner-icon svg {
  width: 16px;
  height: 16px;
}

.clock-window-banner > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.clock-window-banner strong {
  font-size: 11px;
  font-weight: 600;
}

.clock-window-banner span {
  color: #798eaf;
  font-size: 9px;
}

.punch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 13px;
}

.punch-large {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.punch-large:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.punch-large:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.punch-large.is-ready {
  border-color: rgba(79, 129, 247, 0.55);
  background: linear-gradient(135deg, #3158d5, #355fdf);
  box-shadow: 0 12px 30px rgba(29, 68, 178, 0.3);
}

.punch-large.is-ready:hover:not(:disabled) {
  border-color: rgba(119, 158, 255, 0.8);
  background: linear-gradient(135deg, #345ddc, #3f6bec);
}

.punch-large-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.punch-large.is-check-in .punch-large-icon {
  transform: rotate(-90deg);
}

.punch-large.is-check-out .punch-large-icon {
  transform: rotate(90deg);
}

.punch-large-icon svg {
  width: 16px;
  height: 16px;
}

.punch-large > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.punch-large strong {
  font-size: 12px;
}

.punch-large small {
  color: #8fa3c3;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.punch-large.is-ready small {
  color: rgba(255, 255, 255, 0.7);
}

.clock-message {
  margin: 12px 0 0;
  color: #7e92b3;
  font-size: 9px;
}

.clock-message.is-error {
  color: #f4ae9a;
}

.clock-message.is-warning {
  color: #f3c982;
}

.attendance-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attendance-status-card,
.network-verify-card,
.policy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.aside-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.aside-heading > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aside-heading span {
  color: var(--muted);
  font-size: 9px;
}

.aside-heading strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.status-orbit {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--brand);
}

.status-orbit svg {
  width: 17px;
  height: 17px;
}

.aside-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 23px;
}

.aside-record {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid #d6dce6;
  border-radius: 50%;
  background: #fff;
}

.timeline-dot.is-complete {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 166, 120, 0.09);
}

.timeline-dot.is-active {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(49, 89, 217, 0.09);
}

.aside-record > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.aside-record div span {
  color: var(--muted);
  font-size: 9px;
}

.aside-record div strong {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.aside-record small {
  color: #9ea7b5;
  font-size: 8px;
}

.aside-record small.is-complete {
  color: var(--green);
}

.aside-connector {
  width: 1px;
  height: 30px;
  margin: 4px 0 4px 5px;
  background: #e8ecf2;
}

.verify-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f5f8;
  color: #8e98a8;
  font-size: 8px;
}

.verify-badge.is-allowed {
  background: var(--green-soft);
  color: var(--green);
}

.verify-badge.is-blocked {
  background: #fff3e9;
  color: #cd7b38;
}

.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f6;
}

.verify-row:first-of-type {
  margin-top: 12px;
  border-top: 1px solid #f0f2f6;
}

.verify-row span {
  color: var(--muted);
  font-size: 9px;
}

.verify-row code {
  overflow: hidden;
  color: #4a5a75;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-verify-card > p {
  margin: 13px 0 0;
  color: #9aa3b1;
  font-size: 8px;
  line-height: 1.7;
}

.policy-card {
  background: linear-gradient(150deg, #fbfcff, #f7f9fd);
}

.policy-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-title svg {
  width: 15px;
  height: 15px;
  color: #7b8aa4;
}

.policy-title strong {
  color: #55637a;
  font-size: 10px;
}

.policy-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.policy-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8d97a7;
  font-size: 9px;
}

.policy-card li strong {
  color: #5c6980;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.policy-card > p {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eceff5;
  color: #a0a8b5;
  font-size: 8px;
  line-height: 1.6;
}

.weekly-report-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin-top: 18px;
  padding: 18px 22px;
  overflow: hidden;
  border: 1px solid #e7eaf0;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 86% 0%, rgba(246, 177, 51, 0.1), transparent 28%),
    linear-gradient(140deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.report-brand {
  display: grid;
  width: 72px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.report-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.report-main {
  min-width: 0;
}

.report-main .section-kicker {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.report-main h2 {
  margin: 4px 0 5px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 800;
}

.report-main p {
  margin: 0;
  overflow: hidden;
  color: #8892a3;
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.report-main p span {
  color: #637089;
  font-weight: 600;
}

.report-meta {
  display: flex;
  min-width: 142px;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.report-schedule-label {
  color: #a0a8b5;
  font-size: 8px;
}

.report-meta strong {
  color: #44536c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.report-config-state {
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #929baa;
  font-size: 8px;
}

.report-config-state.is-ready {
  background: var(--green-soft);
  color: var(--green);
}

.report-config-state.is-pending {
  background: #fff5e7;
  color: #bb7726;
}

.history-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.history-heading {
  align-items: center;
}

.history-heading h2 {
  font-size: 17px;
}

.history-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #939cab;
  font-size: 8px;
}

.history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.is-complete {
  background: var(--green);
}

.legend-dot.is-pending {
  background: var(--brand);
}

.legend-dot.is-missing {
  background: #d4dae4;
}

.history-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.history-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.history-table th {
  padding: 11px 14px;
  background: #f8f9fc;
  color: #929baa;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
}

.history-table th:first-child {
  border-radius: 8px 0 0 8px;
}

.history-table th:last-child {
  border-radius: 0 8px 8px 0;
}

.history-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f3f7;
  color: #53607a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.history-table tr:last-child td {
  border-bottom: 0;
}

.history-table .date-main {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.history-table .date-sub {
  display: block;
  margin-top: 3px;
  color: #a1a9b6;
  font-size: 8px;
}

.history-table .muted-time {
  color: #b0b7c4;
}

.table-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 8px;
}

.table-state::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.table-state.is-complete {
  background: var(--green-soft);
  color: var(--green);
}

.table-state.is-pending {
  background: var(--brand-soft);
  color: var(--brand);
}

.table-state.is-missing {
  background: #f4f5f8;
  color: #9da5b2;
}

.history-empty-row td {
  height: 90px;
  color: #a4acb9;
  text-align: center;
}

.page-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 18px 2px 4px;
  border-top: 1px solid var(--line);
  color: #a0a8b5;
  font-size: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-brand img {
  width: 26px;
  height: 18px;
  object-fit: contain;
}

.footer-divider {
  width: 1px;
  height: 9px;
  background: #d9dee7;
}

.footer-version {
  margin-left: auto;
  letter-spacing: 0.07em;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 22px;
  background: rgba(14, 24, 44, 0.62);
  backdrop-filter: blur(8px);
}

.modal-backdrop.notice-backdrop {
  align-items: stretch;
  justify-items: end;
  padding: 0;
}

.identity-modal {
  position: relative;
  width: min(100%, 430px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(4, 12, 28, 0.3);
  animation: modal-in 240ms ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #929baa;
  cursor: pointer;
}

.modal-close:hover {
  background: #f7f8fb;
  color: var(--ink);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 13px;
}

.modal-logo {
  display: grid;
  width: 236px;
  height: 132px;
  margin-bottom: 22px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 13px;
  background: #fff;
}

.modal-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-mark span:nth-child(1) {
  top: 11px;
  left: 11px;
}

.modal-mark span:nth-child(2) {
  top: 19px;
  left: 20px;
}

.modal-mark span:nth-child(3) {
  top: 28px;
  left: 11px;
}

.identity-modal h2 {
  margin: 8px 0 7px;
  color: var(--ink-strong);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.identity-modal > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.identity-modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 24px;
}

.identity-modal label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.identity-modal label span {
  color: #5c6980;
  font-size: 10px;
  font-weight: 600;
}

.identity-modal input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  outline: 0;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.identity-modal input:focus {
  border-color: #96a9dd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 89, 217, 0.07);
}

.identity-modal input::placeholder {
  color: #adb4c1;
}

.form-error {
  min-height: 14px;
  margin: -4px 0 0;
  color: var(--rose);
  font-size: 9px;
}

.modal-submit {
  width: 100%;
  height: 45px;
  background: var(--brand);
  color: #fff;
}

.modal-submit:hover:not(:disabled) {
  background: var(--brand-dark);
}

.modal-submit svg {
  margin-left: auto;
}

.identity-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #9aa3b1;
  font-size: 8px;
  line-height: 1.55;
}

.identity-logout-button {
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a6b61;
  cursor: pointer;
  font-size: 9px;
}

.identity-logout-button:hover {
  background: #fff4f2;
  color: var(--rose);
}

.admin-users-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
}

.user-create-panel,
.user-list-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.user-create-panel {
  align-self: start;
}

.user-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.user-create-form label,
.admin-mini-modal label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-create-form label > span,
.admin-mini-modal label > span {
  color: #69768b;
  font-size: 9px;
  font-weight: 600;
}

.user-create-form input,
.user-create-form select,
.admin-mini-modal input {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid #e1e6ee;
  border-radius: 9px;
  outline: 0;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 10px;
}

.user-create-form input:focus,
.user-create-form select:focus,
.admin-mini-modal input:focus {
  border-color: #aebcda;
  box-shadow: 0 0 0 3px rgba(49, 89, 217, 0.06);
}

.user-create-form .button {
  height: 40px;
  margin-top: 2px;
}

.user-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.user-table {
  min-width: 680px;
}

.user-table td {
  vertical-align: middle;
}

.user-table tr:last-child td {
  border-bottom: 0;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-identity .avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
}

.user-identity div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-identity strong {
  color: #334159;
  font-size: 10px;
}

.user-identity small {
  color: #9aa3b1;
  font-size: 8px;
}

.user-role,
.user-status {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f3f5f9;
  color: #7b8799;
  font-size: 8px;
}

.user-role.is-admin {
  background: #fff1f2;
  color: #d53a34;
}

.user-status.is-active {
  background: #eaf8f3;
  color: #118e68;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-action-button {
  padding: 4px 7px;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
  background: #fff;
  color: #6d7a8f;
  cursor: pointer;
  font-size: 8px;
  white-space: nowrap;
}

.user-action-button:hover:not(:disabled) {
  border-color: #cbd4e1;
  color: var(--brand);
}

.user-action-button.is-danger {
  color: #b36456;
}

.user-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-mini-modal {
  position: relative;
  width: min(100%, 380px);
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 12, 28, 0.26);
}

.admin-mini-modal h2 {
  margin: 7px 0 6px;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 800;
}

.admin-mini-modal > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.admin-mini-modal form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
}

.admin-mini-modal .modal-submit {
  margin-top: 2px;
}

.identity-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.toast-region {
  position: fixed;
  z-index: 200;
  top: 84px;
  right: 24px;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 36px rgba(17, 31, 57, 0.14);
  color: #56647c;
  font-size: 10px;
  line-height: 1.55;
  animation: toast-in 220ms ease both;
  backdrop-filter: blur(10px);
}

.toast::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.toast.is-success::before {
  background: var(--green);
}

.toast.is-error::before {
  background: var(--rose);
}

.toast.is-leaving {
  animation: toast-out 200ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

.is-punching {
  position: relative;
  pointer-events: none;
}

.is-punching::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 650ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 1250px) {
  .main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .topbar {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero {
    grid-template-areas:
      "copy network"
      "tasks tasks";
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px 30px;
    padding: 40px 36px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-strip {
    grid-template-columns: 0.9fr 0.9fr 1fr;
  }

  .overview-item:nth-child(3) {
    border-right: 0;
  }

  .overview-server {
    display: none;
  }

  .clock-content {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 0.8fr);
    gap: 18px;
  }

  .personal-board {
    padding: 16px;
  }
}

@media (max-width: 1000px) {
  .sidebar {
    width: 214px;
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(13, 23, 43, 0.46);
    opacity: 0;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  body.sidebar-open .sidebar-scrim {
    visibility: visible;
    opacity: 1;
  }

  .workspace {
    width: 100%;
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 285px;
  }

  .attendance-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.75fr);
  }

  .dashboard-lower {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .crm-dashboard-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main {
    padding: 22px 20px;
  }

  .topbar {
    height: 65px;
    padding: 0 20px;
  }

  .topbar-date {
    display: none;
  }

  .hero {
    grid-template-areas:
      "copy"
      "tasks"
      "network";
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 28px 28px;
  }

  .hero-network-card {
    max-width: 420px;
  }

  .overview-strip {
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
  }

  .overview-item {
    padding: 0 12px;
  }

  .weather-panel {
    grid-template-columns: 1fr;
  }

  .weather-current-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .weather-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-users-grid {
    grid-template-columns: 1fr;
  }

  .overview-item strong {
    font-size: 11px;
  }

  .overview-icon {
    width: 34px;
    height: 34px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-lower,
  .attendance-layout {
    grid-template-columns: 1fr;
  }

  .clock-panel {
    min-height: 500px;
  }

  .crm-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-panel {
    padding: 17px;
  }

  .calendar-day {
    min-height: 90px;
    padding: 5px;
  }

  .attendance-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .policy-card {
    grid-column: 1 / -1;
  }

  .calendar-side-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .main {
    padding: 16px 14px 20px;
  }

  .topbar {
    gap: 8px;
    padding: 0 14px;
  }

  .topbar-left {
    min-width: 0;
  }

  .breadcrumb span,
  .breadcrumb i {
    display: none;
  }

  .breadcrumb strong {
    font-size: 11px;
  }

  .topbar-profile > span:not(.avatar),
  .topbar-profile > svg {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 30px 22px 22px;
    border-radius: 19px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: 29px;
  }

  .hero-copy > p {
    font-size: 11px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .button {
    min-width: 0;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .network-hero-card {
    width: 100%;
    min-width: 0;
    padding: 18px;
  }

  .network-rule {
    gap: 10px;
  }

  .network-rule span {
    flex: 0 0 auto;
  }

  .network-rule code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .overview-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .overview-item {
    padding: 0;
    border-right: 0;
  }

  .overview-item:nth-child(2) {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .overview-item:nth-child(3) {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .weather-current-panel,
  .weather-forecast-panel {
    padding: 18px;
  }

  .weather-current > p {
    display: none;
  }

  .weather-temperature strong {
    font-size: 35px;
  }

  .weather-days {
    gap: 6px;
  }

  .user-create-panel,
  .user-list-panel,
  .admin-mini-modal {
    padding: 19px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-tools {
    width: 100%;
  }

  .section-tools .search-box {
    flex: 1;
  }

  .search-box {
    width: 100%;
  }

  .section-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .reorder-hint {
    align-self: flex-start;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 157px;
  }

  .panel,
  .history-panel {
    padding: 19px;
  }

  .quick-window-grid {
    grid-template-columns: 1fr;
  }

  .quick-clock-row {
    align-items: flex-end;
  }

  .quick-clock {
    flex-direction: column;
    gap: 2px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 27px;
  }

  .page-heading-date {
    align-self: stretch;
  }

  .clock-panel {
    min-height: auto;
    padding: 25px 20px;
    border-radius: 19px;
  }

  .clock-content {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 28px;
  }

  .clock-content .big-clock {
    margin-top: 0;
    font-size: clamp(55px, 18vw, 82px);
  }

  .punch-actions {
    grid-template-columns: 1fr;
  }

  .punch-large {
    min-height: 65px;
  }

  .personal-board {
    min-height: 330px;
  }

  .task-list {
    max-height: 250px;
  }

  .attendance-aside {
    grid-template-columns: 1fr;
  }

  .policy-card {
    grid-column: auto;
  }

  .history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .crm-task-list {
    grid-template-columns: 1fr;
  }

  .crm-link-form > div {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-month-title {
    align-items: flex-start;
  }

  .calendar-weekdays {
    font-size: 7px;
  }

  .calendar-day {
    min-height: 76px;
    padding: 4px;
  }

  .calendar-event-chip {
    padding: 2px 3px;
    font-size: 6px;
  }

  .notice-drawer {
    padding: 21px 17px;
  }

  .event-editor-modal {
    padding: 27px 21px;
  }

  .event-time-grid {
    grid-template-columns: 1fr;
  }

  .weekly-report-strip {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .report-brand {
    width: 62px;
    height: 43px;
  }

  .report-meta {
    grid-column: 1 / -1;
    min-width: 0;
    align-items: flex-start;
    padding: 11px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-footer {
    flex-wrap: wrap;
  }

  .footer-version {
    width: 100%;
    margin-left: 0;
  }

  .identity-modal {
    padding: 29px 22px;
  }

  .toast-region {
    top: 76px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.backup-guide {
  display: flex;
  margin-bottom: 20px;
  padding: 18px 20px;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(19, 33, 60, 0.1);
  border-radius: 16px;
  background: linear-gradient(115deg, #f5f9ff, #ffffff);
}

.backup-guide-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #e9f0ff;
  color: #315ea8;
}

.backup-guide-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.backup-guide strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.backup-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.backup-lock {
  max-width: 620px;
  margin-top: 20px;
}

.backup-lock h2 {
  margin: 7px 0 8px;
}

.backup-lock > p {
  color: var(--muted);
}

.backup-lock form {
  display: flex;
  margin: 20px 0 12px;
  align-items: flex-end;
  gap: 12px;
}

.backup-lock label {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.backup-lock input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
}

.backup-lock input:focus {
  border-color: #426aa8;
  box-shadow: 0 0 0 3px rgba(49, 94, 168, 0.12);
}

.backup-lock small {
  color: var(--muted);
  font-size: 11px;
}

.backup-toolbar {
  display: flex;
  margin-bottom: 18px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.backup-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.backup-summary span,
.backup-summary small {
  color: var(--muted);
  font-size: 11px;
}

.backup-summary strong {
  color: var(--ink);
  font-size: 19px;
}

.backup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backup-retention {
  color: var(--muted);
  font-size: 11px;
}

.backup-table td:first-child {
  min-width: 150px;
  color: var(--ink);
  font-weight: 600;
}

.backup-file-name {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-action {
  padding: 6px 10px;
  border: 1px solid #ccd7e5;
  border-radius: 8px;
  background: #fff;
  color: #315ea8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.backup-action:hover {
  border-color: #8da8ce;
  background: #f4f8ff;
}

.backup-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.backup-action.is-danger {
  border-color: #efd2cc;
  color: #bb4e40;
}

.backup-action.is-danger:hover {
  border-color: #e1a99f;
  background: #fff4f1;
}

.backup-footnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.backup-busy {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 760px) {
  .backup-toolbar,
  .backup-lock form {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-actions {
    width: 100%;
  }

  .backup-actions .button {
    flex: 1;
  }

  .backup-file-name {
    max-width: 180px;
  }
}

.backup-guide {
  display: flex;
  margin-bottom: 20px;
  padding: 18px 20px;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(19, 33, 60, 0.1);
  border-radius: 16px;
  background: linear-gradient(115deg, #f5f9ff, #ffffff);
}

.backup-guide-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #e9f0ff;
  color: #315ea8;
}

.backup-guide-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.backup-guide strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.backup-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.backup-lock {
  max-width: 620px;
  margin-top: 20px;
}

.backup-lock h2 {
  margin: 7px 0 8px;
}

.backup-lock > p {
  color: var(--muted);
}

.backup-lock form {
  display: flex;
  margin: 20px 0 12px;
  align-items: flex-end;
  gap: 12px;
}

.backup-lock label {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.backup-lock input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
}

.backup-lock input:focus {
  border-color: #426aa8;
  box-shadow: 0 0 0 3px rgba(49, 94, 168, 0.12);
}

.backup-lock small {
  color: var(--muted);
  font-size: 11px;
}

.backup-toolbar {
  display: flex;
  margin-bottom: 18px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.backup-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.backup-summary span,
.backup-summary small {
  color: var(--muted);
  font-size: 11px;
}

.backup-summary strong {
  color: var(--ink);
  font-size: 19px;
}

.backup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backup-retention {
  color: var(--muted);
  font-size: 11px;
}

.backup-table td:first-child {
  min-width: 150px;
  color: var(--ink);
  font-weight: 600;
}

.backup-file-name {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-action {
  padding: 6px 10px;
  border: 1px solid #ccd7e5;
  border-radius: 8px;
  background: #fff;
  color: #315ea8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.backup-action:hover {
  border-color: #8da8ce;
  background: #f4f8ff;
}

.backup-footnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.backup-busy {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 760px) {
  .backup-toolbar,
  .backup-lock form {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-actions {
    width: 100%;
  }

  .backup-actions .button {
    flex: 1;
  }

  .backup-file-name {
    max-width: 180px;
  }
}
