
:root {
  color-scheme: light;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --petrol: #154d59;
  --petrol-dark: #0e333b;
  --coral: #dc6c55;
  --terracotta: #ad4f3d;
  --line: rgba(21, 77, 89, 0.2);
  --muted: #5f696b;
  --success: #246c55;
  --danger-bg: #fff0ec;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; min-height: 100vh; color: var(--petrol-dark); background: var(--cream); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.site-header { min-height: 5rem; padding: 1rem clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { min-width: 0; color: var(--petrol); text-decoration: none; font-weight: 800; line-height: 1; letter-spacing: -0.03em; display: grid; }
.brand span:last-child { color: var(--coral); }
.text-button { border: 0; padding: .65rem 0; color: var(--petrol); background: transparent; font-weight: 700; white-space: nowrap; cursor: pointer; }
.panel-shell { width: min(74rem, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(22rem, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.panel-shell > *, .status-heading, .form-section { min-width: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--terracotta); font-size: .74rem; font-weight: 800; letter-spacing: .15em; }
h1, h2 { margin: 0; color: var(--petrol); font-family: Fraunces, Georgia, serif; font-weight: 650; line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { margin-bottom: 2rem; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.status-heading { display: grid; gap: 1.5rem; justify-items: start; }
.status-badge { display: inline-flex; align-items: center; min-height: 2rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 750; }
.status-badge[data-state="active"] { border-color: var(--coral); color: var(--terracotta); background: #fff4ed; }
.status-badge[data-state="inactive"] { color: var(--muted); background: var(--paper); }
.current-state { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); line-height: 1.6; }
.current-state p { margin: .3rem 0; }
.current-title { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; color: var(--petrol); overflow-wrap: anywhere; }
.form-section { padding: clamp(1.5rem, 4vw, 3.2rem); border: 1px solid var(--line); background: var(--paper); }
label { display: block; margin: 1.35rem 0 .55rem; color: var(--petrol); font-weight: 750; }
input { width: 100%; min-width: 0; min-height: 3rem; padding: .72rem .85rem; border: 1px solid rgba(21, 77, 89, .42); border-radius: .25rem; color: var(--petrol-dark); background: white; }
input:focus { border-color: var(--coral); }
.duration-field { display: grid; grid-template-columns: minmax(0, 9rem) auto; align-items: center; gap: .75rem; color: var(--muted); }
.field-help { margin: .55rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; padding: .75rem 1.15rem; border-radius: .2rem; text-decoration: none; font-weight: 800; cursor: pointer; }
.button:disabled { opacity: .58; cursor: not-allowed; }
[aria-busy="true"] .button:disabled { cursor: progress; }
.button-primary { color: white; background: var(--petrol); }
.button-primary:hover { background: var(--petrol-dark); }
.button-danger { border-color: var(--terracotta); color: var(--terracotta); background: transparent; }
.button-danger:hover { background: var(--danger-bg); }
.notice { margin: 1.25rem 0 0; padding: .85rem 1rem; border-left: 3px solid var(--petrol); background: #edf5f4; line-height: 1.45; }
.notice-error { border-color: var(--terracotta); color: #772d20; background: var(--danger-bg); }
.notice-success { border-color: var(--success); color: #174d3d; background: #edf7f2; }
.notice-loading { color: var(--petrol); background: #edf5f4; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.login-panel { width: min(34rem, 100%); min-width: 0; padding: clamp(2rem, 7vw, 4.5rem); border: 1px solid var(--line); background: var(--paper); }
.login-panel h1 { max-width: 100%; font-size: clamp(2.35rem, 10vw, 4.8rem); overflow-wrap: anywhere; }
.intro { max-width: 33rem; margin: 1.5rem 0 2rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) {
  .site-header { min-height: 4.5rem; }
  .panel-shell { width: min(100% - 2rem, 38rem); grid-template-columns: 1fr; gap: 3rem; padding-block: 2.5rem 4rem; }
  .form-section { padding: 1.25rem; }
  .actions { display: grid; }
  .button { width: 100%; }
}
@media (max-width: 420px) {
  .site-header { padding-inline: 1rem; gap: .75rem; }
  .brand { font-size: .9rem; }
  .text-button { font-size: .875rem; }
  .panel-shell { width: calc(100% - 1.5rem); gap: 2.5rem; padding-block: 2rem 3rem; }
  .form-section { padding: 1rem; }
  .duration-field { grid-template-columns: minmax(0, 1fr) auto; }
  .login-shell { padding: .75rem; }
  .login-panel { padding: 1.25rem; }
  .login-panel h1 { font-size: clamp(2rem, 11vw, 2.8rem); line-height: 1.02; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
