/* ── Stitch_DG — Exact Design: Dark Teal + Neon Green + Gold ── */

:root {
  --bg:           #041c24;
  --bg-card:      rgba(255, 255, 255, 0.05);
  --bg-card-mid:  rgba(255, 255, 255, 0.08);
  --border:       rgba(255, 255, 255, 0.10);
  --neon:         #a4ff00;
  --neon-dim:     rgba(164, 255, 0, 0.12);
  --neon-glow:    0 0 15px rgba(164, 255, 0, 0.9), inset 0 0 5px rgba(164, 255, 0, 0.6);
  --neon-glow-sm: 0 0 8px rgba(164, 255, 0, 0.6);
  --gold:         #d9a34a;
  --gold-bright:  #ffcc66;
  --gold-dim:     rgba(217, 163, 74, 0.15);
  --gold-glow:    0 0 20px rgba(217, 163, 74, 0.6), inset 0 0 8px rgba(255, 204, 102, 0.2);
  --text:         #ffffff;
  --text-muted:   #7a8899;
  --text-label:   rgba(255,255,255,0.5);
  --red:          #ff4d00;
  --amber:        #f59e0b;
  --green-status: #2ecc71;
  --blur:         blur(10px);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-pill:  9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.10) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Aurora streaks ── */
.bg-streak {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.streak-1 {
  position: absolute; top: 30%; left: -20%;
  width: 140%; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.5), rgba(96,165,250,.5), transparent);
  transform: rotate(-10deg); filter: blur(20px);
  box-shadow: 0 0 40px 10px rgba(52,211,153,.2);
}
.streak-2 {
  position: absolute; top: 25%; right: -10%;
  width: 120%; height: 60px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.2), rgba(59,130,246,.3), transparent);
  transform: rotate(15deg); filter: blur(40px);
}
.streak-3 {
  position: absolute; top: 55%; left: -10%;
  width: 120%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.4), rgba(52,211,153,.4), transparent);
  transform: rotate(-5deg); filter: blur(15px);
}

/* ── Ambient flares ── */
.bg-flare-tl {
  position: fixed; top: -10%; left: -10%;
  width: 40%; height: 40%;
  background: radial-gradient(circle, rgba(164,255,0,.07) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}
.bg-flare-br {
  position: fixed; bottom: -15%; right: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(164,255,0,.10) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ── Glass cards ── */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card.soft { background: rgba(255,255,255,.03); }
.card.gold-glow {
  border-color: rgba(217,163,74,.5);
  box-shadow: var(--gold-glow);
}
.card.neon-glow {
  border-color: var(--neon);
  box-shadow: var(--neon-glow);
}

/* ── Layout ── */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* ── Nav header ── */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.25rem;
  background: rgba(4,28,36,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: sticky; top: 0; z-index: 50;
}
.app-header .brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.brand-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), #87cc00);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; color: #041c24;
  box-shadow: var(--neon-glow-sm);
}
.app-header .user-area { display: flex; align-items: center; gap: .75rem; }
#user-info { font-size: .78rem; color: var(--text-label); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem; align-items: start;
}
@media (max-width: 768px) { .hero { grid-template-columns: 1fr; } }

.hero-copy h1 {
  font-size: 1.4rem; font-weight: 700; line-height: 1.3;
  margin: .4rem 0 .6rem;
}
.hero-copy .lede {
  font-size: .875rem; color: var(--text-muted); line-height: 1.6; max-width: 52ch;
}
.hero-status { min-width: 210px; }
.mini-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .6rem; margin-top: .75rem;
}
.mini-grid > div {
  background: var(--neon-dim);
  border: 1px solid rgba(164,255,0,.25);
  border-radius: var(--radius-sm);
  padding: .55rem .75rem;
}
.mini-grid strong { color: var(--neon); font-size: 1.1rem; }

/* ── Typography ── */
.eyebrow {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--neon); margin-bottom: .2rem;
  text-shadow: var(--neon-glow-sm);
}
.label {
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-label); margin-bottom: .2rem;
}
.muted { color: var(--text-muted); font-size: .85rem; }
strong { color: var(--text); font-weight: 600; }

