*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0D0D0C;
  --ink:     #1A1A19;
  --text:    #2C2A27;
  --warm:    #4A4845;
  --muted:   #767472;
  --sub:     #B0ADAA;
  --border:  #ECEAE7;
  --surface: #F5F4F1;
  --page:    #FAFAF8;
  --white:   #FFFFFF;
  --green:   #1A7F45;
  --green-bg:#EEFBF3;
  --orange:  #C47B1A;
  --orange-bg:#FFF8EE;
  --red:     #D1453B;
  --red-bg:  #FEF0EF;
  --blue:    #4A6FA5;
  --blue-bg: #EDF2FA;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--page);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.demo {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  margin-left: 52px;
  transition: margin-left 0.22s ease;
  position: relative;
}
.app-main.sidebar-open { margin-left: 188px; }

.app-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}


/* ═══ ONBOARDING ═══ */
#onboarding {
  position: fixed; inset: 0;
  background: var(--page);
  display: flex; flex-direction: column;
  z-index: 10000;
  transition: opacity 0.4s ease;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
#onboarding.out { opacity: 0; pointer-events: none; }

/* Top bar — logo left, step count right */
.onb-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px 0; flex-shrink: 0;
}
.onb-logo-top {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--black); letter-spacing: -0.02em; text-decoration: none;
}
.onb-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--sub); font-weight: 400;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); padding: 0; transition: color 0.15s;
}
.onb-back:hover { color: var(--text); }
.onb-step-count {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}

/* Body container */
.onb-body {
  flex: 1; width: 100%; max-width: 600px;
  margin: 0 auto; position: relative; overflow: hidden;
}

/* Panels */
.onb-panel {
  position: absolute; inset: 0; padding: 0 40px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
}
.onb-panel > * { width: 100%; }
.onb-panel::-webkit-scrollbar { width: 0; }
.onb-panel.active { opacity: 1; pointer-events: all; transform: translateY(0); }

/* Section label — matches landing .section-label */
.onb-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sub); font-weight: 500; margin-bottom: 12px;
}

/* Heading — matches landing .hero-title */
.onb-heading {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 16px; color: var(--black);
}
.onb-heading em { font-style: italic; color: var(--sub); }

/* Subtitle — matches landing .hero-sub */
.onb-sub {
  font-size: 15px; color: var(--muted); font-weight: 300;
  line-height: 1.7; margin-bottom: 32px; max-width: 420px;
  margin-left: auto; margin-right: auto;
}
.onb-sub code { font-size: 11.5px; background: var(--surface); padding: 1px 5px; border-radius: 3px; border: 1px solid var(--border); }

/* Fields */
.onb-fg { margin-bottom: 0; }
.onb-field {
  width: 100%; border: 1px solid var(--border); border-radius: 7px;
  padding: 11px 16px; font-size: 14px; font-family: var(--sans);
  color: var(--black); background: var(--white); outline: none;
  transition: border-color 0.15s; text-align: left;
}
.onb-field::placeholder { color: var(--sub); }
.onb-field:focus { border-color: var(--black); }

/* Signup stack */
.onb-signup-stack { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; width: 100%; }
.onb-btn-full { width: 100%; justify-content: center; }
.onb-divider-row { display: flex; align-items: center; gap: 14px; }
.onb-divider-line { flex: 1; height: 1px; background: var(--border); }
.onb-compat { font-size: 11.5px; color: var(--sub); margin-top: 4px; }
.onb-terms-text {
  font-size: 12px; color: var(--sub); line-height: 1.45; margin-top: 14px;
}
.onb-terms-text a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.onb-terms-text a:hover { color: var(--black); }
/* ── TRUST BUTTON + POPUP ── */
.onb-trust-btn {
  font-size: 12px; color: var(--text); cursor: pointer; background: none;
  border: none; font-family: var(--sans); transition: color 0.12s; padding: 0;
  display: flex; align-items: center; gap: 5px; margin: 20px auto 0;
  justify-content: center; width: 100%;
}
.onb-trust-btn svg { flex-shrink: 0; }
.onb-trust-btn:hover { color: var(--muted); }
.onb-trust-popup {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.onb-trust-popup.open { display: flex; }
.onb-trust-popup-backdrop {
  position: absolute; inset: 0;
}
.onb-trust-popup-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  width: 300px;
  box-shadow: 0 8px 24px rgba(13,13,12,0.09), 0 2px 6px rgba(13,13,12,0.05);
}
.onb-trust-popup-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.onb-trust-popup-header span {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sub);
}
.onb-trust-popup-close {
  margin-left: auto; background: none; border: none;
  color: var(--sub); cursor: pointer; padding: 0;
  transition: color 0.12s; line-height: 1; font-size: 15px;
}
.onb-trust-popup-close:hover { color: var(--text); }
.onb-trust-popup-body { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.onb-trust-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: var(--text); line-height: 1.5; font-weight: 400;
}
.onb-trust-item strong { font-weight: 500; }
.onb-trust-icon {
  flex-shrink: 0; margin-top: 1px; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); font-size: 10px;
}

/* Primary button — matches landing .btn-primary */
.onb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--black); color: var(--white);
  padding: 9px 22px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  font-family: var(--sans); border: none; cursor: pointer;
  transition: opacity 0.15s;
}
.onb-btn:hover { opacity: 0.85; }
.onb-btn:disabled { opacity: 0.2; cursor: default; }

/* Outline button — matches landing .btn-secondary / .nav-login */
.onb-btn-out {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: none; color: var(--text);
  padding: 9px 22px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  font-family: var(--sans); border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.15s;
}
.onb-btn-out:hover { border-color: var(--sub); }

/* Button rows */
.onb-btn-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.onb-or { font-size: 12px; color: var(--sub); }
.onb-action-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }

/* Footer links */
.onb-foot { padding-top: 24px; display: flex; align-items: center; justify-content: center; gap: 24px; position: absolute; bottom: 36px; left: 0; right: 0; }
.onb-foot-link { font-size: 12px; color: var(--sub); cursor: pointer; background: none; border: none; font-family: var(--sans); transition: color 0.12s; padding: 0; }
.onb-foot-link:hover { color: var(--muted); }

/* Tool rows */
.onb-tool-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; cursor: pointer; transition: opacity 0.12s; text-align: left; }
.onb-tool-row:hover:not(.connected) { opacity: 0.5; }
.onb-tool-icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: var(--white); flex-shrink: 0; }
.onb-tool-name { font-size: 13.5px; font-weight: 500; flex: 1; color: var(--black); }
.onb-tool-note { font-size: 11.5px; color: var(--sub); margin-top: 1px; }
.onb-tool-check { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.18s; }
.onb-tool-check.on { background: var(--black); border-color: var(--black); }

/* Categories */
.onb-cat { display: flex; align-items: center; gap: 13px; padding: 12px 0; transition: all 0.2s; user-select: none; text-align: left; border-radius: 10px; }
.onb-cat.editing { background: #fff; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.onb-cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.onb-cat-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; color: var(--black); }
.onb-cat-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; opacity: 0; transition: opacity 0.12s; }
.onb-cat:hover .onb-cat-actions { opacity: 1; }
.onb-cat-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--sub); display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: color 0.12s; }
.onb-cat-btn:hover { color: var(--black); }
.onb-cat-name[contenteditable]:focus, .onb-cat-note[contenteditable]:focus { outline: none; }
.onb-cat-note { font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.onb-cat.editing .onb-cat-actions { opacity: 1; }

/* Add label */
.onb-add-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--blue); background: none; border: none; cursor: pointer; padding: 8px 0; transition: opacity 0.15s; font-family: var(--sans); margin-top: 4px; }
.onb-add-cat:hover { opacity: 0.7; }

/* Custom form */
.onb-cf { display: none; flex-direction: column; padding: 16px 18px; text-align: left; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-top: 8px; }
.onb-cf.open { display: flex; }
.onb-cf-inp { font-size: 13px; background: transparent; border: none; padding: 10px 0; font-family: var(--sans); color: var(--black); outline: none; width: 100%; margin-bottom: 2px; resize: none; }
.onb-cf-inp::placeholder { color: var(--sub); }
.onb-cf-acts { display: flex; justify-content: flex-end; gap: 14px; padding-top: 10px; }
.onb-cf-colors { display: flex; gap: 8px; padding-bottom: 10px; }
.onb-cf-color { width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; flex-shrink: 0; outline: 2px solid transparent; outline-offset: 3px; }
.onb-cf-color:hover { transform: scale(1.15); }
.onb-cf-color.selected { outline-color: currentColor; opacity: 1; }
.onb-cf-cancel { font-size: 12px; color: var(--sub); background: none; border: none; cursor: pointer; font-family: var(--sans); }
.onb-cf-save { font-size: 12px; font-weight: 500; color: var(--black); background: none; border: none; cursor: pointer; font-family: var(--sans); }

/* Rules / preferences */
.onb-rules-outer { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow: hidden; text-align: left; }
.onb-rule-wrap { position: relative; }
.onb-rule-row { display: flex; align-items: center; gap: 8px; }
.onb-rule-tags { display: flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; }
.onb-rule-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 11.5px; color: var(--black); white-space: nowrap; }
.onb-rule-tag-del { color: var(--sub); cursor: pointer; font-size: 13px; line-height: 1; background: none; border: none; padding: 0; }
.onb-rule-input { flex: 1; border: none; outline: none; font-size: 13px; font-family: var(--sans); color: var(--black); background: transparent; padding: 10px 0; min-width: 0; }
.onb-rule-input::placeholder { color: var(--sub); }
.onb-rule-add { background: none; border: none; cursor: pointer; color: var(--sub); display: flex; padding: 4px; transition: color 0.12s; }
.onb-rule-add:hover { color: var(--black); }
.onb-rule-hint { font-size: 11px; color: var(--sub); padding: 3px 0 6px; }
.onb-picker { display: none; position: absolute; top: calc(100% + 5px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 50; width: 190px; overflow: hidden; }
.onb-picker.open { display: block; }
.onb-picker-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; font-size: 13px; cursor: pointer; transition: background 0.1s; color: var(--black); }
.onb-picker-item:hover, .onb-picker-item.focused { background: var(--surface); }
.onb-picker-icon { width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onb-rules-list { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.onb-rules-list::-webkit-scrollbar { width: 0; }
.onb-rule-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; font-size: 13px; color: var(--black); animation: onbFadeUp 0.15s ease both; }
.onb-rule-item-body { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; line-height: 1.5; }
.onb-rule-item-tag { display: inline-flex; align-items: center; gap: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }
.onb-rule-del { font-size: 16px; color: var(--sub); cursor: pointer; background: none; border: none; padding: 0; margin-top: 1px; flex-shrink: 0; }

/* Loading */
.onb-loading { display: flex; flex-direction: column; text-align: left; max-width: 360px; margin: 0 auto; width: 100%; }
.onb-ll { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0; opacity: 0; transition: opacity 0.28s ease; }
.onb-ll.visible { opacity: 1; }
.onb-ll-dot { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0; margin-top: 5px; }
.onb-ll-dot.spin { border-color: var(--black); border-top-color: transparent; animation: onbSpin 0.7s linear infinite; }
.onb-ll-dot.done { background: var(--black); border-color: var(--black); }
.onb-ll-text { font-size: 13px; font-weight: 500; color: var(--black); }
.onb-ll-text em { font-family: var(--serif); font-style: italic; }
.onb-ll-sub { font-size: 11.5px; color: var(--sub); margin-top: 2px; line-height: 1.5; }

/* Verify link actions */
.onb-verify-actions { display: flex; flex-direction: column; align-items: center; gap: 32px; }

/* Profile fields */
.onb-profile-form { display: flex; flex-direction: column; gap: 16px; max-width: 340px; margin: 0 auto; width: 100%; }
.onb-float-field { position: relative; }
.onb-float-field input {
  width: 100%; border: 1px solid var(--border); border-radius: 7px;
  padding: 14px 40px 8px 16px; font-size: 14px; font-family: var(--sans);
  color: var(--black); background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.onb-float-field input::placeholder { color: transparent; }
.onb-float-field input:focus { border-color: var(--black); }
.onb-float-field label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--sub); pointer-events: none;
  transition: all 0.15s ease; background: transparent;
  font-family: var(--sans);
}
.onb-float-field input:focus ~ label,
.onb-float-field input:not(:placeholder-shown) ~ label {
  top: 7px; transform: translateY(0); font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted); background: var(--white); padding: 0 4px; left: 12px;
}
.onb-float-field .onb-field-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--sub); pointer-events: none;
}

/* Welcome steps */
.onb-welcome-steps { display: flex; flex-direction: column; text-align: left; margin-bottom: 32px; max-width: 360px; margin-left: auto; margin-right: auto; }
.onb-ws { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; }
.onb-ws-num { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--sub); flex-shrink: 0; margin-top: 1px; }
.onb-ws-title { font-size: 13.5px; font-weight: 500; color: var(--black); margin-bottom: 2px; }
.onb-ws-note { font-size: 12px; color: var(--sub); line-height: 1.5; }

/* Preference examples */
/* Preference items */
.onb-pref-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-align: left; animation: onbFadeUp 0.15s ease both; }
.onb-pref-item-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--black); flex-shrink: 0; }
.onb-pref-item-text { flex: 1; font-size: 13px; color: var(--black); line-height: 1.5; min-width: 0; }
.onb-pref-item-text:focus { outline: none; }
.onb-pref-item-tag { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 0; font-size: 13px; color: var(--black); font-weight: 500; white-space: nowrap; vertical-align: middle; }
.onb-pref-item-tag svg { vertical-align: middle; }
.onb-pref-item .onb-cat-actions { opacity: 0; flex-shrink: 0; }
.onb-pref-item:hover .onb-cat-actions { opacity: 1; }
/* Preference input */
.onb-pref-input-wrap { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 6px 14px; }
.onb-pref-input { flex: 1; border: none; outline: none; font-size: 13px; font-family: var(--sans); color: var(--black); background: transparent; padding: 8px 0; min-width: 0; }
.onb-pref-input::placeholder { color: var(--sub); }
.onb-pref-add-btn { background: none; border: none; cursor: pointer; color: var(--sub); display: flex; padding: 4px; transition: color 0.12s; flex-shrink: 0; }
.onb-pref-add-btn:hover { color: var(--black); }
.onb-pref-picker { display: none; position: absolute; bottom: calc(100% + 6px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 50; width: 200px; overflow: hidden; }
.onb-pref-picker.open { display: block; }
.onb-pref-picker-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-size: 13px; cursor: pointer; transition: background 0.1s; color: var(--black); }
.onb-pref-picker-item:hover { background: var(--surface); }
/* Connection status */
.onb-connect-status { display: flex; flex-direction: column; gap: 0; max-width: 360px; margin: 0 auto; text-align: left; }
.onb-cs-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.onb-cs-row.visible { opacity: 1; transform: translateY(0); }
.onb-cs-icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: var(--white); flex-shrink: 0; }
.onb-cs-info { flex: 1; }
.onb-cs-name { font-size: 13.5px; font-weight: 500; color: var(--black); }
.onb-cs-detail { font-size: 12px; color: var(--sub); margin-top: 1px; }
.onb-cs-status { flex-shrink: 0; font-size: 11.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.onb-cs-status.done { color: var(--green); }
.onb-cs-status.connecting { color: var(--sub); }
.onb-cs-status.pending { color: var(--sub); opacity: 0.5; }
.onb-cs-spinner { width: 12px; height: 12px; border: 1.5px solid var(--border); border-top-color: var(--black); border-radius: 50%; animation: onbSpin 0.7s linear infinite; }

/* Calendar selection */
.onb-cal-account { background: var(--white); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 14px 18px; margin-bottom: 10px; text-align: left; }
.onb-cal-account-header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.onb-cal-account-email { font-size: 13px; font-weight: 500; color: var(--black); }
.onb-cal-list { display: flex; flex-direction: column; }
.onb-cal-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.onb-cal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.onb-cal-name { flex: 1; font-size: 13px; color: var(--black); }
.onb-cal-toggle { position: relative; width: 28px; height: 16px; border-radius: 8px; border: none; background: var(--border); cursor: pointer; padding: 0; flex-shrink: 0; transition: background 0.2s; }
.onb-cal-toggle .onb-cal-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.onb-cal-toggle.on { background: var(--black); }
.onb-cal-toggle.on .onb-cal-knob { transform: translateX(12px); }
.onb-add-account { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--blue); background: none; border: none; cursor: pointer; padding: 8px 0; transition: opacity 0.15s; font-family: var(--sans); margin-top: 4px; }
.onb-add-account:hover { opacity: 0.7; }

