/* ==========================================================================
   BondDrive －整備アシストAI－  Admin Console
   Navy + White + BondDrive Gold accent ／ SaaS style
   ========================================================================== */

:root {
  --navy-900: #0f1f3a;
  --navy-800: #172b4d;
  --navy-700: #1e3a5f;
  --navy-600: #2c4e6f;
  --navy-500: #3b6491;
  --navy-400: #5a82a8;
  --navy-50:  #eef3f9;
  --navy-bg:  #f5f8fc;

  --gold:       #b89256;
  --gold-deep:  #8f6f3d;
  --gold-soft:  #e8dcc0;
  --gold-bg:    #faf6ec;

  --bg:          var(--navy-bg);
  --surface:     #ffffff;
  --ink:         #0f1f3a;
  --ink-sub:     #506680;
  --ink-mute:    #8a9bb2;
  --line:        #e1e8f0;
  --line-strong: #c8d3e0;

  --red:     #c0392b;
  --red-bg:  #fdecea;
  --green:   #2f7a4d;
  --green-bg:#e9f5ee;
  --amber:   #b07800;
  --amber-bg:#fdf4d9;
  --blue:    #1e5fc8;
  --blue-bg: #e8f0fc;

  --shadow-sm: 0 1px 2px rgba(15,31,58,0.04), 0 2px 6px rgba(15,31,58,0.05);
  --shadow-md: 0 4px 14px rgba(15,31,58,0.08);

  --radius-md: 12px;
  --radius-lg: 16px;

  --ff-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --ff-serif: "Cormorant Garamond", "Times New Roman", serif;
  --ff-num: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============ Layout ============ */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ============ Sidebar ============ */
.sidebar {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-right: 1px solid var(--navy-800);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar__brand {
  padding: 4px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar__brand-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184,146,86,0.35);
}
.sidebar__brand-icon svg { width: 22px; height: 22px; color: #fff; }
.sidebar__brand-text { min-width: 0; flex: 1; }
.sidebar__brand-main {
  font-family: var(--ff-serif);
  font-size: 21px; font-weight: 500;
  letter-spacing: 0.04em; line-height: 1;
  color: #fff;
}
.sidebar__brand-main em { color: var(--gold); font-style: normal; }
.sidebar__brand-sub {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  line-height: 1.2;
}
.sidebar__brand-tag {
  display: none;
}
.sidebar__nav-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  padding: 12px 10px 6px;
  font-weight: 700;
}
.sidebar a.nav {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .12s ease;
}
.sidebar a.nav:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar a.nav.is-active {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184,146,86,0.45);
}
.sidebar a.nav svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar__quick {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 6px;
}
.sidebar__quick h4 {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  margin: 4px 10px 6px;
  font-weight: 700;
}
.quick-btn {
  border: 1px dashed rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
}
.quick-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }

