@import url("/luzai-shell.css");

.hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  min-height: 452px;
  padding: 34px 0 24px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero::before {
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 204, 221, 0.56), transparent 42%),
    radial-gradient(circle at 88% 24%, rgba(199, 245, 220, 0.5), transparent 38%),
    rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  filter: blur(0.4px);
  inset: 18px -20px 28px;
  opacity: 0.72;
}

.hero::after {
  background:
    repeating-linear-gradient(90deg, rgba(239, 127, 167, 0.11) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(29, 123, 100, 0.08) 0 1px, transparent 1px 24px);
  border-radius: 8px;
  inset: 46px 47% 48px -10px;
  opacity: 0.42;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  color: #a84268;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  color: #245b4e;
  font-size: 74px;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow:
    0 3px 0 rgba(255, 225, 235, 0.9),
    0 18px 36px rgba(239, 127, 167, 0.18);
}

h2 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 10px;
}

.hero-text {
  color: #405249;
  font-size: 18px;
  line-height: 1.68;
  max-width: 580px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-badges span {
  background: rgba(255, 233, 241, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(147, 91, 108, 0.08);
  color: #b4486f;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 11px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(114, 81, 96, 0.1);
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  font-weight: 840;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
}

.gallery-hero {
  padding: 54px 0 28px;
}

.gallery-hero h1 {
  font-size: 58px;
}

.photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  padding: 18px 0 54px;
}

.upload-panel {
  align-items: end;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  margin: 10px 0 18px;
  padding: 20px;
}

.upload-panel p {
  color: var(--muted);
  line-height: 1.62;
  margin-bottom: 0;
}

.upload-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-form label {
  display: grid;
  gap: 6px;
}

.upload-form label span {
  color: #405047;
  font-size: 12px;
  font-weight: 850;
}

.upload-form input,
.upload-form select {
  background: #fff;
  border: 1px solid rgba(91, 113, 103, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.upload-form .file-field,
.upload-form button {
  grid-column: 1 / -1;
}

.upload-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  grid-column: 1 / -1;
}

.upload-status[data-tone="ok"] {
  color: var(--green);
}

.upload-status[data-tone="warn"] {
  color: var(--coral);
}

.upload-status[data-tone="busy"] {
  color: var(--blue);
}

.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.group-tabs button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(91, 113, 103, 0.16);
  border-radius: 999px;
  color: #405047;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  padding: 8px 12px;
}

.group-tabs button.active,
.group-tabs button:hover,
.group-tabs button:focus-visible {
  background: var(--green-soft);
  border-color: rgba(29, 123, 100, 0.26);
  color: var(--green);
  outline: 0;
}

.photo-card {
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.photo-card img,
.photo-card video {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.photo-card:hover img,
.photo-card:focus-visible img,
.photo-card:hover video,
.photo-card:focus-visible video {
  transform: scale(1.035);
}

.photo-card span {
  background: rgba(30, 37, 32, 0.72);
  border-radius: 8px;
  bottom: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  left: 10px;
  padding: 6px 8px;
  position: absolute;
}

.persona-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0 54px;
}

.persona-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.persona-card h2 {
  font-size: 23px;
}

.persona-card p {
  color: #405249;
  line-height: 1.7;
}

.doc-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.doc-page {
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 208, 225, 0.52), transparent 28%),
    linear-gradient(180deg, #fff9fc, #fbf7f1);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.78;
  margin: 0 auto;
  max-width: 860px;
  min-height: 100vh;
  padding: 36px 22px 60px;
}

.doc-page h1 {
  font-size: 42px;
  line-height: 1.12;
}

.doc-page h2 {
  font-size: 24px;
  margin-top: 30px;
}

.doc-page pre {
  background: #1e2520;
  border-radius: 8px;
  color: #eef7f1;
  overflow-x: auto;
  padding: 16px;
}

.doc-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.icon-slot {
  align-items: center;
  display: inline-grid;
  height: 18px;
  justify-content: center;
  line-height: 0;
  margin-right: 0;
  place-items: center;
  width: 18px;
}

.icon {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.icon-fill {
  fill: currentColor;
}

.icon-fill.face {
  fill: #fff9f1;
}

.icon-fill.warm {
  fill: #bd7b4f;
}

.icon-fill.blush {
  fill: #f7a4bd;
  opacity: 0.9;
}

.icon-fill.mint {
  fill: #dff7eb;
}

.icon-fill.blue {
  fill: #dcecff;
}

.icon-fill.gold {
  fill: #fff0bd;
}

.icon-fill.coral {
  fill: #ffe0d8;
}

.icon-fill.pink {
  fill: #ffdce9;
}

.icon-fill.paper {
  fill: #fffdf8;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-stroke.fine {
  stroke-width: 1.35;
}

.icon-stroke.bold {
  stroke-width: 2.15;
}

.icon-eye {
  fill: #23433a;
}

.button.primary {
  background: linear-gradient(135deg, #f47fa6, #e8a248);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 34px rgba(239, 127, 167, 0.26);
  color: #fff;
}

.button:hover,
.button:focus-visible,
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.service-card:focus-visible {
  outline: 3px solid rgba(29, 123, 100, 0.2);
  outline-offset: 3px;
}

.desk {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.84)),
    var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.desk::after {
  background: linear-gradient(90deg, rgba(239, 127, 167, 0.75), rgba(216, 155, 50, 0.62), rgba(114, 216, 180, 0.7), rgba(75, 120, 170, 0.62));
  content: "";
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.desk-glow {
  background:
    linear-gradient(135deg, rgba(255, 223, 235, 0.58), transparent 46%),
    linear-gradient(225deg, rgba(199, 245, 220, 0.5), transparent 52%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.desk-top {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.mascot-card,
.mini-window {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.mascot-card {
  align-items: center;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 199, 219, 0.5), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 235, 243, 0.8)),
    #fff;
  display: flex;
  gap: 16px;
  min-height: 164px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.mascot-card strong,
.mascot-card span {
  display: block;
}

.mascot-card strong {
  font-size: 24px;
}

.mascot-card span {
  color: var(--muted);
  margin-top: 7px;
}

.luzai-avatar {
  aspect-ratio: 1;
  background: #fff7fb;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow:
    0 0 0 7px rgba(255, 215, 229, 0.58),
    0 18px 38px rgba(126, 82, 92, 0.18);
  height: 112px;
  object-fit: cover;
  object-position: 50% 20%;
  width: 112px;
}

.mascot-petal {
  background: linear-gradient(135deg, #fff, #ffc2d6 48%, #ef7fa7);
  border-radius: 75% 12% 70% 20%;
  height: 18px;
  position: absolute;
  width: 13px;
}

.mascot-petal.one {
  right: 34px;
  top: 28px;
  transform: rotate(28deg);
}

.mascot-petal.two {
  bottom: 24px;
  right: 104px;
  transform: rotate(-18deg) scale(0.82);
}

.mini-window {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 8px) 1fr;
  padding: 13px 14px;
}

.mini-window span {
  align-self: center;
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.mini-window span:nth-child(1) {
  background: var(--coral);
}

.mini-window span:nth-child(2) {
  background: var(--gold);
}

.mini-window span:nth-child(3) {
  background: var(--green);
}

.mini-window strong {
  color: var(--muted);
  font-size: 12px;
  justify-self: end;
}

.desk-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.desk-grid div {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  min-height: 98px;
  padding: 13px;
}

.desk-grid span,
.desk-grid strong {
  display: block;
}

.desk-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 8px;
}

.desk-grid strong {
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.status-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 36px;
}

.status-row article {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
}

.status-row strong,
.status-row small {
  display: block;
}

.status-row small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}

.status-dot {
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(29, 123, 100, 0.09);
  height: 12px;
  width: 12px;
}

.status-dot.live {
  background: var(--green);
}

.status-dot.calm {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(75, 120, 170, 0.1);
}

.status-dot.warm {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(216, 155, 50, 0.12);
}

.section-head {
  margin: 8px 0 14px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
}

.service-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 9px;
  min-height: 210px;
  min-width: 0;
  padding: 18px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.service-card.featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 255, 248, 0.86));
  border-color: rgba(29, 123, 100, 0.18);
}

.service-card.muted {
  background: rgba(255, 255, 255, 0.66);
}

.service-icon {
  align-items: center;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    var(--green-soft);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow:
    inset 0 -8px 14px rgba(29, 123, 100, 0.07),
    0 10px 20px rgba(62, 72, 58, 0.08);
  color: #155846;
  display: inline-grid;
  font-size: 13px;
  font-weight: 920;
  height: 48px;
  line-height: 0;
  place-items: center;
  width: 48px;
}

.service-icon .icon {
  height: 28px;
  transform: none;
  width: 28px;
}

.service-card:nth-child(2) .service-icon {
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    var(--blue-soft);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 -7px 14px rgba(75, 120, 170, 0.06),
    0 8px 16px rgba(62, 72, 58, 0.08);
  color: #274c78;
}

.service-card:nth-child(3) .service-icon {
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    var(--gold-soft);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 -7px 14px rgba(216, 155, 50, 0.08),
    0 8px 16px rgba(62, 72, 58, 0.08);
  color: #76520f;
}

.service-card:nth-child(4) .service-icon {
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    var(--coral-soft);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 -7px 14px rgba(216, 102, 77, 0.07),
    0 8px 16px rgba(62, 72, 58, 0.08);
  color: #8d3b2a;
}

.service-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 840;
}

