:root {
  --bg: #edf1f4;
  --panel: #ffffff;
  --ink: #101725;
  --muted: #69758a;
  --line: #d7e0e8;
  --accent: #8f3a34;
  --accent-strong: #5a201d;
  --accent-soft: #f4e2df;
  --kaiju-dark: #2a1111;
  --kaiju-ink: #101827;
  --kaiju-lime: #f2b35d;
  --kaiju-gold: #e6b24a;
  --warning: #b26a0f;
  --danger: #b42318;
  --login-bg-image: none;
  --shadow: 0 24px 70px rgba(20, 32, 51, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(143, 58, 52, 0.14), transparent 32%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 48%, #e7edf2 100%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.is-hidden {
  display: none !important;
}

.login-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 430px);
  gap: clamp(32px, 7vw, 96px);
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(115deg, rgba(42, 17, 17, 0.72) 0%, rgba(91, 32, 29, 0.62) 44%, rgba(248, 246, 244, 0.82) 44.2%, rgba(238, 232, 230, 0.9) 100%),
    var(--login-bg-image),
    linear-gradient(115deg, rgba(42, 17, 17, 0.94) 0%, rgba(91, 32, 29, 0.88) 44%, rgba(248, 246, 244, 0.94) 44.2%, rgba(238, 232, 230, 0.96) 100%),
    radial-gradient(circle at 18% 22%, rgba(242, 179, 93, 0.22), transparent 27%),
    radial-gradient(circle at 82% 12%, rgba(166, 74, 67, 0.36), transparent 28%);
  background-position: center;
  background-size: cover;
}

.login-shell::before,
.login-shell::after {
  position: absolute;
  inset: auto;
  content: "";
  pointer-events: none;
}

.login-shell::before {
  width: min(58vw, 680px);
  height: min(58vw, 680px);
  right: -16vw;
  bottom: -22vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px);
  transform: rotate(-10deg);
}

.login-shell::after {
  width: 46vw;
  max-width: 620px;
  height: 220px;
  left: -10vw;
  top: 16vh;
  border-top: 1px solid rgba(242, 179, 93, 0.42);
  border-bottom: 1px solid rgba(242, 179, 93, 0.18);
  background: linear-gradient(90deg, rgba(242, 179, 93, 0.16), transparent);
  transform: skewY(-10deg);
}

.login-brand-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  max-width: 560px;
  color: #ffffff;
}

.login-stage-logo {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.login-brand-stage .eyebrow {
  color: var(--kaiju-gold);
}

.login-brand-stage h2 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.login-brand-stage h2::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  background: #ffffff;
  vertical-align: -0.08em;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.login-brand-stage p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: #f0d9d6;
  font-size: 1.08rem;
  line-height: 1.6;
}

.login-panel {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 430px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand-logo-box {
  display: none;
  width: min(100%, 218px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #a64a43, var(--accent-strong) 72%);
  padding: 12px 16px;
  box-shadow: 0 12px 24px rgba(143, 58, 52, 0.28);
}

.brand-logo,
.sidebar-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo {
  width: 100%;
  max-height: 36px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #a64a43, var(--accent-strong) 72%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(143, 58, 52, 0.28);
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
}

.login-copy {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fa;
  padding: 5px;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(20, 32, 51, 0.08);
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 0.9rem;
  font-weight: 750;
}

.login-form input,
.login-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
}

.login-form input:focus,
.login-form select:focus,
.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(143, 58, 52, 0.18);
}

.login-form button,
.logout-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.login-form button {
  margin-top: 12px;
  background: var(--accent);
  color: #ffffff;
}

.login-form button:hover,
.logout-button:hover {
  background: var(--accent-strong);
}

.google-auth-button {
  display: grid;
  min-height: 44px;
  margin-top: 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.google-auth-button:hover {
  border-color: rgba(143, 58, 52, 0.35);
  background: #fbf6f5;
}

.login-app-links {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf9;
  padding: 14px;
}

.login-app-links p {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 900;
}

.login-app-links div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.login-app-links button {
  min-height: 42px;
  border: 1px solid rgba(143, 58, 52, 0.25);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
}

.login-app-links button:hover {
  background: #f7ebe9;
}

.login-app-links small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.text-button {
  width: 100%;
  min-height: 34px;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
}

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

.form-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.app-shell {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  grid-template-columns: 292px minmax(0, 1fr);
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(242, 179, 93, 0.1), transparent 22%),
    var(--kaiju-dark);
  color: #ffffff;
  padding: 18px;
}

