@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  /* Audeze-inspired palette: deep charcoal base, cyan brand accent, warm copper secondary */
  --bg: #0b0d10;
  --panel: #10141c;
  --accent: #00b5d9;
  --accent-2: #e7a447;
  --text: #f4f6f8;
  --muted: #9aa6b8;
  --danger: #ff7b7b;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 12% 14%, rgba(0,181,217,0.12), transparent 26%),
              radial-gradient(circle at 88% 12%, rgba(231,164,71,0.12), transparent 26%),
              radial-gradient(circle at 80% 70%, rgba(0,181,217,0.07), transparent 40%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand {
  font-size: 30px;
  font-weight: 700;
}

.current-time {
  color: var(--muted);
  font-size: 14px;
}
.current-time-value {
  font-weight: 700;
  color: var(--text);
}

.user-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  position: relative;
}
.user-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
}
.avatar-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-block;
}
.avatar-preview.tiny {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
.avatar-preview.placeholder {
  background: rgba(255,255,255,0.06);
}
.role-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}
.user-chip .icon {
  min-width: 32px;
}
.user-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 180px;
  z-index: 10;
}
.user-menu.hidden { display: none; }
.user-menu button {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  cursor: pointer;
}
.user-menu button:hover { background: rgba(255,255,255,0.06); }
.w100 { width: 100%; }
.danger { background: #b32626; color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,181,217,0.12);
  border: 1px solid rgba(0,181,217,0.3);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  padding: 6px;
  border-radius: 12px;
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.nav-btn.active {
  background: rgba(0,181,217,0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0,181,217,0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.scheduler-grid {
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
}

.column-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.preset-fields textarea {
  grid-column: 1 / -1;
  min-height: 80px;
}

.history-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page[data-page="admin"] h2,
.page[data-page="admin"] p,
.page[data-page="admin"] label,
.page[data-page="admin"] th,
.page[data-page="admin"] td {
  text-align: left;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-button {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.site-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: none;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

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

.card-head h2 {
  margin: 0;
  font-size: 20px;
}

.card h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.card h4 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.json-preview {
  white-space: pre;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  max-height: 320px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.modal-title {
  font-weight: 800;
  font-size: 16px;
}

.modal-body {
  display: grid;
  gap: 10px;
}

.modal-message {
  color: var(--text);
  font-size: 14px;
}

.modal-ack {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

.auth-card {
  width: 320px;
}

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  accent-color: var(--accent);
  position: relative;
  top: 2px;
}

textarea { min-height: 100px; }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}
option {
  color: var(--text);
  background: var(--panel);
}

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
#settings-card .row { grid-template-columns: 1fr; }

.preview-note { color: var(--muted); margin-top: 4px; }

.time-picker {
  display: grid;
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
}
.time-picker input[list]::-webkit-calendar-picker-indicator { display: none; }
.clock-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 14px 8px 16px;
  z-index: 30;
  display: grid;
  gap: 10px;
}
.clock-header {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-align: center;
}
.clock-selection {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.clock-face-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.clock-face-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.clock-face {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 65%);
  overflow: hidden;
}
.clock-number {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.clock-number.active {
  border-color: rgba(0,181,217,0.6);
  background: rgba(0,181,217,0.15);
  color: var(--accent);
}
.clock-face-minutes .clock-number {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.clock-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 90px;
  background: rgba(0,181,217,0.75);
  transform-origin: bottom center;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  pointer-events: none;
}
.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.meridiem-panel {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.meridiem-btn {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.meridiem-btn.active {
  border-color: rgba(0,181,217,0.4);
  background: rgba(0,181,217,0.15);
  color: var(--accent);
}
.stepper-dropdown {
  display: grid;
  gap: 12px;
}
.stepper-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stepper-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.stepper-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}
.stepper-btn {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 16px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.stepper-btn:hover {
  border-color: rgba(0,181,217,0.4);
  color: var(--accent);
}
.stepper-controls div {
  font-size: 18px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.ghost.icon {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  min-width: 44px;
}
.ghost.icon:hover { border-color: var(--accent); color: var(--accent); }

.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06090f;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(0,181,217,0.28);
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }

.small { font-size: 13px; color: var(--muted); }

.table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { color: var(--muted); font-weight: 600; }
table tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.01); }
th[data-sort-key] { cursor: pointer; user-select: none; }
th[data-sort-key]:hover { color: var(--text); }
th[data-sort-key][data-sort-active="1"] { color: var(--text); }
.sort-indicator {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}
.table-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.table-tools.compact { margin-top: 6px; }
.table-tools input { flex: 1; }
.table-tools select { width: 120px; }
.table-tools:not(.compact) select { width: 140px; }

.pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin-top: 8px;
  padding: 6px 0;
}
.pagination-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.pagination-group.pagination-nav {
  justify-content: flex-start;
}
.pagination-group.pagination-nav:last-child {
  justify-content: flex-end;
}
.pagination-group.pagination-center {
  flex: 2;
  justify-content: center;
  gap: 12px;
}
.pagination span {
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}
.pagination .button {
  width: auto;
  min-width: 40px;
  padding: 6px 12px;
}
.page-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.page-selector a {
  padding: 4px 10px;
  min-width: 32px;
  width: auto;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-number.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}
.page-ellipsis {
  color: var(--muted);
  font-size: 14px;
}

.checkbox-list {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 6px;
  max-height: 180px;
  overflow: auto;
}
.checkbox-list label:nth-child(even) { background: rgba(255,255,255,0.035); }
.checkbox-list label:nth-child(odd) { background: rgba(255,255,255,0.015); }
.checkbox-list label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}
.checkbox-list label:hover { background: rgba(255,255,255,0.05); }
.checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  justify-self: center;
  place-self: center;
  position: relative;
  top: 2px;
}
.checkbox-list label span { line-height: 1.2; }
.image-preview {
  margin-top: 8px;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.metrics {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-transform: capitalize;
}
.status.scheduled { background: rgba(0,181,217,0.18); color: var(--accent); }
.status.published { background: rgba(231,164,71,0.18); color: var(--accent-2); }
.status.removed { background: rgba(255,255,255,0.08); color: var(--muted); }
.status.error { background: rgba(255,123,123,0.2); color: var(--danger); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.tag { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,0.06); font-size: 12px; }

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

.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

.page.hidden, .tab.hidden { display: none; }
.hidden { display: none !important; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab-btn {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.tab-btn.active {
  border-color: rgba(0,181,217,0.35);
  box-shadow: inset 0 0 0 1px rgba(0,181,217,0.2);
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 10;
}
.overlay.hidden { display: none; }
.auth-card { width: min(380px, 90vw); }

body:not(.authed) main { display: none !important; }
body:not(.authed) #auth-overlay { display: flex !important; }
body.authed #auth-overlay { display: none !important; }

.hint {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  position: relative;
}
.hint::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translate(-50%, 8px);
  bottom: -4px;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  background: #0b1021;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 5;
}
.hint:hover::after { opacity: 1; }

.info-list {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

button.danger,
button.ghost,
.button.ghost {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 88px;
  text-decoration: none;
}

button.danger {
  background: rgba(255, 123, 123, 0.18);
  border-color: rgba(255, 123, 123, 0.4);
  color: #ffb3b3;
}

.table-actions {
  display: flex;
  gap: 6px;
}

/* Ensure profile menu links stay centered even with shared button styles */
#user-menu button {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
.table-actions button {
  flex: 1;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
}

.admin-switcher {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
}

.row-clickable {
  cursor: pointer;
}
.row-clickable:hover {
  background: rgba(0,181,217,0.08);
}

.expander {
  display: inline-block;
  width: 16px;
  color: var(--muted);
  margin-right: 6px;
}

tr.detail-row td {
  background: rgba(255,255,255,0.02);
}

/* Dusk theme overrides */
[data-theme="dusk"] {
  --bg: #0f131a;
  --panel: #151c22;
  --text: #e7ebf3;
  --muted: #a5b2c6;
  --shadow: 0 16px 40px rgba(0,0,0,0.32);
}
[data-theme="dusk"] body {
  background: radial-gradient(circle at 12% 14%, rgba(0,181,217,0.14), transparent 26%),
              radial-gradient(circle at 88% 12%, rgba(231,164,71,0.12), transparent 28%),
              radial-gradient(circle at 80% 70%, rgba(0,181,217,0.08), transparent 42%),
              #0f131a;
}
[data-theme="dusk"] .card {
  border: 1px solid rgba(255,255,255,0.05);
}
[data-theme="dusk"] th,
[data-theme="dusk"] td {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #1e2633;
  --muted: #637389;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] body {
  background: radial-gradient(circle at 10% 10%, rgba(0,181,217,0.08), transparent 28%),
              radial-gradient(circle at 90% 10%, rgba(231,164,71,0.08), transparent 28%),
              #f7f8fb;
}
[data-theme="light"] .card {
  border: 1px solid rgba(0,0,0,0.05);
}
[data-theme="light"] th,
[data-theme="light"] td {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] table tbody tr:nth-child(even) { background: rgba(0,0,0,0.03); }
[data-theme="light"] table tbody tr:nth-child(odd) { background: rgba(0,0,0,0.015); }
[data-theme="light"] .checkbox-list label:nth-child(even) { background: rgba(0,0,0,0.03); }
[data-theme="light"] .checkbox-list label:nth-child(odd) { background: rgba(0,0,0,0.015); }
[data-theme="light"] .nav {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-btn {
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
  color: var(--muted);
}
[data-theme="light"] .nav-btn:hover {
  border-color: rgba(0,181,217,0.35);
  color: var(--text);
}
[data-theme="light"] .nav-btn.active {
  background: rgba(0,181,217,0.14);
  border-color: rgba(0,181,217,0.35);
  color: var(--text);
}
[data-theme="light"] .tab-btn {
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
}
[data-theme="light"] .tab-btn.active {
  border-color: rgba(0,181,217,0.35);
  box-shadow: inset 0 0 0 1px rgba(0,181,217,0.18);
}
[data-theme="light"] .button {
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 12px 26px rgba(0,181,217,0.18);
}
[data-theme="light"] button.danger,
[data-theme="light"] button.ghost,
[data-theme="light"] .button.ghost,
[data-theme="light"] .ghost.icon {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.14);
  color: var(--text);
}

[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[data-theme="light"] select,
[data-theme="light"] textarea {
  border-color: rgba(0,0,0,0.2);
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }
  .scheduler-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main { padding: 28px 16px 60px; }
  .header { flex-direction: column; align-items: flex-start; }
}
