:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172c27;
  background: #f0f3ef;
  --forest: #172c27;
  --green: #24594b;
  --mint: #b7f2ce;
  --muted: #4e675d;
  --border: #d7e1d7;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
p, ul, dl { margin: 0; }
.topbar { background: white; border-bottom: 1px solid var(--border); }
.topbar-inner {
  max-width: 1080px;
  min-height: 72px;
  padding: 10px 24px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 750; }
.clock-icon {
  display: inline-block;
  position: relative;
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.clock-icon::before {
  content: "";
  width: 31%;
  height: 35%;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: absolute;
  left: 47%;
  top: 18%;
  border-bottom-left-radius: 2px;
}
main { max-width: 1080px; padding: 48px 24px; margin: auto; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { margin: 0 0 16px; font-size: 1.25rem; letter-spacing: -.025em; }
.muted { color: var(--muted); line-height: 1.55; }
.description { margin: 12px 0 26px; }
.note { font-size: .9rem; margin-top: 20px; }
.heading { margin-bottom: 28px; }
.heading > p { margin-bottom: 8px; }
.login-layout, .workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.login-layout { max-width: 880px; margin: clamp(0px, 6vh, 60px) auto 0; }
.card, .clock-card { border-radius: 23px; padding: clamp(24px, 4vw, 38px); }
.card { background: white; border: 1px solid var(--border); box-shadow: 0 8px 26px #172c2708; }
.clock-card {
  background: radial-gradient(ellipse at 95% 0%, #2c5748, var(--forest) 66%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: space-between;
}
.clock-card-top, .stamp-top { display: flex; align-items: center; gap: 12px; }
.clock-card-top { color: var(--mint); font-weight: 650; }
.clock-icon-large { width: 36px; height: 36px; }
.clock-date { color: #c8dcd2; line-height: 1.5; }
.clock-time {
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.1;
  white-space: nowrap;
}
.login-card { align-self: stretch; }
form { display: grid; gap: 12px; }
label { font-weight: 650; }
input {
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid #aebfb4;
  color: var(--forest);
  background: #fafcf9;
  font-size: 1.1rem;
  padding: 12px 16px;
}
#code { letter-spacing: .16em; }
#code::placeholder { letter-spacing: normal; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  min-height: 56px;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.button:disabled { opacity: .65; cursor: wait; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #1b4439; }
.button-outline { min-height: 44px; background: white; color: var(--green); border-color: var(--border); }
.button-outline:hover { background: #eff6ef; }
.button-mint { background: var(--mint); color: var(--forest); }
.button-mint:hover { background: #d0f9e0; }
.button-light { background: transparent; color: white; border-color: #93aa9c; }
.button-light:hover { background: #ffffff17; }
.full { width: 100%; }
form .button { margin-top: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #41a880; outline-offset: 3px; }
.stamp-card { gap: 16px; }
.stamp-top { justify-content: space-between; flex-wrap: wrap; }
.stamp-label { color: #c8dcd2; font-weight: 650; }
.status { background: #e2ebe4; color: var(--forest); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 700; }
.status[data-state="work"] { background: var(--mint); }
.status[data-state="break"] { background: #f6e2ae; }
.stamp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.stamp-actions > button { flex: 1 1 145px; min-height: 63px; }
.stats { display: grid; gap: 10px; }
.stats div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; }
.record-list { list-style: none; padding: 0; margin-top: 14px; }
.record-list li { border-top: 1px solid var(--border); color: var(--muted); padding: 12px 0 0; margin-top: 10px; overflow-wrap: anywhere; }
.admin-workspace { align-items: start; }
.notice, .code-result { border-radius: 12px; background: #ddf5e5; color: var(--forest); padding: 14px 16px; margin-bottom: 18px; }
.notice[data-error="true"] { background: #fce9e5; color: #702d22; }
.code-result { margin: 18px 0 0; overflow-wrap: anywhere; }
.code-result strong { display: block; font-size: 1.75rem; letter-spacing: .12em; margin: 4px 0; }

@media (max-width: 690px) {
  .topbar-inner { padding-inline: 16px; min-height: 64px; }
  main { padding: 22px 16px 38px; }
  .login-layout, .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .login-layout { margin-top: 0; }
  .clock-card { gap: 20px; }
  .login-layout .clock-card { padding-block: 20px; flex-direction: row; align-items: center; }
  .clock-card-top > span + span { display: none; }
  .login-layout .clock-time { font-size: 2.45rem; }
  .clock-date { font-size: .95rem; }
  .heading { margin-bottom: 19px; }
}