.service-card strong {
  font-size: 20px;
  line-height: 1.18;
}

.service-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(120px, 0.18fr)) minmax(160px, 1fr);
  margin-bottom: 14px;
  padding: 14px 16px;
}

.service-toolbar div {
  display: grid;
  gap: 2px;
}

.service-toolbar strong {
  color: #245b4e;
  font-size: 24px;
  line-height: 1;
}

.service-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-toolbar .text-link {
  justify-self: end;
}

.service-registry {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.service-group {
  display: grid;
  gap: 10px;
}

.service-group-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.service-group-heading h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.service-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.service-meta,
.service-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-meta span:not(.status-pill),
.service-foot span {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(91, 113, 103, 0.12);
  border-radius: 8px;
  color: #405047;
  font-size: 12px;
  font-weight: 760;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.status-pill.active,
.status-pill.ok {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.temporary,
.status-pill.warn {
  background: var(--gold-soft);
  color: #7c540c;
}

.status-pill.planned,
.status-pill.local-stopped {
  background: var(--blue-soft);
  color: #274c78;
}

.status-pill.blocked {
  background: var(--coral-soft);
  color: #9a3d2c;
}

.service-state-blocked {
  border-color: rgba(216, 102, 77, 0.28);
}

.service-state-temporary {
  border-color: rgba(216, 155, 50, 0.28);
}

.service-state-planned,
.service-state-local-stopped {
  background: rgba(255, 255, 255, 0.62);
}

.work-panel,
.boundary,
.command-panel {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  padding: 20px;
}

.command-panel {
  padding: 20px;
}

.command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.16fr) minmax(270px, 0.88fr) minmax(292px, 1fr) minmax(250px, 0.76fr);
}

.command-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 248, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.command-card::before {
  background: linear-gradient(180deg, #7bd9bd, #f18bae);
  border-radius: 999px;
  content: "";
  height: 42px;
  left: 0;
  position: absolute;
  top: 24px;
  width: 4px;
}

.command-card:nth-child(2)::before {
  background: linear-gradient(180deg, #ffd674, #f0a24f);
}

.command-card:nth-child(3)::before {
  background: linear-gradient(180deg, #86b7ff, #8ee2bf);
}

.command-card:nth-child(4)::before {
  background: linear-gradient(180deg, #ffb6aa, #87dac0);
}

.card-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 44px;
}

.card-heading .command-icon {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    #dcf5e9;
  box-shadow:
    inset 0 -8px 14px rgba(29, 123, 100, 0.06),
    0 10px 20px rgba(114, 81, 96, 0.08);
  flex-shrink: 0;
  height: 46px;
  width: 46px;
}

.command-card:nth-child(2) .command-icon {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    #fff0c7;
  color: #8a5b08;
}

.command-card:nth-child(3) .command-icon {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    #e4efff;
  color: #2e5688;
}

.command-card:nth-child(4) .command-icon {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), transparent 44%),
    #ffe4df;
  color: #9a4838;
}

.card-heading .command-icon .icon {
  height: 30px;
  transform: translateY(0.5px);
  width: 30px;
}

.card-heading .title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.card-heading strong,
.card-heading span {
  display: block;
}

.card-heading strong {
  font-size: 18px;
  line-height: 1.08;
  margin-top: 4px;
}

.metric-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 113, 103, 0.12);
  border-radius: 8px;
  min-height: 76px;
  padding: 10px;
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.metric-grid strong {
  font-size: 26px;
  line-height: 1.05;
  margin-top: 8px;
}

.command-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.attendance-card {
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 250px;
}

.analytics-card {
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.text-link {
  align-self: end;
  color: var(--green);
  font-size: 13px;
  font-weight: 840;
  text-decoration: none;
}

.card-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 840;
  padding: 0;
}

.text-link:hover,
.text-link:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  text-decoration: underline;
}