/* Google consent card */
.onb-google-consent {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 32px 28px; max-width: 400px; margin: 0 auto; text-align: left;
}
.gc-header { margin-bottom: 24px; text-align: center; }
.gc-title { font-size: 18px; font-weight: 400; color: var(--black); text-align: center; margin-bottom: 4px; }
.gc-subtitle { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.gc-subtitle strong { color: var(--text); font-weight: 500; }
.gc-account {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px;
}
.gc-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.gc-account-name { font-size: 13px; font-weight: 500; color: var(--black); }
.gc-account-email { font-size: 12px; color: var(--muted); }
.gc-perms-label { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.gc-perms { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.gc-perm { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.gc-perm svg { flex-shrink: 0; margin-top: 1px; }
.gc-actions { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 16px; }
.gc-footer { font-size: 11px; color: var(--sub); line-height: 1.5; }
@keyframes onbSpin { to { transform: rotate(360deg); } }
@keyframes onbFadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── ACCOUNT SWITCHER ── */
.acct-switcher {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 8px 3px 6px;
  cursor: pointer; font-family: var(--sans);
  position: relative; flex-shrink: 0;
  transition: border-color 0.1s;
}
.acct-switcher:hover { border-color: var(--sub); }
.acct-switcher-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.acct-switcher-email { color: var(--sub); font-weight: 400; }
.acct-switcher-chevron { color: var(--sub); flex-shrink: 0; margin-left: 2px; }
.acct-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 4px 16px rgba(13,13,12,0.08);
  padding: 4px; z-index: 200; display: none; min-width: 240px;
}
.acct-dropdown.open { display: block; }
.acct-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-size: 12px; color: var(--text); transition: background 0.06s;
}
.acct-dropdown-item:hover { background: var(--surface); }
.acct-dropdown-item.active { background: var(--surface); }
.acct-dropdown-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.acct-dropdown-name { font-weight: 500; }
.acct-dropdown-email { color: var(--sub); margin-left: 4px; }
.acct-dropdown-check { margin-left: auto; color: var(--text); flex-shrink: 0; }

/* ── TOP BAR ── */
.topbar {
  height: 46px;
  border-bottom: 1px solid var(--page);
  background: var(--page);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
}

.topbar-center { flex: 1; display: flex; align-items: center; gap: 12px; }

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-label {
  font-size: 12px;
  color: var(--sub);
  font-weight: 500;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  font-family: var(--sans);
}

.tb-btn .tb-count {
  color: var(--sub);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.tb-section {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub);
  cursor: pointer;
  transition: color 0.1s;
  white-space: nowrap;
}

.tb-section.tb-active {
  color: var(--text);
  font-weight: 500;
  cursor: default;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}

.tb-section.tb-clickable:hover {
  color: var(--muted);
}

.tb-count {
  font-size: 12px;
  color: var(--sub);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.tb-section.tb-active .tb-count {
  color: var(--muted);
}

.tb-sep {
  font-size: 12px;
  color: var(--border);
  user-select: none;
}

/* Segmented button group */
.tb-group {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.tb-group-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.tb-group-item:first-child {
  border-radius: 4px 0 0 4px;
}
.tb-group-item:last-child {
  border-radius: 0 4px 4px 0;
}
.tb-group-item:not(:first-child) {
  border-left: none;
}
.tb-group-item:hover {
  background: var(--white);
  color: var(--text);
}
.tb-group-item.active {
  background: var(--white);
  color: var(--text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-cal { display: flex; align-items: center; }

.topbar-timer {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar-nav-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sub);
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
}

.topbar-nav-btn:hover {
  color: var(--muted);
  background: var(--surface);
}

/* ── SIDEBAR ── */
.sidebar {
  width: 52px;
  height: 100%;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: width 0.22s ease;
  flex-shrink: 0;
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
}

.sidebar.open { width: 188px; }

.sidebar-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap; margin: 2px 5px; border-radius: 5px;
  border: none; background: none; font-family: var(--sans);
  position: relative;
}
.sidebar-toggle:hover { background: var(--surface); }
.sidebar-toggle .nav-icon { transition: transform 0.22s ease; }
.sidebar.open .sidebar-toggle .nav-icon { transform: rotate(180deg); }

.account {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 52px;
}

.account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-avatar span {
  font-size: 9px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.account-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.15s ease 0.05s;
  pointer-events: none;
  min-width: 0; flex: 1;
}

.sidebar.open .account-name { opacity: 1; pointer-events: auto; }

.account { position: relative; cursor: pointer; }
.account:hover { background: var(--surface); }

.account-menu {
  display: none; position: absolute; top: 100%; left: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px; z-index: 200; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 220px; width: 220px;
}
.account-menu.visible { display: block; }
.account-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; font-size: 12px; font-weight: 500;
  color: var(--text); cursor: pointer; border-radius: 5px;
  transition: background 0.08s; white-space: nowrap;
}
.account-menu-item:hover { background: var(--surface); }
.account-menu-item svg { color: var(--sub); flex-shrink: 0; }
.account-menu-sep { height: 1px; background: var(--border); margin: 2px 0; }

.account-bell {
  margin-left: auto;
  color: var(--sub);
  cursor: pointer;
  display: flex; align-items: center;
  opacity: 0;
  transition: opacity 0.15s ease 0.05s, color 0.1s;
  flex-shrink: 0;
}
.account-bell:hover { color: var(--text); }
.sidebar.open .account-bell { opacity: 1; }

.sidebar-lobby {
  margin: 0; padding: 0;
  flex-shrink: 0;
}
.sidebar-lobby-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px; margin: 1px 5px;
  cursor: pointer; background: none; border: none;
  font-family: var(--sans); white-space: nowrap; overflow: hidden;
  border-radius: 5px; position: relative;
}
.sidebar-lobby-btn .nav-icon { color: var(--sub); transition: color 0.15s; }
.sidebar-lobby-btn .cta-label {
  font-size: 12px; font-weight: 500; color: var(--sub);
  opacity: 0; transition: opacity 0.15s ease 0.05s, color 0.15s;
}
.sidebar-lobby-btn:hover .nav-icon,
.sidebar-lobby-btn:hover .cta-label { color: var(--text); }
.sidebar.open .sidebar-lobby-btn .cta-label { opacity: 1; }

.nav {
  flex: 1;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  gap: 0px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
  margin: 1px 5px;
  border-radius: 5px;
  position: relative;
}
.nav-item .nav-tooltip,
.sidebar-lobby-btn .nav-tooltip,
.sidebar-toggle .nav-tooltip {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: 12px; background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 500; padding: 5px 10px;
  border-radius: 5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
  z-index: 200;
}
.nav-item:hover .nav-tooltip,
.sidebar-lobby-btn:hover .nav-tooltip,
.sidebar-toggle:hover .nav-tooltip { opacity: 1; }
.sidebar.open .nav-item .nav-tooltip,
.sidebar.open .sidebar-lobby-btn .nav-tooltip,
.sidebar.open .sidebar-toggle .nav-tooltip { display: none; }

.nav-item:hover { background: var(--surface); }
.nav-item.active { background: var(--surface); }

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sub);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { color: var(--muted); }

.nav-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  flex: 1;
  opacity: 0;
  transition: opacity 0.15s ease 0.05s;
  overflow: hidden;
}

.nav-item.active .nav-label { color: var(--text); font-weight: 500; }
.nav-item:hover .nav-label { color: var(--text); }

.nav-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease 0.05s;
}

.nav-item.active .nav-badge { color: var(--text); }

.sidebar.open .nav-label,
.sidebar.open .nav-badge,
.sidebar.open .account-name { opacity: 1; }

/* ── EMAIL PANEL ── */
.app-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.email-panel {
  width: 260px;
  height: 100%;
  border-right: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.22s ease;
}

.email-panel.hidden { width: 0; border-right: none; }

.email-panel-header {
  height: 46px;
  padding: 0 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: none;
  position: relative;
}

.email-panel-title-group {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex: 1;
}

.email-panel-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.email-panel-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  flex-shrink: 0;
}

