:root {
  --bg1: #08121f;
  --bg2: #113057;
  --card: #ffffff;
  --ink: #13304d;
  --muted: #667b96;
  --line: #dbe6f0;
  --primary: #0b7fa6;
  --warn: #ba7b0d;
  --danger: #b4232a;
  --ok: #0f8752;
  --company-watermark-image: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--ink);
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(255, 190, 92, 0.18), transparent 28%),
    linear-gradient(145deg, var(--bg1), var(--bg2));
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--company-watermark-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(54vw, 540px) auto;
  opacity: 0.08;
  z-index: 0;
}
.kiosk-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  position: relative;
  z-index: 1;
}
.card {
  width: min(900px, 100%);
  background: var(--card);
  border: 1px solid rgba(14, 39, 66, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(9, 21, 38, 0.26);
  padding: 18px;
}
.hidden { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
#userLine { color: #3e5977; font-weight: 600; margin-top: 4px; }
.sub { color: var(--muted); margin-top: 6px; }
.stack { display: grid; gap: 10px; margin-top: 12px; }
label { display: grid; gap: 6px; }
label span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3e5472;
  font-weight: 700;
}
input, textarea, button { font: inherit; }
input, textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: #f8fbff;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 127, 166, 0.16);
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: #f8fbff;
}
.check input { width: auto; }
.check span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2f4d6a;
}
.btn {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.warning { background: var(--warn); color: #fff; }
.btn.ghost { background: #eaf1f7; color: #20405e; }
.error { color: var(--danger); margin-top: 8px; min-height: 22px; font-weight: 600; }
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tiles {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
}
.tile {
  border: 1px solid #dde8f2;
  border-radius: 12px;
  background: #f8fbfe;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.big {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hint { color: #476183; min-height: 18px; }
.status-tile { margin-top: 10px; }
.badge {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge.neutral { background: #e7eef6; color: #36516f; }
.badge.active { background: #d7f3e4; color: var(--ok); }
.badge.warn { background: #f4e4c8; color: #8d5e03; }
.badge.policy-status {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 3px 9px;
}
.clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 700;
}
.actions {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #dde8f2;
  border-radius: 10px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}
th, td {
  font-size: 0.86rem;
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #edf2f7;
}
th {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #476183;
  font-size: 0.74rem;
}
@media (max-width: 760px) {
  .card { padding: 14px; }
  .tiles { grid-template-columns: 1fr; }
}