/* ── Grids ── */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.main-grid { grid-template-columns: 1fr 340px; }
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* ── Channel / Phase cards ── */
.channel h2, .phase h2 {
  font-size: .95rem; font-weight: 600;
  color: var(--text); margin: .45rem 0 .3rem;
}
.channel p, .phase p {
  font-size: .8rem; color: var(--text-muted); line-height: 1.5;
}

/* ── Hero chips ── */
.hero-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.chip {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .2rem .6rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(164,255,0,.35);
  color: var(--neon); background: var(--neon-dim);
}

/* ── Badges ── */
.badge {
  display: inline-block; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .18rem .5rem; border-radius: var(--radius-pill);
  background: var(--neon-dim);
  border: 1px solid rgba(164,255,0,.3);
  color: var(--neon);
}
.badge.accent  { background: var(--gold-dim); border-color: rgba(217,163,74,.35); color: var(--gold); }
.badge.accent-2 { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.3); color: #2ecc71; }

/* ── Buttons ── */
button, .btn {
  font-family: 'Inter', sans-serif;
  font-size: .82rem; font-weight: 700;
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  padding: .5rem 1.25rem;
  transition: opacity .15s ease, box-shadow .15s ease;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #041c24;
  box-shadow: 0 0 12px rgba(217,163,74,.4);
}
button:hover { opacity: .88; box-shadow: 0 0 22px rgba(217,163,74,.65); }
button:active { transform: scale(.97); }

button.ghost, .btn.ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
}
button.ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: var(--neon-glow-sm);
}

button.neon-btn {
  background: linear-gradient(135deg, var(--neon), #87cc00);
  color: #041c24;
  box-shadow: 0 0 15px rgba(164,255,0,.8), inset 0 0 5px rgba(164,255,0,.4);
}
button.neon-btn:hover { box-shadow: 0 0 25px rgba(164,255,0,1); }

button.secondary, .btn.secondary {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
}
button.secondary:hover {
  border-color: rgba(164,255,0,.4);
  color: var(--neon);
  box-shadow: var(--neon-glow-sm);
}

button.danger {
  background: rgba(255,77,0,.15);
  border: 1px solid rgba(255,77,0,.4);
  color: var(--red);
  box-shadow: none;
}
button.danger:hover { box-shadow: 0 0 12px rgba(255,77,0,.4); }

button.sm { font-size: .72rem; padding: .3rem .8rem; }

/* ── Toolbar ── */
.toolbar {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .75rem;
  padding: .75rem 1.1rem;
}

/* ── Segmented filter ── */
.segmented { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.segmented button {
  font-size: .68rem; padding: .28rem .7rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  box-shadow: none;
}
.segmented button[aria-selected="true"] {
  background: var(--neon-dim);
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: var(--neon-glow-sm);
}

/* ── Section head ── */
.section-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: .9rem;
}
.section-head h2 { font-size: .95rem; font-weight: 600; margin-top: .15rem; }

/* ── Stack ── */
.stack { display: flex; flex-direction: column; gap: .35rem; }
.stack.compact { gap: .3rem; }

/* ── Work order items — compact single row ── */
.wo-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .42rem .9rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.wo-item:hover {
  border-color: rgba(164,255,0,.4);
  background: var(--neon-dim);
  box-shadow: var(--neon-glow-sm);
}
.wo-item.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 10px rgba(217,163,74,.3);
}

.wo-head {
  display: flex; justify-content: space-between;
  align-items: center; gap: .75rem; flex-wrap: nowrap;
}
.wo-title {
  font-weight: 600; font-size: .82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 38%; flex-shrink: 0;
}
.wo-meta {
  font-size: .72rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}