.filter-btn {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--sub);
  border-radius: 4px; flex-shrink: 0;
  transition: color 0.1s, background 0.1s;
  position: relative;
}
.filter-btn:hover { color: var(--muted); background: var(--surface); }
.filter-btn-blue  { color: #1A3F6E; background: #D8EAFA; }
.filter-btn-blue:hover  { color: #1A3F6E; background: #c8dff5; }
.filter-btn-green { color: #2D5C28; background: #D8EDCC; }
.filter-btn-green:hover { color: #2D5C28; background: #c8e3bb; }

.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13,13,12,0.08);
  padding: 10px 12px;
  z-index: 200;
  display: none;
  min-width: 160px;
}
.filter-dropdown.open { display: block; }
.topbar-center .filter-dropdown { right: auto; left: 0; }

.filter-dd-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: 500;
  margin-bottom: 8px;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.filter-pill {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.1s;
  border: none;
  background: var(--surface);
  color: var(--muted);
}
.filter-pill:hover { opacity: 0.75; }
.filter-pill.active-pill { background: var(--border); color: var(--text); }
.pill-blue.active-pill  { background: #D8EAFA; color: #1A3F6E; }
.pill-green.active-pill { background: #D8EDCC; color: #2D5C28; }

/* ── CHECKBOXES ── */
.cb {
  width: 14px; height: 14px;
  flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cb svg { display: block; }

#cb-all { opacity: 0; transition: opacity 0.1s; pointer-events: none; margin: 0; }
#cb-all.visible { opacity: 1; pointer-events: auto; }

/* ── EMAIL LIST ── */
.email-list { flex: 1; overflow-y: auto; }

.email-item {
  padding: 11px 20px 13px 6px;
  cursor: pointer;
  transition: background 0.1s, border-radius 0.1s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 6px;
  border-radius: 8px;
}

.email-item:hover { background: var(--surface); }
.email-item.active { background: var(--surface); }

.email-item .cb { opacity: 0; margin-top: 2px; transition: opacity 0.1s; }
.email-item:hover .cb,
.email-item .cb.checked { opacity: 1; }

.email-item-body { flex: 1; min-width: 0; }

.email-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.email-sender {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item.muted .email-sender { color: var(--muted); font-weight: 400; }

.email-date {
  font-size: 11.5px;
  color: var(--sub);
  flex-shrink: 0;
  margin-left: 8px;
}

.email-subject {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.email-item.muted .email-subject { color: var(--sub); }

.email-item-footer { display: flex; align-items: center; }

/* ── TAGS ── */
.email-tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
}

.tag-blue  { background: #FFDDE6; color: #9C2A4A; }
.tag-green { background: #D8EDCC; color: #2D5C28; }
.tag-moss  { background: #C8EEE8; color: #1A5050; }
.tag-smoke { background: #E6EAF2; color: #3C4458; }

svg { display: block; }

/* ── EMAIL VIEW ── */
.email-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--page);
  padding: 16px 16px 140px 16px;
  gap: 12px;
}

/* White card */
.ev-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.ev-card-body { padding: 16px 24px 20px; }
.ev-card-meta { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; }
.ev-msg-count { font-size: 12px; color: var(--muted); }
.ev-tab-toggle { display: inline-flex; background: var(--surface); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.ev-tab-toggle button { font-size: 11.5px; font-weight: 500; font-family: var(--sans); padding: 4px 12px; border: none; background: none; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.ev-tab-toggle button.active { background: var(--white); color: var(--black); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.ev-links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 16px 0 20px; }
.ev-links a { font-size: 12.5px; color: #4A7FBF; text-decoration: none; font-family: var(--sans); display: inline-flex; align-items: center; gap: 3px; }
.ev-links a:hover { color: #3A6AA3; }

.ev-subject-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ev-subject {
  font-size: 17px; font-weight: 500;
  color: var(--black); letter-spacing: -0.02em;
  line-height: 1.3; margin-bottom: 12px;
  max-width: 680px; width: 100%; margin-left: auto; margin-right: auto;
}
.ev-subject-date {
  font-size: 11.5px; color: var(--sub);
  white-space: nowrap; flex-shrink: 0;
}

.ev-chips {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.ev-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 8px 2px 3px; white-space: nowrap;
}
.ev-chip-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ev-chips-right {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.ev-view-original {
  font-size: 11.5px; color: var(--muted); text-decoration: none;
  cursor: pointer; font-family: var(--sans); font-weight: 500;
}
.ev-view-original:hover { color: var(--black); text-decoration: underline; }

.ev-meta-left { font-size: 11.5px; color: var(--sub); }
.ev-meta-right a {
  font-size: 11.5px; color: #4A7FBF; text-decoration: none;
  cursor: pointer; font-family: var(--sans);
}
.ev-meta-right a:hover { color: #3A6AA3; }

.ev-text {
  font-size: 13px; line-height: 1.8;
  color: var(--text); font-weight: 400;
}

.ev-card-footer {
  display: flex; align-items: center;
  gap: 8px;
  padding: 14px 0 20px;
  margin-top: 10px;
}

.ev-footer-link {
  font-size: 11.5px; color: var(--sub);
  background: none; border: none;
  cursor: pointer; font-family: var(--sans); padding: 0;
  text-decoration: none;
  transition: color 0.1s;
}
.ev-footer-link:hover { color: var(--muted); }

/* Thread view (View original) */
.ev-thread { display: none; padding: 20px 24px 0; }
.ev-thread.visible { display: block; }
.ev-thread-msg { margin-bottom: 18px; }
.ev-thread-msg:last-child { margin-bottom: 0; }
.ev-thread-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ev-thread-sender { font-size: 13px; font-weight: 600; color: var(--black); }
.ev-thread-time { font-size: 11px; color: var(--sub); }
.ev-thread-body {
  font-size: 13px; line-height: 1.75; color: var(--text);
  white-space: pre-line;
}
.ev-thread-msg + .ev-thread-msg { border-top: 1px solid var(--border); padding-top: 16px; }

/* Legacy strip styles kept for done-zone cards */
.ev-strip {
  padding: 14px 24px 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  position: relative;
}
.ev-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  border-top: 1px solid var(--border);
}
.ev-strip-names {
  font-size: 11.5px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-strip-tag {
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.ev-strip-date {
  font-size: 11px;
  color: var(--sub);
  flex-shrink: 0;
}
.ev-avatar-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ev-avatar-stack .ev-avatar { margin-right: -5px; border: 1.5px solid var(--white); }
.ev-avatar-stack .ev-avatar:last-child { margin-right: 0; }
.ev-avatar {
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--black);
  font-size: 7px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
  letter-spacing: 0.02em;
}
.ev-avatar.ghost {
  background: var(--surface);
  color: var(--sub);
  border: 1.5px solid var(--border) !important;
  font-size: 9px; font-weight: 400;
}

/* Inline people dropdown on ev-strip */
.ev-strip-people {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px;
  transition: background 0.1s;
}
.ev-strip-people:hover { background: rgba(0,0,0,0.04); }
.ev-people-drop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 220px; cursor: default;
}
.ev-people-drop.visible { display: block; }
.ev-people-drop .pop-person { margin-bottom: 8px; }
.ev-people-drop .pop-person:last-child { margin-bottom: 0; }
.ev-people-drop .pop-avatar {
  width: 22px; height: 22px; border-radius: 4px; font-size: 8px;
}

/* Inline calendar dropdown - day view with week strip */
.ev-strip-cal {
  position: relative; display: inline-flex; align-items: center;
  cursor: pointer; border-radius: 5px; padding: 3px 5px; margin: -3px 0;
  transition: background 0.1s; color: var(--sub);
}
.ev-strip-cal:hover { background: rgba(0,0,0,0.04); }
.ev-cal-drop {
  display: none; position: fixed;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 0; z-index: 400; box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  width: 420px; cursor: default; overflow: hidden;
}
.ev-cal-drop.visible { display: block; }

/* Header: March 2026  < Today > */
.ev-cal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 18px 22px 12px;
}
.ev-cal-header-month { font-size: 15px; font-weight: 600; color: var(--text); }
.ev-cal-header-year { font-size: 15px; font-weight: 400; color: var(--sub); }
.ev-cal-header-nav {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
}
.ev-cal-header-btn {
  background: none; border: none; cursor: pointer; color: var(--sub);
  padding: 2px; display: flex; align-items: center; border-radius: 4px;
  transition: background 0.1s;
}
.ev-cal-header-btn:hover { background: var(--surface); }
.ev-cal-today-btn {
  font-size: 11px; font-weight: 500; color: var(--sub);
  background: none; border: 1px solid var(--border); border-radius: 5px;
  padding: 3px 10px; cursor: pointer; font-family: var(--sans);
  transition: background 0.1s;
}
.ev-cal-today-btn:hover { background: var(--surface); }

/* Week strip */
.ev-cal-week-strip {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 6px 12px 10px; gap: 0;
  border: 1px solid var(--border); border-radius: 10px;
  margin: 0 18px 14px;
}
.ev-cal-wday {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0; cursor: pointer; border-radius: 8px;
  transition: background 0.1s;
}
.ev-cal-wday:hover { background: var(--surface); }
.ev-cal-wday.selected { background: var(--surface); }
.ev-cal-wday-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--sub);
}
.ev-cal-wday.today .ev-cal-wday-label { color: #4A7FBF; }
.ev-cal-wday-num {
  font-size: 13px; font-weight: 600; color: var(--text);
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.ev-cal-wday.today .ev-cal-wday-num {
  background: #4A7FBF; color: var(--white);
}
.ev-cal-wday-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: transparent;
}
.ev-cal-wday-dot.has-events { background: #4A7FBF; }

/* Day timeline — scrollable */
.ev-cal-timeline {
  height: 320px; overflow-y: auto; position: relative;
  padding: 0 0 12px;
}
.ev-cal-timeline::-webkit-scrollbar { width: 0; }
.ev-cal-hour-row {
  display: flex; align-items: flex-start; min-height: 56px;
  position: relative;
}
.ev-cal-hour-label {
  width: 72px; flex-shrink: 0; text-align: right; padding-right: 14px; padding-left: 16px;
  font-size: 11px; color: var(--sub); transform: translateY(-6px);
}
.ev-cal-hour-body {
  flex: 1; min-height: 56px; position: relative;
  border-top: 1px solid var(--border);
}
.ev-cal-event {
  position: absolute; left: 4px; right: 14px;
  border-radius: 6px; padding: 6px 8px; overflow: hidden;
  font-size: 11px; font-weight: 500; line-height: 1.3;
  cursor: default; z-index: 1;
}
.ev-cal-event.proposed {
  background: #E8F5E0; color: #3A6E28; border: 1.5px dashed #5A8A3C;
}
.ev-cal-event.existing {
  background: #E0E4F0; color: #3C4A7A;
}
.ev-cal-event-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-cal-event-time { font-size: 9.5px; font-weight: 400; opacity: 0.7; margin-top: 1px; }

/* Legend */
.ev-cal-legend {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px 14px; border-top: 1px solid var(--border);
}
.ev-cal-legend-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--muted);
}
.ev-cal-legend-dot {
  width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0;
}

/* Calendar invite card (inline in email body) */
.ev-cal-invite {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ev-cal-invite-event {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 18px 16px;
}
.ev-cal-invite-date {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; min-width: 40px;
}
.ev-cal-invite-date-month {
  font-size: 11px; font-weight: 500; color: #5F6368; letter-spacing: 0.3px;
}
.ev-cal-invite-date-day {
  font-size: 28px; font-weight: 400; color: var(--text); line-height: 1.15;
}
.ev-cal-invite-info {
  display: flex; flex-direction: column; gap: 1px; justify-content: center; min-height: 40px;
}
.ev-cal-invite-title {
  font-size: 12.5px; font-weight: 500; color: var(--text);
}
.ev-cal-invite-time {
  font-size: 11.5px; color: #5F6368;
}
.ev-cal-invite-fields {
  padding: 2px 18px 8px 18px;
}
.ev-cal-invite-note {
  padding: 12px 18px 16px 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text); line-height: 1.6;
}
.ev-cal-invite-note-label {
  font-size: 10.5px; font-weight: 500; color: var(--sub);
  margin-bottom: 4px;
}
.wf-btn-decline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.1s;
}
.wf-btn-decline:hover { background: var(--surface); }

/* Inline attachment dropdown */
.ev-attach-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; font-size: 11.5px; font-weight: 500; color: var(--muted);
  border-radius: 4px; padding: 2px 4px; margin: -2px -4px;
  transition: color 0.1s;
}
.ev-attach-trigger:hover { color: var(--black); }
.ev-attach-drop {
  display: none; position: absolute; bottom: calc(100% + 6px); right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 200px; cursor: default;
}
.ev-attach-drop.visible { display: block; }
.ev-attach-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px; border-radius: 5px; transition: background 0.08s;
}
.ev-attach-item:hover { background: var(--surface); }
.ev-attach-name { font-size: 12px; font-weight: 500; color: var(--text); }
.ev-attach-size { font-size: 10.5px; color: var(--sub); }

/* Lobby suggestions below card */
.ev-sugg-wrap {
  flex-shrink: 0;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* Lobby suggestion */
.sugg {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.sugg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.lobby-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lobby-mark span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--white);
  line-height: 1;
}

.sugg-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sugg-step {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sugg-step-icon {
  color: var(--sub);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sugg-step-body { flex: 1; min-width: 0; }

.sugg-step-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.sugg-step-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.sugg-step-time {
  font-size: 11px;
  color: #4A7CBF;
}

.sugg-step-action {
  font-size: 11px;
  color: var(--sub);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  flex-shrink: 0;
}
.sugg-step-action:hover { color: var(--muted); }

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-approve {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.1s;
}
.btn-approve:hover { opacity: 0.85; }

.btn-approve .kbd {
  font-size: 9px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  padding: 2px 5px;
  border-radius: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.1s, color 0.1s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ── WORKFLOW SECTION ── */
.workflow-wrap {
  flex-shrink: 0;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── PLAYBACK / WORKFLOW SHARED ── */
.email-view-hidden { flex: 1; min-width: 0; display: none; }

.wf-task-inner {
  padding: 12px 16px; display: flex; flex-direction: column; gap: 8px;
}
.wf-task-inner-lg { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.wf-task-header {
  display: flex; align-items: center; justify-content: space-between;
}

/* Recipient strip (To / Cc / Bcc) */
.rcpt-strip { margin: -14px -16px 10px; }
.rcpt-row { display: flex; align-items: center; gap: 4px; padding: 10px 16px; }
.rcpt-label-to {
  font-size: 11px; font-weight: 500; color: var(--sub); flex-shrink: 0; min-width: 20px;
}
.rcpt-chip {
  font-size: 10.5px; font-weight: 500; color: var(--text);
  background: transparent; border: none;
  border-radius: 4px; padding: 3px 8px 3px 3px;
  display: inline-flex; align-items: center; gap: 5px;
}
.rcpt-add-btn { padding: 2px 6px; font-size: 13px; line-height: 1; }
.rcpt-actions { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.rcpt-field-row { display: flex; align-items: center; gap: 8px; padding: 6px 16px; }
.rcpt-chips-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px; flex: 1;
}

/* Calendar field helpers */
.cal-field-start { align-items: flex-start; }
.cal-field-start .cal-field-label { padding-top: 2px; }
.cal-field-value-short { width: 64px; flex: none; }
.cal-field-sep { font-size: 12px; color: var(--sub); margin: 0 6px; }
.cal-field-tz { font-size: 11.5px; color: var(--sub); margin-left: 6px; }
.cal-field-text { resize: none; line-height: 1.6; }
.cal-field-guest-info { font-size: 12px; color: var(--muted); }
.video-chips { display: flex; gap: 6px; }

/* Warning bar (amber) */
.wf-warn-bar {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-top: 1px solid #F0D9A8; background: #FEF7EC;
}
.wf-warn-dot { width: 6px; height: 6px; border-radius: 50%; background: #C47B1A; flex-shrink: 0; }
.wf-warn-text { flex: 1; font-size: 12px; color: #C47B1A; }
.wf-warn-action { color: #C47B1A; }

/* Hold converted state */
.hold-confirm-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.hold-confirm-info { flex: 1; }
.hold-confirm-title { font-size: 12.5px; font-weight: 500; color: var(--text); }
.hold-confirm-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.hold-confirm-note { font-size: 11px; color: var(--sub); }
.hold-hint { font-size: 11.5px; color: var(--sub); line-height: 1.6; }
.wf-draft-inner-compact { gap: 0; }

.wf-task {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wf-task.wf-task-flush { padding: 0; gap: 0; }
.wf-task.wf-task-flush-p0 { padding: 0; }

.wf-task-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.wf-task-tag .wf-service-icon { margin-right: -1px; }
.wf-step { display: none; }
.hold-slot.step-removed {
  text-decoration: line-through;
  opacity: 0.4;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  pointer-events: none;
}
.hold-slot.step-removed.step-gone {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.wf-task.step-deleted {
  text-decoration: line-through;
  text-decoration-color: #C0392B;
  color: #C0392B;
  opacity: 0.5;
  transition: opacity 0.6s ease, max-height 0.6s ease;
  pointer-events: none;
}
.wf-task.step-deleted .wf-task-tag,
.wf-task.step-deleted .wf-task-detail,
.wf-task.step-deleted .wf-task-time,
.wf-task.step-deleted .wf-service-icon svg { color: #C0392B; stroke: #C0392B; }
.wf-task.step-deleted .wf-task-toggle,
.wf-task.step-deleted .wf-task-discard { display: none; }
.wf-task.step-deleted.step-gone {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}
.diff-removed {
  text-decoration: line-through;
  color: #C0392B !important;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}
.diff-removed.diff-fade {
  opacity: 0;
}
input.diff-removed {
  text-decoration: line-through;
  color: #C0392B !important;
}
.hold-slot-label.diff-removed {
  text-decoration: line-through;
  color: #C0392B !important;
}
.hold-slot-label.diff-removed .wf-task-time {
  color: #C0392B !important;
}
.diff-added {
  background: #D5F5E3;
  color: var(--text);
  border-radius: 2px;
  padding: 0 2px;
  transition: background 0.6s ease;
}
.diff-added.diff-settle {
  background: transparent;
  padding: 0;
}
.wf-task.step-updated {
  animation: stepFlash 0.8s ease;
}
@keyframes stepFlash {
  0% { background: #FFF8E1; }
  100% { background: transparent; }
}
.step-loading {
  position: relative;
  overflow: hidden;
}
.step-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(236,234,231,0.5) 40%, rgba(236,234,231,0.8) 50%, rgba(236,234,231,0.5) 60%, transparent 100%);
  animation: stepShimmer 1.8s ease infinite;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes stepShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.wf-warn-bar.step-loading::after {
  border-radius: 0;
}

.wf-task-body {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wf-service-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.wf-task-detail {
  flex: 1;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  min-width: 0;
}

.wf-task-time {
  font-size: 11.5px;
  color: #4A7CBF;
  margin-left: 6px;
}

.wf-task-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wf-task-edit {
  font-size: 11px;
  color: var(--sub);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
  transition: color 0.1s;
}
.wf-task-edit:hover { color: var(--muted); }

.wf-task-desc {
  font-size: 11.5px; color: var(--sub); line-height: 1.5; padding: 0 16px 0;
}
.wf-draft-toggle {
  font-size: 11.5px; font-weight: 500; color: var(--muted); background: none; border: none;
  cursor: pointer; font-family: var(--sans); padding: 4px 16px; display: inline-flex;
  align-items: center; gap: 4px; transition: color 0.1s;
}
.wf-draft-toggle:hover { color: var(--text); }
.wf-draft-expand {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  padding: 0 16px;
}
.wf-draft-expand.open {
  max-height: 500px; padding: 10px 16px 14px;
}

.wf-task-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--sub); padding: 0;
  display: flex; align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}
.wf-task-toggle svg {
  transition: transform 0.2s ease;
}
.wf-task-toggle:hover { color: var(--text); }
.wf-task.expanded .wf-task-toggle svg { transform: rotate(180deg); }
.wf-task.expanded .reply-toggle-expanded { display: inline-flex !important; }
.wf-task.expanded .reply-toggle-expanded svg { transform: rotate(180deg); }

.wf-task-menu {
  font-size: 13px;
  color: var(--sub);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  padding: 0;
  line-height: 1;
  transition: color 0.1s;
}
.wf-task-menu:hover { color: var(--muted); }

.wf-task:hover 
/* Swap icon: × when collapsed, chevron when expanded */
.wf-task.expanded 
/* ── DRAFT EXPAND ── */
.wf-task.expanded {
  box-shadow: 0 4px 16px rgba(13,13,12,0.07);
}
.wf-draft {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.wf-draft.open { max-height: 700px; }

.wf-draft-inner {
  border-top: 1px solid var(--border);
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wf-draft-body {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 400;
  outline: none;
  min-height: 80px;
  white-space: pre-wrap;
}
.wf-draft-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 4px;
}
.wf-draft-footer-right {
  display: flex; align-items: center; gap: 8px;
}
.wf-task-discard {
  font-size: 11px; color: var(--sub); background: none; border: none;
  cursor: pointer; font-family: var(--sans); padding: 0;
  opacity: 0; transition: opacity 0.1s, color 0.1s;
  flex-shrink: 0;
}
.wf-task:hover:not(.expanded) .wf-task-discard { opacity: 1; }
.wf-task.expanded .wf-task-discard { display: none; }
.wf-task.expanded .wf-task-detail { display: none; }
.wf-task.expanded .wf-task-body { display: none; }
.wf-header-toggle { display: none; }
.wf-task.expanded .wf-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sub);
  padding: 0;
  transition: color 0.1s;
}
.wf-task.expanded .wf-header-toggle:hover { color: var(--text); }
.wf-task.expanded .wf-header-toggle svg { transform: rotate(180deg); }
.hold-slot.expanded .wf-task-discard { display: none; }
.hold-slot:hover:not(.expanded) .wf-task-discard { opacity: 1; }
.hold-slot .wf-task-discard { opacity: 0; transition: opacity 0.1s, color 0.1s; }
.hold-slot.expanded .wf-task-toggle svg { transform: rotate(180deg); }
.wf-task-discard:hover { color: #c0392b; }
.wf-draft-discard {
  font-size: 11px; color: var(--sub); background: none; border: none;
  cursor: pointer; font-family: var(--sans); padding: 0; transition: color 0.1s;
}
.wf-draft-discard:hover { color: #c0392b; }
.wf-draft-save {
  font-size: 11px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 12px; cursor: pointer;
  font-family: var(--sans); transition: border-color 0.1s, opacity 0.15s;
}
.wf-draft-save:hover:not(:disabled) { border-color: var(--sub); }
.wf-draft-save:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.add-people-link {
  font-size: 11px; color: var(--sub); cursor: pointer;
  transition: color 0.1s; white-space: nowrap; flex-shrink: 0; display: none;
}
.add-people-link:hover { color: var(--muted); }
.add-people-link.visible { display: inline; }

.people-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  padding: 4px 0; border-bottom: 1px solid var(--border);
  background: var(--white);
}
.people-input {
  flex: 1; min-width: 120px; font-size: 11.5px; color: var(--text);
  background: none; border: none; outline: none; font-family: var(--sans);
}
.people-input::placeholder { color: var(--sub); }
.people-input-wrap { position: relative; flex: 1; min-width: 60px; }
.people-suggest {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px; z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 200px; max-height: 180px; overflow-y: auto;
}
.people-suggest.visible { display: block; }
.people-suggest-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 5px; cursor: pointer;
  transition: background 0.08s;
}
.people-suggest-item:hover { background: var(--surface); }
.people-suggest-avatar {
  width: 20px; height: 20px; border-radius: 3px;
  font-size: 8px; font-weight: 600; color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.people-suggest-info { display: flex; flex-direction: column; }
.people-suggest-name { font-size: 12px; font-weight: 500; color: var(--text); }
.people-suggest-email { font-size: 10.5px; color: var(--muted); }
.email-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 2px 8px; font-size: 11px; color: var(--text);
}
.email-chip-remove {
  background: none; border: none; cursor: pointer; color: var(--sub);
  padding: 0; display: flex; align-items: center; margin-left: 1px; transition: color 0.1s;
}
.email-chip-remove:hover { color: var(--text); }

/* ── CALENDAR WARNING ── */
.cal-warn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: #FEF7EC;
  border-top: 1px solid #F0D9A8;
  animation: warnSlide 0.2s ease;
}
@keyframes warnSlide { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:none; } }
.cal-warn-dot { width: 6px; height: 6px; border-radius: 50%; background: #C47B1A; flex-shrink: 0; }
.cal-warn-text { flex: 1; font-size: 11px; color: #C47B1A; }
.cal-warn-btn {
  font-size: 11px; font-weight: 500; color: #C47B1A;
  background: none; border: 1px solid #F0D9A8; border-radius: 5px;
  padding: 3px 10px; cursor: pointer; font-family: var(--sans);
  transition: background 0.1s, border-color 0.1s;
}
.cal-warn-btn:hover { background: #FEF0D4; border-color: #C47B1A; }
.cal-warn-btn:disabled { opacity: 0.5; cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }
.cal-warn-spinner {
  width: 10px; height: 10px; border: 1.5px solid #F0D9A8;
  border-top-color: #C47B1A; border-radius: 50%;
  animation: spin 0.6s linear infinite; display: inline-block;
}

/* ── CAL EDIT FIELDS ── */
.cal-field { display: flex; align-items: baseline; padding: 6px 0; }
.cal-field-label { font-size: 11px; font-weight: 500; color: var(--sub); width: 72px; flex-shrink: 0; }
.cal-field-value {
  flex: 1; font-size: 12.5px; color: var(--text);
  background: none; border: none; outline: none;
  font-family: var(--sans); font-weight: 400; padding: 0;
}
.cal-field-value::placeholder { color: var(--sub); }
.video-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--muted); font-family: var(--sans);
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; cursor: pointer;
  transition: border-color 0.1s, color 0.1s;
}
.video-chip:hover { border-color: var(--sub); color: var(--text); }
.video-chip.selected { border-color: var(--text); color: var(--text); background: var(--surface); }

/* ── HOLD SLOTS ── */
.hold-slot {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.hold-slot-header {
  padding: 9px 12px; display: flex; align-items: center; gap: 9px;
}
.hold-slot-label { flex: 1; font-size: 12.5px; color: var(--text); }
.hold-slot-inner { border-top: 1px solid var(--border); padding: 10px 12px; display: flex; flex-direction: column; }
.hold-remove {
  background: none; border: none; cursor: pointer; color: var(--sub);
  padding: 0; display: flex; align-items: center; transition: color 0.1s;
}
.hold-remove:hover { color: var(--text); }

/* ── PREFLIGHT ── */
#preflight-input:empty:before {
  content: attr(data-placeholder);
  color: var(--sub);
  pointer-events: none;
}

.wf-action-bar-fixed {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 16px 20px 16px;
  background: linear-gradient(to bottom, transparent, var(--page) 55%);
  pointer-events: none;
  display: flex; flex-direction: column;
}
.wf-action-bar-fixed::after {
  display: none;
}
.wf-action-bar-fixed .wf-action-bar {
  pointer-events: all;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.wf-action-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  position: relative; z-index: 1;
  transition: max-width 0.25s ease, width 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, opacity 0.25s ease, padding 0.25s ease, z-index 0s;
}

.wf-status {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-lobby-icon { flex-shrink: 0; border-radius: 3px; }
.wf-action-label { color: var(--text); font-weight: 400; border: 1px dashed var(--border); border-radius: 5px; padding: 2px 8px; font-size: 11.5px; }
.wf-status.wf-status-warn { color: #C47B1A; }

.wf-btn-options {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
}
.wf-btn-options .wf-kbd {
  font-size: 9px;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 5px;
}

.wf-btn-approve {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.1s;
}
.wf-btn-approve:hover { opacity: 0.85; }
.wf-btn-approve:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.wf-btn-approve .wf-kbd {
  font-size: 9px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  border-radius: 3px;
  padding: 2px 5px;
}

/* ── ICON RAIL ── */
.app-content {
  position: relative;
}







/* ── POPOVERS ── */
.popover {
  position: fixed;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13,13,12,0.09), 0 2px 6px rgba(13,13,12,0.05);
  padding: 14px;
  width: 210px;
  display: none;
  z-index: 500;
}
.popover.open { display: block; }

.popover::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 13px;
  width: 8px; height: 8px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.pop-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sub); margin-bottom: 12px;
}

.pop-person {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px;
}
.pop-person:last-child { margin-bottom: 0; }

.pop-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--black);
  font-size: 7.5px; font-weight: 600; display: flex; align-items: center;
  justify-content: center; color: var(--white); flex-shrink: 0;
}
.pop-avatar.you { background: var(--surface); color: var(--sub); border: 1px solid var(--border); font-size: 8px; }
.pop-avatar.blue { background: #4A7CBF; }

.pop-name { font-size: 11.5px; font-weight: 500; color: var(--text); line-height: 1.3; }
.pop-email {
  font-size: 10px; color: var(--sub); display: block; margin-top: 1px;
  cursor: pointer; transition: color 0.1s; user-select: none;
}
.pop-email:hover { color: var(--muted); }

.pop-attachment {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 6px; cursor: pointer; transition: border-color 0.1s;
}
.pop-attachment:last-child { margin-bottom: 0; }
.pop-attachment:hover { border-color: var(--sub); }
.pop-attachment-icon { color: var(--sub); flex-shrink: 0; }
.pop-attachment-name { font-size: 11px; color: var(--text); font-weight: 500; }
.pop-attachment-size { font-size: 10px; color: var(--sub); margin-top: 1px; }

/* ── BRIEF PAGE ── */
#brief-zone {
  flex: 1; overflow-y: auto; overflow-x: visible;
  padding: 52px 40px 80px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.brief-acct-pos { position: absolute; top: 16px; right: 16px; }

/* Ask Lobby bar — brief page */
.brief-ask-fixed {
  position: fixed; bottom: 0; left: 50px; right: 0;
  padding: 24px 40px 20px;
  background: linear-gradient(to bottom, transparent, var(--page) 40%);
  pointer-events: none; z-index: 10;
}
.brief-ask-bar {
  pointer-events: all; max-width: 680px; width: 100%; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.brief-ask-bar:hover { border-color: var(--sub); box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
.brief-ask-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brief-ask-icon { color: var(--muted); flex-shrink: 0; }
.brief-ask-label { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }
.brief-ask-sep { color: var(--border); font-size: 13px; }
.brief-ask-suggested { font-size: 12px; color: var(--sub); font-weight: 400; white-space: nowrap; }
.brief-ask-chips { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; }
.brief-ask-chips::-webkit-scrollbar { display: none; }
.brief-ask-chip {
  font-size: 12px; color: var(--muted); font-family: var(--sans); font-weight: 400;
  background: none; border: 1px dashed var(--border); border-radius: 6px;
  padding: 4px 11px; cursor: pointer; white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.brief-ask-chip:hover { color: var(--text); border-color: var(--sub); background: var(--surface); }
.brief-ask-shortcut {
  font-size: 11px; color: var(--sub); font-weight: 400;
  margin-left: auto; flex-shrink: 0; white-space: nowrap;
}
.brief-inner { width: 100%; max-width: 1000px; display: flex; flex-direction: column; }
.brief-done-state { flex:1; max-width:none; }
.brief-done-state .brief-card { margin: 0 auto; animation: briefDoneIn 0.35s cubic-bezier(0.16,1,0.3,1); }
@keyframes briefDoneIn { from { opacity:0; transform:translateY(16px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
#brief-zone.brief-done-active { background: rgba(250,249,247,0.55); }
#brief-zone.brief-done-active .brief-acct-pos { opacity: 0.3; pointer-events: none; }
.brief-countdown-track { height: 3px; background: var(--surface); margin: -28px -26px 24px; width: calc(100% + 52px); }
.brief-countdown-fill { height: 100%; width: 100%; background: var(--text); border-radius: 0 1px 1px 0; }
.brief-countdown-fill.animating { animation: briefCountdown 5s linear forwards; }
.brief-countdown-fill.paused { animation-play-state: paused; }
@keyframes briefCountdown { from { width: 100%; } to { width: 0%; } }
.brief-heading { font-family: var(--serif); font-size: 28px; color: var(--text); margin-bottom: 6px; }
.brief-subtitle {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 7px; margin-bottom: 32px; flex-wrap: wrap;
}
.brief-event-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 9px 2px 7px; font-size: 12px; color: var(--text); font-weight: 500;
}
.brief-main-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  display: flex; overflow: hidden; min-height: 380px; margin-top: 20px; margin-bottom: 24px;
}
.brief-left {
  flex: 1; border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  order: 2;
}
.brief-left-head {
  padding: 16px 20px 14px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub);
}
.brief-list { flex: 1; overflow-y: auto; padding: 4px 6px; }
.brief-item {
  display: grid; grid-template-columns: 8px 1fr 1.3fr auto;
  align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; transition: background 0.1s; border-radius: 6px;
}
.brief-item:hover { background: var(--page); }
.brief-item.active { background: var(--surface); }
.brief-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.brief-item-name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.brief-item-senders { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-item-count { font-size: 12px; color: var(--muted); font-weight: 500; text-align: right; }
.brief-right {
  width: 320px; flex-shrink: 0; display: flex; flex-direction: column; padding: 16px 28px 24px;
  order: 1;
}
.brief-right-top {
  display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px;
}
.brief-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sub);
}
.brief-topic-tag {
  font-size: 11.5px; font-weight: 500; border-radius: 5px; padding: 3px 10px;
}
.brief-big-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 40px; }
.brief-big-number { font-family: var(--serif); font-size: 64px; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.brief-big-unit { font-size: 14px; color: var(--muted); font-weight: 400; }
.brief-stats { display: flex; flex-direction: column; gap: 10px; margin-bottom: auto; }
.brief-stat-row { display: flex; align-items: center; gap: 10px; }
.brief-stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--black); flex-shrink: 0; }
.brief-stat-icon { color: var(--sub); flex-shrink: 0; }
.brief-stat-rlabel { font-size: 13px; color: var(--muted); flex: 1; }
.brief-stat-rval { font-size: 13px; font-weight: 600; color: var(--text); }
.brief-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; margin-top: 24px;
}
.brief-time-est { font-size: 12px; color: var(--sub); }
.brief-start-btn {
  background: var(--black); color: var(--white); border: none; border-radius: 6px;
  padding: 10px 22px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--sans); display: flex; align-items: center; gap: 7px;
  transition: opacity 0.15s;
}
.brief-start-btn:hover { opacity: 0.85; }

/* Brief suggests */
.brief-suggests-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
}
.brief-suggests-title {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--sub);
}
.brief-suggests-hint { font-size: 12.5px; color: var(--muted); }
.brief-suggest-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.brief-suggest-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 15px 16px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: border-color 0.12s;
}
.brief-suggest-card:hover { border-color: #C8C5C1; }
.brief-suggest-type {
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--sub);
}
.brief-suggest-title { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.35; }
.brief-suggest-desc { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.brief-suggest-actions { display: flex; gap: 7px; }
.brief-suggest-accept {
  font-size: 11.5px; font-weight: 500; font-family: var(--sans);
  background: var(--black); color: var(--white);
  border: none; border-radius: 6px; padding: 5px 12px; cursor: pointer;
}
.brief-suggest-accept:hover { opacity: 0.85; }
.brief-suggest-dismiss {
  font-size: 11.5px; font-weight: 500; font-family: var(--sans);
  background: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; cursor: pointer;
}
.brief-suggest-dismiss:hover { background: var(--surface); }

/* ── QUICK READ ── */
.quick-read-view { display: flex; flex: 1; overflow-y: auto; background: var(--page); padding: 16px 16px 100px; flex-direction: column; gap: 10px; position: relative; }
.qr-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; max-width: 680px; width: 100%; margin: 0 auto; }
.qr-card-top { display: flex; align-items: center; gap: 8px; }
.qr-avatar { width: 22px; height: 22px; border-radius: 50%; font-size: 7px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.qr-sender { font-size: 12px; font-weight: 500; color: var(--text); flex: 1; }
.qr-date { font-size: 11px; color: var(--sub); }
.qr-icon-btn { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--sub); border-radius: 4px; transition: color 0.1s, background 0.1s; }
.qr-icon-btn:hover { color: var(--text); background: var(--surface); }
.qr-body { font-size: 12px; color: var(--text); line-height: 1.65; }
.qr-body strong { font-weight: 600; }
.qr-links { display: flex; gap: 14px; }
.qr-link { font-size: 11.5px; color: #2563EB; text-decoration: none; }
.qr-link:hover { text-decoration: underline; }
.qr-btn-open { font-size: 11.5px; font-weight: 500; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: var(--sans); transition: color 0.1s, background 0.1s; }
.qr-btn-open:hover { background: var(--surface); color: var(--text); }
.qr-action-bar-fixed { position: fixed; bottom: 0; left: 312px; right: 0; padding: 80px 16px 20px; background: linear-gradient(to bottom, transparent, var(--page) 55%); pointer-events: none; z-index: 50; display: flex; flex-direction: column; }
.qr-action-bar-fixed::after {
  display: none;
}
.qr-action-bar { pointer-events: all; max-width: 680px; width: 100%; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; transition: max-width 0.25s ease, width 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, opacity 0.25s ease, padding 0.25s ease, z-index 0s; }
.lobby-ask-bar {
  pointer-events: all; max-width: 640px; width: 92%; margin: 0 auto -6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  padding: 8px 16px;
  cursor: pointer; font-family: var(--sans);
  transition: max-width 0.25s ease, width 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, padding 0.25s ease, z-index 0s, opacity 0.25s ease, box-shadow 0.25s ease, border-color 0.15s, background 0.25s ease;
  position: relative; z-index: 0;
}
.lobby-ask-bar:hover { border-color: #D5D3D0; }
/* Collapsed (tucked) state */
.lobby-ask-collapsed { display: flex; align-items: center; gap: 8px; height: 100%; }
.lobby-ask-bar:not(.active) .lobby-ask-placeholder { font-size: 11px; }
.lobby-ask-bar:not(.active) .lobby-ask-icon { width: 14px; height: 14px; }
.lobby-ask-placeholder { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 20px; }
.lobby-ask-icon { flex-shrink: 0; color: var(--muted); }
/* Expanded state (hidden by default) */
.lobby-ask-expanded { display: none; }
.lobby-ask-input-row { display: flex; align-items: center; gap: 10px; }
.lobby-ask-user-av {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.lobby-ask-input {
  flex: 1; font-size: 12px; font-family: var(--sans);
  border: none; outline: none; background: transparent; color: var(--text);
}
.lobby-ask-input::placeholder { color: var(--sub); }
.lobby-ask-send {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--sub); transition: color 0.15s; flex-shrink: 0;
}
.lobby-ask-send:hover { color: var(--text); }
.lobby-ask-ctx {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px; margin-bottom: 6px;
  background: #D8EAFA; border-radius: 6px;
}
.lobby-ask-ctx-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lobby-ask-ctx-icon { flex-shrink: 0; color: #4584D5; }
.lobby-ask-ctx-text {
  font-size: 11px; font-weight: 500; color: #1A3F6E;
  font-family: var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lobby-ask-ctx-close {
  background: none; border: none; cursor: pointer;
  color: #4584D5; font-size: 13px; line-height: 1;
  padding: 0 2px; flex-shrink: 0;
}
.lobby-ask-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 4px;
}
.lobby-ask-toolbar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--sub); transition: color 0.15s, background 0.15s;
}
.lobby-ask-toolbar-btn:hover { color: var(--text); background: var(--surface); }
.lobby-ask-hints {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--sans);
}
.lobby-ask-hint-sym { font-size: 11px; color: var(--sub); font-weight: 500; margin-left: 10px; }
.lobby-ask-hint-txt { font-size: 11px; color: var(--sub); font-weight: 400; }
.lobby-ask-hint-btn {
  display: inline-flex; align-items: center; gap: 2px;
  cursor: pointer; border-radius: 4px; padding: 2px 4px;
  transition: background 0.1s;
}
.lobby-ask-hint-btn:hover { background: var(--surface); }
.lobby-ask-hint-btn .lobby-ask-hint-sym { margin-left: 0; }
/* Dim content when ask bar is active */
.ask-bar-dimmed { position: relative; }
.ask-bar-dimmed::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(250,249,247,0.55);
  z-index: 1;
  pointer-events: none;
  animation: askDimIn 0.2s ease;
}
@keyframes askDimIn { from { opacity: 0; } to { opacity: 1; } }
.ask-bar-dimmed .lobby-ask-bar.active { position: relative; z-index: 2; }
/* Active state — swaps on top, shows full input */
.lobby-ask-bar.active {
  z-index: 2; max-width: 680px; width: 100%; margin: 0 auto;
  border-radius: 10px; padding: 12px 16px; cursor: text;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  order: 2; opacity: 1; background: var(--white);
  border-color: var(--border);
}
.lobby-ask-bar.active .lobby-ask-collapsed { display: none; }
.lobby-ask-bar.active .lobby-ask-expanded { display: block; }

/* Chevron arrows for tucked bars */
.lobby-ask-tucked-arrow { display: none; margin-left: auto; font-size: 11px; }
.lobby-ask-bar:not(.active) .lobby-ask-tucked-arrow {
  display: flex; align-items: center;
  color: var(--muted); flex-shrink: 0;
}

.action-bar-tucked-arrow { display: none; margin-left: auto; }
.wf-action-bar.tucked .action-bar-tucked-arrow,
.qr-action-bar.tucked .action-bar-tucked-arrow,
.opt-action-bar.tucked .action-bar-tucked-arrow {
  display: flex; align-items: center; color: var(--muted);
}

/* ── Shortcut bar (popup) ── */
.shortcut-bar {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 10000;
  font-family: var(--sans);
}
.shortcut-bar-backdrop {
  position: absolute; inset: 0;
  background: rgba(13,13,12,0.18); backdrop-filter: blur(4px);
}
.shortcut-bar-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 4px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.04);
}
.shortcut-bar-item {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 5px;
  font-size: 11.5px; color: var(--muted);
  cursor: pointer; transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.shortcut-bar-item:hover { background: var(--surface); color: var(--text); }
.shortcut-bar-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  font-size: 10px; font-weight: 600; color: var(--sub);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 4px;
  font-family: var(--sans); line-height: 1;
}
.shortcut-bar-sep {
  width: 1px; height: 16px; background: var(--border); margin: 0 4px;
}

/* ── Search bar (separate style) ── */
#search-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: flex-start; justify-content: center; padding-top: 18vh;
}
#search-backdrop {
  position: absolute; inset: 0;
  background: rgba(13,13,12,0.18); backdrop-filter: blur(4px);
}
#search-bar {
  position: relative; width: 520px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden; z-index: 1;
}
#search-bar .search-input-row {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
#search-bar .search-icon {
  color: var(--sub); flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
}
#search-bar input {
  flex: 1; font-size: 14px; color: var(--text);
  font-family: var(--sans); background: none; border: none; outline: none;
}
#search-bar input::placeholder { color: var(--sub); }
#search-results { padding: 4px 0; max-height: 380px; overflow-y: auto; }
#search-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 14px; padding: 6px 16px; font-size: 10.5px; color: var(--sub);
  font-family: var(--sans); border-top: 1px solid var(--border);
}
.search-footer-key {
  font-size: 10px; font-weight: 500; color: var(--sub);
  padding: 0 1px;
}
/* search row */
.search-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px; cursor: pointer; transition: background 0.08s;
}
.search-row:hover, .search-row.search-active { background: var(--surface); }

