/* =========================================================
   ドコサス Design System
   温かい紙の地色 + 深いティール + 珊瑚色のアクセント
   ========================================================= */
:root {
  --bg: #f5f4f0;
  --bg-sunken: #efede7;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #e7e4dc;
  --line-strong: #d8d4c8;

  --ink: #1d2230;
  --ink-2: #3c4250;
  --muted: #6e7380;
  --faint: #9a9ea8;

  --brand: #1f6f68;
  --brand-600: #185a54;
  --brand-50: #e8f3f1;
  --brand-100: #cfe7e3;

  --accent: #e8664a;
  --accent-50: #fdeee9;

  --amber: #b7791f;
  --amber-50: #fdf4e3;
  --green: #2f855a;
  --green-50: #e7f5ec;
  --red: #c53b3b;
  --red-50: #fcebeb;
  --violet: #5b5bd6;
  --violet-50: #eeeefc;
  --sky: #2b7fb8;
  --sky-50: #e6f2fa;

  --media-offerbox: #1f6f68;
  --media-techoffer: #5b5bd6;
  --media-other: #b7791f;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(29, 34, 48, 0.04);
  --shadow: 0 1px 2px rgba(29, 34, 48, 0.04), 0 4px 16px rgba(29, 34, 48, 0.05);
  --shadow-lg: 0 12px 40px rgba(29, 34, 48, 0.14);

  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-num: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --sidebar-w: 232px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(31, 111, 104, 0.35); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 14px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #2c9488 100%);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px rgba(31, 111, 104, 0.3);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.04em; }
.brand-sub { font-size: 10.5px; color: var(--faint); letter-spacing: 0.08em; margin-top: -2px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; color: var(--faint); font-weight: 700; letter-spacing: 0.1em; padding: 14px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav-link svg { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 1.8; }
.nav-link:hover { background: var(--bg-sunken); }
.nav-link.active { background: var(--brand-50); color: var(--brand-600); font-weight: 700; }
.nav-count {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.nav-count.show { display: inline-flex; }

.sidebar-footer { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.client-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.client-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--amber-50); color: var(--amber); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.client-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.client-meta { font-size: 11px; color: var(--muted); }
.operator { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.operator button { border: none; background: none; padding: 0; color: var(--brand); font-weight: 700; font-size: 12px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 32px 36px 80px; }

.mobile-nav { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; margin-bottom: 6px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.3; margin: 0; }
.page-desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.section { margin-bottom: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 700; font-size: 13.5px; color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(31, 111, 104, 0.25); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-sunken); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 9px; }

/* legacy aliases (設定画面) */
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 13px; }
.btn-secondary:hover { background: var(--surface-2); }

/* ---------- Segmented / tabs ---------- */
.segmented { display: inline-flex; background: var(--bg-sunken); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented button {
  border: none; background: transparent; padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: all 0.15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.segmented .count { font-family: var(--font-num); font-size: 11.5px; color: var(--faint); margin-left: 4px; }
.segmented button.active .count { color: var(--brand); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  border: none; background: none; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--brand-600); border-bottom-color: var(--brand); }
.tab-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- Form ---------- */
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.field-hint { font-size: 12px; color: var(--faint); font-weight: 400; }
.input, .select, .textarea, textarea, input[type="text"], input[type="date"], input[type="search"] {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
textarea, .textarea { height: auto; min-height: 96px; padding: 11px 13px; line-height: 1.8; resize: vertical; }
.input:focus, .select:focus, textarea:focus, input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 111, 104, 0.12); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e7380' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.search input { padding-left: 38px; }
input[readonly] { background: var(--surface-2); color: var(--muted); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--bg-sunken); color: var(--ink-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-brand { background: var(--brand-50); color: var(--brand-600); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-violet { background: var(--violet-50); color: var(--violet); }
.badge-sky { background: var(--sky-50); color: var(--sky); }
.badge-accent { background: var(--accent-50); color: var(--accent); }
.badge-gray { background: var(--bg-sunken); color: var(--muted); }
.badge-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.media { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.media::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--mc, var(--media-other)); }
.media.offerbox::before { background: var(--media-offerbox); }
.media.techoffer::before { background: var(--media-techoffer); }
.score { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; font-family: var(--font-num); font-weight: 800; font-size: 13px; background: var(--bg-sunken); color: var(--muted); }
.score.s-a { background: var(--green-50); color: var(--green); }
.score.s-b { background: var(--sky-50); color: var(--sky); }
.score.s-c { background: var(--amber-50); color: var(--amber); }

/* ---------- KPI ---------- */
.kpi { position: relative; overflow: hidden; }
.kpi-label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-family: var(--font-num); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 8px; }
.kpi-unit { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.meter { height: 6px; background: var(--bg-sunken); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.meter.warn > span { background: var(--amber); }
.meter.bad > span { background: var(--accent); }
.delta { font-family: var(--font-num); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); } .delta.flat { color: var(--faint); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface);
  position: sticky; top: 0; z-index: 1;
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--ink); }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table.hover tbody tr { cursor: pointer; transition: background 0.1s; }
.table.hover tbody tr:hover td { background: var(--surface-2); }
.table .r { text-align: right; }
.table td.r { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- Empty / loading ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-sunken) 0%, #f7f6f2 50%, var(--bg-sunken) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.empty-icon svg { width: 26px; height: 26px; }
.empty-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.7; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.notice-info { background: var(--sky-50); color: #1f5f8a; }
.notice-warn { background: var(--amber-50); color: #7a5214; }
.notice-error { background: var(--red-50); color: #8f2a2a; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sync .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sync.loading .pulse { background: var(--amber); animation: blink 1s infinite; }
.sync.error .pulse { background: var(--red); }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- Toast ---------- */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn 0.25s cubic-bezier(.2,.8,.2,1);
}
.toast button { border: none; background: none; color: #8fd3c9; font-weight: 700; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* =========================================================
   Tasks (今日のやること)
   ========================================================= */
.today-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 24px;
}
.hero-card {
  background: linear-gradient(135deg, #1f6f68 0%, #2b8a80 60%, #3a9d8f 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 24px 26px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 111, 104, 0.25);
}
.hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.hero-date { font-size: 13px; opacity: 0.85; font-weight: 600; }
.hero-title { font-size: 22px; font-weight: 800; margin: 6px 0 14px; line-height: 1.45; }
.hero-progress { display: flex; align-items: center; gap: 14px; }
.hero-progress .bar { flex: 1; height: 8px; background: rgba(255,255,255,0.22); border-radius: 99px; overflow: hidden; }
.hero-progress .bar span { display: block; height: 100%; background: #fff; border-radius: 99px; transition: width 0.5s; }
.hero-progress .label { font-family: var(--font-num); font-weight: 800; font-size: 15px; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: border-color 0.15s, transform 0.1s; text-align: left; }
.stat-tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.stat-tile.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.stat-tile .t { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat-tile .v { font-family: var(--font-num); font-weight: 800; font-size: 28px; line-height: 1.1; margin-top: 8px; }
.stat-tile.overdue .v { color: var(--accent); }
.stat-tile.today .v { color: var(--brand); }

.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.task-group { margin-bottom: 26px; }
.task-group-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; }
.task-group-title { font-size: 14px; font-weight: 800; }
.task-group-count { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-sunken); padding: 1px 8px; border-radius: 99px; }
.task-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.task {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: flex-start;
  padding: 15px 18px; border-bottom: 1px solid var(--line); transition: background 0.15s, opacity 0.3s;
}
.task:last-child { border-bottom: none; }
.task:hover { background: var(--surface-2); }
.task.done { opacity: 0.55; }
.task.done .task-title { text-decoration: line-through; text-decoration-color: var(--faint); }
.check {
  width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; margin-top: 1px; transition: all 0.15s; flex-shrink: 0; padding: 0;
}
.check:hover { border-color: var(--brand); background: var(--brand-50); }
.check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(0.6); transition: all 0.2s; stroke-width: 3; }
.task.done .check { background: var(--brand); border-color: var(--brand); }
.task.done .check svg { opacity: 1; transform: scale(1); }
.task-title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.task-meta a { color: var(--brand-600); font-weight: 700; }
.task-meta a:hover { text-decoration: underline; }
.task-detail { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; line-height: 1.75; display: none; }
.task.open .task-detail { display: block; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.due { font-size: 12px; font-weight: 700; white-space: nowrap; }
.due.overdue { color: var(--accent); }
.due.today { color: var(--brand); }
.due.soon { color: var(--muted); }
.who { font-size: 11.5px; color: var(--faint); }
.expand { border: none; background: none; color: var(--faint); font-size: 12px; padding: 0; display: inline-flex; align-items: center; gap: 2px; }
.expand:hover { color: var(--ink); }

/* =========================================================
   Dashboard
   ========================================================= */
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-strong); margin-bottom: 8px; font-size: 13px; flex-wrap: wrap; }
.funnel-row { display: grid; grid-template-columns: 116px 1fr 64px 64px; gap: 12px; align-items: center; padding: 4px 0; }
.funnel-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.funnel-bar { height: 26px; border-radius: 8px; background: var(--bg-sunken); position: relative; overflow: hidden; display: flex; }
.funnel-bar span { display: block; height: 100%; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.funnel-bar .ob { background: var(--media-offerbox); }
.funnel-bar .to { background: var(--media-techoffer); }
.funnel-bar .ot { background: var(--media-other); }
.funnel-count { font-family: var(--font-num); font-weight: 800; text-align: right; font-size: 14px; }
.funnel-rate { font-family: var(--font-num); font-size: 12px; text-align: right; color: var(--muted); font-weight: 600; }
.funnel-rate.weak { color: var(--accent); font-weight: 800; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.bottleneck { display: flex; flex-direction: column; gap: 10px; }
.bn-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bn-rank { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-family: var(--font-num); background: var(--accent-50); color: var(--accent); }
.bn-label { font-size: 13px; font-weight: 700; }
.bn-sub { font-size: 12px; color: var(--muted); }
.bn-rate { font-family: var(--font-num); font-weight: 800; font-size: 20px; color: var(--accent); }

.chart-box { position: relative; height: 290px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.compare-card { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.compare-name { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.compare-main { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.compare-now { font-family: var(--font-num); font-weight: 800; font-size: 22px; }
.compare-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mini-meter { height: 5px; border-radius: 99px; background: var(--bg-sunken); margin-top: 10px; position: relative; }
.mini-meter span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--brand); }
.mini-meter i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); border-radius: 2px; }

/* =========================================================
   Candidates
   ========================================================= */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .search { flex: 1; min-width: 240px; }
.filters .select { width: auto; min-width: 150px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.person-name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.person-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 4px; flex-wrap: wrap; }

/* stepper */
.stepper { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.step::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step.done::before, .step.current::before { background: var(--brand); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: var(--faint); font-weight: 800; font-size: 12px; position: relative; z-index: 1; font-family: var(--font-num); }
.step-dot svg { width: 15px; height: 15px; stroke-width: 3; }
.step.done .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.current .step-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
.step.stopped .step-dot { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.step-name { font-size: 12px; font-weight: 700; margin-top: 8px; color: var(--ink-2); }
.step-date { font-size: 11px; color: var(--faint); font-family: var(--font-num); }

/* detail */
.profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-name { font-size: 24px; font-weight: 800; line-height: 1.3; }
.profile-kana { font-size: 12.5px; color: var(--faint); letter-spacing: 0.05em; }
.profile-school { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.stage-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stage-card + .stage-card { margin-top: 14px; }
.stage-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; user-select: none; }
.stage-head:hover { background: var(--surface-2); }
.stage-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-sunken); color: var(--muted); flex-shrink: 0; }
.stage-icon svg { width: 19px; height: 19px; }
.stage-card.has-data .stage-icon { background: var(--brand-50); color: var(--brand); }
.stage-title { font-weight: 800; font-size: 15px; }
.stage-meta { font-size: 12.5px; color: var(--muted); }
.stage-chevron { margin-left: auto; color: var(--faint); transition: transform 0.2s; }
.stage-card.open .stage-chevron { transform: rotate(180deg); }
.stage-body { display: none; padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.stage-card.open .stage-body { display: block; }
.qa { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.qa:last-child { border-bottom: none; }
.qa-q { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; line-height: 1.6; }
.qa-a { font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.qa-a.empty-a { color: var(--faint); font-size: 13px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.chip-cell { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.chip-cell .l { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.chip-cell .v { font-size: 14px; font-weight: 700; margin-top: 3px; word-break: break-word; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-50); padding: 12px 14px; border-radius: 0 12px 12px 0; margin-top: 14px; font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; }
.callout-title { font-size: 12px; font-weight: 800; color: var(--brand-600); margin-bottom: 4px; white-space: normal; }

/* memo */
.memo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.memo-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.memo-field { padding: 18px 0; border-bottom: 1px solid var(--line); }
.memo-field:first-child { padding-top: 4px; }
.memo-field:last-child { border-bottom: none; }
.memo-field.dirty .field-label::after { content: "未保存"; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-50); padding: 1px 7px; border-radius: 99px; }
.memo-field textarea { min-height: 88px; }
.savebar {
  position: sticky; bottom: 16px; z-index: 10; margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(29, 34, 48, 0.94); color: #fff; padding: 12px 14px 12px 20px; border-radius: 16px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.savebar .status { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.savebar .btn { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; }
.savebar .btn:hover { background: rgba(255,255,255,0.16); }
.savebar .btn-primary { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.savebar .btn-primary:hover { background: #e9f4f2; }
.kbd { font-family: var(--font-num); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.25); opacity: 0.8; }
.handoff { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 16px; }
.handoff-title { font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; gap: 8px; }
.handoff-item { margin-top: 10px; }
.handoff-item .l { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.handoff-item .v { font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

/* legacy settings page compatibility */
.page-header { margin-bottom: 24px; }
.page-subtitle { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.tab-container { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); }

/* print */
@media print {
  .sidebar, .mobile-nav, .savebar, .no-print { display: none !important; }
  .main { margin-left: 0; }
  body { background: #fff; }
  .card, .stage-card { box-shadow: none; break-inside: avoid; }
  .stage-body { display: block !important; }
}

/* responsive */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-main, .memo-layout, .today-hero { grid-template-columns: 1fr; }
  .memo-side { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .container { padding: 20px 16px 96px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    background: rgba(255,255,255,0.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
    padding: 6px; justify-content: space-around; backdrop-filter: blur(8px);
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 12px; font-size: 10.5px; font-weight: 700; color: var(--muted); position: relative; }
  .mobile-nav a svg { width: 21px; height: 21px; }
  .mobile-nav a.active { color: var(--brand); background: var(--brand-50); }
  .page-title { font-size: 22px; }
  .funnel-row { grid-template-columns: 88px 1fr 52px 52px; gap: 8px; }
  .kv { grid-template-columns: 104px 1fr; }
  .stat-tiles { grid-template-columns: repeat(3, 1fr); }
  .task { grid-template-columns: auto 1fr; }
  .task-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .savebar { bottom: 84px; }
  .toast-host { bottom: 92px; width: calc(100% - 32px); }
  .toast { width: 100%; justify-content: space-between; }
  .kpi-value { font-size: 26px; }
  .kpi-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ================= v3: login / multi-company / booking / import / settings ================= */
.client-switch { cursor: pointer; position: relative; padding-right: 30px; }
.client-switch::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-3, #888); border-bottom: 2px solid var(--ink-3, #888); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.client-select { appearance: none; border: none; background: transparent; padding: 0; font-weight: 700; font-size: 12.5px; width: 100%; cursor: pointer; color: var(--ink); text-overflow: ellipsis; }
.client-select:focus { outline: none; box-shadow: none; }
.client-switch:hover { background: var(--bg-sunken); }
.role-tag { font-size: 10.5px; font-weight: 700; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--brand-50); color: var(--brand-600); }
.count-pill { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); font-size: 11px; font-weight: 800; margin-left: 4px; }

/* public pages */
.public-body { background: radial-gradient(1200px 600px at 10% -10%, #e5f0ee 0%, transparent 60%), var(--bg); min-height: 100vh; }
.public-main { max-width: 460px; margin: 0 auto; padding: 56px 18px 80px; }
.public-main.wide { max-width: 760px; }
.auth-card { padding: 32px 30px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.auth-lead { font-size: 13.5px; margin: 0 0 20px; line-height: 1.7; }
.auth-error { color: var(--red); font-size: 13px; min-height: 1em; font-weight: 600; }
.auth-foot { font-size: 12px; margin-top: 18px; line-height: 1.7; }
.req { font-size: 10.5px; color: var(--accent); background: var(--accent-50); padding: 1px 6px; border-radius: 5px; margin-left: 4px; font-weight: 700; }

.book-head { margin-bottom: 18px; }
.book-head .page-title { font-size: 24px; }
.book-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.book-progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; }
.book-progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--faint); padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.book-progress li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunken); font-size: 11.5px; }
.book-progress li.active { color: var(--brand-600); border-color: var(--brand); }
.book-progress li.active span { background: var(--brand); color: #fff; }
.book-progress li.done { color: var(--muted); }
.book-progress li.done span { background: var(--brand-50); color: var(--brand); }
.book-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.book-day { flex: 0 0 auto; width: 74px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .12s; }
.book-day .wd { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.book-day .md { font-family: var(--font-num); font-size: 18px; font-weight: 800; }
.book-day .n { font-size: 10.5px; color: var(--faint); }
.book-day.sat .wd { color: var(--sky); } .book-day.sun .wd { color: var(--red); }
.book-day:hover { border-color: var(--brand); }
.book-day.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.book-day.active .wd, .book-day.active .n { color: rgba(255,255,255,.85); }
.book-times-head { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.book-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.book-time { height: 56px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-num); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .12s; }
.book-time span { font-size: 12px; font-weight: 600; color: var(--faint); }
.book-time:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }
.book-picked { padding: 14px 16px; border-radius: 14px; background: var(--brand-50); margin-bottom: 18px; }
.book-picked-time { font-size: 19px; font-weight: 800; color: var(--brand-600); margin: 2px 0; }
.booking-mark { width: 60px; height: 60px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; }
.booking-mark svg { width: 30px; height: 30px; }
.booking-mark.ok { background: var(--green-50); color: var(--green); }
.booking-mark.off { background: var(--bg-sunken); color: var(--muted); }
.booking-kv { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; }

/* slots admin */
.link-url { font-size: 13px; margin-top: 4px; word-break: break-all; }
.link-url a { color: var(--brand); font-weight: 600; }
.slot-day { margin-bottom: 16px; }
.slot-day-head { font-weight: 800; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; position: sticky; top: 0; background: var(--surface); }
.slot-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.slot-row.has { background: linear-gradient(90deg, var(--brand-50), transparent 60%); border-radius: 10px; }
.slot-time { font-weight: 800; font-size: 15px; }
.slot-time span { font-size: 12px; font-weight: 600; margin-left: 2px; }
.slot-booking { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.slot-meta { display: flex; gap: 8px; align-items: center; }
.weekday-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday-pick label { cursor: pointer; }
.weekday-pick input { display: none; }
.weekday-pick span { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 13px; color: var(--muted); }
.weekday-pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); cursor: pointer; }

/* import */
.drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 12px; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .12s; }
.drop b { color: var(--brand); }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-50); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.map-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); }
.map-head { font-weight: 700; font-size: 13px; }
.map-sample { font-size: 11.5px; margin: 2px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.table tr.row-warn td { background: var(--amber-50); }
.table tr.row-off td { opacity: .5; }

/* candidate docs */
.doc-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: none; }
.doc-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.doc-icon svg { width: 18px; height: 18px; }
.doc-name { font-weight: 700; font-size: 13.5px; word-break: break-all; }
.doc-text summary { font-size: 12px; color: var(--brand); cursor: pointer; margin-top: 4px; }
.doc-text pre { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); padding: 10px; border-radius: 10px; max-height: 280px; overflow: auto; font-family: inherit; }
.stage-like { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.stage-like summary { cursor: pointer; font-size: 13.5px; }

/* memo groups */
.memo-group { margin-top: 18px; }
.memo-group:first-child { margin-top: 6px; }
.memo-group-title { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin: 0 0 10px; }
.memo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.memo-grid .memo-field { margin: 0; }
details.memo-staff { border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--surface-2); margin-top: 10px; }
details.memo-staff > summary { cursor: pointer; padding: 12px 0; font-weight: 800; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.memo-staff > summary::before { content: "＋"; color: var(--brand); font-weight: 800; }
details.memo-staff[open] > summary::before { content: "－"; }
.memo-staff-body { padding-bottom: 12px; }

/* settings */
.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.settings-nav a:hover { background: var(--bg-sunken); color: var(--ink); }
.settings-nav a.active { background: var(--brand-50); color: var(--brand-600); }
.settings-card { scroll-margin-top: 20px; }
.settings-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin: 20px -24px -4px; padding: 16px 24px 0; }
.set-field { margin-bottom: 12px; }
.set-sub { font-size: 12.5px; font-weight: 800; color: var(--ink); margin: 20px 0 10px; }
.input-affix { display: flex; align-items: center; gap: 6px; }
.input-affix span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.source-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.source-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; cursor: pointer; }
.source-opt input { margin-top: 3px; accent-color: var(--brand); }
.source-opt > span { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.source-opt .muted { font-size: 12px; line-height: 1.6; }
.source-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.add-company summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.switch input { display: none; }
.switch-ui { width: 40px; height: 23px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex-shrink: 0; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { left: 20px; }
.perm-box { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.hook-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.snippet { background: #1d2523; color: #d9ece8; border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; }
.snippet .faint { color: #9db5b0; }
.snippet pre { margin: 0; font-size: 11.5px; line-height: 1.55; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.howto { margin: 0 0 16px; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--muted); }

dialog.modal { border: none; border-radius: 20px; padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(20,30,28,.25); }
dialog.modal::backdrop { background: rgba(20,30,28,.35); }

@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; }
  .source-pick, .memo-grid { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 80px 1fr; }
  .slot-meta { grid-column: 2; }
  .settings-foot { margin: 16px -18px 0; padding: 14px 18px 0; }
}
.check input { width: 15px; height: 15px; accent-color: var(--brand); margin: 0; }
.check span { white-space: nowrap; }
/* v4: AI・資料 */
.memo-tools { gap: 8px; margin: 4px 0 6px; }
.tool-box { border: 1px solid var(--brand); background: var(--brand-50); border-radius: 14px; padding: 12px 14px; margin: 8px 0 4px; }
.tool-box textarea { background: #fff; }
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,30,28,.18); padding: 6px; }
.menu button, .menu a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.menu button span, .menu a span { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.menu button:hover, .menu a:hover { background: var(--bg-sunken); }
.menu button[disabled] { opacity: .7; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.doc-layout { display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.doc-preview-wrap { position: sticky; top: 16px; }
.doc-frame { width: 100%; aspect-ratio: 1123 / 820; border: 1px solid var(--line); border-radius: 14px; background: #5f6368; }
.doc-frame.portrait { aspect-ratio: 794 / 1150; max-height: 86vh; }
.page-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: 1fr; } .doc-preview-wrap { position: static; } }

/* ---------- v5 報告メール・共有ページ ---------- */
.mail-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.mail-sessions { padding: 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.mail-sessions-head { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .06em; padding: 8px 12px 6px; }
.mail-session { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.mail-session:hover { background: var(--bg-sunken); }
.mail-session.active { background: var(--brand-50); border-color: var(--brand); }
.mail-session .badge { font-size: 10.5px; }
.mail-members summary { cursor: pointer; padding: 6px 0; }
.mail-member { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mail-member.off { opacity: .45; }
.mail-member input { width: 16px; height: 16px; accent-color: var(--brand); }
.mail-body { font-size: 13.5px; line-height: 1.75; }
.mt-4 { margin-top: 4px; }
.share-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.share-list { padding: 10px; position: sticky; top: 16px; }
.sh-profile { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 16px 0 6px; font-size: 13.5px; }
.sh-profile dt { color: var(--muted); }
.sh-stage { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.sh-stage h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sh-stage h3 .faint { font-size: 12px; font-weight: 500; }
.sh-q { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.sh-a { font-size: 14px; line-height: 1.75; }
@media (max-width: 900px) { .mail-layout, .share-layout { grid-template-columns: 1fr; } .mail-sessions, .share-list { position: static; max-height: none; } }
.status-edit { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px dashed transparent; border-radius: 99px; padding: 2px 6px 2px 0; cursor: pointer; color: var(--muted); }
.status-edit:hover { border-color: var(--line-strong, #cfd6d3); background: var(--bg-sunken); }
.st-group { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: start; margin-top: 8px; }
.st-group-name { font-size: 12px; color: var(--muted); font-weight: 700; padding-top: 6px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.st-chip:hover { border-color: var(--brand); }
.st-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.status-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.status-log li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stats-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 14px; }
.stats-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.stats-f .select, .stats-f .input { height: 34px; min-width: 120px; font-weight: 500; }
.stats-table th, .stats-table td { white-space: nowrap; padding: 8px 10px; }
.stats-table thead th { font-size: 12px; }
.stats-table th.c { text-align: center; }
.stats-table .grp { border-left: 1px solid var(--line); }
.stats-table th.sub { color: var(--muted); font-weight: 600; }
.stats-table tr.total { background: var(--brand-50); font-weight: 800; }
.stats-table .pct { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tab { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.stage-tab:hover { color: var(--ink); }
.stage-tab.active { background: var(--ink, #18211f); border-color: var(--ink, #18211f); color: #fff; }
.stage-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: #c9cfcd; }
.stage-tab .dot.on { background: #2fb36d; }
.wish-toggle { border-top: 1px solid var(--line); padding-top: 14px; }
.wish-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.wish-item.done { opacity: .55; }
.wish-list { margin: 8px 0 4px 18px; font-size: 13.5px; line-height: 1.7; }
.book-wish-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--bg-sunken); }
.book-wish-cta p { margin: 2px 0 0; font-size: 13px; }
.wish-row { display: grid; grid-template-columns: 96px 1fr 110px auto 110px; gap: 8px; align-items: center; }
.wish-n { font-weight: 800; font-size: 13px; display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .wish-row { grid-template-columns: 1fr 1fr auto 1fr; } .wish-n { grid-column: 1 / -1; } .wish-row [data-w=date] { grid-column: 1 / -1; } }

/* ---------- 競合集計 ---------- */
.rs-hist { display: block; width: 100%; text-align: left; border: 1px solid var(--line, #e7e3da); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.rs-hist b { display: block; font-size: 13px; }
.rs-hist span { font-size: 11.5px; color: var(--muted, #6b716f); }
.rs-hist.on { border-color: #1f6f68; box-shadow: 0 0 0 2px rgba(31,111,104,.12); }
.rs-mentions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rs-m { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #e7e3da); border-radius: 12px; padding: 10px 12px; background: #fff; cursor: pointer; }
.rs-m input { margin-top: 3px; }
.rs-m b { font-size: 13.5px; }
.rs-m em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #1f6f68; margin-left: 6px; }
.rs-m small { display: block; font-size: 11.5px; color: var(--muted, #6b716f); margin-top: 3px; line-height: 1.5; }
.rs-m .ok { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #1f6f68; background: #dbede8; border-radius: 99px; padding: 1px 8px; }
.rs-table { font-size: 12px; }
.rs-table th, .rs-table td { vertical-align: top; min-width: 110px; }
.rs-table tbody th { min-width: 140px; }
.rs-table tr.own td, .rs-table tr.own th { background: #eaf2f0; }
.rs-cell { cursor: pointer; }
.rs-cell:hover { background: #faf8f3; }
.rs-cell small { display: block; font-size: 10.5px; margin-top: 2px; }
.rs-table .cf { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 0 7px; }
.c-high { background: #dbede8; color: #1f6f68; } .c-mid { background: #eef0e2; color: #5d6a1f; } .c-low { background: #f7e4dd; color: #a5452c; } .c-man { background: #e7e4f3; color: #4a3f8a; } .c-none { background: #efece5; color: #9a9e9c; }
.pick-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #e7e3da); border-radius: 10px; padding: 8px 12px; }
.doc-frame.slide43 { aspect-ratio: 4 / 3; }
#rs-main .table-wrap { overflow-x: auto; }
.rs-table { table-layout: fixed; width: max-content; }
.rs-table th, .rs-table td { width: 150px; }
.rs-table td > div { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rs-table small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-table tr.own td > div { -webkit-line-clamp: 3; }

/* ---------- カレンダー ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.cal-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cal-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--ev); }
.cal-chip.off { opacity: .4; text-decoration: line-through; }
.c1 { --ev: #1f6f68; --evl: #e3f0ed; } .c2 { --ev: #7a8f2e; --evl: #eef2dc; } .c3 { --ev: #b9862b; --evl: #f8eedb; }
.c4 { --ev: #3b6fb6; --evl: #e3ecf7; } .c5 { --ev: #8a4fb0; --evl: #f0e6f6; } .c6 { --ev: #c4573a; --evl: #f8e5df; } .c7 { --ev: #5b6472; --evl: #eceef1; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cal-card { padding: 14px; }
.cal-head, .cal-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head div { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0 8px; }
.cal-head .sun, .cal-cell.sun .cal-d { color: #c4573a; } .cal-head .sat, .cal-cell.sat .cal-d { color: #3b6fb6; }
.cal-cell { min-height: 112px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.cal-cell:hover { border-color: #1f6f68; }
.cal-cell.blank { background: transparent; border: none; cursor: default; }
.cal-cell.today .cal-d { background: #1f6f68; color: #fff !important; border-radius: 99px; padding: 0 7px; }
.cal-cell.sel { border-color: #1f6f68; box-shadow: 0 0 0 3px rgba(31,111,104,.15); }
.cal-d { font-family: var(--font-num); font-size: 12.5px; font-weight: 700; align-self: flex-start; margin-bottom: 2px; }
.cal-ev { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.35; background: var(--evl); border-left: 3px solid var(--ev); border-radius: 4px; padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.cal-ev b { font-family: var(--font-num); font-weight: 700; color: var(--ev); }
.cal-ev em { font-style: normal; margin-left: auto; font-weight: 700; }
.cal-ev.x { opacity: .45; text-decoration: line-through; }
.cal-more { font-size: 10.5px; color: var(--muted); padding-left: 4px; }
.cal-day { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.cal-group { border: 1px solid var(--line); border-left: 4px solid var(--ev); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.cal-group header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--evl); flex-wrap: wrap; }
.cal-gt { font-family: var(--font-num); font-weight: 800; color: var(--ev); }
.cal-gn { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: auto; }
.cal-group ul { list-style: none; margin: 0; padding: 0; }
.cal-group li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); }
.cal-group li > a:first-child { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.cal-group li b { display: block; font-size: 13.5px; }
.cal-group li small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-group li.x b { text-decoration: line-through; color: var(--muted); }
.cal-st { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } .cal-day { position: static; max-height: none; } }
@media (max-width: 700px) { .cal-cell { min-height: 64px; } .cal-ev { font-size: 0; padding: 0; height: 5px; border-left: none; background: var(--ev); } .cal-more { display: none; } }

/* ---------- まとめて入力 ---------- */
.gm-cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 10px; height: calc(100vh - 150px); }
.gm-cols.wide { grid-template-columns: repeat(var(--n, 2), 520px); overflow-x: auto; }
.gm-col { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; min-width: 0; }
.gm-col iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 埋め込み表示：左メニューと右の申し送りを隠して、入力欄だけにする */
html.embed .sidebar, html.embed .mobile-nav, html.embed .memo-side, html.embed nav[aria-label="パンくず"] { display: none !important; }
html.embed .main { margin-left: 0; }
html.embed .main > * { padding: 10px !important; }
html.embed .memo-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
html.embed .memo-layout > * { min-width: 0; }
html.embed #memo-tabs, html.embed #memo-tools { display: none !important; }
html.embed #memo-meta { display: none; }
html.embed body { overflow-x: hidden; }
html.embed .savebar .kbd { display: none; }
html.embed .card { padding: 14px; border-radius: 12px; }
html.embed .savebar { position: sticky; bottom: 0; left: 0; right: 0; }
/* ダッシュボード（ブロック形式）：選考の見出し */
.fb-stage { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin: 12px 0 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fb-stage:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* ---------- 面接の準備・追加質問・会社資料 ---------- */
.up-drop { flex-direction: column; gap: 6px; min-height: 160px; }
.prep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.prep-side { position: sticky; top: 16px; }
@media (max-width: 1100px) { .prep-layout { grid-template-columns: 1fr; } .prep-side { position: static; } }
.prep-sheet { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #3a403f; }
.prep-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.prep-img { max-width: 100%; max-height: 260px; border-radius: 8px; margin-top: 6px; border: 1px solid var(--line); }
.prep-ol { margin: 4px 0 0 18px; font-size: 13px; line-height: 1.7; }
.prep-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.prep-topic { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.prep-route { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.prep-chat { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.prep-chat-log { flex: 1; overflow: auto; min-height: 220px; max-height: 58vh; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.chat-msg { font-size: 13px; line-height: 1.7; padding: 9px 12px; border-radius: 12px; background: #f6f5f1; }
.chat-msg.me { background: var(--brand-50); align-self: flex-end; max-width: 90%; }
.chat-msg .who { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.chat-input { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.spinner-sm { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.fu-wrap { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.fu-item { border-left: 3px solid var(--brand-100); padding: 6px 0 6px 12px; }
.fu-item .fu-q { font-size: 12.5px; font-weight: 700; color: var(--brand-600); display: flex; gap: 6px; align-items: center; }
.fu-item .fu-q input { flex: 1; font-weight: 700; }
.fu-item .fu-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fu-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fu-cands { border: 1px solid var(--brand-100); background: #fbfdfc; border-radius: 12px; padding: 10px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.fu-cand { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.fu-cand:last-child { border-bottom: none; padding-bottom: 0; }
.fu-cand .q { font-weight: 700; font-size: 13.5px; }
.fu-cand .why { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.fu-cand .ev { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fu-cand .re { font-size: 11.5px; color: #9a5a00; background: #fff6e5; border-radius: 6px; padding: 3px 8px; margin-top: 4px; }
.kb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kb-row:last-child { border-bottom: none; }
.kb-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.kb-pages { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: 12.5px; }
.kb-pages h4 { font-size: 12px; color: var(--brand-600); margin: 10px 0 4px; }
.kb-pages pre { white-space: pre-wrap; font-family: inherit; margin: 0; color: var(--ink-2); }
.kb-conf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 6px; }
.kb-conf > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; }
.bar-chart { display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: grid; grid-template-columns: 28px minmax(120px, 220px) 1fr 90px; gap: 8px; align-items: center; font-size: 12.5px; }
.bar-row .rk { color: var(--muted); font-weight: 700; text-align: right; }
.bar-row .tr { height: 14px; background: #f1efe9; border-radius: 4px; overflow: hidden; }
.bar-row .tr i { display: block; height: 100%; background: #b9c8c5; border-radius: 4px; }
.bar-row.own { font-weight: 800; color: var(--accent); }
.bar-row.own .tr i { background: var(--accent); }
.bar-row .vl { text-align: right; font-variant-numeric: tabular-nums; }
.trend-up { color: #b3361e; font-weight: 700; } .trend-down { color: var(--brand-600); font-weight: 700; } .trend-flat { color: var(--muted); }
.input-sm { padding: 5px 9px; font-size: 13px; }

/* 週間報告・媒体の送受信 */
.notice { padding: 10px 12px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line); background: var(--surface); }
.notice-red { background: var(--red-50); border-color: #f1c4c4; color: var(--red); }
.notice-amber { background: #fff6e5; border-color: #f0d9a8; color: #8a5a00; }
.text-red { color: var(--red); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.ml-8 { margin-left: 8px; }
.mt-4 { margin-top: 4px; }
#md-queue textarea, #md-switch textarea { width: 100%; font: inherit; }