.pending-list {
  display: grid;
  gap: 7px;
  max-height: 224px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.analytics-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-summary div {
  background:
    linear-gradient(180deg, rgba(236, 246, 255, 0.95), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(75, 120, 170, 0.15);
  border-radius: 8px;
  min-height: 62px;
  padding: 10px;
}

.analytics-summary span,
.analytics-summary strong {
  display: block;
}

.analytics-summary span {
  color: #2e5688;
  font-size: 12px;
  font-weight: 860;
}

.analytics-summary strong {
  color: #2b342e;
  font-size: 22px;
  line-height: 1.05;
  margin-top: 7px;
}

.analytics-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.analytics-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 113, 103, 0.12);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 10px 11px;
  text-decoration: none;
}

.analytics-item:hover,
.analytics-item:focus-visible {
  border-color: rgba(29, 123, 100, 0.28);
  outline: 0;
}

.analytics-status-warn {
  background: rgba(255, 249, 231, 0.86);
  border-color: rgba(216, 155, 50, 0.28);
}

.analytics-status-blocked {
  background: rgba(255, 238, 233, 0.86);
  border-color: rgba(216, 102, 77, 0.28);
}

.analytics-status-planned {
  background: rgba(237, 246, 255, 0.86);
  border-color: rgba(75, 120, 170, 0.24);
}