.sidebar-header {
  display: grid;
  align-items: start;
  gap: 8px;
  padding-bottom: 18px;
}

.sidebar-logo {
  display: block;
  width: 118px;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.sidebar-subtitle {
  margin: 8px 0 0;
  color: #ead0ca;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-brand-card {
  display: grid;
  justify-items: start;
  border: 1px solid rgba(242, 179, 93, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  padding: 16px;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group summary {
  min-height: 38px;
  border-radius: 8px;
  color: #d8c4bf;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-group summary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-group.has-active-child summary {
  color: #ffffff;
}

.nav-group .nav-item {
  width: calc(100% - 10px);
  margin-left: 10px;
  min-height: 40px;
  border-left: 1px solid rgba(242, 179, 93, 0.18);
  border-radius: 0 8px 8px 0;
}

.role-admin,
.role-manager {
  display: none;
}

.has-admin .role-admin,
.has-manager .role-manager {
  display: grid;
}

.has-admin button.role-admin,
.has-manager button.role-manager {
  display: block;
}

.nav-item {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d4dee8;
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
  font-weight: 750;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(242, 179, 93, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.is-active {
  box-shadow: inset 4px 0 0 var(--kaiju-lime);
}

.logout-button {
  flex: 0 0 auto;
  margin-top: auto;
  background: #ffffff;
  color: var(--kaiju-dark);
}

.workspace {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

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

.notification-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.06);
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.72rem;
}

.topbar h2 {
  margin: 0;
  font-size: 2rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.06);
}

.user-chip span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.topbar-avatar,
.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.small-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}

.large-avatar {
  width: 68px;
  height: 68px;
  font-size: 1.2rem;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip small {
  color: var(--muted);
}

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

.panel {
  grid-column: span 4;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(20, 32, 51, 0.06);
}

.panel.wide {
  grid-column: span 8;
}

.panel.full {
  grid-column: 1 / -1;
}

.panel h3 {
  margin-bottom: 10px;
}

.kaiju-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  min-height: 210px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(42, 17, 17, 0.95), rgba(126, 50, 44, 0.9)),
    url("https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&w=1600&q=80")
      center / cover;
  color: #ffffff;
  padding: 26px 28px;
}

.kaiju-hero .eyebrow {
  color: var(--kaiju-lime);
}

.kaiju-hero h3 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.kaiju-hero p {
  max-width: 680px;
  color: #dbe7ed;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-branch-card {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
  backdrop-filter: blur(8px);
}

.hero-branch-card span,
.hero-branch-card small {
  display: block;
  color: #bcd1dd;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-branch-card strong {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.1;
}

.branch-badge {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--branch-color) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--branch-color) 13%, #ffffff);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

.branch-badge > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--branch-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--branch-color) 22%, transparent);
}

.hero-branch-badge {
  margin: 4px 0 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.branch-badge-large {
  font-size: 1rem;
  padding: 10px 12px;
}

.branch-panel-main {
  margin: 10px 0 14px;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.5;
}

.metric {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 850;
}

.status-panel-is-working {
  border-color: rgba(21, 148, 71, 0.22);
  background: #f0fdf4;
}

.status-panel-is-break {
  border-color: rgba(224, 168, 21, 0.24);
  background: #fffbeb;
}

.status-panel-is-out {
  background: #ffffff;
}

.status-panel-emoji {
  display: inline-block;
  margin-right: 10px;
  border-radius: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: baseline;
}

.live-timer {
  margin: 12px 0 0;
  color: var(--accent-strong) !important;
  font-size: 1.35rem;
  font-weight: 850;
}

.clock-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 22px;
  min-height: 220px;
  overflow: hidden;
  border-color: rgba(143, 58, 52, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 242, 0.94)),
    radial-gradient(circle at 8% 14%, rgba(143, 58, 52, 0.12), transparent 30%);
}

.clock-console-main {
  display: grid;
  align-content: center;
}

.clock-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.clock-console h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.clock-console p {
  max-width: 640px;
  margin: 12px 0 0;
}

.clock-helper {
  color: var(--muted);
}

.clock-action-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(143, 58, 52, 0.15);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.clock-mode-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.work-mode-option {
  display: grid;
  min-height: 64px;
  cursor: pointer;
}