/* ── AI answer card ── */
.cmd-ai-answer {
  padding: 14px 18px;
  font-family: var(--sans);
}
.cmd-ai-bubble {
  display: flex; gap: 10px; align-items: flex-start;
}
.cmd-ai-bubble .cmd-av-lobby { margin-top: 1px; }
.cmd-ai-text {
  font-size: 13px; color: var(--text); line-height: 1.55;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 14px; max-width: 100%;
}
.cmd-ai-source {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.cmd-ai-source-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: #B0ADAA;
  margin-bottom: 4px;
}

/* ── OPTIONAL ZONE ── */
.opt-list-wrap { flex: 1; overflow-y: auto; background: var(--page); padding: 16px 16px 80px 16px; position: relative; }
.opt-card { max-width: 680px; width: 100%; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.opt-row { border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; }
.opt-row:last-child { border-bottom: none; }
.opt-row:hover { background: var(--page); }
.opt-row.open { background: var(--page); }
.opt-row-main { display: flex; align-items: center; gap: 12px; padding: 11px 20px; }
.opt-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 600; color: var(--white); letter-spacing: 0.02em; }
.opt-meta { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.opt-sender { font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.opt-subject { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.opt-tag { font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.01em; }
.opt-date { font-size: 11.5px; color: var(--sub); white-space: nowrap; flex-shrink: 0; }
.opt-chevron { color: var(--sub); flex-shrink: 0; transition: transform 0.18s ease; display: flex; align-items: center; }
.opt-row.open .opt-chevron { transform: rotate(180deg); }
.opt-expand { display: none; padding: 0 20px 14px 58px; border-top: 1px solid var(--border); }
.opt-row.open .opt-expand { display: block; }
.opt-email-body { padding: 12px 0 0; }
.opt-email-from { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.opt-email-subj { font-size: 11.5px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.opt-email-content { font-size: 12.5px; color: var(--text); line-height: 1.6; }
.opt-action-bar-fixed { position: absolute; bottom: 0; left: 0; right: 0; padding: 80px 16px 20px; background: linear-gradient(to bottom, transparent, var(--page) 55%); pointer-events: none; display: flex; flex-direction: column; }
.opt-action-bar-fixed::after {
  display: none;
}
.opt-action-bar { pointer-events: all; max-width: 680px; width: 100%; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; transition: max-width 0.25s ease, width 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, opacity 0.25s ease, padding 0.25s ease, z-index 0s; }
.wf-action-bar.tucked, .qr-action-bar.tucked, .opt-action-bar.tucked { z-index: 0; max-width: 640px; width: 92%; margin: 0 auto -6px; border-radius: 10px 10px 0 0; order: -1; padding: 8px 16px; pointer-events: all; background: var(--surface); border-color: var(--border); cursor: pointer; }
.wf-action-bar.tucked:hover, .qr-action-bar.tucked:hover, .opt-action-bar.tucked:hover { border-color: #D5D3D0; }
.wf-action-bar.tucked .wf-btn-approve, .wf-action-bar.tucked .wf-btn-options,
.qr-action-bar.tucked .qr-btn-archive,
.opt-action-bar.tucked .opt-btn-approve { display: none; }
.wf-action-bar.tucked .wf-status, .wf-action-bar.tucked .wf-action-label,
.qr-action-bar.tucked .qr-archive-status, .qr-action-bar.tucked .wf-action-label,
.opt-action-bar.tucked .opt-status, .opt-action-bar.tucked .wf-action-label { font-size: 11px; }
.wf-action-bar.tucked .wf-lobby-icon, .qr-action-bar.tucked .wf-lobby-icon, .opt-action-bar.tucked .wf-lobby-icon { width: 14px; height: 14px; }
.opt-status { flex: 1; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.opt-btn-approve { background: var(--black); color: var(--white); border: none; border-radius: 5px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 7px; font-family: var(--sans); }
.qr-archive-status { font-size: 12px; color: var(--muted); flex: 1; display: flex; align-items: center; gap: 8px; }
.qr-btn-archive { font-size: 12px; font-weight: 500; background: var(--black); color: var(--white); border: none; border-radius: 5px; padding: 7px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: var(--sans); }
/* ── RECIPIENT TOOLBAR (Option C) ── */
.rcpt-toolbar-btn {
  font-size: 11px;
  color: var(--sub);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 3px 7px;
  border-radius: 4px;
  transition: background 0.1s, color 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rcpt-toolbar-btn:hover { background: var(--surface); color: var(--text); }
.rcpt-toolbar-btn.active { background: var(--surface); color: var(--text); font-weight: 500; }

.rcpt-field-slide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease;
}
.rcpt-field-slide.open { max-height: 80px; overflow: visible; }
.rcpt-field-slide .people-suggest {
  top: auto; bottom: 100%; margin-top: 0; margin-bottom: 4px;
}

.rcpt-field-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
}
.rcpt-field-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--sub);
  flex-shrink: 0;
  min-width: 20px;
}
.st-right-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.st-content-scroll { flex: 1; overflow-y: auto; padding: 16px 40px 160px; display: flex; flex-direction: column; align-items: center; }
.st-content-inner { width: 100%; max-width: 720px; }
.st-nav-between { justify-content: space-between; }
.st-tool-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.st-tool-row:last-child { border-bottom: none; }


.cmd-row { display:flex; align-items:center; gap:10px; padding:9px 18px; cursor:pointer; transition:background 0.08s; }
.cmd-row:hover, .cmd-row.cmd-active { background:#F5F4F1; }
.cmd-row-icon { color:#B0ADAA; flex-shrink:0; width:20px; display:flex; align-items:center; justify-content:center; }
.cmd-row-text { font-size:13px; color:#2C2A27; font-family:'Inter',system-ui,sans-serif; flex:1; }
.cmd-row-badge { font-size:11px; color:#B0ADAA; font-family:'Inter',system-ui,sans-serif; white-space:nowrap; }
.cmd-empty { font-size:13px; color:#B0ADAA; font-family:'Inter',system-ui,sans-serif; padding:14px 18px; text-align:center; }
.cmd-qr-btn { font-size:12px; font-weight:500; font-family:'Inter',system-ui,sans-serif; color:#2C2A27; background:#F5F4F1; border:1px solid #ECEAE7; border-radius:6px; padding:5px 12px; cursor:pointer; transition:background 0.1s, border-color 0.1s; }
.cmd-qr-btn:hover { background:#ECEAE7; }
.cmd-qr-btn.selected { background:#0D0D0C; color:white; border-color:#0D0D0C; }
.cmd-msg-row { display:flex; align-items:flex-start; gap:9px; }
.cmd-av-lobby { width:22px; height:22px; border-radius:5px; background:#0D0D0C; display:flex; align-items:center; justify-content:center; font-family:'Instrument Serif',serif; font-style:italic; font-size:11px; color:white; flex-shrink:0; }
.cmd-av-you { width:22px; height:22px; border-radius:5px; background:#D5D2CE; flex-shrink:0; }
.cmd-msg-label { font-size:10px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:#B0ADAA; margin-bottom:3px; font-family:'Inter',system-ui,sans-serif; }
.cmd-msg-text { font-size:13px; color:#2C2A27; line-height:1.5; font-family:'Inter',system-ui,sans-serif; }
.cmd-msg-text.you { color:#767472; }
.cmd-meta-pill { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:#767472; background:#F5F4F1; border:1px solid #ECEAE7; border-radius:4px; padding:2px 8px; font-family:'Inter',system-ui,sans-serif; }

/* ── DONE ACTIVITY LOG ── */
.done-log {
  flex-shrink: 0;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}
.done-log-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 16px;
}
.done-log-item {
  display: flex;
  gap: 14px;
  position: relative;
}
.done-log-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -8px;
  width: 1px;
  background: var(--border);
}
.done-log-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.done-log-body {
  flex: 1;
  padding-bottom: 20px;
}
.done-log-action {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.done-log-action strong { font-weight: 600; }
.done-log-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.done-log-header {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}
.done-log-header-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sub);
}
.done-log-header-chevron {
  color: var(--sub);
  transition: transform 0.18s ease;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.done-log-header-chevron.collapsed { transform: rotate(-90deg); }
.done-log-items {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.done-log-items.hidden { display: none; }

.hold-convert-btn {
  margin-left: auto;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.15s;
}
.hold-convert-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.hold-convert-btn:not(:disabled):hover { opacity: 0.82; }
.hold-converted {
  border-top: 1px solid var(--border);
  background: #F5FBF5;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 0 32px 64px;
  text-align: center;
  gap: 0;
}
.empty-state-icon {
  color: var(--border);
  margin-bottom: 20px;
}
.empty-state-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.empty-state-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 260px;
}
.empty-state-btn {
  margin-top: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.empty-state-btn:hover {
  background: var(--surface);
  border-color: var(--sub);
}
.empty-state-section {
  font-style: italic;
  color: var(--muted);
}
.empty-state-finish {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  transition: opacity 0.12s;
}
.empty-state-finish:hover { opacity: 0.85; }
.empty-state-finish .wf-kbd-dark {
  font-size: 9px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  border-radius: 3px;
  padding: 2px 5px;
}

.done-lobby-bar {
  padding: 12px 0 0;
}
/* done-zone & context-zone ask bars inherit .lobby-ask-bar styles */
.done-lobby-bar .lobby-ask-bar,
.context-space-hint .lobby-ask-bar {
  background: var(--white);
  margin: 0;
  width: 100%;
  max-width: 100%;
}
.done-lobby-bar .lobby-ask-bar.active,
.context-space-hint .lobby-ask-bar.active {
  max-width: 100%;
  width: 100%;
}

/* ── CONTEXT ZONE ── */
.context-rule {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  font-size: 13px;
  color: var(--text);
  gap: 8px;
  line-height: 1.4;
}
.context-rule span { flex: 1; }
.context-rule-x {
  background: none; border: none; cursor: pointer;
  color: var(--sub); font-size: 15px; line-height: 1;
  padding: 1px 4px; border-radius: 4px; flex-shrink: 0;
  font-family: var(--sans);
}
.context-rule-x:hover { color: var(--muted); background: var(--surface); }
.context-tool-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: #FFF4F0; border: 1px solid #FFD9CC;
  border-radius: 5px; padding: 1px 6px 1px 4px;
  font-size: 11px; font-weight: 500; color: #C4521A;
  white-space: nowrap; vertical-align: middle;
}
.context-space-hint {
  padding: 12px 14px 12px;
  margin-top: auto;
}
.context-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  transition: background 0.15s, opacity 0.4s, max-height 0.4s, padding 0.4s, margin 0.4s, border-color 0.4s;
  overflow: hidden;
}
.context-card:hover {
  background: var(--surface);
}
.context-card.fade-out {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-color: transparent;
}
.context-card-grip {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--sub);
  opacity: 0;
  transition: opacity 0.15s;
  cursor: grab;
  user-select: none;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-top: 2px;
}
.context-card:hover .context-card-grip {
  opacity: 1;
}
.context-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.context-card-body {
  flex: 1;
  min-width: 0;
}
.context-card-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.context-card-meta {
  font-size: 11px;
  color: var(--sub);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 0;
}
.ctx-deadline {
  color: var(--sub);
}
.context-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
.context-card:hover .context-card-actions {
  opacity: 1;
}
.context-discard-btn {
  font-size: 11px;
  color: var(--sub);
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.1s, border-color 0.1s;
}
.context-discard-btn:hover {
  color: var(--muted);
  border-color: var(--sub);
}
.context-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  color: var(--sub);
  transition: color 0.1s, border-color 0.1s;
}
.context-edit-btn:hover {
  color: var(--muted);
  border-color: var(--sub);
}
/* Topbar rule count pill */
.ctx-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--sans);
}
/* Topbar add rule button */
.ctx-add-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.1s, border-color 0.1s, background 0.1s;
  margin-left: auto;
}
.ctx-add-btn:hover {
  color: var(--text);
  border-color: var(--sub);
  background: var(--surface);
}
/* Connected tools separator */
.ctx-connected-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 14px;
}
/* + Connect chip */
.ctx-connect-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 5px;
  padding: 1px 7px 1px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sub);
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
  white-space: nowrap;
}
.ctx-connect-chip:hover {
  color: var(--muted);
  border-color: var(--sub);
}
/* Inline add rule input card */
.context-card-input {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--sub);
  border-radius: 10px;
  animation: ctx-input-in 0.2s ease;
}
@keyframes ctx-input-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.context-card-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  background: transparent;
  line-height: 1.5;
}
.context-card-input input::placeholder {
  color: var(--sub);
}
/* ── SETTINGS NAV ── */
.st-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; transition: background 0.08s, color 0.08s;
}
.st-nav-item:hover { background: var(--surface); color: var(--text); }
.st-nav-item.active { background: var(--surface); color: var(--text); font-weight: 500; }
.st-nav-item svg { color: var(--sub); flex-shrink: 0; }
.st-nav-item.active svg { color: var(--muted); }
.st-nav-link { color: var(--sub); }
.st-nav-link:hover { color: var(--muted); }
.st-panel { display: none; }
.st-panel.active { display: block; }
.st-panel-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 18px; }
.st-invoice-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  font-size: 12.5px; color: var(--text); border-bottom: 1px solid var(--border);
}
.st-invoice-row span:first-child { flex: 1; }

/* ── SETTINGS ── */
.st-zone { display: none; flex: 1; flex-direction: row; overflow: hidden; }
.st-left-nav {
  width: 260px; background: var(--white); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; transition: width 0.2s ease;
}
.st-left-header { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 8px; }
.st-left-header-title { font-size: 13px; font-weight: 500; color: var(--text); }
.st-left-scroll { flex: 1; overflow-y: auto; padding: 8px 0; }
.st-nav-label {
  padding: 8px 14px 4px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--sub);
}
.st-nav-label-lg { padding: 16px 14px 4px; }
.st-nav-sub { padding-left: 28px; }
.st-nav-email-row { display: flex; align-items: center; gap: 8px; }
.st-nav-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.st-nav-chevron { margin-left: auto; color: var(--sub); transition: transform 0.18s; }

.st-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.st-card-sm { margin-bottom: 10px; }
.st-card-header {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 16px;
}
.st-card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.st-field-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--page); border-radius: 10px; padding: 13px 16px; margin: 0 12px 6px;
}
.st-field-label { font-size: 12.5px; color: var(--muted); }
.st-field-value { font-size: 12.5px; color: var(--text); }
.st-field-value-row { display: flex; align-items: center; gap: 7px; }
.st-field-group {
  background: var(--page); border-radius: 10px; padding: 10px 14px; margin: 0 12px 6px;
}
.st-field-group-label {
  font-size: 10.5px; font-weight: 500; color: var(--sub); margin-bottom: 5px; letter-spacing: 0.03em;
}
.st-field-group-pair { display: flex; gap: 6px; padding: 0 12px; margin-bottom: 6px; }
.st-field-group-pair > div { flex: 1; }
.st-field-input-clean {
  width: 100%; background: transparent; border: none; padding: 0;
  font-size: 12.5px; font-weight: 500; font-family: var(--sans); color: var(--text); outline: none;
}
.st-edit-btn {
  background: none; border: none; cursor: pointer; color: var(--sub);
  padding: 2px; display: flex; align-items: center; transition: color 0.1s;
}
.st-edit-btn:hover { color: var(--text); }
.st-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#5B8DEF,#7EB3FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: white; font-family: var(--sans);
  cursor: pointer; box-shadow: 0 2px 6px rgba(91,141,239,0.3);
}
.st-notif-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--page); border-radius: 10px; padding: 13px 16px;
}
.st-notif-rows { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.st-notif-label { font-size: 12.5px; color: var(--text); }
.st-label-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px;
}
.st-label-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.st-label-info { flex: 1; min-width: 0; }
.st-label-name { font-size: 13px; font-weight: 600; color: var(--text); }
.st-label-desc { font-size: 12px; color: var(--sub); margin-top: 2px; }
.st-label-action { position: relative; flex-shrink: 0; margin-top: 2px; }
.st-delete-btn { color: var(--sub); padding: 4px; }
.st-plan-badge {
  font-size: 11px; font-weight: 500; color: #2d7a4f; background: #eaf6f0;
  border: 1px solid #c0e8d4; border-radius: 20px; padding: 2px 10px;
}