.analytics-item-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.analytics-item-head strong {
  font-size: 14px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-meta,
.analytics-item small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.analytics-item small {
  overflow-wrap: anywhere;
}


.pending-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pending-summary div {
  background:
    linear-gradient(180deg, rgba(255, 249, 234, 0.95), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(216, 155, 50, 0.18);
  border-radius: 8px;
  min-height: 62px;
  padding: 10px 11px;
}

.pending-summary span,
.pending-summary strong {
  display: block;
}

.pending-summary span {
  color: #8a5b08;
  font-size: 12px;
  font-weight: 860;
}

.pending-summary strong {
  color: #2b342e;
  font-size: 23px;
  line-height: 1.05;
  margin-top: 7px;
}

.pending-list div,
.empty-line {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 113, 103, 0.12);
  border-radius: 8px;
  display: block;
  padding: 10px 11px;
}

.pending-list .pending-item {
  align-items: center;
  column-gap: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  row-gap: 3px;
}

.pending-list strong,
.pending-list span,
.pending-list small {
  display: block;
}

.pending-list strong {
  font-size: 15px;
  line-height: 1.24;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-days {
  background: var(--gold-soft);
  border-radius: 999px;
  color: #7c540c;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.pending-list span,
.pending-list small,
.empty-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.pending-list small {
  margin-top: 0;
}

.pending-route {
  font-size: 12px;
  font-weight: 780;
  justify-self: end;
  margin-top: 0;
  white-space: nowrap;
}

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

.quick-actions a {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(91, 113, 103, 0.13);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 820;
  justify-content: center;
  min-height: 42px;
  padding: 9px 10px;
  text-align: center;
  text-decoration: none;
}

.quick-actions a:hover,
.quick-actions a:focus-visible {
  border-color: rgba(29, 123, 100, 0.36);
  color: var(--green);
  outline: 0;
}

.attendance-dialog {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-width: min(1040px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.attendance-dialog::backdrop {
  background: rgba(30, 37, 32, 0.38);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(30, 37, 32, 0.22);
  display: grid;
  gap: 16px;
  max-height: min(86vh, 860px);
  overflow: hidden;
  padding: 18px;
}

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

.dialog-head h2 {
  margin: 2px 0 0;
}

.icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(91, 113, 103, 0.16);
  border-radius: 8px;
  color: #405047;
  cursor: pointer;
  display: inline-grid;
  font-size: 24px;
  height: 38px;
  line-height: 1;
  place-items: center;
  width: 38px;
}

.attendance-filters {
  align-items: end;
  background: rgba(245, 250, 247, 0.74);
  border: 1px solid rgba(91, 113, 103, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(130px, 0.2fr) minmax(160px, 0.26fr) auto auto minmax(220px, 1fr);
  padding: 12px;
}

.attendance-filters label,
.attendance-row-fields label {
  display: grid;
  gap: 5px;
}

.attendance-filters label span,
.attendance-row-fields label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.attendance-filters input,
.attendance-filters select,
.attendance-row-fields input,
.attendance-row-fields select {
  background: #fff;
  border: 1px solid rgba(91, 113, 103, 0.16);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  min-width: 0;
  padding: 8px 9px;
}

.button.compact {
  box-shadow: none;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.button.compact.batch {
  background: var(--green-soft);
  border-color: rgba(29, 123, 100, 0.18);
  color: var(--green);
}

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

.editor-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
}

.editor-status[data-tone="ok"] {
  color: var(--green);
}

.editor-status[data-tone="warn"] {
  color: var(--coral);
}

.editor-status[data-tone="busy"] {
  color: var(--blue);
}

.attendance-editor {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.attendance-edit-row {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 113, 103, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1.7fr) auto;
  padding: 12px;
}

.attendance-row-title strong,
.attendance-row-title span,
.attendance-row-title small {
  display: block;
}

.attendance-row-title strong {
  font-size: 16px;
  line-height: 1.25;
}

.attendance-row-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  margin-top: 6px;
}

.attendance-row-title small {
  color: #8a5b08;
  font-size: 12px;
  font-weight: 820;
  margin-top: 4px;
}

.attendance-row-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 0.9fr) repeat(3, minmax(98px, 0.6fr)) minmax(180px, 1.2fr);
}

.attendance-row-actions {
  align-content: end;
  display: grid;
  gap: 8px;
  min-width: 72px;
}

.deducted-toggle {
  align-items: center;
  color: #405047;
  display: inline-flex;
  font-size: 13px;
  font-weight: 820;
  gap: 6px;
}

.mini-button {
  border: 1px solid rgba(91, 113, 103, 0.14);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  min-height: 34px;
  padding: 7px 10px;
}

.mini-button.primary {
  background: var(--green-soft);
  color: var(--green);
}

.mini-button.danger {
  background: var(--coral-soft);
  color: #9a3d2c;
}

.today-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  min-height: 154px;
  padding: 15px;
}

.note-card span {
  color: var(--coral);
  display: block;
  font-size: 12px;
  font-weight: 860;
  margin-bottom: 8px;
}

.note-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 9px;
}

