:root {
  --ink: #17231e;
  --ink-2: #33443c;
  --muted: #708079;
  --muted-2: #95a39c;
  --brand: #0f6b5c;
  --brand-deep: #0a4c41;
  --brand-bright: #178a73;
  --brand-soft: #e6f2ed;
  --brand-soft-2: #d5eae3;
  --accent: #d99a3c;
  --accent-soft: #fbf1df;
  --bg: #f3f5f1;
  --card: #ffffff;
  --line: #e2e8e3;
  --line-2: #eef2ee;
  --danger: #bb413a;
  --danger-soft: #fbeceb;
  --warn: #a86912;
  --warn-soft: #fdf3e2;
  --ok: #147a5b;
  --ok-soft: #e6f4ee;
  --shadow-sm: 0 1px 2px rgba(20, 45, 35, .04), 0 4px 12px rgba(20, 45, 35, .035);
  --shadow: 0 2px 6px rgba(20, 45, 35, .05), 0 16px 42px rgba(20, 45, 35, .08);
  --shadow-lg: 0 30px 80px rgba(7, 35, 28, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 250px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 78% -10%, rgba(23, 138, 115, .09), transparent 65%),
    radial-gradient(600px 380px at -5% 100%, rgba(217, 154, 60, .07), transparent 70%);
}
a { color: var(--brand); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; flex: 0 0 auto; }
img { max-width: 100%; }
::selection { background: var(--brand-soft-2); }

/* ------------------------------------------------------------ shell */
.shell { display: flex; min-height: 100dvh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  color: #e8f3ef;
  background:
    radial-gradient(420px 280px at 10% -5%, rgba(41, 168, 139, .34), transparent 65%),
    radial-gradient(340px 320px at 110% 90%, rgba(217, 154, 60, .13), transparent 70%),
    linear-gradient(168deg, #0b2e27 0%, #0c3c32 55%, #0a2a24 100%);
  overflow: hidden;
  z-index: 40;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  left: -160px;
  bottom: 40px;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, .025), 0 0 0 104px rgba(255, 255, 255, .018);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 24px; position: relative; z-index: 1; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.brand-text strong { display: block; font-size: 16px; letter-spacing: .06em; font-weight: 700; }
.brand-text span { display: block; font-size: 10.5px; color: rgba(232, 243, 239, .55); letter-spacing: .22em; margin-top: 2px; }
.side-label {
  position: relative; z-index: 1;
  font-size: 10.5px; letter-spacing: .2em; color: rgba(232, 243, 239, .38);
  padding: 0 14px; margin: 14px 0 8px;
}
.nav { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 11px;
  color: rgba(232, 243, 239, .68);
  font-size: 14px; border: 0; background: transparent; width: 100%; text-align: left;
  transition: .18s ease;
}
.nav-item svg { width: 19px; height: 19px; opacity: .82; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.nav-item.active::before {
  content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--accent);
  margin-left: -14px; margin-right: 10px; box-shadow: 0 0 12px rgba(217, 154, 60, .55);
}
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: #271d0a; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-foot { margin-top: auto; position: relative; z-index: 1; }
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.avatar {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #2ba88c, #0f6b5c);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.avatar.amber { background: linear-gradient(145deg, #edb95e, #c9872b); color: #2b1d05; }
.avatar.soft { background: var(--brand-soft); color: var(--brand); }
.side-user-info { min-width: 0; }
.side-user-info strong { display: block; font-size: 13px; font-weight: 600; color: #eef7f3; }
.side-user-info span { font-size: 11px; color: rgba(232, 243, 239, .48); }
.side-user button { margin-left: auto; background: transparent; border: 0; color: rgba(232, 243, 239, .5); padding: 6px; border-radius: 8px; }
.side-user button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; padding: 26px 34px 70px; }
.main-inner { max-width: 1240px; margin: 0 auto; }
.mobile-top { display: none; }
.bottom-nav { display: none; }

/* ------------------------------------------------------------ login */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-visual {
  position: relative; overflow: hidden; color: #fff; padding: 54px 58px;
  background:
    radial-gradient(700px 500px at 15% 5%, rgba(61, 194, 163, .38), transparent 62%),
    radial-gradient(500px 460px at 100% 100%, rgba(217, 154, 60, .22), transparent 70%),
    linear-gradient(150deg, #07271f 0%, #0b4237 48%, #0e5647 100%);
  display: flex; flex-direction: column;
}
.login-visual::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -200px; top: 90px; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .022), 0 0 0 210px rgba(255, 255, 255, .014);
}
.login-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .10) .8px, transparent .8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, transparent 20%, #000 100%);
  opacity: .4; pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.login-brand img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.login-brand strong { display: block; font-size: 17px; letter-spacing: .05em; }