.settings-group-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--sub); margin-bottom: 10px;
}
.settings-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 6px; overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; transition: background 0.08s;
}
.settings-row:hover { background: var(--page); }
.settings-row-icon { color: var(--sub); flex-shrink: 0; display: flex; align-items: center; }
.settings-row-text { flex: 1; min-width: 0; }
.settings-row-title { font-size: 13px; font-weight: 500; color: var(--text); display: block; }
.settings-row-sub { font-size: 11.5px; color: var(--sub); display: block; margin-top: 1px; }
.settings-chevron { color: var(--sub); flex-shrink: 0; transition: transform 0.18s; }
.settings-expand { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.settings-expand.open { max-height: 600px; }
.settings-expand-inner { padding: 0 16px 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.settings-field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.settings-field-label { font-size: 12px; color: var(--sub); width: 100px; flex-shrink: 0; }
.settings-field-input {
  flex: 1; font-size: 12.5px; color: var(--text); font-family: var(--sans);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 10px; outline: none; transition: border-color 0.1s;
}
.settings-field-input:focus { border-color: var(--sub); }
.settings-btn {
  font-size: 12px; font-weight: 500; color: var(--white); background: var(--black);
  border: none; border-radius: 5px; padding: 7px 16px;
  cursor: pointer; font-family: var(--sans); transition: opacity 0.1s;
}
.settings-btn:hover { opacity: 0.85; }
.settings-btn-ghost {
  font-size: 11px; font-weight: 500; color: var(--sub); background: none;
  border: none; cursor: pointer; font-family: var(--sans); padding: 0;
  transition: color 0.1s;
}
.settings-btn-ghost:hover { color: var(--text); }
.settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 12.5px; color: var(--text);
}
.settings-toggle-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.settings-toggle {
  width: 36px; height: 20px; border-radius: 10px; background: var(--border);
  cursor: pointer; position: relative; transition: background 0.15s; flex-shrink: 0;
}
.settings-toggle.on { background: #4A9E6E; }
.settings-toggle-knob {
  width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  position: absolute; top: 2px; left: 2px; transition: transform 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.settings-toggle.on .settings-toggle-knob { transform: translateX(16px); }
.settings-label-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 12.5px; color: var(--text);
}
.settings-label-row:not(:last-of-type) { border-bottom: 1px solid var(--border); }
.settings-label-row span:first-of-type { flex: 1; }
.settings-label-row .settings-btn-ghost { margin-left: auto; }
.settings-label-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.settings-tool-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 12.5px; color: var(--text);
}
.settings-tool-row:not(:last-of-type) { border-bottom: 1px solid var(--border); }
.settings-tool-icon {
  width: 26px; height: 26px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; border: 1px solid; flex-shrink: 0;
}
.settings-tool-name { font-weight: 500; flex: 1; }
.settings-tool-status { font-size: 11px; color: #4A9E6E; }
.settings-blocked-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 12.5px; color: var(--text);
}
.settings-blocked-row:not(:last-of-type) { border-bottom: 1px solid var(--border); }
.settings-footer-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  font-size: 13px; color: var(--text); text-decoration: none;
  transition: color 0.1s;
}
.settings-footer-link:hover { color: var(--black); }
.settings-footer-link svg { color: var(--sub); flex-shrink: 0; }
.settings-footer-badge {
  font-size: 10.5px; color: var(--sub); background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 7px;
  margin-left: auto;
}