/* ── Status pills ── */
.status-pill {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .18rem .5rem; border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
}
.status-entwurf     { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15); color:rgba(255,255,255,.5); }
.status-geplant     { background:rgba(59,130,246,.12); border:1px solid rgba(59,130,246,.3); color:#60a5fa; }
.status-zugewiesen  { background:rgba(99,102,241,.12); border:1px solid rgba(99,102,241,.3); color:#a5b4fc; }
.status-in_arbeit   { background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.3); color:#fbbf24; }
.status-zur_abnahme { background:rgba(164,255,0,.12); border:1px solid rgba(164,255,0,.3); color:var(--neon); box-shadow:0 0 6px rgba(164,255,0,.3); }
.status-abgeschlossen { background:rgba(46,204,113,.12); border:1px solid rgba(46,204,113,.3); color:#2ecc71; box-shadow:0 0 6px rgba(46,204,113,.3); }
.status-reklamiert  { background:rgba(255,77,0,.12); border:1px solid rgba(255,77,0,.3); color:var(--red); }

/* ── Detail panel ── */
.wo-detail {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(164,255,0,.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-top: .4rem;
  box-shadow: 0 4px 20px rgba(164,255,0,.06);
}
.wo-detail-fields {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .5rem; margin-bottom: .75rem;
}
.wo-detail-fields > div { font-size: .75rem; }
.wo-detail-fields span { color: var(--text-label); display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.wo-detail-actions, .action-row {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem;
}
.wo-evidence-list { margin-top: .6rem; }
.wo-evidence-label { font-size: .72rem; color: var(--text-label); margin-bottom: .3rem; }
.wo-evidence-item {
  font-size: .72rem; color: var(--text-muted);
  display: flex; gap: .5rem;
  padding: .25rem 0; border-bottom: 1px solid var(--border);
}

/* ── Upload area ── */
.upload-area {
  border: 1px dashed rgba(164,255,0,.3);
  border-radius: var(--radius-sm);
  padding: .75rem; margin-top: .6rem;
  background: var(--neon-dim);
}
.upload-area label { font-size: .72rem; color: var(--neon); font-weight: 600; display: block; margin-bottom: .4rem; }
.upload-area input[type="file"] { font-size: .78rem; color: var(--text-muted); }
.upload-row { display: flex; gap: .5rem; align-items: center; margin-top: .4rem; flex-wrap: wrap; }
.upload-status { font-size: .72rem; margin-top: .35rem; color: var(--neon); }

/* ── Audit items ── */
.audit-item {
  font-size: .72rem; padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border); line-height: 1.4;
}
.audit-item .audit-action { color: var(--neon); font-weight: 600; }
.audit-item .audit-ts { color: var(--text-muted); }

/* ── Export box ── */
.export-box {
  font-size: .72rem; color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  background: rgba(0,0,0,.3); border-radius: var(--radius-sm);
  padding: .7rem; max-height: 180px; overflow: auto;
  margin-top: .6rem; white-space: pre-wrap;
  border: 1px solid var(--border);
}

/* ── Inputs ── */
input[type="text"], input[type="password"], input[type="email"],
input[type="date"], input[type="time"],
select, textarea {
  width: 100%; padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .875rem;
  margin-bottom: .9rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(164,255,0,.2), var(--neon-glow-sm);
}
input::placeholder { color: rgba(255,255,255,.25); }
option { background: #041c24; color: #fff; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(.7); cursor: pointer; }

/* ── Time-picker group ── */
.mode-toggle { display: flex; gap: .4rem; margin-bottom: .5rem; }
.mode-toggle label {
  display: flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; padding: .25rem .6rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  transition: border-color .15s, color .15s;
}
.mode-toggle input[type="radio"] { display: none; }
.mode-toggle input[type="radio"]:checked + span { color: var(--neon); }
.mode-toggle label:has(input:checked) { border-color: var(--neon); color: var(--neon); background: var(--neon-dim); }

.date-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.date-row input { flex: 1; margin-bottom: 0; }
.date-row .sep { color: var(--text-muted); font-size: .75rem; flex-shrink: 0; }

/* ── Checklist tag builder ── */
.checklist-tags {
  display: flex; flex-wrap: wrap; gap: .3rem;
  min-height: 32px; margin-bottom: .4rem;
}
.checklist-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--neon-dim); border: 1px solid rgba(164,255,0,.3);
  color: var(--neon); border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; padding: .2rem .55rem;
}
.checklist-tag button {
  background: none; border: none; color: var(--neon); padding: 0;
  font-size: .75rem; cursor: pointer; line-height: 1; box-shadow: none;
  border-radius: 0;
}
.checklist-tag button:hover { color: var(--red); background: none; box-shadow: none; }
.checklist-input-row { display: flex; gap: .4rem; }
.checklist-input-row input { flex: 1; margin-bottom: 0; }
.checklist-input-row button { flex-shrink: 0; padding: .5rem .9rem; margin-bottom: 0; }

/* ── Order-types admin ── */
.type-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-size: .72rem; padding: .2rem .55rem;
  color: var(--text-muted);
}
.type-tag button { background: none; border: none; color: var(--text-muted); padding: 0; font-size: .7rem; cursor: pointer; box-shadow: none; border-radius: 0; }
.type-tag button:hover { color: var(--red); background: none; box-shadow: none; }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

/* ── Login ── */
#login-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 40%, rgba(16,185,129,.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(59,130,246,.15) 0%, transparent 40%);
}
.login-box {
  width: 100%; max-width: 380px;
  background: rgba(255,255,255,.06);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(164,255,0,.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 0 40px rgba(164,255,0,.08), 0 20px 60px rgba(0,0,0,.5);
}
.login-box .eyebrow { margin-bottom: .35rem; }
.login-box h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.login-error {
  display: none;
  background: rgba(255,77,0,.12);
  border: 1px solid rgba(255,77,0,.35);
  border-radius: var(--radius-sm);
  padding: .5rem .8rem; margin-bottom: .9rem;
  font-size: .8rem; color: var(--red);
}
.field-label {
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-label); margin-bottom: .3rem;
}
.login-submit {
  width: 100%; padding: .72rem;
  font-size: .92rem; font-weight: 700;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--neon), #87cc00);
  color: #041c24; border: none; cursor: pointer;
  box-shadow: 0 0 18px rgba(164,255,0,.7);
  transition: opacity .15s, box-shadow .15s;
  letter-spacing: .02em;
}
.login-submit:hover { opacity: .9; box-shadow: 0 0 30px rgba(164,255,0,1); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4,28,36,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  width: 100%; max-width: 460px;
  background: rgba(4,28,36,.95);
  border: 1px solid rgba(164,255,0,.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 0 40px rgba(164,255,0,.1), 0 20px 60px rgba(0,0,0,.6);
}
.modal h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.1rem; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.modal input, .modal select, .modal textarea { margin-bottom: .7rem; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(164,255,0,.2); border-radius: 999px; }

/* ── Calendar ── */
.calendar-page { padding: 0; }
.cal-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem; margin-bottom: 1.2rem;
}
.cal-nav { display: flex; align-items: center; gap: .4rem; }

