﻿:root {
  --bg: #f5efe3;
  --surface: #fffaf1;
  --surface-strong: #f0e5d0;
  --ink: #14281d;
  --muted: #6b6b5f;
  --brand: #0f766e;
  --brand-soft: #cdebe7;
  --accent: #c56b2d;
  --border: #dccfb7;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(20, 40, 29, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 107, 45, 0.18), transparent 28%),
    linear-gradient(135deg, #f4ead5 0%, #f7f1e6 38%, #efe6d7 100%);
}
button, input, select { font: inherit; }
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2); }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
button.link-button { background: transparent; color: var(--brand); padding: 0.25rem 0.35rem; box-shadow: none; }
button.danger-link { color: var(--danger); }
code { padding: 0.1rem 0.35rem; border-radius: 6px; background: rgba(15, 118, 110, 0.08); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 320px 1fr; }
.hero {
  padding: 2.5rem 2rem;
  color: white;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.95), rgba(12, 63, 57, 0.96)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.14), transparent 40%);
}
.hero h1 { margin: 0.4rem 0 0.8rem; font-size: 2rem; line-height: 1.2; }
.hero-copy { line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.hero-panel { margin-top: 2rem; padding: 1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.1); display: grid; gap: 0.7rem; }
.workspace { padding: 2rem; }
.panel { background: rgba(255, 250, 241, 0.92); border: 1px solid var(--border); border-radius: 24px; padding: 1.2rem; box-shadow: var(--shadow); }
.panel-title-row, .topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar h2, .panel h2, .panel h3 { margin: 0; }
.stack-form { display: grid; gap: 0.9rem; }
.compact { gap: 0.7rem; }
label { display: grid; gap: 0.35rem; color: var(--muted); }
input, select { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: white; padding: 0.7rem 0.85rem; }
.inline-form { display: grid; grid-template-columns: minmax(180px, 1fr) 140px auto; gap: 0.6rem; margin: 1rem 0; align-items: end; }
.button-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.form-hint { border: 1px solid rgba(15, 118, 110, 0.18); background: rgba(205, 235, 231, 0.7); border-radius: 8px; padding: 0.65rem 0.8rem; color: var(--brand); font-weight: 600; }
.grid { display: grid; gap: 1rem; margin-top: 1rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid, .mini-cards { display: grid; gap: 0.9rem; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.metric-card { border-radius: 18px; padding: 1rem; background: linear-gradient(140deg, white, var(--brand-soft)); border: 1px solid rgba(15, 118, 110, 0.12); }
.metric-card strong { display: block; font-size: 1.5rem; margin-top: 0.35rem; }
.table-wrap { overflow: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(220, 207, 183, 0.8); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.detail-box { margin-top: 1rem; border: 1px solid rgba(15, 118, 110, 0.18); background: rgba(255, 255, 255, 0.58); border-radius: 12px; padding: 1rem; }
.detail-box h4 { margin: 0 0 0.7rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.detail-item { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem; }
.detail-item span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.2rem; }
.subtable-title { margin: 1rem 0 0.4rem; font-weight: 700; }
.card-surface { padding: 1rem; border-radius: 18px; background: var(--surface-strong); }
.toolbar { display: flex; gap: 0.75rem; }
.status-bar { position: sticky; bottom: 1rem; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(20, 40, 29, 0.9); color: white; }
.hidden { display: none; }
.eyebrow { margin: 0; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(20, 40, 29, 0.45); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.login-panel { max-width: 480px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .hero { padding-bottom: 1.5rem; }
  .workspace { padding: 1rem; }
  .two-col, .mini-cards { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
}