/* ── LABEL MENU ── */
.label-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13,13,12,0.08); padding: 4px; z-index: 200;
  min-width: 130px;
}
.label-menu.open { display: block; }
.label-menu-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  font-size: 12px; font-weight: 500; color: var(--text); border-radius: 6px;
  cursor: pointer; font-family: var(--sans); transition: background 0.06s;
}
.label-menu-item:hover { background: var(--surface); }
.label-menu-item svg { color: var(--sub); flex-shrink: 0; }
.label-menu-danger { color: #c0392b; }
.label-menu-danger svg { color: #c0392b; }

/* ── EMAIL GROUP NAV ── */
.eg-sub {
  max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
}
.eg-sub.open { max-height: 200px; }

/* ── SETTINGS HOME / LANDING ── */
.st-home-welcome {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 0 32px; gap: 6px;
}
.st-home-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.st-home-name {
  font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.2;
}
.st-home-email {
  font-size: 12.5px; color: var(--sub);
}
.st-home-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 0 4px;
}
.st-home-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 18px;
  cursor: pointer; transition: background 0.1s, border-color 0.12s;
}
.st-home-card:hover {
  background: var(--surface); border-color: var(--sub);
}
.st-home-card-icon {
  color: var(--sub); margin-bottom: 12px;
}
.st-home-card:hover .st-home-card-icon { color: var(--muted); }
.st-home-card-label {
  font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px;
}
.st-home-card-desc {
  font-size: 11.5px; color: var(--sub); line-height: 1.4;
}

