* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111827;
  color: #f9fafb;
}

a {
  color: inherit;
}

.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.landing-card {
  width: min(640px, 92vw);
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}

.landing-card h1 {
  margin-top: 0;
  font-size: 36px;
}

.landing-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

.landing-buttons a,
.studio-link,
.admin-actions button {
  display: inline-block;
  text-decoration: none;
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.studio-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
}

.dashboard-shell {
  width: 100vw;
  height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-bar {
  height: 112px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  padding: 16px 22px;
  gap: 20px;
}

.kyw-logo {
  display: inline-grid;
  place-items: center;
  width: 118px;
  height: 58px;
  background: #dc2626;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  border-radius: 8px;
}

.brand-subtitle {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 18px;
}

.clock-block {
  text-align: center;
}

.current-time {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.current-date {
  margin-top: 8px;
  font-size: 20px;
  color: #cbd5e1;
}

.status-block {
  text-align: right;
  color: #cbd5e1;
}

.status-label {
  color: #fbbf24;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dashboard-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 16px;
  min-height: 0;
}

.panel {
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
}

.panel h2 {
  margin: 0 0 14px;
  color: #93c5fd;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.large-readout {
  font-size: 32px;
  line-height: 1.18;
  font-weight: 800;
}

.body-text {
  white-space: pre-line;
  font-size: 24px;
  line-height: 1.28;
}

.mini-line {
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 20px;
}

.weather-main {
  display: flex;
  gap: 24px;
  align-items: center;
}

.temperature {
  font-size: 76px;
  font-weight: 900;
}

.sky-condition {
  font-size: 30px;
  font-weight: 800;
}

.staff-list {
  display: grid;
  gap: 16px;
  font-size: 24px;
}

.staff-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

.staff-list span {
  color: #cbd5e1;
}

.neighborhood-temps {
  display: grid;
  gap: 16px;
  font-size: 34px;
  font-weight: 900;
}

.stock-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
  padding: 12px 0;
  font-size: 26px;
}

.traffic-panel {
  grid-column: span 2;
}

.forecast-panel {
  grid-row: span 2;
}

.neighborhoods-panel {
  grid-column: span 2;
}

/* Admin page */

.admin-page {
  background: #f3f4f6;
  color: #111827;
}

.admin-shell {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
}

.admin-header p {
  margin: 6px 0 0;
  color: #4b5563;
}

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-section {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 22px;
}

.admin-section h2 {
  margin: 0 0 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #9ca3af;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.helper-text {
  color: #6b7280;
  margin-top: -6px;
}

.admin-actions {
  position: sticky;
  bottom: 0;
  background: #f3f4f6;
  border-top: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.admin-actions button:nth-child(2) {
  background: #4b5563;
}

#saveStatus {
  color: #374151;
  font-weight: 700;
}