.login-brand span { display: block; font-size: 10.5px; letter-spacing: .26em; color: rgba(255, 255, 255, .52); margin-top: 2px; }
.login-copy { margin: auto 0; position: relative; z-index: 2; max-width: 520px; padding: 40px 0; }
.login-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  font-size: 11.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .78);
}
.login-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #6fe0bd; box-shadow: 0 0 10px #6fe0bd; }
.login-copy h1 { font-size: clamp(30px, 2.9vw, 40px); line-height: 1.3; margin: 22px 0 16px; letter-spacing: .01em; font-weight: 700; }
.login-copy h1 em { font-style: normal; color: #f0bd68; white-space: nowrap; }
.login-copy p { color: rgba(255, 255, 255, .62); font-size: 15px; line-height: 1.85; max-width: 430px; margin: 0; }
.login-flow { display: flex; gap: 0; margin-top: 36px; }
.login-step { flex: 1; position: relative; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); padding-right: 14px; }
.login-step::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #f0bd68; box-shadow: 0 0 0 4px rgba(240, 189, 104, .14);
}
.login-step b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.login-step span { font-size: 11.5px; color: rgba(255, 255, 255, .48); }
.login-foot { position: relative; z-index: 2; font-size: 11.5px; color: rgba(255, 255, 255, .34); letter-spacing: .04em; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: #fafbf8; }
.login-card { width: min(410px, 100%); }
.login-card .eyebrow { color: var(--brand); }
.login-card h2 { font-size: 28px; margin: 8px 0 6px; letter-spacing: -.01em; }
.login-card .sub { color: var(--muted); margin: 0 0 28px; font-size: 13.5px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; height: 46px; margin-top: 6px; font-size: 15px; }
.login-error {
  display: none; margin: 0 0 14px; padding: 10px 13px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger); font-size: 12.5px;
  border: 1px solid #f3d3d1;
}
.login-error.show { display: block; }
.login-hint { margin-top: 22px; padding: 13px 15px; border-radius: 12px; background: #eef4f0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-hint b { color: var(--ink-2); }

/* ------------------------------------------------------------ generic */
.eyebrow {
  font-size: 10.5px; letter-spacing: .2em; color: var(--muted-2);
  text-transform: uppercase; font-weight: 600;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; margin: 4px 0 0; letter-spacing: -.015em; font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.card-pad { padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 16px; margin: 0; font-weight: 650; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.section-head .link { font-size: 12.5px; color: var(--brand); background: none; border: 0; padding: 4px; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 550;
  transition: .16s ease; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: #cfdad3; background: #fbfcfa; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-primary {
  background: linear-gradient(145deg, var(--brand-bright), var(--brand)); color: #fff;
  border-color: transparent; box-shadow: 0 8px 20px rgba(15, 107, 92, .2);
}
.btn-primary:hover { background: linear-gradient(145deg, #1a9a81, #0d6153); border-color: transparent; }
.btn-soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn-soft:hover { background: var(--brand-soft-2); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef3ef; color: var(--ink); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #f0d3d0; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); border-color: #e9c1bd; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.icon-btn:hover { background: #eef3ef; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.field > label .req { color: var(--danger); font-weight: 700; }
.field .hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }
.input, .textarea, .select {
  width: 100%; border: 1px solid #dce4de; background: #fff; border-radius: 10px;
  padding: 10px 12px; outline: none; transition: .16s ease; font-size: 14px; min-height: 42px;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23708079' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 107, 92, .10); }
.input::placeholder, .textarea::placeholder { color: #b2beb7; }
.input:disabled { background: #f6f8f5; color: var(--muted); }
.field.error .input, .field.error .textarea, .field.error .select { border-color: #d97972; box-shadow: 0 0 0 3px rgba(187, 65, 58, .08); }
.field .err-msg { font-size: 11.5px; color: var(--danger); display: none; }
.field.error .err-msg { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }
.switch { position: relative; width: 40px; height: 23px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d7dfd9; transition: .18s; }
.switch i::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(17px); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 550; line-height: 1.5; white-space: nowrap;
  background: #eef2ef; color: var(--muted);
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge.no-dot::before { display: none; }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.amber { background: var(--warn-soft); color: var(--warn); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: #e9f0f8; color: #2b5e8e; }
.badge.gray { background: #eef2ef; color: var(--muted); }
.badge.outline { background: transparent; border: 1px solid var(--line); }

/* home */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  padding: 30px 32px; margin-bottom: 20px;
  background:
    radial-gradient(520px 260px at 92% -20%, rgba(94, 210, 181, .36), transparent 60%),
    radial-gradient(380px 260px at 70% 130%, rgba(217, 154, 60, .20), transparent 70%),
    linear-gradient(135deg, #0a3c32 0%, #0f6b5c 62%, #117561 100%);
  box-shadow: 0 20px 50px rgba(10, 60, 50, .18);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hero::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -180px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .04), 0 0 0 100px rgba(255, 255, 255, .025);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) .8px, transparent .8px);
  background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); opacity: .25;
}
.hero-main { position: relative; z-index: 1; max-width: 650px; }
.hero .eyebrow { color: rgba(255, 255, 255, .52); }
.hero h1 { font-size: clamp(23px, 2.4vw, 32px); line-height: 1.35; margin: 8px 0 8px; font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: #f2c374; }
.hero p { margin: 0; color: rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.8; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.hero-actions .btn-primary:hover { background: #f1f7f4; }
.hero-actions .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.hero-actions .btn:hover { background: rgba(255, 255, 255, .16); }
.hero-side { position: relative; z-index: 1; flex: 0 0 auto; }
.hero-date {
  width: 120px; padding: 14px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}
.hero-date .d { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.hero-date .m { font-size: 12px; color: rgba(255, 255, 255, .62); margin-top: 6px; letter-spacing: .08em; }
.hero-date .w { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 11px; color: #f2c374; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }

/* 下一场会议：首页最醒目的入口 */
.next-meeting {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px;
  padding: 24px 26px; margin-bottom: 18px; border-radius: 22px; cursor: pointer;
  color: #fff; background:
    radial-gradient(520px 240px at 100% -30%, rgba(240, 189, 104, .28), transparent 62%),
    linear-gradient(120deg, #082f27 0%, #0e5a4b 58%, #117561 100%);
  box-shadow: 0 18px 44px rgba(8, 47, 39, .2);
}
.next-meeting::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  right: -100px; top: -150px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.02);
  pointer-events: none;
}
.next-meeting::after {
  content: ""; position: absolute; width: 340px; height: 180px; right: -40px; bottom: -120px;
  background: radial-gradient(ellipse, rgba(240, 189, 104, .18), transparent 70%); pointer-events: none;
}
.next-date {
  position: relative; z-index: 1; flex: 0 0 94px; text-align: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px; padding: 10px 8px 9px; backdrop-filter: blur(8px);
}
.next-date .nd-kicker { font-size: 9px; letter-spacing: .16em; color: #f0c579; font-weight: 700; }
.next-date .nd-day { font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-top: 3px; }
.next-date .nd-month { font-size: 11px; color: rgba(255,255,255,.62); }
.next-date .nd-week { font-size: 10px; color: #f0c579; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); }
.next-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.next-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.next-countdown {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  background: #f0bd68; color: #352307; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.next-source { font-size: 10.5px; color: rgba(255,255,255,.52); letter-spacing: .04em; }
.next-title {
  margin: 0 0 10px; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; font-weight: 650; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.next-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 12px; color: rgba(255,255,255,.68); }
.next-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.next-meta svg { width: 13px; height: 13px; opacity: .78; }
.next-cta {
  position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 16px; border-radius: 11px; background: #fff; color: var(--brand-deep);
  font-size: 12.5px; font-weight: 650; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.next-cta svg { width: 14px; height: 14px; }
.next-meeting:hover .next-cta { background: #f4faf7; }
.next-meeting:hover .next-title { color: #ffe1a8; }

.meeting-line.prominent { padding: 15px 0; }
.meeting-line.prominent .date-tile { width: 58px; padding: 9px 0 8px; border-radius: 13px; background: #f6f9f5; }
.meeting-line.prominent .date-tile .d { font-size: 23px; }
.meeting-line.prominent .ml-title {
  font-size: 14.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55;
}
.meeting-line.prominent .ml-meta { font-size: 11.5px; margin-top: 6px; }
.meeting-line.prominent .ml-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.countdown {
  display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 650;
  color: var(--warn); background: var(--warn-soft); white-space: nowrap;
}
.countdown.today { color: #fff; background: var(--brand); }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px 17px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.stat-ico svg { width: 15px; height: 15px; }
.stat-ico.amber { background: var(--accent-soft); color: var(--warn); }
.stat-ico.blue { background: #eaf1f7; color: #356b96; }
.stat-ico.red { background: var(--danger-soft); color: var(--danger); }
.stat-num { font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 12px; color: var(--muted-2); font-weight: 500; margin-left: 4px; }
.stat-foot { font-size: 11px; color: var(--muted-2); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.home-grid > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.meeting-line { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-2); align-items: flex-start; cursor: pointer; min-width: 0; overflow: hidden; }
.meeting-line:first-of-type { border-top: 0; }
.meeting-line:hover .ml-title { color: var(--brand); }
.date-tile {
  width: 52px; flex: 0 0 auto; border-radius: 11px; background: #f2f6f2; border: 1px solid #e8eee9;
  text-align: center; padding: 7px 0 6px;
}
.date-tile .d { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.date-tile .m { font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: .04em; }
.date-tile.today { background: var(--brand-soft); border-color: #cfe6dd; }
.date-tile.today .d, .date-tile.today .m { color: var(--brand); }
.ml-body { min-width: 0; flex: 1; }
.ml-title { font-size: 13.8px; font-weight: 600; color: var(--ink); margin: 0 0 4px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .15s; }
.ml-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }
.ml-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ml-meta svg { width: 12px; height: 12px; opacity: .7; }
.ml-side { flex: 0 1 auto; text-align: right; min-width: 0; max-width: 116px; }
.ml-side .time { font-size: 12px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick-card { display: grid; grid-template-columns: 1fr; gap: 8px; }
.quick {
  border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; padding: 11px 12px;
  text-align: left; transition: .16s ease; display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.quick:hover { border-color: #cfe0d7; background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quick .qi { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.quick .qi svg { width: 16px; height: 16px; }
.quick .qt { min-width: 0; }
.quick .qt b { display: block; font-size: 12.5px; font-weight: 600; }
.quick .qt span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 20px;
  background: linear-gradient(145deg, #fff8ec, #fdf1dc); border: 1px solid #f2e0c0;
}
.ai-card::after {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  right: -50px; bottom: -70px; background: rgba(217, 154, 60, .14);
}
.ai-card .ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .12em; color: #96651e; font-weight: 700; }
.ai-card h3 { margin: 8px 0 6px; font-size: 16px; }
.ai-card p { margin: 0 0 14px; color: #85704f; font-size: 12px; line-height: 1.7; }
.ai-card .btn { position: relative; z-index: 1; background: #fff; border-color: #ecd6b0; color: #8a5a12; }

/* tables */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1; min-width: 190px; max-width: 330px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.toolbar .search .input { padding-left: 36px; }
.toolbar .spacer { flex: 1; }
.filter-select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 11px; background: #fff; font-size: 12.5px; color: var(--ink-2); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23708079' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .04em; color: var(--muted);
  background: #f7f9f6; padding: 11px 14px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { cursor: pointer; transition: .12s; }
table.data tbody tr:hover { background: #f8fbf8; }
table.data .t-title { font-weight: 600; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data .t-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 330px; }
table.data .num { font-variant-numeric: tabular-nums; color: var(--muted); }
table.data .date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data .date-cell b { display: block; font-weight: 600; font-size: 12.5px; }
table.data .date-cell span { display: block; font-size: 11px; color: var(--muted); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.empty { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty .eico { width: 58px; height: 58px; border-radius: 18px; background: #f1f5f1; display: inline-flex; align-items: center; justify-content: center; color: #a7b5ac; margin-bottom: 12px; }
.empty .eico svg { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }
.empty p { margin: 0 0 14px; font-size: 12.5px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; flex-wrap: wrap; }
.pager .pinfo { font-size: 12px; color: var(--muted); }
.pager .pnums { display: flex; gap: 5px; align-items: center; }
.pager button { min-width: 31px; height: 31px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink-2); }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; }
.mobile-list { display: none; }
.meeting-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.meeting-card .mc-top { display: flex; gap: 12px; align-items: flex-start; }
.meeting-card .mc-title { font-weight: 650; font-size: 14px; line-height: 1.5; flex: 1; min-width: 0; }
.meeting-card .mc-meta { display: flex; gap: 10px; color: var(--muted); font-size: 11.5px; margin-top: 10px; flex-wrap: wrap; }
.meeting-card .mc-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.meeting-card .mc-meta svg { width: 12px; height: 12px; opacity: .7; flex: 0 0 auto; }
.meeting-card .mc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.meeting-card .mc-bottom span { display: inline-flex; align-items: center; gap: 3px; }
.meeting-card .mc-bottom svg { width: 13px; height: 13px; }
.t-source { font-size: 12px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* form */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.form-card { padding: 24px; }
.form-section + .form-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.form-section-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.form-section-head .n {
  width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; margin-top: 1px;
}
.form-section-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.form-section-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.aside-stack { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.tip-card { padding: 17px; border-radius: 15px; background: #f7faf7; border: 1px solid var(--line); }
.tip-card h4 { margin: 0 0 8px; font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.tip-card h4 svg { width: 15px; height: 15px; color: var(--brand); }
.tip-card ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11.5px; line-height: 1.9; }
.tip-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.ai-launch {
  border-radius: 16px; padding: 17px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #123f35, #0f6b5c); border: 1px solid rgba(255,255,255,.08);
}
.ai-launch::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -50px; bottom: -65px; background: rgba(240, 189, 104, .2); }
.ai-launch .tag { font-size: 10px; letter-spacing: .14em; color: #f0c579; font-weight: 700; }
.ai-launch h4 { margin: 7px 0 5px; font-size: 14px; }
.ai-launch p { margin: 0 0 12px; font-size: 11.5px; color: rgba(255,255,255,.6); line-height: 1.65; }
.ai-launch .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; width: 100%; position: relative; z-index: 1; }
.ai-launch .btn:hover { background: rgba(255,255,255,.17); }

.picker { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.picker-head { padding: 11px 12px; background: #f8faf7; border-bottom: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.picker-search { position: relative; flex: 1; min-width: 130px; }
.picker-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted-2); }
.picker-search input { height: 32px; padding: 0 10px 0 29px; border: 1px solid var(--line); border-radius: 8px; width: 100%; font-size: 12px; outline: none; background: #fff; }
.picker-search input:focus { border-color: var(--brand); }
.picker-head .btn { height: 30px; font-size: 11.5px; padding: 0 9px; }
.picker-list { max-height: 278px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pick {
  display: flex; gap: 9px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: .12s;
}
.pick:hover { background: #f8fbf8; }
.pick.checked { background: #eef7f2; }
.pick .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.pick .pi { min-width: 0; flex: 1; }
.pick .pi b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pi span { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick input { width: 15px; height: 15px; accent-color: var(--brand); flex: 0 0 auto; }
.picker-foot { padding: 9px 12px; background: #fbfcfa; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.picker-foot b { color: var(--brand); }
.picker-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 12px; grid-column: span 2; }
.selected-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sel-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 3px 4px 3px 9px; font-size: 11px; }
.sel-chip button { border: 0; background: transparent; color: var(--brand); opacity: .6; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sel-chip button:hover { background: rgba(15,107,92,.12); opacity: 1; }

.form-bar {
  position: sticky; bottom: 14px; z-index: 10; margin-top: 18px; padding: 12px 16px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.form-bar .fb-info { font-size: 12px; color: var(--muted); min-width: 0; }
.form-bar .fb-info b { color: var(--ink-2); }
.form-bar .fb-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* detail */
.backline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; border: 0; background: none; padding: 0; }
.backline:hover { color: var(--brand); }
.backline svg { width: 15px; height: 15px; }
.detail-hero { padding: 26px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.detail-hero::after { content: ""; position: absolute; right: 0; top: 0; width: 260px; height: 100%; background: radial-gradient(ellipse at right top, rgba(15,107,92,.07), transparent 70%); pointer-events: none; }
.dh-top { display: flex; gap: 16px; align-items: flex-start; }
.dh-date { width: 76px; flex: 0 0 auto; border-radius: 14px; background: var(--brand-soft); text-align: center; padding: 10px 0; }
.dh-date .d { font-size: 28px; line-height: 1; font-weight: 700; color: var(--brand); }
.dh-date .m { font-size: 10.5px; color: var(--brand); opacity: .7; margin-top: 4px; }
.dh-main { flex: 1; min-width: 0; }
.dh-title { font-size: clamp(19px, 2.2vw, 25px); line-height: 1.45; margin: 0 0 8px; font-weight: 700; letter-spacing: -.01em; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--muted); font-size: 12.5px; }
.dh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dh-meta svg { width: 14px; height: 14px; opacity: .65; }
.dh-actions { display: flex; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .8fr); gap: 18px; margin-top: 18px; align-items: start; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.info-item { padding: 13px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.info-item:nth-last-child(-n+2) { border-bottom: 0; }
.info-item label { display: block; font-size: 10.5px; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 3px; }
.info-item div { font-size: 13px; color: var(--ink-2); word-break: break-word; }
.info-item.full { grid-column: span 2; }
.content-block { white-space: pre-wrap; font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }
.push-summary { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; background: #f7faf7; margin-bottom: 12px; }
.push-summary .pico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.push-summary .pico svg { width: 15px; height: 15px; }
.push-summary b { display: block; font-size: 12.5px; }
.push-summary span { display: block; font-size: 11px; color: var(--muted); }
.log-list { display: flex; flex-direction: column; }
.log-item { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line-2); align-items: flex-start; font-size: 12px; }
.log-item:first-child { border-top: 0; }
.log-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: var(--ok); }
.log-dot.failed { background: var(--danger); }
.log-item .li-main { flex: 1; min-width: 0; }
.log-item .li-main b { font-weight: 600; }
.log-item .li-main span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; word-break: break-all; }
.log-item time { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.recipient-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.recipient-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: #f4f7f4; border: 1px solid var(--line-2); font-size: 11.5px; }
.recipient-chip .avatar { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; }

/* recipients */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 15px; box-shadow: var(--shadow-sm); transition: .16s; }
.rec-card:hover { border-color: #cfe0d7; box-shadow: var(--shadow); }
.rec-top { display: flex; gap: 10px; align-items: center; }
.rec-top .avatar { width: 38px; height: 38px; border-radius: 11px; }
.rec-id { flex: 1; min-width: 0; }
.rec-id b { display: block; font-size: 13.5px; }
.rec-id span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-mid { margin: 12px 0; padding: 10px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rec-mid code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10.5px; color: var(--ink-2); background: #f4f7f4; padding: 2px 5px; border-radius: 4px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-actions { display: flex; gap: 5px; justify-content: flex-end; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.guide { padding: 15px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.guide .gi { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.guide .gi svg { width: 15px; height: 15px; }
.guide b { font-size: 12.5px; display: block; margin-bottom: 4px; }
.guide p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* settings */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 22px; }
.settings-nav button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.settings-nav button svg { width: 15px; height: 15px; }
.settings-nav button:hover { background: #eef3ef; color: var(--ink); }
.settings-nav button.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.settings-panel { padding: 24px; }
.settings-panel h2 { font-size: 16px; margin: 0 0 4px; }
.settings-panel .panel-sub { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.settings-panel .form-grid { margin-bottom: 18px; }
.set-section + .set-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.set-section h3 { font-size: 13.5px; margin: 0 0 3px; display: flex; align-items: center; gap: 7px; }
.set-section h3 svg { width: 15px; height: 15px; color: var(--brand); }
.set-section .sub { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.7; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; color: var(--muted); }
.preset:hover { border-color: #cfe0d7; color: var(--brand); }
.preset.active { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.notice { display: flex; gap: 9px; padding: 11px 13px; border-radius: 10px; background: #f7faf7; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.notice svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--brand); margin-top: 1px; }
.notice.amber { background: var(--warn-soft); border-color: #f0dfc2; color: #7d5a24; }
.notice.amber svg { color: var(--warn); }
.notice.red { background: var(--danger-soft); border-color: #f0d3d0; color: #8c3833; }
.notice.red svg { color: var(--danger); }
.key-status { font-size: 11px; color: var(--var-ok, var(--ok)); display: inline-flex; align-items: center; gap: 5px; }
.key-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th { text-align: left; font-size: 10.5px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.user-table td { padding: 10px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.user-table tr:last-child td { border-bottom: 0; }
.role-chip { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #eef2ef; color: var(--muted); }
.role-chip.admin { background: var(--brand-soft); color: var(--brand); }
.audit-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.audit-row:last-child { border-bottom: 0; }
.audit-row .adot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-soft-2); margin-top: 6px; flex: 0 0 auto; }
.audit-row .amain { flex: 1; min-width: 0; }
.audit-row b { font-weight: 600; }
.audit-row span { color: var(--muted); }
.audit-row time { color: var(--muted-2); font-size: 10px; white-space: nowrap; }

/* modal */
.modal-root, #modal-root { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-root.open, #modal-root.open { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(8, 26, 21, .48); backdrop-filter: blur(4px); animation: fade .18s ease; }
.modal {
  position: relative; margin: 0; width: min(620px, 100%); max-height: min(90vh, 900px);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; animation: pop .2s cubic-bezier(.2,.8,.3,1);
}
.modal.wide { width: min(760px, 100%); }
.modal-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: flex-start; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfa; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* AI modal */
.dropzone {
  border: 1.5px dashed #cbd9d1; border-radius: 14px; background: #f8fbf8; padding: 28px 20px;
  text-align: center; transition: .16s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #f1f8f4; }
.dropzone .dz-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.dropzone .dz-ico svg { width: 21px; height: 21px; }
.dropzone b { display: block; font-size: 13px; margin-bottom: 3px; }
.dropzone p { margin: 0; font-size: 11.5px; color: var(--muted); }
.ai-file-kinds { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ai-file-kinds span { font-size: 10px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 8px; letter-spacing: .04em; }
.ai-file-meta { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.ai-doc-preview { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfa; }
.ai-doc-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-doc-ico svg { width: 20px; height: 20px; }
.ai-doc-text { font-size: 11.5px; color: var(--ink-2); line-height: 1.8; margin-top: 8px; max-height: 130px; overflow: hidden; }
.ai-preview { display: flex; gap: 14px; align-items: flex-start; }
.ai-preview img { width: 180px; max-height: 230px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #f4f7f4; }
.ai-preview .pv { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.ai-preview .pv b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 6px; }
.ai-loading { display: flex; align-items: center; gap: 10px; padding: 15px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(15,107,92,.2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.recognized-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; }
.recog-item { border-bottom: 1px solid var(--line-2); padding: 6px 0; font-size: 11.5px; }
.recog-item label { display: block; color: var(--muted-2); font-size: 10px; }
.recog-item span { color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recog-item.full { grid-column: span 2; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 18px); z-index: 200;
  background: #12251f; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: .22s;
  max-width: min(90vw, 520px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f2f2a; }
.toast.success { background: #0c5c48; }

/* loading/error */
.loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); font-size: 12px; }
.loading .spinner { width: 22px; height: 22px; border-width: 2.5px; }
.page-error { padding: 40px; text-align: center; color: var(--muted); }
.page-error b { display: block; color: var(--ink); margin-bottom: 4px; }

/* misc */
.kbd { font-size: 10px; border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 5px; border-radius: 4px; color: var(--muted); }
.notice-inline { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-size: 11.5px; }
.notice-inline svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .aside-stack { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  :root { --sidebar: 220px; }
  .main { padding: 22px 24px 80px; }
  .login-visual { padding: 40px; }
  .login-copy h1 { font-size: 34px; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .settings-nav button { white-space: nowrap; }
}
@media (max-width: 760px) {
  body { background: #f3f5f1; }
  .shell { display: block; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 0 14px calc(82px + env(safe-area-inset-bottom)); }
  .main-inner { max-width: none; }
  .mobile-top {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px;
    position: sticky; top: 0; z-index: 30; background: rgba(243, 245, 241, .9);
    backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226, 232, 227, .7);
    margin: 0 -14px 14px;
  }
  .mobile-top .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .mobile-top .mt-title { font-size: 14px; font-weight: 650; letter-spacing: .02em; }
  .mobile-top .mt-sub { font-size: 9.5px; color: var(--muted); letter-spacing: .12em; }
  .mobile-top .user { margin-left: auto; }
  .mobile-top .avatar { width: 31px; height: 31px; border-radius: 9px; font-size: 11px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 21px; }
  .page-head .sub { font-size: 11.5px; }
  .head-actions { width: 100%; }
  .hero { padding: 22px 20px; border-radius: 18px; }
  .hero-side { display: none; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 12px; }
  .hero-actions .btn { height: 36px; font-size: 12.5px; }
  .next-meeting { flex-wrap: wrap; gap: 12px; padding: 15px 16px; border-radius: 18px; margin-bottom: 14px; }
  .next-date { flex: 0 0 66px; padding: 7px 5px 6px; border-radius: 12px; }
  .next-date .nd-kicker { font-size: 8px; letter-spacing: .12em; }
  .next-date .nd-day { font-size: 28px; }
  .next-date .nd-month { font-size: 10px; }
  .next-date .nd-week { font-size: 9px; padding-top: 4px; margin-top: 4px; }
  .next-main { flex: 1 1 calc(100% - 80px); }
  .next-title { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
  .next-meta { font-size: 11px; gap: 5px 11px; }
  .next-meta svg { width: 12px; height: 12px; }
  .next-source { display: none; }
  .next-cta { width: 100%; justify-content: center; padding: 9px 12px; margin-top: 1px; }
  .meeting-line.prominent { padding: 13px 0; }
  .meeting-line.prominent .date-tile { width: 52px; }
  .meeting-line.prominent .ml-title { font-size: 13.5px; }
  .meeting-line.prominent .ml-side { max-width: 76px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat { padding: 13px; gap: 9px; }
  .stat-num { font-size: 23px; }
  .stat-label { font-size: 11px; }
  .card-pad, .form-card, .settings-panel { padding: 16px; }
  .home-grid { gap: 12px; }
  .stack { gap: 12px; }
  .toolbar { gap: 7px; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .table-wrap { display: none; }
  .mobile-list { display: block; }
  .pager { justify-content: center; }
  .pager .pinfo { width: 100%; text-align: center; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; gap: 13px; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }
  .form-card { border-radius: 16px; }
  .aside-stack { grid-template-columns: 1fr; }
  .picker-list { grid-template-columns: 1fr; max-height: 310px; }
  .picker-empty { grid-column: span 1; }
  .form-bar { bottom: calc(88px + env(safe-area-inset-bottom)); margin: 12px -2px 0; padding: 10px 12px; border-radius: 13px; }
  .form-bar .fb-info { font-size: 11px; }
  .form-bar .btn { height: 38px; padding: 0 15px; font-size: 13px; }
  .detail-hero { padding: 18px; border-radius: 16px; }
  .dh-top { gap: 12px; }
  .dh-date { width: 60px; padding: 8px 0; border-radius: 11px; }
  .dh-date .d { font-size: 22px; }
  .dh-meta { font-size: 11.5px; gap: 5px 12px; }
  .dh-actions .btn { flex: 1; }
  .detail-grid { margin-top: 12px; gap: 12px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item, .info-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-2); padding: 11px 0; }
  .info-item.full { grid-column: span 1; }
  .info-item:last-child { border-bottom: 0; }
  .content-block { font-size: 13px; }
  .rec-grid { grid-template-columns: 1fr; }
  .guide-grid { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px 5px; scrollbar-width: none; }
  .guide-grid::-webkit-scrollbar { display: none; }
  .guide { flex: 0 0 245px; padding: 12px; }
  .guide .gi { margin-bottom: 6px; }
  .guide p { font-size: 10.5px; line-height: 1.6; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(226, 232, 227, .9);
  }
  .bn-item {
    flex: 1; border: 0; background: transparent; color: var(--muted); padding: 5px 0 3px;
    display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; border-radius: 9px;
  }
  .bn-item svg { width: 20px; height: 20px; }
  .bn-item.active { color: var(--brand); }
  .bn-item.active svg { stroke-width: 2.3; }
  .bn-fab {
    flex: 0 0 58px; margin-top: -24px; background: transparent; border: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--brand); font-size: 10px;
  }
  .bn-fab .fab {
    width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(145deg, #1a9278, #0d6153);
    color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15,107,92,.32);
    border: 3px solid #f3f5f1;
  }
  .bn-fab .fab svg { width: 22px; height: 22px; }
  .login { grid-template-columns: 1fr; }
  .login-visual { padding: 26px 22px 30px; min-height: auto; }
  .login-copy { padding: 28px 0 4px; margin: 0; }
  .login-copy h1 { font-size: 27px; margin: 16px 0 10px; }
  .login-copy p { font-size: 12.5px; }
  .login-flow { margin-top: 22px; }
  .login-step span { display: none; }
  .login-foot { display: none; }
  .login-panel { padding: 24px 20px 40px; align-items: flex-start; }
  .login-card h2 { font-size: 23px; }
  .login-hint { margin-top: 16px; }
  .modal-root, #modal-root { padding: 0; }
  .modal { margin: 0; width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; position: absolute; bottom: 0; }
  .modal-mask { background: rgba(8,26,21,.42); }
  .modal-head { padding: 16px 16px 12px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ai-preview { flex-direction: column; }
  .ai-preview img { width: 100%; max-height: 180px; }
  .ai-doc-preview { padding: 12px; }
  .ai-doc-text { max-height: 110px; }
  .recognized-grid { grid-template-columns: 1fr; }
  .recog-item.full { grid-column: span 1; }
  .settings-nav { margin: 0 -14px; padding: 0 14px 8px; border-bottom: 1px solid var(--line); }
  .settings-nav button { padding: 7px 10px; font-size: 12px; }
  .user-table { min-width: 520px; }
  .table-scroll { overflow-x: auto; }
}
@media (max-width: 390px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { gap: 7px; }
  .hero-actions .btn { flex: 1; }
  .quick-card { grid-template-columns: 1fr; }
}