/* ── ACCOUNT SWITCHER PILL ── */
.st-acct-switcher {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--page); border-radius: 8px; padding: 3px;
  margin-bottom: 16px;
}
.st-acct-switcher-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; border: none;
  background: transparent; cursor: pointer;
  font-size: 11.5px; font-weight: 500; color: var(--sub);
  font-family: var(--sans); transition: background 0.12s, color 0.12s;
}
.st-acct-switcher-btn:hover { color: var(--muted); }
.st-acct-switcher-btn.active {
  background: var(--white); color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.st-acct-switcher-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.st-acct-data { display: none; }
.st-acct-data.active { display: block; }

/* ── CONNECTED TOOLS (Option B - flat sections) ── */
.ct-tool {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ct-tool:last-child { margin-bottom: 0; }
.ct-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}
.ct-head-info { flex: 1; min-width: 0; }
.ct-head-name { font-size: 14px; font-weight: 600; color: var(--text); }
.ct-head-desc { font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.4; }
.ct-doc-link {
  font-size: 11.5px; font-weight: 500; color: #5B8DEF;
  text-decoration: none; margin-top: 4px; display: inline-block;
}
.ct-doc-link:hover { text-decoration: underline; }
.ct-connect-btn {
  font-size: 12px; font-weight: 500; color: var(--white); background: var(--black);
  border: none; border-radius: 5px; padding: 7px 14px;
  cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0; transition: opacity 0.1s;
  white-space: nowrap;
}
.ct-connect-btn:hover { opacity: 0.85; }
.ct-accounts {
  border-top: 1px solid var(--border);
}
.ct-accounts.ct-empty {
  border-top: 1px solid var(--border);
}
.ct-acc-empty {
  padding: 14px 20px;
  font-size: 12px; color: var(--sub);
}
.ct-acc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.06s;
}
.ct-acc-row:not(:last-child) { }
.ct-acc-row:hover { background: var(--page); }
.ct-acc-icon {
  width: 24px; height: 24px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ct-acc-name { font-size: 12.5px; font-weight: 500; color: var(--text); }
.ct-acc-email { font-size: 12px; color: var(--sub); margin-left: 6px; }
.ct-acc-labels {
  font-size: 11px; font-weight: 500; color: var(--sub);
  margin-left: auto; margin-right: 10px;
}
.ct-acc-labels.has { color: #5B8DEF; }
.ct-acc-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.1s;
  margin-left: auto;
}
.ct-acc-labels + .ct-acc-status { margin-left: 0; }
.ct-acc-status:hover { border-color: var(--sub); }
.ct-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4A9E6E; flex-shrink: 0;
}

/* ── BRIEF SUMMARY CARD ── */
.brief-summary-overlay {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  display: none;
  animation: briefSlideIn 0.35s ease;
}
.brief-summary-overlay.open { display: block; }
@keyframes briefSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.brief-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px 26px 22px; width: 340px;
  box-shadow: 0 8px 32px rgba(13,13,12,0.12); position: relative;
}
.brief-close {
  position: absolute; top: 14px; right: 16px;
  color: var(--sub); cursor: pointer; background: none; border: none;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: color 0.1s, background 0.1s;
}
.brief-close:hover { color: var(--muted); background: var(--surface); }
.brief-greeting { font-family: var(--serif); font-size: 22px; color: var(--black); margin-bottom: 4px; }
.brief-sub { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.brief-stat { background: var(--page); border-radius: 8px; padding: 14px 16px; }
.brief-stat-value { font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.brief-stat-unit { font-size: 11px; font-weight: 500; color: var(--sub); }
.brief-stat-label { font-size: 10.5px; color: var(--sub); margin-top: 3px; }
.brief-pending {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); padding: 12px 0 8px; border-top: 1px solid var(--border);
}
.brief-pending-dot { width: 6px; height: 6px; border-radius: 50%; background: #B07900; }
.brief-share-section { padding-top: 0; margin-top: 14px; }
.brief-share-row { display: flex; align-items: center; gap: 12px; }
.brief-share-label { font-size: 11px; color: var(--sub); font-weight: 400; }
.brief-share-icons { display: flex; align-items: center; gap: 2px; }
.brief-share-icon {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  color: var(--sub); cursor: pointer; border-radius: 4px; background: none; border: none;
  transition: color 0.1s, background 0.1s;
}
.brief-share-icon:hover { color: var(--muted); background: var(--surface); }

/* ── CHAT HISTORY ── */
.ch-item {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.08s; display: flex; flex-direction: column; gap: 4px;
}
.ch-item:hover { background: var(--page); }
.ch-item.active { background: var(--surface); }
.ch-item-top { display: flex; align-items: center; gap: 8px; }
.ch-item-ask { font-size: 12.5px; font-weight: 500; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item-time { font-size: 11px; color: var(--sub); flex-shrink: 0; }
.ch-item-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-status { font-size: 11.5px; font-weight: 500; }
.ch-sent { color: #4A9E6E; }
.ch-booked { color: #4A9E6E; }
.ch-logged { color: #4A9E6E; }
.ch-pending { color: #C47B1A; }
.ch-cancelled { color: var(--sub); }
.ch-ctx-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: #4A6FA5; background: #EDF2FA;
  border: 1px solid #D6E2F3; border-radius: 4px; padding: 3px 10px;
  font-family: var(--sans);
}
.ch-thread-time { font-size: 11px; color: var(--sub); margin-left: 8px; }
.ch-thread { flex: 1; overflow-y: auto; padding: 16px 24px; display: none; flex-direction: column; gap: 14px; }
.ch-thread.active { display: flex; }
.ch-msg-you { display: flex; justify-content: flex-end; }
.ch-bubble-you { background: #F7F6F3; border-radius: 10px 10px 2px 10px; padding: 9px 13px; max-width: 70%; font-size: 13px; color: var(--text); line-height: 1.5; }
.ch-msg-lobby { display: flex; gap: 8px; align-items: flex-start; }
.ch-av { width: 22px; height: 22px; border-radius: 5px; background: var(--black); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 11px; color: var(--white); flex-shrink: 0; margin-top: 1px; }
.ch-bubble-lobby { background: #FFFFFF; border: 1px solid #ECEAE7; border-radius: 10px 10px 10px 2px; padding: 9px 13px; max-width: 70%; font-size: 13px; color: var(--text); line-height: 1.5; }
.ch-draft-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; font-size: 12.5px; color: var(--text); line-height: 1.7; margin-top: 8px; overflow: hidden; }
.ch-draft-card .draft-header { margin: -11px -13px 10px; padding: 9px 13px; border-bottom: 1px solid var(--border); border-radius: 0; }
.ch-meta { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.ch-meta-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-family: var(--sans); }
.ch-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.ch-sent-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: #1A7F45; }

/* ── LOBBY CHAT PANEL ── */
.lobby-chat-panel {
  width: 340px;
  background: var(--white);
  border-left: 1px solid var(--border);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  z-index: 10;
}
.lobby-chat-panel.open { display: flex; }
.lobby-chat-header {
  height: 46px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-shrink: 0;
}
.lobby-chat-title { font-size: 12px; font-weight: 500; color: var(--text); }
.lobby-chat-close {
  color: var(--sub); cursor: pointer; margin-left: auto;
  background: none; border: none; font-size: 16px; line-height: 1;
  padding: 2px 4px; border-radius: 4px; transition: color 0.1s;
}
.lobby-chat-close:hover { color: var(--text); }
.lobby-chat-ctx { padding: 12px 16px 0; }
.lobby-chat-thread {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.lc-msg-you { display: flex; justify-content: flex-end; }
.lc-bubble-you {
  background: #F7F6F3; border-radius: 10px 10px 2px 10px;
  padding: 9px 13px; max-width: 82%;
  font-size: 13px; color: var(--text); line-height: 1.5;
}
.lc-msg-lobby { display: flex; gap: 8px; align-items: flex-start; }
.lc-av {
  width: 22px; height: 22px; border-radius: 5px; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 11px;
  color: var(--white); flex-shrink: 0; margin-top: 1px;
}
.lc-bubble-lobby {
  background: #FFFFFF; border: 1px solid #ECEAE7;
  border-radius: 10px 10px 10px 2px; padding: 9px 13px;
  max-width: 82%; font-size: 13px; color: var(--text); line-height: 1.5;
}
.lc-draft-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 13px;
  font-size: 12.5px; color: var(--text); line-height: 1.7; margin-top: 8px;
  overflow: hidden;
}
.lc-draft-card .draft-header { margin: -11px -13px 10px; padding: 9px 13px; border-bottom: 1px solid var(--border); border-radius: 0; }
.lc-meta { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.lc-meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px;
  font-family: var(--sans);
}
.lc-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.lc-approve {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--white);
  background: var(--black); border: none; border-radius: 6px;
  padding: 7px 14px; cursor: pointer; font-family: var(--sans);
  transition: opacity 0.15s;
}
.lc-approve:hover { opacity: 0.85; }
.lc-edit-btn {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 14px; cursor: pointer; font-family: var(--sans);
  transition: color 0.15s, border-color 0.15s;
}
.lc-edit-btn:hover { color: var(--text); border-color: var(--sub); }
.lc-qr-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lc-qr-btn {
  font-size: 12px; color: var(--text); background: var(--white);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; font-family: var(--sans);
  transition: border-color 0.15s, background 0.15s;
}
.lc-qr-btn:hover { border-color: var(--sub); background: var(--surface); }
.lc-qr-btn.selected {
  border-color: var(--black); background: var(--surface); font-weight: 500;
}
.lobby-chat-ctx-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px; font-family: var(--sans);
}
.lobby-chat-input-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.lobby-chat-input {
  flex: 1; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; font-family: var(--sans);
  color: var(--text); background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.lobby-chat-input::placeholder { color: var(--sub); }
.lobby-chat-input:focus { border-color: var(--sub); }
.lobby-chat-send {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--sub); transition: color 0.15s;
}
.lobby-chat-send:hover { color: var(--text); }

/* Command bar user avatar */
.cmd-av-user {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 8px; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0;
}

/* Command bar context top bar */
.cmd-ctx-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-bottom: 1px solid var(--border);
  font-size: 11.5px; font-weight: 500; color: var(--blue);
  background: var(--blue-bg);
  font-family: var(--sans);
}
.cmd-ctx-bar .cmd-ctx-close {
  margin-left: auto; cursor: pointer; color: var(--blue);
  opacity: 0.45; font-size: 13px; line-height: 1;
  background: none; border: none; padding: 0 2px;
  transition: opacity 0.12s;
}
.cmd-ctx-bar .cmd-ctx-close:hover { opacity: 0.8; }

/* ── SPOTLIGHT-DEEP HARMONIZED STYLES ── */

/* Keyboard shortcut badge */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: var(--sub);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px;
  font-family: var(--sans); line-height: 1;
}

/* Action buttons */
.act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; font-family: var(--sans);
  background: var(--white); color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 14px; cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.act-btn:hover { color: var(--text); border-color: var(--sub); }
.act-btn.primary {
  background: var(--black); color: var(--white); border-color: var(--black);
}
.act-btn.primary:hover { opacity: 0.88; }
.act-btn.primary .kbd {
  background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.act-btn.ghost {
  background: none; border: none; color: var(--sub); padding: 6px 10px;
}
.act-btn.ghost:hover { color: var(--text); }

/* Draft header */
.draft-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--muted); font-family: var(--sans);
}
.draft-header-icon {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); flex-shrink: 0;
}
.draft-header-label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
.draft-header-recip { color: var(--text); font-weight: 500; }

/* Suggestion hint icon */
.spot-hint-icon {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); flex-shrink: 0;
}

/* Spotlight footer */
.spot-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 18px;
  font-size: 11px; color: var(--sub); font-family: var(--sans);
  justify-content: flex-end;
}
.spot-footer-label { flex: 1; }
.spot-footer-key-plain {
  font-size: 10px; font-weight: 500; color: var(--sub);
  font-family: var(--sans); padding: 0 1px;
}
.spot-footer-hint {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--sub);
}
.spot-footer-key {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: var(--sub);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 4px; min-width: 16px;
  font-family: var(--sans); line-height: 1;
}

/* Loading dots */
.loading-dots {
  display: flex; align-items: center; gap: 4px; padding: 4px 0;
}
.loading-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sub); animation: dotPulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Success card */
.success-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-bg); border: 1px solid #C6EDDA;
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; font-weight: 500; color: var(--green);
  font-family: var(--sans); margin: 14px 18px;
}
.success-card svg { flex-shrink: 0; }

/* Error card */
.error-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--red-bg); border: 1px solid #F5D0CD;
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; font-weight: 500; color: var(--red);
  font-family: var(--sans); margin: 14px 18px;
}
.error-card svg { flex-shrink: 0; }

/* ── Inline Progress Status ── */
.wf-status-step {
  display: inline-flex; align-items: center; gap: 6px;
}
.wf-status-step .lp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text);
  animation: dotPulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.wf-status-step .lp-check {
  color: var(--green); display: flex; align-items: center; flex-shrink: 0;
}
.wf-status .wf-status-step { color: var(--text); font-weight: 500; }

/* ── Lobby Progress Popup ── */
#lobby-progress {
  position: fixed; bottom: 24px; right: 24px; z-index: 9997;
  width: 320px; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  font-family: 'Inter', system-ui, sans-serif;
  animation: briefSlideIn 0.35s ease;
  overflow: hidden;
}
.lp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.lp-header-left { display: flex; align-items: center; gap: 8px; }
.lp-title { font-size: 13px; font-weight: 600; color: var(--text); }
.lp-controls { display: flex; gap: 4px; }
.lp-ctrl-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); transition: all 0.15s;
}
.lp-ctrl-btn:hover { background: var(--surface); color: var(--text); }
.lp-ctrl-stop:hover { background: #FEE; color: #C0392B; border-color: #E8B4B4; }

#lp-steps { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.lp-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--sub); line-height: 1.4;
  transition: color 0.2s;
}
.lp-step.active { color: var(--text); font-weight: 500; }
.lp-step.done { color: var(--green); }
.lp-step-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 10px;
  border: 1.5px solid var(--border); color: var(--sub); transition: all 0.2s;
}
.lp-step.active .lp-step-icon {
  border-color: var(--text); background: var(--text);
}
.lp-step.done .lp-step-icon {
  border-color: var(--green); background: var(--green); color: white;
}

.lp-progress-track {
  height: 3px; background: var(--surface); margin: 0 16px 12px;
  border-radius: 2px; overflow: hidden;
}
.lp-progress-fill {
  height: 100%; width: 0%; background: var(--text);
  border-radius: 2px; transition: width 0.4s ease;
}

.lp-footer {
  padding: 0 16px 14px; display: flex; justify-content: flex-end;
}
.lp-review-btn {
  font-size: 12px; font-weight: 500; font-family: 'Inter', system-ui, sans-serif;
  padding: 6px 14px; border-radius: 8px;
  background: var(--text); color: var(--white); border: none;
  cursor: pointer; transition: opacity 0.15s;
}
.lp-review-btn:hover { opacity: 0.85; }

/* ── Unified Toast Popup ── */
#lobby-toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 9998;
  background: var(--white);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13,13,12,0.09), 0 2px 6px rgba(13,13,12,0.05);
  font-family: var(--sans);
  animation: toastSlideIn 0.3s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#lobby-toast.toast-fade-out {
  animation: toastFadeOut 0.2s ease forwards;
}
@keyframes toastFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}
.toast-state { display: none; }
.toast-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
}
.toast-label {
  font-size: 12px; color: var(--sub); flex: 1; line-height: 1.3;
}
.toast-label strong { font-weight: 500; color: var(--text); }
.toast-logo {
  flex-shrink: 0; border-radius: 2px;
  width: 14px; height: 14px;
}
#lobby-toast .loading-dots { gap: 3px; }
#lobby-toast .loading-dots span { width: 3.5px; height: 3.5px; }

/* Shared toast button base */
.toast-btn {
  font-size: 11px; font-weight: 500; font-family: var(--sans);
  padding: 4px 10px; border-radius: 5px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background 0.12s, border-color 0.12s;
}
.toast-undo-btn {
  font-size: 11px; font-weight: 500; font-family: var(--sans);
  padding: 4px 10px; border-radius: 5px;
  background: none; border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.toast-undo-btn:hover { background: var(--surface); border-color: var(--sub); }

/* Resolution toast — item cards */
.toast-res-expand {
  background: none; border: none; cursor: pointer;
  color: var(--sub); padding: 0; flex-shrink: 0;
  transition: color 0.12s;
}
.toast-res-expand:hover { color: var(--text); }
.toast-res-items {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 10px 10px 36px;
}
.toast-res-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; transition: background 0.12s;
}
.toast-res-item:hover { background: var(--surface); }
.toast-res-item-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.toast-res-item-label {
  font-size: 12px; font-weight: 400; color: var(--text);
}