/* ============ Main ============ */
.main { min-width: 0; }
.topbar {
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
  position: sticky; top: 0; z-index: 50;
}
.topbar__product {
  font-family: var(--ff-serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.topbar__product span {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-sub);
  letter-spacing: 0.1em;
  margin-left: 6px;
}
.topbar__title {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.topbar__sub {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.topbar__right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.topbar__date {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-sub);
  font-family: var(--ff-num);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.topbar__date svg { width: 14px; height: 14px; color: var(--ink-mute); }
.topbar__user {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
}
.topbar__user-info { text-align: right; line-height: 1.25; }
.topbar__user-info b { font-size: 13px; display: block; }
.topbar__user-info small { font-size: 10.5px; color: var(--ink-mute); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-900));
  color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  font-family: var(--ff-num);
}

.content { padding: 22px 28px 40px; }

.section-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-heading::before {
  content: "";
  width: 3px; height: 14px; background: var(--gold); border-radius: 2px;
}

/* ============ KPI ============ */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 22px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.kpi__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kpi__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.kpi__icon.blue  { background: var(--blue-bg); color: var(--blue); }
.kpi__icon.amber { background: var(--amber-bg); color: var(--amber); }
.kpi__icon.green { background: var(--green-bg); color: var(--green); }
.kpi__icon.red   { background: var(--red-bg); color: var(--red); }
.kpi__icon.gold  { background: var(--gold-bg); color: var(--gold-deep); }
.kpi__icon svg { width: 18px; height: 18px; }
.kpi__label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
  font-weight: 600;
  flex: 1;
}
.kpi__value {
  font-family: var(--ff-num);
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.15;
  color: var(--ink);
}
.kpi__value small {
  font-size: 13px; color: var(--ink-mute);
  font-weight: 500; margin-left: 4px;
}
.kpi__diff {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 6px;
  font-size: 11.5px;
  font-family: var(--ff-num);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.kpi__diff.up   { background: var(--green-bg); color: var(--green); }
.kpi__diff.down { background: var(--red-bg); color: var(--red); }
.kpi__diff.flat { background: var(--line); color: var(--ink-sub); }
.kpi__diff-label {
  margin-left: 6px;
  font-size: 11px; color: var(--ink-mute); font-weight: 500;
}

/* ============ ワークフロー ============ */
.workflow {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.workflow__head {
  display: flex; align-items: center;
  margin-bottom: 14px; gap: 10px;
}
.workflow__title {
  font-size: 13px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.workflow__title::before {
  content: ""; width: 3px; height: 14px;
  background: var(--gold); border-radius: 2px;
}
.workflow__scope {
  margin-left: auto; font-size: 11.5px; color: var(--ink-mute);
}
.workflow__steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; align-items: stretch; position: relative;
}
.wf-step {
  background: var(--navy-50);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  margin-right: 24px;
}
.wf-step:last-child { margin-right: 0; }
.wf-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy-700); color: #fff;
  font-family: var(--ff-num);
  font-size: 12px; font-weight: 700;
}
.wf-step__label {
  font-size: 13px; font-weight: 700;
  margin-top: 10px; color: var(--ink);
}
.wf-step__stat {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--ff-num);
  font-size: 24px; font-weight: 600;
  margin-top: 4px; color: var(--ink);
}
.wf-step__stat small { font-size: 12px; color: var(--ink-mute); font-weight: 500; }
.wf-step__status {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wf-step__status.done  { color: var(--green); }
.wf-step__status.doing { color: var(--amber); }
.wf-step__status.wait  { color: var(--ink-mute); }
.wf-step::after {
  content: "→";
  position: absolute; right: -18px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; color: var(--navy-400);
  font-weight: 700;
}
.wf-step:last-child::after { display: none; }

/* ============ Split: Table + Detail ============ */
.split {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.panel__title {
  font-size: 13px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.panel__title::before {
  content: ""; width: 3px; height: 14px;
  background: var(--gold); border-radius: 2px;
}
.panel__head .right { margin-left: auto; font-size: 12px; color: var(--ink-mute); }
.panel--compact .panel__head { padding: 12px 16px; }
.panel--compact .panel__body { padding: 14px 18px 18px; }

/* Table */
table.records {
  width: 100%; border-collapse: separate;
  border-spacing: 0; font-size: 13px;
}
table.records thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-sub);
  font-weight: 700;
  padding: 10px 14px;
  background: var(--navy-50);
  border-bottom: 1px solid var(--line);
}
table.records tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.records tbody tr { cursor: pointer; transition: background .1s ease; }
table.records tbody tr:hover { background: #fafcff; }
table.records tbody tr.is-active {
  background: var(--navy-50);
  box-shadow: inset 3px 0 0 var(--gold);
}
.td-name { font-weight: 700; color: var(--ink); }
.td-sub  { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.td-num  { font-family: var(--ff-num); }
.td-time {
  font-family: var(--ff-num);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

/* Step badge (for list) */
.step-badges {
  display: inline-flex; gap: 3px; align-items: center;
}
.step-badge {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-num);
  font-size: 11px; font-weight: 700;
  background: var(--line); color: var(--ink-mute);
}
.step-badge.done  { background: var(--green); color: #fff; }
.step-badge.doing { background: var(--amber); color: #fff; }
.step-badge.wait  { background: var(--line-strong); color: #fff; }

.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
}
.status-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
.status-dot.is-sent::before { background: var(--green); }
.status-dot.is-draft::before { background: var(--ink-mute); }

/* ============ Detail pane ============ */
.detail { padding: 18px 20px 22px; }
.detail__name {
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ink);
}
.detail__meta {
  margin-top: 4px;
  font-size: 12px; color: var(--ink-sub);
}
.detail__chips { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.detail__step {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafcff;
}
.detail__step-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.detail__step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; font-family: var(--ff-num);
  flex-shrink: 0;
}
.detail__step-title {
  font-size: 12.5px; font-weight: 700; color: var(--ink); flex: 1;
}
.detail__step-action {
  font-size: 11px; font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  padding: 3px 8px; border-radius: 6px;
  cursor: pointer;
}
.detail__step-body {
  font-size: 12.5px; line-height: 1.7; color: var(--ink-sub);
  white-space: pre-wrap;
}

.detail__actions {
  margin-top: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
}

.detail__text {
  font-size: 13px; line-height: 1.8; color: var(--ink);
  white-space: pre-wrap;
  background: var(--navy-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink);
  cursor: pointer; font-family: inherit;
  transition: all .12s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  color: #fff; border-color: var(--navy-800);
}
.btn--gold {
  background: linear-gradient(180deg, #c79d5f, #8f6f3d);
  color: #fff; border-color: #8f6f3d;
}
.btn--sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 6px; }

/* Analytics */
.analytics {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 16px; margin-top: 22px;
}
.chart-box { padding: 16px 20px 20px; }

/* Line chart */
.linechart-wrap {
  position: relative;
  height: 200px;
  margin-top: 10px;
}
.linechart-wrap svg { width: 100%; height: 100%; display: block; }
.linechart__grid line { stroke: var(--line); stroke-width: 1; }
.linechart__area { fill: url(#linegrad); opacity: 0.2; }
.linechart__line { stroke: var(--navy-600); stroke-width: 2; fill: none; }
.linechart__dot  { fill: var(--navy-700); stroke: #fff; stroke-width: 2; }
.linechart__label {
  font-family: var(--ff-num); font-size: 10px; fill: var(--ink-mute);
}
.linechart__vlabel {
  font-family: var(--ff-num); font-size: 10.5px; font-weight: 600; fill: var(--ink);
}

/* Donut chart */
.donut-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
}
.donut-svg { width: 140px; height: 140px; flex-shrink: 0; }
.donut-legend {
  flex: 1; list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.donut-legend li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.donut-legend__color {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}
.donut-legend__label { flex: 1; color: var(--ink-sub); }
.donut-legend__pct {
  font-family: var(--ff-num);
  font-weight: 600; color: var(--ink); font-size: 12px;
}

/* ============ Forms (shared with CRUD pages) ============ */
.form-input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--ink);
  font-family: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form-input:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(59,100,145,0.15);
}
.form-input--sm { height: 34px; font-size: 13px; padding: 0 10px; }
textarea.form-input { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--wide { grid-column: 1 / -1; }
.form-row label {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink-sub);
}

/* Admin modal */
.modal-admin {
  position: fixed; inset: 0;
  background: rgba(15,31,58,0.55);
  z-index: 400;
  display: none; align-items: center; justify-content: center;
  animation: fadeAdm .15s ease;
}
.modal-admin.is-open { display: flex; }
@keyframes fadeAdm { from { opacity: 0 } to { opacity: 1 } }
.modal-admin__sheet {
  background: #fff;
  width: 560px; max-width: 94vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15,31,58,0.3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: popAdm .2s ease;
}
@keyframes popAdm { from { transform: scale(0.96); opacity:0 } to { transform: scale(1); opacity:1 } }
.modal-admin__head {
  padding: 16px 20px;
  background: linear-gradient(180deg, #fff, var(--navy-50));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.modal-admin__title {
  font-family: var(--ff-serif); font-size: 18px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--navy-700); flex: 1;
}
.modal-admin__close {
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 22px; color: var(--ink-mute);
  cursor: pointer; border-radius: 8px; font-family: inherit;
}
.modal-admin__close:hover { background: var(--line); color: var(--ink); }
.modal-admin__body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-admin__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--navy-50);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* Mini button */
.btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-sub);
  font-size: 11.5px; font-weight: 600;
  border-radius: 6px; cursor: pointer;
  font-family: inherit; margin-left: 4px;
  transition: all .12s ease;
}
.btn-mini:hover { border-color: var(--navy-500); background: var(--navy-50); color: var(--navy-700); }
.btn-mini--danger { color: var(--red); }
.btn-mini--danger:hover { border-color: var(--red); background: var(--red-bg); color: var(--red); }

/* Photo chip in detail */
.photo-chip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px;
}
.photo-chip {
  aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  background: var(--navy-50); border: 1px solid var(--line);
  position: relative;
}
.photo-chip img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photo-chip__tag {
  position: absolute; top: 3px; left: 3px;
  background: rgba(15,31,58,0.85); color: #fff;
  font-size: 8px; padding: 1px 4px; border-radius: 3px;
  font-weight: 600; letter-spacing: 0.04em;
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: "";
  position: absolute; inset: -50% -50% 0 -50%;
  background: radial-gradient(circle at 30% 30%, rgba(184,146,86,0.12), transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(90,130,168,0.18), transparent 45%);
  pointer-events: none;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 400px; max-width: 90vw;
  text-align: center;
  position: relative; z-index: 1;
}
.login-card__icon {
  width: 54px; height: 54px;
  background: var(--gold);
  border-radius: 12px;
  display: inline-grid; place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(184,146,86,0.4);
}
.login-card__icon svg { width: 30px; height: 30px; color: #fff; }
.login-card h1 {
  font-family: var(--ff-serif);
  font-size: 32px; font-weight: 500;
  letter-spacing: 0.04em; margin: 0 0 4px;
  line-height: 1; color: var(--ink);
}
.login-card h1 em { color: var(--gold-deep); font-style: normal; }
.login-productname {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--ink);
  margin-bottom: 20px; margin-top: 4px;
}
.login-card p {
  font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: 0.16em;
  margin: 0 0 22px; font-weight: 600;
}
.login-card input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px; font-size: 14px;
  margin-bottom: 10px; font-family: inherit;
  transition: border-color .12s ease;
}
.login-card input:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(59,100,145,0.15);
}
.login-card button {
  width: 100%; height: 46px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: #fff; border: 0;
  border-radius: 8px;
  font-weight: 600; letter-spacing: 0.1em;
  cursor: pointer; margin-top: 8px;
  font-family: inherit; font-size: 14px;
}
.login-err {
  color: var(--red); font-size: 12px;
  background: var(--red-bg); padding: 8px;
  border-radius: 6px; margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 68px 1fr; }
  .sidebar__brand { justify-content: center; }
  .sidebar__brand-text, .sidebar__nav-title,
  .sidebar a.nav span, .sidebar__quick { display: none; }
  .sidebar a.nav { justify-content: center; padding: 10px; }
  .split { grid-template-columns: 1fr; }
  .analytics { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow__steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wf-step { margin-right: 0; }
  .wf-step::after { display: none; }
}

/* Toast */
.toast {
  position: fixed;
  right: 20px; bottom: 20px;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: all .2s ease; z-index: 500;
}
.toast.is-show { opacity: 1; transform: translateY(0); }