.work-mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  appearance: none;
  pointer-events: none;
}

.work-mode-option span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 850;
}

.work-mode-option input:checked + span {
  border-color: rgba(143, 58, 52, 0.44);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 2px rgba(143, 58, 52, 0.08);
}

.office-select-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.office-select-field select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.office-empty {
  border: 1px solid #efd7d2;
  border-radius: 8px;
  background: #fff8f6;
  color: var(--danger) !important;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.clock-main-button {
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(143, 58, 52, 0.22);
}

.clock-main-button:hover {
  background: var(--accent-strong);
}

.clock-main-button.secondary-action {
  background: var(--kaiju-dark);
}

.clock-main-button.danger-action {
  border: 1px solid #f0c9c5;
  background: #fff7f6;
  color: var(--danger);
  box-shadow: none;
}

.clock-summary-card {
  background:
    linear-gradient(180deg, #ffffff, #fbf8f7);
}

.clock-state-is-working {
  border-color: rgba(21, 148, 71, 0.24);
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.95)),
    radial-gradient(circle at 8% 14%, rgba(21, 148, 71, 0.16), transparent 30%);
}

.clock-state-is-break {
  border-color: rgba(224, 168, 21, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.95)),
    radial-gradient(circle at 8% 14%, rgba(224, 168, 21, 0.18), transparent 30%);
}

.clock-state-is-out {
  border-color: rgba(17, 24, 39, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.94)),
    radial-gradient(circle at 8% 14%, rgba(17, 24, 39, 0.08), transparent 30%);
}

.clock-state-emoji {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  vertical-align: baseline;
  box-shadow: none;
}

.warning-text {
  color: var(--warning) !important;
}

.danger-text {
  color: var(--danger) !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-approved,
.request-approved {
  background: #e6f6ec;
  color: #0f6d35;
}

.request-pending {
  background: #fff1c7;
  color: #8a5d00;
}

.request-rejected {
  background: #fde8e6;
  color: var(--danger);
}

.danger-button {
  border-color: #f0c9c5;
  background: #fff7f6;
  color: var(--danger);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h3 {
  margin: 0;
}

.section-head select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
}

.content-toolbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}

.content-toolbar h3 {
  margin: 0;
}

.content-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.secondary-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 750;
}

.secondary-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.secondary-button.danger {
  border-color: #f4c7c3;
  color: var(--danger);
}

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

.field-grid label,
.field-grid .full-field,
.field-grid strong {
  display: grid;
  gap: 7px;
}

.field-grid .full-field {
  grid-column: 1 / -1;
}

.field-grid input,
.field-grid select,
.field-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