.toast-countdown-track {
  height: 2px; background: var(--surface);
}
.toast-countdown-fill {
  height: 100%; width: 100%; background: var(--text);
  border-radius: 0 1px 1px 0;
}
.toast-countdown-fill.animating {
  animation: undoCountdown 5s linear forwards;
}
@keyframes undoCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ── Toast Context State ── */
.toast-context-input-row {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px 10px 36px;
}
.toast-context-input {
  flex: 1; font-size: 12px; font-family: var(--sans);
  color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px;
  outline: none; background: var(--white);
  transition: border-color 0.15s;
}
.toast-context-input::placeholder { color: var(--sub); }
.toast-context-input:focus { border-color: var(--sub); }
.toast-context-send {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: none; color: var(--sub);
  border: 1px solid var(--border); border-radius: 5px;
  cursor: pointer; flex-shrink: 0;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.toast-context-send:hover { color: var(--text); background: var(--surface); border-color: var(--sub); }

/* ── Lobby Tip Popup (first-session onboarding) ── */
#lobby-tip {
  position: fixed; bottom: 20px; right: 20px; z-index: 9996;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 6px 28px rgba(13,13,12,0.10), 0 1px 6px rgba(13,13,12,0.04);
  font-family: var(--sans);
  animation: tipSlideIn 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
@keyframes tipSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#lobby-tip.tip-fade-out {
  animation: tipFadeOut 0.25s ease forwards;
}
@keyframes tipFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.96); }
}
.tip-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 0;
}
.tip-logo {
  flex-shrink: 0; border-radius: 5px;
}
.tip-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  font-family: var(--serif); font-style: italic;
  letter-spacing: 0.01em;
}
.tip-body {
  padding: 10px 16px 6px;
  font-size: 12.5px; color: var(--text); line-height: 1.65;
  min-height: 80px;
}
.tip-body .tip-char {
  opacity: 0;
}
.tip-body .tip-char.visible {
  opacity: 1;
}
.tip-body .tip-highlight {
  font-weight: 600;
}
.tip-footer {
  display: flex; justify-content: flex-end;
  padding: 6px 16px 14px;
}
.tip-dismiss {
  font-size: 11.5px; font-weight: 500; font-family: var(--sans);
  padding: 5px 14px; border-radius: 6px;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer; transition: opacity 0.15s;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tip-dismiss.visible {
  opacity: 1; transform: translateY(0);
}
.tip-dismiss:hover { opacity: 0.85; }

/* ── Lobby Preview Cards (in command bar) ── */
.lp-preview-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.7;
  max-width: 90%;
}
.lp-preview-card .draft-header {
  margin: -11px -13px 10px; padding: 9px 13px;
  border-bottom: 1px solid var(--border);
}
.lp-preview-card.lp-card-done {
  border-color: #C6EDDA; background: var(--green-bg);
}
.lp-preview-card.lp-card-done .draft-header {
  border-bottom-color: #C6EDDA;
}
.lp-preview-card.lp-card-done .draft-header-icon {
  background: var(--green-bg); border-color: #C6EDDA; color: var(--green);
}

/* ── LOBBY PANEL OVERLAY ── */
.la-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.08);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.la-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── LOBBY ASK PANEL (right overlay) ── */
.lobby-ask-panel {
  position: fixed; top: 0; right: 0;
  width: 440px; height: 100vh; z-index: 100;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: none;
  flex-direction: column;
}
.lobby-ask-panel.open {
  display: flex; transform: translateX(0);
}
.la-header {
  height: 46px;
  display: flex; align-items: center;
  padding: 0 20px; gap: 8px; flex-shrink: 0;
}
.la-title {
  font-size: 13px; font-weight: 500; color: var(--text);
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.la-close {
  color: var(--sub); cursor: pointer;
  background: none; border: none; font-size: 16px; line-height: 1;
  padding: 2px 4px; border-radius: 4px; transition: color 0.1s;
}
.la-close:hover { color: var(--text); }
.la-thread {
  flex: 1; overflow-y: auto; padding: 20px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.la-msg-you { display: flex; justify-content: flex-end; }
.la-bubble-you {
  background: #F7F6F3; border-radius: 10px 10px 2px 10px;
  padding: 9px 13px; max-width: 82%;
  font-size: 12px; font-weight: 400; color: var(--text); line-height: 1.5;
}
.la-msg-lobby { display: flex; flex-direction: column; gap: 14px; }
.la-lobby-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text);
  font-family: var(--sans);
}
.la-lobby-av {
  width: 18px; height: 18px; border-radius: 4px;
  flex-shrink: 0;
}
.la-text-lobby {
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
/* ── BOTTOM STACK (ask bar tucked + action bar on top) ── */
.la-bottom-stack {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  display: flex; flex-direction: column;
  background: linear-gradient(to bottom, transparent, var(--white) 30%);
}
/* Ask bar — non-typable by default, clickable */
.la-ask-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  padding: 8px 16px;
  max-width: 92%; width: 92%; margin: 0 auto -6px;
  position: relative; z-index: 0;
  opacity: 0.7;
  cursor: pointer;
  font-family: var(--sans);
  transition: max-width 0.25s ease, width 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, opacity 0.25s ease, padding 0.25s ease, z-index 0s, box-shadow 0.25s ease, border-color 0.15s;
  pointer-events: all;
}
.la-ask-bar:hover { border-color: var(--sub); }
/* Tucked ask bar — grey surface, matching action bar tucked style */
.la-ask-bar:not(.active) {
  background: var(--surface); border-color: var(--border);
  padding: 8px 16px;
}
.la-ask-bar:not(.active) .la-ask-placeholder { font-size: 11px; }
.la-ask-bar:not(.active) .la-user-av { width: 14px; height: 14px; font-size: 6px; border-radius: 3px; }
.la-ask-bar .la-tucked-arrow { display: none; }
.la-ask-bar:not(.active) .la-tucked-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); flex-shrink: 0; margin-left: auto;
}
/* Collapsed state (default) */
.la-ask-collapsed {
  display: flex; align-items: center; gap: 8px;
  height: 100%;
}
.la-ask-icon { flex-shrink: 0; }
.la-ask-placeholder { font-size: 12px; color: var(--text); font-weight: 400; line-height: 20px; }
/* Expanded state (hidden by default) */
.la-ask-expanded { display: none; }
.la-ask-input-row {
  display: flex; align-items: center; gap: 10px;
}
.la-user-av {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 7.5px; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.la-ask-input {
  flex: 1; font-size: 13px; font-family: var(--sans);
  border: none; outline: none; background: transparent; color: var(--text);
}
.la-ask-input::placeholder { color: var(--sub); }
.la-send {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--sub); transition: color 0.15s; flex-shrink: 0;
}
.la-send svg { width: 14px; height: 14px; }
.la-send:hover { color: var(--text); }
.la-ask-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 4px;
}
.la-toolbar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--sub); transition: color 0.15s, background 0.15s;
}
.la-toolbar-btn:hover { color: var(--text); background: var(--surface); }
.la-input-hints {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--sans);
}
.la-hint-sym {
  font-size: 11px; color: var(--sub); font-weight: 500;
  margin-left: 10px;
}
.la-hint-sym:first-child { margin-left: 0; }
.la-hint-txt {
  font-size: 11px; color: var(--sub); font-weight: 400;
}
.la-hint-btn {
  display: inline-flex; align-items: center; gap: 2px;
  cursor: pointer; border-radius: 4px; padding: 2px 4px;
  transition: background 0.1s;
}
.la-hint-btn:hover { background: var(--surface); }
.la-hint-btn .la-hint-sym { margin-left: 0; }
/* Active state — swaps on top, shows full input */
.la-ask-bar.active {
  z-index: 2; max-width: 100%; width: 100%; margin: 0 auto;
  border-radius: 10px; padding: 12px 16px; cursor: text;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  border-color: var(--border);
  opacity: 1;
  order: 2;
}
.la-ask-bar.active .la-ask-collapsed { display: none; }
.la-ask-bar.active .la-ask-expanded { display: block; }

/* Action bar — on top by default */
.la-action-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  position: relative; z-index: 1;
  pointer-events: all;
  transition: max-width 0.25s ease, width 0.25s ease, margin 0.25s ease, border-radius 0.25s ease, opacity 0.25s ease, padding 0.25s ease, z-index 0s;
}
/* Tucked state — behind ask bar */
.la-action-bar.tucked {
  z-index: 0; max-width: 92%; width: 92%; margin: 0 auto -6px;
  border-radius: 10px 10px 0 0; opacity: 0.7; order: -1;
  padding: 8px 16px; pointer-events: all; cursor: pointer;
  background: var(--surface); border-color: var(--border);
}
.la-action-bar.tucked:hover { border-color: var(--sub); }
.la-action-bar.tucked .wf-btn-approve { display: none; }
.la-action-bar.tucked .la-action-status { font-size: 11px; }
.la-action-bar .wf-lobby-icon { width: 20px; height: 20px; }
.la-action-bar.tucked .wf-lobby-icon { width: 14px; height: 14px; }
.la-action-bar .la-tucked-arrow { display: none; }
.la-action-bar.tucked .la-tucked-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); flex-shrink: 0; margin-left: auto;
}
.la-action-status {
  flex: 1; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.la-draft-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; font-family: var(--sans);
  cursor: pointer;
}
.la-draft-head {
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.la-draft-head-row {
  display: flex; align-items: center; gap: 7px;
}
.la-draft-head-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.la-draft-head-title {
  font-size: 12px; font-weight: 500; color: var(--text); flex: 1;
}
.la-draft-subject {
  font-size: 12px; font-weight: 400; color: var(--muted);
}
.la-draft-chevron {
  color: var(--sub); flex-shrink: 0;
  transition: transform 0.25s ease;
}
.la-draft-body {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 12.5px; color: var(--text); line-height: 1.7;
  transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
  max-height: 500px; overflow: hidden; opacity: 1;
}
.la-draft-card.collapsed .la-draft-body {
  max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0;
  border-top: none;
}
.la-draft-card.collapsed .la-draft-chevron {
  transform: rotate(-90deg);
}

/* ── TAG DROPDOWN ── */
.la-tag-dropdown {
  position: absolute; bottom: calc(100% + 6px); left: 8px; right: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 4px; display: none; z-index: 110;
  max-height: 200px; overflow-y: auto;
}
.la-tag-dd-header {
  font-size: 10px; font-weight: 500; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 8px 4px; font-family: var(--sans);
}
.la-tag-dd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; cursor: pointer; border-radius: 6px;
  transition: background 0.1s;
}
.la-tag-dd-item:hover, .la-tag-dd-item.highlighted {
  background: var(--surface);
}
.la-tag-dd-av {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 8px; font-weight: 600;
  flex-shrink: 0;
}
.la-tag-dd-info { flex: 1; min-width: 0; }
.la-tag-dd-name {
  font-size: 12px; font-weight: 500; color: var(--text);
  font-family: var(--sans);
}
.la-tag-dd-sub {
  font-size: 10.5px; color: var(--sub);
  font-family: var(--sans); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
/* ── CONTEXT BANNER ── */
.la-context-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px;
  margin-bottom: 6px;
  background: #D8EAFA;
  border-radius: 6px;
}
.la-ctx-left {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.la-ctx-icon {
  flex-shrink: 0; color: #4584D5; width: 12px; height: 12px;
}
.la-ctx-text {
  font-size: 11px; font-weight: 500; color: #1A3F6E;
  font-family: var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.la-ctx-close {
  background: none; border: none; cursor: pointer;
  color: #4584D5; font-size: 13px; line-height: 1;
  padding: 0 2px; flex-shrink: 0;
  transition: color 0.15s;
}
.la-ctx-close:hover { color: #1A3F6E; }
.la-ctx-close:hover { color: var(--text); }

/* ── TAG CHIPS in messages ── */
.la-tag-chip {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 500; font-family: var(--sans);
  padding: 2px 7px; border-radius: 4px; vertical-align: baseline;
}
.la-tag-email {
  background: rgba(0,0,0,0.08); color: var(--text);
}
.la-tag-tool {
  background: rgba(0,0,0,0.08); color: var(--text);
}

/* ── DRAFT FORMAT TOOLBAR ── */
.wf-draft-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
}
.wf-draft-fmt-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  color: var(--sub);
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  padding: 0;
}
.wf-draft-fmt-btn:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

/* ── HYPERLINK POPUP ── */
.link-popup {
  position: fixed;
  z-index: 600;
  display: none;
}
.link-popup.open {
  display: block;
  animation: linkPopIn 0.12s ease-out;
}
@keyframes linkPopIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.link-popup-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 6px 10px;
  box-shadow: 0 4px 16px rgba(13,13,12,0.10), 0 1px 4px rgba(13,13,12,0.06);
}
.link-popup-icon {
  color: var(--sub);
  flex-shrink: 0;
}
.link-popup-input {
  font-size: 12px;
  font-family: var(--sans);
  color: var(--text);
  border: none;
  outline: none;
  background: none;
  width: 180px;
  padding: 2px 0;
  line-height: 1.4;
}
.link-popup-input::placeholder {
  color: var(--sub);
}
.link-popup-apply {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
  transition: opacity 0.12s;
}
.link-popup-apply:hover {
  opacity: 0.85;
}

/* ── PREPARING BRIEF OVERLAY ── */
#preparing-brief {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--page);
  display: flex;
  flex-direction: column;
  animation: prepFadeIn 0.4s ease;
}
@keyframes prepFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.preparing-topbar {
  height: 46px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.preparing-tab {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.preparing-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}
.preparing-sync svg { color: var(--sub); }
.preparing-acct {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  font-weight: 400;
}
.preparing-acct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4285F4;
}
.preparing-acct svg { color: var(--sub); }
.preparing-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 80px;
}
.preparing-logo {
  margin-bottom: 4px;
}
.preparing-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--sans);
}
.preparing-sub {
  font-size: 12px;
  color: var(--sub);
}

/* ── DESKTOP APP NUDGE ── */
.desktop-nudge {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  animation: nudgeSlideUp 0.35s ease;
}
@keyframes nudgeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.desktop-nudge-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(13,13,12,0.08), 0 1px 4px rgba(13,13,12,0.04);
  width: 210px;
}
.desktop-nudge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.desktop-nudge-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.desktop-nudge-body {
  font-size: 11.5px;
  color: var(--sub);
  margin-bottom: 12px;
  padding-left: 26px;
}
.desktop-nudge-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.desktop-nudge-dismiss {
  font-size: 11.5px;
  color: var(--sub);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 5px 8px;
  transition: color 0.12s;
}
.desktop-nudge-dismiss:hover { color: var(--text); }
.desktop-nudge-download {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.12s;
}
.desktop-nudge-download:hover { opacity: 0.85; }