.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.cal-mini-month { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; }
.cal-mini-month h4 { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.cal-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-mini-cell {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .6rem; border-radius: 4px; cursor: pointer; position: relative; color: var(--text-muted);
}
.cal-mini-cell:hover { background: rgba(164,255,0,.08); color: var(--neon); }
.cal-mini-cell.today { background: var(--neon-dim); color: var(--neon); font-weight: 700; }
.cal-mini-cell.has-orders::after {
  content: ''; position: absolute; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--neon);
}
.cal-mini-cell.other-month { opacity: .25; }
.cal-mini-cell.dow { font-size: .5rem; font-weight: 700; color: var(--text-muted); cursor: default; }
.cal-mini-cell.dow:hover { background: none; color: var(--text-muted); }

.cal-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-month-dow { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-align: center; padding: .3rem 0; text-transform: uppercase; }
.cal-month-cell {
  min-height: 72px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: .3rem .4rem; cursor: pointer; transition: border-color .15s;
}
.cal-month-cell:hover { border-color: var(--neon); }
.cal-month-cell.today { border-color: var(--neon); background: var(--neon-dim); }
.cal-month-cell.other-month { opacity: .3; }
.cal-month-cell.selected { border-color: var(--gold); }
.cal-day-num { font-size: .72rem; font-weight: 700; margin-bottom: .2rem; }
.cal-order-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon); margin: 1px;
}
.cal-order-dot.gold { background: var(--gold); }
.cal-order-dot.red  { background: var(--red); }

.cal-day-view { display: flex; flex-direction: column; gap: .6rem; }
.cal-day-empty { color: var(--text-muted); font-size: .85rem; text-align: center; padding: 2rem; }
.cal-day-order {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .6rem .9rem; cursor: pointer; transition: border-color .15s;
}
.cal-day-order:hover { border-color: var(--neon); }
.cal-day-order .cal-order-title { font-weight: 600; margin-bottom: .2rem; }
.cal-day-order .cal-order-meta { font-size: .72rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 480px) {
  .cal-year { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cal-month-cell { min-height: 50px; }
  .cal-toolbar { flex-direction: column; align-items: stretch; }
}
::-webkit-scrollbar-thumb:hover { background: var(--neon); }