.field-grid textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.table-input {
  width: 90px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.color-cell {
  display: grid;
  gap: 8px;
  align-items: start;
}

.color-picker {
  display: grid;
  grid-template-columns: 46px minmax(98px, 1fr);
  gap: 8px;
  align-items: center;
}

.color-picker input[type="color"] {
  width: 44px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
}

.color-text-input {
  width: 104px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.wide-input {
  width: min(100%, 180px);
}

.file-inline-control {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.file-inline-control input {
  max-width: 190px;
  font-size: 0.78rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.checkbox-grid input {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
  accent-color: var(--accent);
}

.branch-checkbox-grid {
  max-height: 220px;
  overflow-y: auto;
}

.inline-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.inline-details small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.user-cell,
.profile-preview,
.presence-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
}

.presence-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.presence-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.presence-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.presence-dot.is-online {
  background: #159447;
  box-shadow: 0 0 0 4px rgba(21, 148, 71, 0.13);
}

.presence-dot.is-offline {
  background: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.presence-dot.is-vacation {
  background: #e0a815;
  box-shadow: 0 0 0 4px rgba(224, 168, 21, 0.18);
}

.team-board {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.team-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.team-tools input,
.team-tools select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 750;
}

.team-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(20, 32, 51, 0.06);
}

.team-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.team-card h3 {
  margin: 0 0 6px;
}

.team-card p {
  min-height: 42px;
  margin-bottom: 14px;
  color: var(--muted);
}

.team-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.icon-text-button {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.icon-text-button:hover {
  border-color: rgba(143, 58, 52, 0.38);
  background: var(--accent-soft);
}

.team-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-facts span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.team-facts .vacation-pill {
  background: #fff1c7;
  color: #8a5d00;
}

.work-mode-control {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.work-mode-control select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
}

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

.vacation-list {
  margin-top: 14px;
}

.pagination-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.table-input:is(textarea) {
  min-height: 48px;
  resize: vertical;
}

.settings-preview {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: var(--kaiju-dark);
  color: #ffffff;
  padding: 18px;
}

.settings-preview img {
  width: 160px;
  max-height: 48px;
  object-fit: contain;
}

.settings-preview p {
  color: #ead0ca;
}

.calendar-shell {
  display: grid;
  gap: 16px;
}

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

.calendar-toolbar h3 {
  margin: 0;
  text-transform: capitalize;
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.calendar-controls select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 750;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-weekdays span {
  padding: 0 6px;
}

.calendar-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  gap: 1px;
}

.calendar-day {
  display: grid;
  min-height: 132px;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
  padding: 10px;
}

.calendar-day.is-muted {
  background: #f5f7fa;
}

.calendar-day.is-muted header {
  color: #a5afbd;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(143, 58, 52, 0.5);
}

.calendar-day header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  color: var(--ink);
}

.calendar-day header strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
}

.calendar-day.is-today header strong {
  background: var(--accent);
  color: #ffffff;
}

.calendar-items {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.calendar-item {
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  padding: 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

.calendar-item span {
  margin-right: 5px;
  opacity: 0.8;
}

.calendar-event {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.calendar-birthday {
  background: #fff3d8;
  color: #80510d;
}

.calendar-detail {
  display: grid;
  gap: 14px;
}

.calendar-detail h3 {
  margin: 0;
  font-size: 1.8rem;
}

.muted-text {
  color: var(--muted);
}

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 850;
}

.reaction-button.is-active {
  border-color: rgba(143, 58, 52, 0.44);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.reaction-button span {
  color: var(--muted);
}

.comments-block {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comments-block h4 {
  margin: 0;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 12px;
}

.comment-list small {
  color: var(--muted);
}

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

.comment-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.logo-preview {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--accent-soft);
}

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

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.announcement-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
}

.announcement-board {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: stretch;
  gap: 20px;
}

.announcement-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.announcement-tile {
  min-height: 390px;
  grid-template-columns: 1fr;
  grid-template-rows: 180px minmax(0, 1fr);
  border-left-width: 1px;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.06);
}

.announcement-tile.announcement-event {
  border-left-width: 1px;
  border-top: 6px solid #2357c6;
}

.announcement-tile.announcement-alert {
  border-left-width: 1px;
  border-top: 6px solid var(--danger);
}

.announcement-tile.announcement-fixed {
  border-left-width: 1px;
  border-top: 6px solid var(--accent);
}

.announcement-event {
  border-left: 5px solid #2357c6;
}

.announcement-alert {
  border-left: 5px solid var(--danger);
}

.announcement-fixed {
  border-left: 5px solid var(--accent);
}

.announcement-tile.announcement-event,
.announcement-tile.announcement-alert,
.announcement-tile.announcement-fixed {
  border-left-width: 1px;
}

.announcement-event .announcement-pill {
  background: #e4ecff;
  color: #1c469e;
}

.announcement-alert .announcement-pill {
  background: #fde8e6;
  color: var(--danger);
}

.announcement-fixed .announcement-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.announcement-card:hover {
  border-color: rgba(143, 58, 52, 0.35);
  box-shadow: 0 12px 36px rgba(20, 32, 51, 0.08);
}

.announcement-banner {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  background: var(--accent-soft);
}

.announcement-tile .announcement-banner {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.announcement-body {
  padding: 20px;
}

.announcement-tile .announcement-body {
  display: grid;
  min-height: 0;
  grid-template-rows: 30px 58px 78px 68px 64px minmax(40px, auto);
  gap: 10px;
}

.announcement-compact .announcement-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announcement-tile .announcement-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 66px;
}

.announcement-tile .announcement-body small {
  align-self: end;
}

.announcement-body h3 {
  margin-bottom: 0;
}

.announcement-tile .announcement-body h3 {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.announcement-tile .announcement-meta {
  min-height: 30px;
  margin-bottom: 0;
  overflow: hidden;
}

.countdown-box {
  display: grid;
  gap: 2px;
  margin: 0;
  border-radius: 8px;
  background: #e4ecff;
  color: #1c469e;
  padding: 10px 12px;
}

.countdown-box span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-box strong {
  font-size: 1.2rem;
}

.countdown-empty,
.event-schedule-empty {
  visibility: hidden;
}

.event-schedule {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-height: 68px;
}

.event-date-card,
.event-time-card {
  border: 1px solid #ccd9ff;
  border-radius: 8px;
  background: #f7f9ff;
}

.event-date-card {
  display: grid;
  place-items: center;
  padding: 10px 8px;
  color: #1c469e;
}

.event-date-card strong {
  font-size: 1.75rem;
  line-height: 1;
}

.event-date-card span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-time-card {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
}

.event-time-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-time-card strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.announcement-list.compact {
  gap: 10px;
}

.announcement-list.compact .announcement-card {
  grid-template-columns: 180px minmax(0, 1fr);
}

.announcement-list.compact .announcement-banner {
  min-height: 110px;
}

.announcement-list.compact .announcement-body {
  padding: 14px;
}

.announcement-list.compact .event-schedule {
  grid-template-columns: 56px minmax(0, 1fr);
}

.announcement-list.compact .event-date-card {
  padding: 8px 6px;
}

.announcement-list.compact .event-date-card strong,
.announcement-list.compact .event-time-card strong {
  font-size: 1rem;
}

.announcement-list.compact .countdown-box {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 8px 0;
}

.announcement-list.compact .countdown-box strong {
  justify-self: end;
  font-size: 1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 17, 30, 0.58);
}

.modal {
  width: min(100%, 640px);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal.modal-wide {
  width: min(100%, 860px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.modal-header h3 {
  margin: 0;
}

.modal-content {
  padding: 20px;
}

.install-guide {
  display: grid;
  gap: 16px;
}

.install-guide p,
.install-guide li {
  color: var(--muted);
  line-height: 1.55;
}

.install-guide ol {
  margin: 0;
  padding-left: 22px;
}

.install-guide-button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.install-guide-button:hover {
  background: var(--accent-strong);
}

.modal-banner {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--accent-soft);
  margin-bottom: 16px;
}

.clock-edit-row {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(220px, 1fr) 42px;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.clock-edit-row select,
.clock-edit-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.clock-edit-row label,
.clock-edit-mode {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

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

.compact-mode-panel .work-mode-option {
  min-height: 42px;
}

.clock-edit-mode,
.clock-edit-office {
  grid-column: 1 / -1;
}

.clock-row-remove {
  margin-bottom: 0;
}

.clock-edit-tools {
  justify-content: flex-start;
  margin-top: -2px;
}

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

.request-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.user-actions {
  justify-content: flex-end;
  margin-top: 0;
  min-width: 220px;
}

.request-summary {
  display: grid;
  gap: 2px;
}

.request-summary small {
  color: var(--muted);
}

.request-detail {
  display: grid;
  gap: 12px;
}

.request-detail p {
  margin: 0;
}

.request-detail-table {
  margin-top: 8px;
}

.work-day-detail {
  display: grid;
  gap: 18px;
}

.work-day-detail h4 {
  margin: 0 0 10px;
}

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

.work-day-detail-summary div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.work-day-detail-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-day-detail-summary strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.work-day-detail-summary small {
  color: var(--muted);
}

.work-day-movements {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-day-movement {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.work-day-movement > span {
  justify-self: start;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-day-movement.entry-in > span {
  background: rgba(21, 148, 71, 0.12);
  color: #0f7a3b;
}

.work-day-movement.entry-break > span {
  background: rgba(224, 168, 21, 0.16);
  color: #9a6b00;
}

.work-day-movement.entry-out > span {
  background: rgba(198, 40, 40, 0.12);
  color: #a2362f;
}

.work-day-movement strong,
.work-day-movement small {
  display: block;
}

.work-day-movement small {
  margin-top: 2px;
  color: var(--muted);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
}

.notification-weekly_overtime {
  border-left-color: var(--warning);
}

.notification-clock_correction {
  border-left-color: #2357c6;
}

.toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.toast {
  border: 1px solid rgba(21, 148, 71, 0.24);
  border-left: 5px solid #159447;
  border-radius: 8px;
  background: #f0fdf4;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  color: #12391f;
  font-weight: 850;
  line-height: 1.35;
  padding: 13px 15px;
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast-error {
  border-color: rgba(198, 40, 40, 0.24);
  border-left-color: #c62828;
  background: #fff5f5;
  color: #7a1f1b;
}

.toast.is-leaving {
  transform: translateY(-6px);
  opacity: 0;
}

.trash-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #f4c7c3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--danger);
  cursor: pointer;
  font-weight: 900;
}

.simple-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.link-list-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.link-list-button:hover strong {
  color: var(--accent);
}

.thread-list {
  gap: 8px;
}

.thread-list-item {
  padding-top: 0 !important;
}

.thread-button {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.thread-button > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.thread-button em {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-style: normal;
  font-size: 0.78rem;
}

.thread-button small,
.thread-button > span:last-child {
  color: var(--muted);
}

.thread-detail,
.thread-messages {
  display: grid;
  gap: 12px;
}

.thread-messages {
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thread-message {
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.thread-message.is-mine {
  justify-self: end;
  background: #fbf6f5;
}

.thread-message p {
  margin: 6px 0;
  color: var(--ink);
}

.recipient-results {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.recipient-result {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.recipient-result span {
  display: grid;
  gap: 2px;
}

.recipient-result small {
  color: var(--muted);
}

.timeline {
  gap: 8px;
}

.timeline li.timeline-entry {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.timeline-entry > span {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline li strong {
  color: var(--ink);
}

.timeline-entry.entry-in > span {
  background: #e6f6ec;
  color: #0f6d35;
}

.timeline-entry.entry-break > span {
  background: #fff1c7;
  color: #8a5d00;
}

.timeline-entry.entry-out > span {
  background: #fde8e6;
  color: var(--danger);
}

.work-calendar {
  display: grid;
  gap: 10px;
}

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

.work-calendar-toolbar h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  text-transform: capitalize;
}

.work-calendar-weekdays,
.work-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.work-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-day {
  display: grid;
  min-height: 104px;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.work-day strong {
  font-size: 1.2rem;
}

.work-day span {
  font-weight: 850;
}

.work-day small {
  color: var(--muted);
}

.work-day-out {
  border-color: rgba(21, 148, 71, 0.22);
  background: #f0fdf4;
}

.work-day-working,
.work-day-break {
  border-color: rgba(224, 168, 21, 0.24);
  background: #fffbeb;
}

.work-day-missing {
  border-color: rgba(198, 40, 40, 0.16);
  background: #fffafa;
}

.work-day.is-muted {
  opacity: 0.42;
}

.work-day:disabled {
  cursor: default;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    background:
      linear-gradient(145deg, rgba(42, 17, 17, 0.76), rgba(91, 32, 29, 0.7)),
      var(--login-bg-image),
      linear-gradient(145deg, rgba(42, 17, 17, 0.94), rgba(91, 32, 29, 0.9)),
      radial-gradient(circle at 18% 22%, rgba(242, 179, 93, 0.22), transparent 27%);
    background-position: center;
    background-size: cover;
  }

  .login-brand-stage {
    max-width: 430px;
    justify-self: center;
  }

  .login-brand-stage h2,
  .login-brand-stage p:not(.eyebrow) {
    display: none;
  }

  .login-stage-logo {
    display: none;
  }

  .brand-logo-box {
    display: flex;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
  }

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

  .logout-button {
    margin-top: 18px;
  }

  .workspace {
    padding: 22px;
  }

  .panel,
  .panel.wide {
    grid-column: 1 / -1;
  }

  .kaiju-hero {
    grid-template-columns: 1fr;
  }

  .hero-branch-card {
    align-self: auto;
  }

  .clock-console {
    grid-template-columns: 1fr;
  }

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

  .calendar-controls {
    justify-content: flex-start;
  }

  .calendar-day {
    min-height: 112px;
    padding: 8px;
  }

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

  .check-grid,
  .announcement-card,
  .announcement-list.compact .announcement-card {
    grid-template-columns: 1fr;
  }

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

  .clock-edit-row {
    grid-template-columns: 1fr 42px;
  }

  .clock-edit-row > label {
    grid-column: 1 / -1;
  }

  .clock-row-remove {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .login-panel {
    padding: 26px;
  }

  .topbar,
  .user-chip {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-grid,
  .work-calendar-weekdays,
  .work-calendar-grid {
    min-width: 760px;
  }

  .calendar-shell,
  .work-calendar {
    overflow-x: auto;
  }
}