.note-card p,
.boundary p,
.boundary li {
  color: var(--muted);
  line-height: 1.62;
}

.note-card p {
  margin-bottom: 0;
}

.boundary {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.76fr);
}

.boundary p {
  margin-bottom: 0;
}

.boundary ul {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  margin: 0;
  padding: 16px 16px 16px 34px;
}

@media (max-width: 920px) {
  .hero,
  .boundary,
  .upload-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .status-row,
  .service-grid,
  .service-toolbar,
  .today-grid,
  .command-grid,
  .attendance-edit-row,
  .persona-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-card.github-card {
    grid-column: 1 / -1;
  }

  .attendance-filters,
  .attendance-row-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-row-title,
  .attendance-row-actions {
    grid-column: 1 / -1;
  }

  .attendance-row-actions {
    grid-template-columns: auto auto auto;
    justify-content: start;
  }

}

@media (max-width: 680px) {
  .hero-text {
    font-size: 16px;
  }

  h1 {
    font-size: 48px;
  }

  .desk-grid,
  .status-row,
  .service-grid,
  .service-toolbar,
  .today-grid,
  .command-grid,
  .attendance-filters,
  .attendance-edit-row,
  .attendance-row-fields,
  .metric-grid,
  .analytics-summary,
  .persona-layout {
    grid-template-columns: 1fr;
  }

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

  .upload-form {
    grid-template-columns: 1fr;
  }

  .service-toolbar .text-link {
    justify-self: start;
  }

  .dialog-shell {
    max-height: 92vh;
    padding: 14px;
  }

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

  .deducted-toggle {
    grid-column: 1 / -1;
  }

  .mascot-card {
    align-items: flex-start;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .service-card {
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .service-card:hover,
  .service-card:focus-visible {
    transform: none;
  }
}
