:root {
  --desktop-bg: #f7f1f4;
  --desktop-bg-2: #f4e8ee;
  --desktop-bg-3: #eeeef3;
  --pink-main: #f5b8cb;
  --pink-soft: rgba(245, 184, 203, 0.22);
  --pink-softer: rgba(245, 184, 203, 0.12);
  --rose-gray: #d8c6cf;
  --rose-gray-soft: rgba(216, 198, 207, 0.28);
  --cream-white: rgba(255, 252, 253, 0.86);
  --window-bg: rgba(255, 252, 253, 0.82);
  --shadow-window: 0 28px 80px rgba(122, 84, 103, 0.18);
  --bg: #f7f1f4;
  --bg-soft: #fbfbfd;
  --surface: rgba(255,255,255,0.82);
  --surface-solid: #ffffff;
  --surface-muted: #f2f2f7;

  --border: rgba(95, 68, 82, 0.10);
  --border-strong: rgba(0,0,0,0.12);

  --text: #2a2328;
  --text-muted: #7f7279;
  --text-soft: #a1949b;

  --accent: #d96b93;
  --accent-soft: rgba(217,107,147,0.14);

  --danger: #ff3b30;
  --danger-soft: rgba(255,59,48,0.12);

  --warning: #ff9f0a;
  --warning-soft: rgba(255,159,10,0.14);

  --success: #34c759;
  --success-soft: rgba(52,199,89,0.14);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 16px 48px rgba(0,0,0,0.07);
  --shadow-card: 0 12px 34px rgba(122, 84, 103, 0.10);

  --blur-bg: rgba(255,255,255,0.78);

  /* Compatibility aliases for existing styles. */
  --panel: var(--surface-solid);
  --line: var(--border);
  --muted: var(--text-muted);
  --shadow: var(--shadow-soft);
  --player: #fff8eb;
  --ai: #f3f7ff;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 140ms;
  --duration-normal: 220ms;
  --duration-slow: 320ms;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background:
    radial-gradient(circle at 12% 12%, rgba(245,184,203,0.35), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(216,198,207,0.30), transparent 26%),
    radial-gradient(circle at 50% 92%, rgba(255,255,255,0.8), transparent 34%),
    linear-gradient(135deg, #f7f1f4, #eeeef3); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
input, textarea, button, select { font-family: inherit; }
.app-shell { display: flex; min-height: 100vh; padding: 14px 0 14px 14px; gap: 18px; }
.drawer {
  width: 270px;
  flex: 0 0 270px;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  overflow-y: auto;
  background: var(--blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.drawer::-webkit-scrollbar { width: 8px; }
.drawer::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 999px; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding: 8px 8px 14px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: white; font-weight: 800; box-shadow: 0 8px 18px rgba(0,122,255,0.18); }
.brand h1 { font-size: 19px; line-height: 1.2; margin: 0; color: var(--text); font-weight: 700; }
.brand p, .muted, .eyebrow { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.menu { display: grid; gap: 7px; }
.menu button {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 40px;
  text-align: left;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.menu button:hover { background: rgba(0,0,0,0.04); color: var(--text); transform: none; }
.menu button:active { transform: none; }
.menu button.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.main-panel { flex: 1; padding: 10px 24px 24px 0; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
}
.topbar-title { min-width: 150px; }
.topbar h2 { margin: 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.2; font-weight: 700; color: var(--text); }
.topbar .eyebrow { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.icon-button { display: none; border: 1px solid var(--border); background: rgba(255,255,255,0.72); border-radius: 999px; width: 34px; height: 34px; padding: 0; flex: 0 0 auto; }
.status-pills { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.status-pills .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--text);
  white-space: nowrap;
}
.status-pills strong { font-weight: 800; }
.status-pill-day { color: var(--text-muted) !important; background: rgba(242,242,247,0.74) !important; }
.energy-normal { color: #1f8a4c !important; border-color: rgba(52,199,89,0.22) !important; background: var(--success-soft) !important; }
.energy-low { color: #b35a00 !important; border-color: rgba(255,159,10,0.28) !important; background: var(--warning-soft) !important; }
.energy-critical { color: #c23636 !important; border-color: rgba(255,59,48,0.26) !important; background: var(--danger-soft) !important; }
.money-pill { color: var(--accent) !important; border-color: rgba(0,122,255,0.14) !important; background: var(--accent-soft) !important; }
.risk-pill-安全 { color: #1f8a4c !important; border-color: rgba(52,199,89,0.22) !important; background: var(--success-soft) !important; }
.risk-pill-轻微 { color: #2f63d8 !important; border-color: rgba(0,122,255,0.16) !important; background: var(--accent-soft) !important; }
.risk-pill-注意 { color: #a86700 !important; border-color: rgba(255,159,10,0.28) !important; background: var(--warning-soft) !important; }
.risk-pill-危险 { color: #c65d21 !important; border-color: rgba(255,149,0,0.28) !important; background: rgba(255,149,0,0.13) !important; }
.risk-pill-高危 { color: #c23636 !important; border-color: rgba(255,59,48,0.26) !important; background: var(--danger-soft) !important; }
.risk-overview { display: grid; gap: 6px; margin: 12px 0; }
.risk-overview p { margin: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 20px; }
.card,
.panel,
.section-card,
.widget-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.card { padding: 22px; }
.glass { background: var(--blur-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.section-title { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.section-title span { font-size: 34px; }
.section-title h3, .tool-card h3 { margin: 0; }
.page-content { display: grid; gap: 14px; }
.overview-grid, .list-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.info-card, .stat { background: #fbfcff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; line-height: 1.65; }
.info-card.wide { grid-column: 1 / -1; }
.info-card strong { display: block; font-size: 24px; margin: 8px 0; }
.story-box, .action-panel { background: #fbfcff; border: 1px dashed #cdd5e8; border-radius: 18px; padding: 16px; line-height: 1.7; }
.action-panel h4, .chat-panel h4 { margin: 0 0 8px; }
.chat-layout { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); gap: 16px; align-items: start; }
.character-list, .record-list { display: grid; gap: 10px; }
.character-list, .chat-panel { min-width: 0; border-radius: 24px; }
.character-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; cursor: pointer; }
.character-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.character-card p, .character-card small { grid-column: 2 / 4; margin: 0; color: var(--muted); }
.character-card em { font-style: normal; color: var(--accent); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #dfe7ff, #f5f7fb); color: var(--accent); font-weight: 900; }
.chat-contact-list {
  padding: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.chat-list-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 2px 4px 10px; border-bottom: 1px solid var(--border); }
.chat-list-title span { color: var(--text-soft); font-size: 12px; }
.chat-contact-card { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 11px; border-radius: 20px; padding: 11px; box-shadow: 0 8px 20px rgba(20,24,40,0.035); }
.chat-contact-card.selected { background: linear-gradient(135deg, rgba(0,122,255,0.12), rgba(255,230,143,0.28)); border-color: rgba(0,122,255,0.36); box-shadow: 0 10px 26px rgba(0,122,255,0.08); }
.chat-contact-avatar, .chat-window-avatar, .message-avatar { width: 50px; height: 50px; background: linear-gradient(135deg, #e5f1ff, #f4f6fb); color: #2174d7; }
.chat-contact-main { min-width: 0; display: grid; gap: 3px; }
.chat-contact-main b, .chat-window-title h4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact-account, .chat-contact-preview, .chat-contact-mood { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.chat-contact-preview { color: var(--text); }
.chat-contact-mood { color: var(--text-soft); }
.chat-contact-side { display: grid; justify-items: end; gap: 8px; align-self: stretch; }
.chat-contact-side small { grid-column: auto; margin: 0; align-self: end; padding: 4px 8px; border-radius: 999px; background: var(--surface-muted); color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.kakao-chat-panel { display: grid; grid-template-rows: auto minmax(320px, 58vh) auto auto; gap: 12px; padding: 14px; background: rgba(255,255,255,0.72); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.chat-window-header { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chat-window-title { min-width: 0; }
.chat-window-title h4 { margin: 0 0 3px; font-size: 17px; }
.chat-window-title p, .chat-window-title span { display: block; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-window-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 300px; }
.chat-window-stats span { padding: 6px 9px; border-radius: 999px; background: #f6f8fc; border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.chat-record-list { align-content: start; gap: 10px; overflow: auto; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(180deg, #fffdf6, #f7f7fb); }
.message-row { display: flex; gap: 8px; max-width: 100%; }
.message-row.outgoing { justify-content: flex-end; }
.message-row.incoming { justify-content: flex-start; align-items: flex-end; }
.message-row.system { display: grid; justify-items: center; margin: 4px 0; }
.message-avatar { flex: 0 0 34px; width: 34px; height: 34px; font-size: 13px; }
.message-stack { display: grid; gap: 4px; max-width: 72%; }
.message-row.outgoing .message-stack { justify-items: end; }
.message-name { color: var(--text-muted); font-size: 12px; font-weight: 800; }
.message-bubble { width: fit-content; max-width: 100%; padding: 10px 13px; border: 1px solid rgba(0,0,0,0.055); border-radius: 18px; color: var(--text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 6px 18px rgba(20,24,40,0.045); }
.message-row.outgoing .message-bubble { border-bottom-right-radius: 7px; background: #fff0b8; }
.message-row.incoming .message-bubble { border-bottom-left-radius: 7px; background: rgba(255,255,255,0.96); }
.message-meta { color: var(--text-soft); font-size: 11.5px; line-height: 1.2; }
.system-message, .chat-empty-state { border: 1px solid var(--border); background: rgba(242,242,247,0.86); color: var(--text-muted); }
.system-message { max-width: min(560px, 86%); margin: 6px auto; padding: 10px 14px; border-radius: 14px; font-size: 12px; line-height: 1.55; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.time-pill { padding: 5px 12px; border-radius: 999px; background: rgba(235,238,245,0.92); font-size: 11.5px; font-weight: 800; }
.chat-empty-state { align-self: center; justify-self: center; max-width: 360px; padding: 22px; border-radius: 18px; text-align: center; line-height: 1.6; }
.chat-empty-state span { display: block; font-size: 28px; margin-bottom: 8px; }
.chat-empty-state p { margin: 4px 0 0; color: var(--text-soft); font-size: 13px; }
.chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,0.92); }
.chat-composer textarea { min-height: 54px; max-height: 150px; margin: 0; border-radius: 18px; background: #fff; }
.chat-composer-actions { display: grid; gap: 8px; min-width: 126px; }
.chat-composer .muted { grid-column: 1 / -1; margin: 0 4px; }
.chat-meta-editor { margin-top: 0; }
.record-card { border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.record-card.player { background: var(--player); }
.record-card.ai { background: var(--ai); }
.record-card span { display: inline-block; font-weight: 800; margin-right: 8px; }
.record-card small { color: var(--muted); }
.record-card p { margin: 8px 0 0; white-space: pre-wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-row span, .comment, .thread { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; margin: 8px 0; }
.thread { border-radius: 14px; }
label { display: block; margin: 16px 0 8px; font-weight: 700; }
textarea, input, select { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; font: inherit; background: rgba(255,255,255,0.9); color: var(--text); outline: none; margin-bottom: 10px; transition: border-color var(--duration-fast) var(--ease-soft), box-shadow var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft); }
textarea::placeholder, input::placeholder { color: var(--text-soft); }
textarea:focus, input:focus, select:focus { border-color: rgba(0,122,255,0.55); box-shadow: 0 0 0 4px rgba(0,122,255,0.12); background: #ffffff; }
textarea { min-height: 120px; resize: vertical; }
.button-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
.button-row.inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button { font-family: inherit; border-radius: 12px; border: 1px solid transparent; transition: background var(--duration-fast) var(--ease-soft), transform 100ms var(--ease-standard), box-shadow var(--duration-normal) var(--ease-soft); }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0) scale(0.985); }
button.primary, button.secondary, .import-label { border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 800; text-align: center; }
button.primary { background: var(--accent); color: white; box-shadow: 0 8px 18px rgba(0,122,255,0.18); }
button.secondary, .import-label { background: var(--surface-muted); color: var(--text); border-color: var(--border); }
button.danger { color: var(--danger); background: var(--danger-soft); }
.import-label { display: block; margin: 0; }
.import-label input { display: none; }
.change-panel { margin: 12px 0; border: 1px dashed #cdd5e8; border-radius: 16px; padding: 12px; background: #fbfcff; }
.change-panel summary { cursor: pointer; font-weight: 900; color: var(--accent); }
.change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.change-grid label { margin: 0; font-size: 13px; }
.change-grid input { margin-top: 6px; margin-bottom: 0; }
@media (max-width: 640px) { .change-grid { grid-template-columns: 1fr; } }

.log-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; }
.character-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.character-form { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.character-form .wide { grid-column: 1 / -1; }
.stats-editor { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.stats-editor label { margin: 0; font-size: 13px; }
.stats-editor input { margin-top: 6px; }
@media (max-width: 980px) { .app-shell { padding: 12px; } .drawer { position: fixed; left: 12px; z-index: 10; transform: translateX(calc(-100% - 24px)); transition: transform .2s ease; max-width: calc(100vw - 24px); } .drawer.open { transform: translateX(0); } .main-panel { padding: 0; } .icon-button { display: inline-block; } .content-grid, .chat-layout { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-wrap: wrap; } .status-pills .status-pill { height: 28px; padding: 0 10px; font-size: 11.5px; } }
@media (max-width: 900px) {
  .kakao-chat-panel { grid-template-rows: auto minmax(300px, 52vh) auto auto; }
  .message-stack { max-width: 82%; }
  .chat-window-header { grid-template-columns: 54px minmax(0, 1fr); }
  .chat-window-stats { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}
@media (max-width: 760px) { .drawer { width: min(270px, calc(100vw - 24px)); flex-basis: min(270px, calc(100vw - 24px)); } }
@media (max-width: 760px) { .topbar { flex-direction: column; align-items: stretch; } .topbar-actions { width: 100%; margin-left: 0; align-items: flex-start; justify-content: space-between; } .status-pills { justify-content: flex-start; } }
@media (max-width: 760px) {
  .chat-contact-list { display: flex; gap: 10px; overflow-x: auto; padding: 12px; scroll-snap-type: x proximity; }
  .chat-list-title { min-width: 130px; display: grid; align-content: center; margin: 0; padding: 0 10px 0 2px; border-bottom: 0; border-right: 1px solid var(--border); }
  .chat-contact-card { min-width: min(280px, 82vw); scroll-snap-align: start; }
  .kakao-chat-panel { padding: 10px; border-radius: 20px; grid-template-rows: auto minmax(300px, 58vh) auto auto; }
  .chat-record-list { padding: 12px; border-radius: 18px; }
  .message-stack { max-width: 86%; }
  .chat-composer { grid-template-columns: 1fr; border-radius: 18px; }
  .chat-composer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
}
@media (max-width: 640px) { .main-panel { padding: 0; } .overview-grid, .list-grid, .button-row.inline, .character-grid, .character-form, .stats-editor { grid-template-columns: 1fr; } }
.fan-profile-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; line-height: 1.65; }
.fan-profile-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.fan-profile-head h4 { margin: 0 0 4px; font-size: 18px; }
.fan-profile-head p, .fan-meta p { margin: 4px 0; color: var(--muted); }
.fan-profile-head span { border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.fan-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.fan-stats label { margin: 0; font-size: 13px; }
.fan-stats small { display: block; color: var(--muted); }
.fan-details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 800; color: var(--accent); }
@media (max-width: 640px) { .fan-stats { grid-template-columns: 1fr; } }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; min-width: 0; }
.notification-bell { display: inline-grid; place-items: center; position: relative; border: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.7); width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 16px; box-shadow: 0 8px 24px rgba(20, 24, 40, 0.05); flex: 0 0 auto; }
.notification-bell:hover { background: rgba(242,242,247,0.92); }
.notification-badge, .unread-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 900; line-height: 1; }
.notification-badge { position: absolute; top: -7px; right: -7px; border: 2px solid #fff; }
.hidden { display: none !important; }
.menu button { display: flex; align-items: center; gap: 8px; }
.menu-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; flex: 0 0 22px; text-align: center; }
.menu-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(255,59,48,0.25);
  white-space: nowrap;
}
.character-card em { display: inline-flex; align-items: center; gap: 6px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(31, 35, 48, 0.32); backdrop-filter: blur(4px); }
.notification-center { width: min(760px, 100%); max-height: min(86vh, 760px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 80px rgba(20, 24, 40, 0.22); padding: 22px; }
.notification-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.notification-header h3 { margin: 0; font-size: 24px; }
.icon-close { border: 0; background: var(--bg); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 24px; color: var(--muted); }
.notification-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.notification-form { display: grid; gap: 8px; padding: 14px; border: 1px dashed #cdd5e8; background: #fbfcff; border-radius: 18px; margin-bottom: 12px; }
.notification-list { display: grid; gap: 10px; }
.notification-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fff; }
.notification-card.unread { border-color: rgba(239, 51, 64, 0.32); background: #fffafa; box-shadow: 0 10px 28px rgba(239, 51, 64, 0.08); }
.notification-card.read { background: #f6f7f9; color: #8a909c; }
.notification-card h4 { margin: 8px 0 6px; }
.notification-card p { margin: 0 0 12px; line-height: 1.6; }
.notification-card small { margin-left: 8px; color: var(--muted); }
.type-chip { display: inline-block; border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 5px 9px; font-size: 12px; font-weight: 900; }
.notification-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 980px) { .topbar-actions { max-width: 100%; } }
@media (max-width: 640px) { .notification-tools { grid-template-columns: 1fr; } .notification-center { padding: 16px; } }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 12px; }
.hot-list { display: grid; gap: 10px; margin-top: 10px; }
.hot-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.hot-item strong { font-size: 15px; margin: 0; }
.hot-item span, .hot-item em, .hot-item i { font-style: normal; border-radius: 999px; padding: 4px 8px; font-size: 12px; background: var(--bg); color: var(--muted); }
.hot-item em { color: var(--accent); background: var(--accent-soft); }
.risk-安全 { color: #1f8a4c !important; background: #ecfff4 !important; }
.risk-有争议 { color: #a86700 !important; background: #fff6df !important; }
.risk-高风险 { color: #c23636 !important; background: #fff0f0 !important; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.quick-tag { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.quick-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.comment-list { display: grid; gap: 8px; }
.comment { border-radius: 14px; line-height: 1.5; }
.comment span { color: var(--accent); font-weight: 900; margin-right: 6px; }
.thread small { display: block; color: var(--muted); margin-top: 4px; }
.douban-reply { background: #fbfcff; border-left: 4px solid #d7deec; border-radius: 12px; padding: 12px; line-height: 1.75; margin: 10px 0; }
.trends-editor label { margin-top: 10px; }
.trends-editor input { margin-bottom: 2px; }
@media (max-width: 640px) { .platform-grid, .hot-item { grid-template-columns: 1fr; } }
.risk-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 12px; }
.risk-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; line-height: 1.6; }
.risk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-card-head b { font-size: 17px; }
.risk-card-head span { border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 5px 10px; font-weight: 900; }
.risk-card p { margin: 10px 0; }
.risk-level-安全 { border-color: #bfe8cf; }
.risk-level-轻微 { border-color: #d8e4ff; }
.risk-level-注意 { border-color: #ffe3a6; }
.risk-level-危险 { border-color: #ffc0ad; }
.risk-level-高危 { border-color: #ff9aa5; background: #fffafa; }
@media (max-width: 640px) { .risk-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 16px;
  background: var(--blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.tool-card::-webkit-scrollbar { width: 8px; }
.tool-card::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 999px; }
.tool-card-title { padding: 2px 2px 4px; }
.tool-card-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tool-card-title .muted {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.tool-section {
  margin: 0 0 12px;
  padding: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.tool-section label,
.tool-section h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.preview-section #freeInput {
  min-height: 132px;
  max-height: 160px;
  padding: 12px;
  overflow-y: auto;
  background: var(--surface-muted);
  border-color: rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  resize: vertical;
}
.reply-section .muted { margin: -4px 0 10px; font-size: 13px; line-height: 1.5; }
.reply-section #chatgptReply {
  min-height: 180px;
  padding: 12px;
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}
.reply-section #chatgptReply:focus,
.preview-section #freeInput:focus,
.change-panel textarea:focus,
.change-panel input:focus {
  border-color: rgba(217,107,147,0.56);
  box-shadow: 0 0 0 4px rgba(245,184,203,0.22);
}
.tool-card .button-row { margin: 0; gap: 10px; }
.tool-card button.primary,
.tool-card button.secondary {
  min-height: 40px;
  border-radius: 14px;
  font-weight: 800;
}
.copy-section #addActionQueue {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(0,122,255,0.14);
}
.save-section #saveReply {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--border);
}
.save-section #saveReplyApplyChanges {
  background: var(--success-soft);
  color: #1f8a4c;
  border-color: rgba(52,199,89,0.2);
  box-shadow: none;
}
.action-queue-panel { padding-top: 14px; border-top: 0; }
.action-queue-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.action-queue-list { display: grid; gap: 10px; }
.empty-queue { padding: 12px; border: 1px dashed rgba(0,0,0,0.1); border-radius: 16px; background: var(--surface-muted); line-height: 1.6; }
.action-queue-card { border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; background: #fff; padding: 10px 12px; }
.action-queue-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.action-queue-card-head b { color: var(--accent); }
.action-queue-card-head small { color: var(--muted); font-size: 12px; }
.action-queue-card p { margin: 0; white-space: pre-wrap; line-height: 1.5; font-size: 13px; }
.action-queue-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.queue-mini { border: 0; border-radius: 999px; padding: 6px 10px; background: var(--surface-muted); color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.queue-mini:disabled { opacity: .45; cursor: not-allowed; }
.queue-mini.danger, .queue-clear { color: var(--danger); background: var(--danger-soft); }
.queue-clear { width: 100%; margin-top: 2px; }
.queue-copy-all { width: 100%; margin-top: 12px; }
.change-panel {
  border-style: solid;
  background: rgba(255,255,255,0.72);
}
.change-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.035);
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
}
.change-panel summary::after { content: "⌄"; color: var(--text-muted); }
.change-panel[open] summary::after { content: "⌃"; }
.change-panel .muted { margin: 12px 2px; font-size: 13px; line-height: 1.5; }
.change-grid {
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  background: rgba(255,255,255,0.66);
}
.change-grid input {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
}
.change-panel textarea {
  min-height: 92px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr; }
  .tool-card { max-height: none; }
}
@media (max-width: 760px) {
  .tool-card { width: 100%; }
  .tool-card .button-row { grid-template-columns: 1fr; }
  .tool-section { padding: 12px; }
}


/* Apple-like base refinements for existing cards, tags, and badges. */
.info-card, .stat, .fan-profile-card, .risk-card, .notification-card, .character-card, .record-card, .hot-item, .action-queue-card {
  background: var(--surface-solid);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.025);
}
.story-box, .action-panel, .change-panel, .notification-form, .empty-queue {
  background: var(--bg-soft);
  border-color: rgba(0,0,0,0.1);
}
.tag-row span, .comment, .thread, .type-chip, .quick-tag, .hot-item span, .hot-item em, .hot-item i, .fan-profile-head span, .risk-card-head span, .status-pills span {
  border-radius: 999px;
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-muted);
  font-size: 12px;
}
.type-chip, .hot-item em, .fan-profile-head span, .risk-card-head span {
  background: var(--accent-soft);
  color: var(--accent);
}
.risk-安全, .risk-pill-安全 { color: #248a3d !important; background: var(--success-soft) !important; border-color: rgba(52,199,89,0.22) !important; }
.risk-有争议, .risk-pill-注意 { color: #9a6700 !important; background: var(--warning-soft) !important; border-color: rgba(255,159,10,0.24) !important; }
.risk-高风险, .risk-pill-危险, .risk-pill-高危 { color: var(--danger) !important; background: var(--danger-soft) !important; border-color: rgba(255,59,48,0.24) !important; }

/* 0.8e-e Apple-style component unification: cards, controls, chips, meters, empty states, scrollbars. */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.14);
  border-radius: 999px;
}
::-webkit-scrollbar-track { background: transparent; }

.card,
.panel,
.section-card,
.widget-card,
.stat-card,
.profile-card,
.risk-card,
.post-card,
.thread-card,
.log-card,
.queue-card,
.info-card,
.stat,
.fan-profile-card,
.notification-card,
.character-card,
.record-card,
.hot-item,
.action-queue-card,
.tool-section,
.notification-center {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.055);
}
.card,
.panel,
.section-card,
.widget-card,
.stat-card,
.profile-card,
.risk-card,
.post-card,
.thread-card,
.log-card,
.queue-card,
.info-card,
.stat,
.fan-profile-card,
.notification-card,
.record-card,
.hot-item,
.action-queue-card,
.tool-section { padding: 16px; }
.card:hover,
.panel:hover,
.section-card:hover,
.widget-card:hover,
.stat-card:hover,
.profile-card:hover,
.risk-card:hover,
.post-card:hover,
.thread-card:hover,
.log-card:hover,
.queue-card:hover,
.info-card:hover,
.stat:hover,
.fan-profile-card:hover,
.notification-card:hover,
.record-card:hover,
.hot-item:hover,
.action-queue-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}
.story-box,
.action-panel,
.change-panel,
.notification-form,
.empty-queue,
.log-list > .muted,
.record-list > .muted,
.signing-empty,
[class='muted'] {
  border-radius: 18px;
}

button,
button.primary,
button.secondary,
button.danger,
.import-label,
.queue-mini,
.quick-tag {
  min-height: 38px;
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  transition: background var(--duration-fast) var(--ease-soft), border-color var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft), transform 100ms var(--ease-standard), box-shadow var(--duration-normal) var(--ease-soft), opacity var(--duration-fast) var(--ease-soft);
}
button.primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(0,122,255,0.32);
  box-shadow: 0 8px 20px rgba(0,122,255,0.22);
}
button.secondary,
.import-label,
.queue-mini {
  background: rgba(242,242,247,0.86);
  color: var(--text);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.035);
}
button.secondary:hover,
.import-label:hover,
.queue-mini:hover {
  background: rgba(0,122,255,0.1);
  border-color: rgba(0,122,255,0.18);
  color: var(--accent);
}
button.danger,
button.secondary.danger,
.queue-mini.danger,
.queue-clear {
  background: rgba(255,59,48,0.12);
  color: var(--danger);
  border-color: rgba(255,59,48,0.16);
  box-shadow: none;
}
button.danger:hover,
button.secondary.danger:hover,
.queue-mini.danger:hover,
.queue-clear:hover {
  background: rgba(255,59,48,0.17);
  color: #d70015;
}
button:disabled,
button[disabled],
.queue-mini:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

textarea,
input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 15px;
  padding: 11px 13px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-color var(--duration-fast) var(--ease-soft), box-shadow var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft);
}
textarea::placeholder,
input::placeholder { color: #a1a1a6; }
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(217,107,147,0.56);
  box-shadow: 0 0 0 4px rgba(245,184,203,0.22);
  background: #fff;
}
textarea {
  min-height: 120px;
  max-width: 100%;
  line-height: 1.6;
  resize: vertical;
  white-space: pre-wrap;
  overflow: auto;
}
select {
  min-height: 42px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.status-pill,
.notification-badge,
.unread-pill,
.menu-dot,
.type-chip,
.quick-tag,
.tag-row span,
.hot-item span,
.hot-item em,
.hot-item i,
.fan-profile-head span,
.risk-card-head span,
.comment span,
.character-card em {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick-tag {
  background: rgba(242,242,247,0.88);
  color: var(--text);
  border-color: rgba(0,0,0,0.06);
  min-height: 32px;
}
.quick-tag:hover {
  background: rgba(0,122,255,0.1);
  border-color: rgba(0,122,255,0.18);
  color: var(--accent);
}
.quick-tag:active { transform: translateY(0) scale(0.98); }

.risk-level-安全,
.risk-pill-安全,
.value-meter-安全 { --meter: #34c759; }
.risk-level-轻微,
.risk-pill-轻微,
.value-meter-轻微 { --meter: #007aff; }
.risk-level-注意,
.risk-pill-注意,
.value-meter-注意 { --meter: #ffcc00; }
.risk-level-危险,
.risk-pill-危险,
.value-meter-危险 { --meter: #ff9500; }
.risk-level-高危,
.risk-pill-高危,
.value-meter-高危 { --meter: #ff3b30; }
.value-meter,
.fan-stats .value-meter {
  height: 9px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,0.07);
  margin: 8px 0 10px;
}
.value-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--meter, var(--accent)) 72%, white), var(--meter, var(--accent)));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset;
}

.empty-queue,
.notification-list > .muted,
.record-list > .muted,
.log-list > .muted {
  display: block;
  padding: 14px 16px;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 18px;
  background: rgba(242,242,247,0.72);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Preserve the 0.8e-b/0.8e-c menu and topbar control treatments while component rules cover page content. */
.menu button {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 40px;
  text-align: left;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
  letter-spacing: normal;
}
.menu button:hover { background: rgba(0,0,0,0.04); color: var(--text); transform: none; }
.menu button:active { transform: none; }
.menu button.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.icon-button { display: none; border: 1px solid var(--border); background: rgba(255,255,255,0.72); border-radius: 999px; width: 34px; height: 34px; min-height: 34px; padding: 0; flex: 0 0 auto; box-shadow: none; }
.notification-bell { min-height: 34px; padding: 0; font-weight: inherit; letter-spacing: normal; }
@media (max-width: 980px) { .icon-button { display: inline-block; } }

/* 0.8e-f Apple / iOS game dashboard polish: homepage content only. */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.dashboard-grid .hero-card { grid-column: span 12; }
.dashboard-grid .large-card { grid-column: span 6; }
.dashboard-grid .small-card { grid-column: span 4; }
.dashboard-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
  box-shadow: 0 18px 44px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(0,122,255,0.08), transparent 34%), radial-gradient(circle at 100% 0%, rgba(52,199,89,0.07), transparent 30%);
}
.dashboard-card > * { position: relative; z-index: 1; }
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 230px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 78% 38%, rgba(29,29,31,0.13), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(242,242,247,0.78));
}
.dashboard-kicker {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dashboard-hero h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-subtitle { margin: 10px 0 0; color: var(--text); font-size: 18px; font-weight: 800; }
.hero-line { margin: 8px 0 18px; color: var(--text-muted); font-size: 15px; }
.hero-status-row, .hero-meta-row, .dashboard-pill-grid, .mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-status-row span, .hero-meta-row span, .dashboard-stat-pill, .mini-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}
.hero-meta-row { margin-top: 10px; }
.hero-avatar {
  display: grid;
  place-items: center;
  width: clamp(104px, 18vw, 160px);
  height: clamp(104px, 18vw, 160px);
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #1d1d1f, #44444a);
  color: #fff;
  font-size: clamp(48px, 8vw, 76px);
  box-shadow: 0 24px 60px rgba(29,29,31,0.22), inset 0 1px 0 rgba(255,255,255,0.2);
}
.dashboard-card-head { margin-bottom: 14px; }
.dashboard-card-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dashboard-card-head p { margin: 5px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.dashboard-pill-grid { gap: 10px; }
.dashboard-stat-pill {
  justify-content: space-between;
  width: calc(50% - 5px);
  min-height: 46px;
  border-radius: 16px;
  background: rgba(242,242,247,0.74);
}
.dashboard-stat-pill b { color: var(--text-muted); font-size: 12px; }
.dashboard-stat-pill em { color: var(--text); font-size: 18px; font-style: normal; font-weight: 900; }
.tone-accent { background: var(--accent-soft); }
.tone-success, .tone-安全 { background: var(--success-soft); }
.tone-轻微 { background: var(--accent-soft); }
.tone-注意 { background: var(--warning-soft); }
.tone-危险, .tone-高危 { background: var(--danger-soft); }
.dashboard-risk.risk-level-高危, .dashboard-risk.risk-level-危险 { background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,59,48,0.08)); }
.dashboard-risk.risk-level-安全 { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(52,199,89,0.08)); }
.risk-big { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 12px; }
.risk-big strong { font-size: 48px; line-height: 1; letter-spacing: -0.05em; }
.risk-big span { color: var(--text-muted); font-weight: 800; }
.risk-big i { margin-left: auto; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.72); color: var(--text); font-style: normal; font-size: 12px; font-weight: 900; }
.dashboard-risk p { margin: 7px 0; color: var(--text-muted); line-height: 1.5; }
.unread-count { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -0.05em; margin-bottom: 12px; }
.dashboard-list, .fan-mini-list { display: grid; gap: 10px; }
.dashboard-list article, .fan-mini-list article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  background: rgba(251,251,253,0.72);
}
.dashboard-list article { grid-template-columns: minmax(54px, auto) minmax(0,1fr); }
.dashboard-list b { color: var(--text); font-size: 13px; }
.dashboard-list span { min-width: 0; color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-list small { grid-column: 2; color: var(--text-muted); font-size: 12px; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.trend-grid span { padding: 12px; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; background: rgba(242,242,247,0.72); color: var(--text); font-size: 13px; font-weight: 750; line-height: 1.45; }
.fan-mini-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #edf4ff, #f8f1ff); color: var(--accent); font-weight: 900; }
.fan-mini-list b { display: block; color: var(--text); font-size: 13px; }
.fan-mini-list small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.mini-pills { margin-top: 7px; gap: 5px; }
.mini-pills span { min-height: 24px; padding: 4px 8px; background: rgba(255,255,255,0.78); font-size: 11px; }
.unread-dot { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-style: normal; font-weight: 900; }
.dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1px solid rgba(0,122,255,0.12);
  border-radius: 999px;
  background: rgba(0,122,255,0.1);
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
  font-size: 13px;
}
.dashboard-link:hover { transform: translateY(-1px); background: rgba(0,122,255,0.14); }
.dashboard-empty {
  padding: 16px;
  border: 1px dashed rgba(0,0,0,0.14);
  border-radius: 16px;
  background: rgba(242,242,247,0.72);
  color: var(--text-muted);
  line-height: 1.6;
}
.log-preview-list article { grid-template-columns: minmax(74px, auto) minmax(0,1fr); }
@media (max-width: 1100px) {
  .dashboard-grid .small-card { grid-column: span 6; }
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .hero-card,
  .dashboard-grid .large-card,
  .dashboard-grid .small-card { grid-column: span 1; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .hero-avatar { width: 104px; height: 104px; font-size: 48px; }
}
@media (max-width: 640px) {
  .dashboard-stat-pill, .trend-grid span { width: 100%; }
  .trend-grid { grid-template-columns: 1fr; }
  .fan-mini-list article { grid-template-columns: auto minmax(0,1fr); }
  .unread-dot { grid-column: 2; justify-self: start; }
}

/* 0.8e-g social app polish */
.social-page { display: grid; gap: 14px; }
.social-hero { border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: linear-gradient(135deg, #fff, #f7f9ff); box-shadow: 0 18px 42px rgba(20, 24, 40, 0.07); }
.social-hero h2 { margin: 2px 0 6px; color: var(--text); font-size: clamp(24px, 3vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.social-hero p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.social-weibo { --platform: #ff6b8a; --platform-soft: #fff1f5; }
.social-forum { --platform: #5b8def; --platform-soft: #eef5ff; }
.social-douban { --platform: #34a853; --platform-soft: #effaf2; }
.social-threads { --platform: #8b7cf6; --platform-soft: #f4f1ff; }
.social-trends { --platform: #1d7afc; --platform-soft: #edf6ff; }
.social-hero[class*="social-"], .social-status-card[class*="social-"] { background: linear-gradient(135deg, #fff 0%, var(--platform-soft) 100%); }
.social-status-card { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.social-stat { padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.9); }
.social-stat span { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 6px; }
.social-stat strong { color: var(--text); font-size: 15px; line-height: 1.35; }
.social-grid { align-items: start; }
.social-card { border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: rgba(255,255,255,0.92); box-shadow: 0 14px 32px rgba(20,24,40,0.06); }
.social-card.wide { grid-column: 1 / -1; }
.social-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.social-card h3 { margin: 0; font-size: 17px; }
.social-card h4 { margin: 0 0 8px; font-size: 15px; }
.social-card-head p { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.social-action-card textarea, .trends-editor textarea { min-height: 100px; border-radius: 18px; }
.social-action-card textarea:focus, .trends-editor textarea:focus, .trends-editor input:focus { outline: none; border-color: rgba(0,122,255,0.55); box-shadow: 0 0 0 4px rgba(0,122,255,0.12); }
.social-chip-row { margin-top: 12px; }
.social-chip { background: #fff; box-shadow: 0 4px 12px rgba(20,24,40,0.04); }
.social-hot-list { gap: 12px; }
.social-hot-item { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.social-hot-item:hover { transform: translateY(-2px); border-color: rgba(255,107,138,.35); box-shadow: 0 14px 28px rgba(255,107,138,.10); }
.hot-rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 11px; background: var(--platform-soft); color: var(--platform); font-weight: 900; }
.hot-main { min-width: 0; }
.hot-main strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.hot-main small { display: block; color: var(--text-muted); margin-top: 5px; }
.platform-tag, .risk-badge, .identity-badge, .floor-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; line-height: 1; }
.weibo-tag { color: #c6294d; background: #fff0f4; }
.risk-badge-safe { color: #1f8a4c; background: #ecfff4; }
.risk-badge-warn { color: #9b6500; background: #fff6df; }
.risk-badge-danger { color: #c23636; background: #fff0f0; }
.risk-badge-neutral { color: #667085; background: #f3f5f9; }
.social-comments { gap: 10px; }
.social-comment { padding: 13px; border: 1px solid var(--line); background: #fff; }
.social-comment div { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.social-comment small, .floor-card small, .social-thread small, .group-card small, .long-post-card small, .thread-post small { color: var(--text-muted); font-size: 12px; }
.social-comment p { margin: 0; font-size: 14px; line-height: 1.55; }
.identity-0 { color: #8a3ffc; background: #f4f1ff; }
.identity-1 { color: #c6294d; background: #fff0f4; }
.identity-2 { color: #1d6fc9; background: #eef5ff; }
.identity-3 { color: #9b6500; background: #fff6df; }
.identity-4 { color: #c23636; background: #fff0f0; }
.social-thread, .group-card, .long-post-card, .floor-card { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin: 10px 0; }
.floor-card > div { display: flex; gap: 8px; align-items: center; }
.floor-pill { color: #1d6fc9; background: #eef5ff; }
.floor-card p { margin: 0; line-height: 1.6; }
.floor-card.is-risky { background: #fff7f7; border-color: #ffd5d5; }
.group-card { background: linear-gradient(135deg, #fff, #f4fbf5); }
.long-post-card p { margin: 0; color: var(--text-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.douban-reply.quote-reply { background: #f6f7f9; border-left-color: #9aa4b2; }
.threads-feed { display: grid; gap: 10px; }
.thread-post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.avatar-dot { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f4f1ff; color: #6f58e8; font-weight: 900; }
.thread-post header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.thread-post p { margin: 8px 0; line-height: 1.55; overflow-wrap: anywhere; }
.social-topic-row span { background: #f4f1ff; color: #6f58e8; }
.social-timeline { display: grid; gap: 10px; }
.timeline-item { position: relative; padding: 13px 13px 13px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 99px; background: var(--accent); }
.timeline-item time { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 5px; }
.timeline-item p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.55; }
.empty-state { padding: 16px; border: 1px dashed var(--line); border-radius: 16px; background: #fbfcff; }
.trend-summary-card { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 16px 36px rgba(20,24,40,.06); }
.trend-summary-card h2 { margin: 0; font-size: 44px; letter-spacing: -0.05em; }
.trend-summary-card span, .trend-summary-card p { color: var(--text-muted); line-height: 1.7; }
.trend-card-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; }
.trend-platform-card { padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, #fff, var(--platform-soft)); box-shadow: 0 14px 30px rgba(20,24,40,.05); }
.trend-platform-card > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.trend-platform-card h3 { margin: 0; }
.trend-platform-card strong { display: block; margin: 14px 0 4px; font-size: 34px; letter-spacing: -0.04em; color: var(--platform); }
.trend-platform-card p { margin: 0; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 900px) { .social-status-card, .trend-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .social-card.wide, .platform-grid .wide { grid-column: auto; } .social-status-card, .trend-card-grid, .trend-summary-card { grid-template-columns: 1fr; } .social-hot-item { grid-template-columns: auto minmax(0,1fr); } .social-hot-item .platform-tag { grid-column: 2; } .social-card-head, .social-comment div, .thread-post header { flex-direction: column; align-items: flex-start; } .quick-row { flex-wrap: wrap; } }

/* 0.8e-h: Apple-like character profile + risk dashboard polish */
.page-hero {
  background: transparent;
  padding: 4px 2px 2px;
}
.page-hero h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.profile-action-card,
.manual-risk-note,
.highest-risk-card,
.risk-dashboard-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.profile-action-card textarea,
.highest-risk-card textarea { margin-bottom: 0; }
.profile-grid,
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}
.fan-profile-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fan-profile-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,0.08); border-color: rgba(0,122,255,0.14); }
.fan-profile-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
}
.fan-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f1ff, #f4f4f8);
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0,122,255,0.08);
}
.fan-title h4 { margin: 0; font-size: 20px; line-height: 1.1; letter-spacing: -0.01em; }
.fan-title b { display: block; margin-top: 3px; font-size: 14px; color: var(--text); }
.fan-title p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.ios-unread,
.quiet-pill,
.fan-pill-row span,
.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ios-unread { min-width: 22px; height: 22px; padding: 0 7px; background: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(255,59,48,0.25); }
.quiet-pill { background: var(--surface-muted); color: var(--text-soft); }
.fan-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fan-pill-row span { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(0,122,255,0.10); }
.fan-meta { display: grid; gap: 8px; margin: 12px 0 14px; }
.fan-meta p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.fan-meta b { display: block; color: var(--text); font-size: 12px; }
.fan-stats { grid-template-columns: 1fr; gap: 11px; }
.fan-stat { margin: 0; }
.fan-stat > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.fan-stat span { color: var(--text); font-weight: 800; }
.fan-stat small { color: var(--text-muted); font-weight: 700; }
.fan-stat input { max-width: 84px; min-height: 34px; margin: 7px 0 0 auto; padding: 7px 9px; border-radius: 12px; font-size: 12px; }
.value-meter { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,0.06); }
.value-meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter-affection span { background: linear-gradient(90deg, #ffd6e7, #9fd1ff); }
.meter-trust span { background: #5edb82; }
.meter-alertness span { background: #ffb340; }
.meter-private span { background: #5aa9ff; }
.meter-jealousy span { background: #ff7aa8; }
.meter-fanpower span { background: #b18cff; }
.meter-money span { background: #ffd35a; }
.fan-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.fan-actions details { flex: 1 1 260px; }
.fan-actions summary,
.fan-actions button { min-height: 36px; border-radius: 999px; }
.fan-actions summary { display: inline-flex; align-items: center; padding: 0 14px; background: var(--surface-muted); color: var(--accent); }
.fan-actions button { padding: 0 15px; }
.fan-details { display: grid; gap: 10px; margin-top: 12px; }
.fan-details section { background: rgba(242,242,247,0.72); border: 1px solid rgba(0,0,0,0.04); border-radius: 16px; padding: 12px; }
.fan-details h5 { margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 800; }
.fan-details p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.fan-details label { margin: 0; color: var(--text); font-size: 13px; }
.fan-details textarea { border-radius: 14px; margin: 8px 0 0; }
.risk-dashboard-card { display: grid; grid-template-columns: minmax(180px, 0.42fr) 1fr; gap: 18px; align-items: center; }
.risk-score strong { font-size: clamp(42px, 7vw, 56px); line-height: 1; letter-spacing: -0.05em; }
.risk-score span { color: var(--text-muted); font-weight: 800; }
.risk-overview-list { display: grid; gap: 8px; }
.risk-overview-list p,
.highest-risk-card p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.highest-risk-card h4 { margin: 6px 0 8px; font-size: 20px; }
.risk-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.risk-level-高危.risk-card,
.risk-level-高危.risk-dashboard-card { background: rgba(255,245,245,0.9); }
.risk-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.risk-card-head b { font-size: 15px; }
.risk-card-head span { color: var(--text-muted); font-size: 13px; font-weight: 800; }
.risk-card-meta { margin-bottom: 12px; }
.risk-controls { display: grid; grid-template-columns: auto auto minmax(120px, 1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.risk-controls button { min-height: 34px; border-radius: 999px; padding: 0 13px; }
.risk-controls label { margin: 0; color: var(--text-muted); font-size: 12px; }
.risk-controls input { min-height: 34px; margin: 4px 0 0; border-radius: 12px; padding: 7px 9px; }
.value-meter-安全 span { background: var(--success); }
.value-meter-轻微 span { background: #62a7ff; }
.value-meter-注意 span { background: #ffd35a; }
.value-meter-危险 span { background: #ff9f45; }
.value-meter-高危 span { background: #ff6b66; }
.risk-history-panel { background: rgba(255,255,255,0.82); border-radius: 22px; }
.risk-timeline { position: relative; display: grid; gap: 12px; margin-top: 12px; }
.risk-timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.risk-timeline-item::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -14px; width: 2px; background: rgba(0,0,0,0.06); }
.risk-timeline-item:last-child::before { display: none; }
.risk-timeline-dot { width: 16px; height: 16px; margin-top: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.risk-timeline-card { background: rgba(242,242,247,0.72); border: 1px solid rgba(0,0,0,0.04); border-radius: 16px; padding: 12px; }
.risk-timeline-top { display: flex; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 12px; }
.risk-timeline-card p { margin: 6px 0 0; color: var(--text); font-size: 13px; }
.risk-timeline-card small { display: block; margin-top: 7px; color: var(--text-muted); line-height: 1.5; }
.delta-up { color: #d75b1f; }
.delta-down { color: #238c4f; }
.risk-empty { border-radius: 16px; padding: 16px; background: rgba(242,242,247,0.72); color: var(--text-muted); font-size: 13px; }
.manual-risk-note { background: rgba(0,122,255,0.08); color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.manual-risk-note b { color: var(--text); }
.manual-risk-note p { margin: 6px 0 0; }
@media (min-width: 1260px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
  .profile-grid,
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-dashboard-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .profile-grid,
  .risk-grid { grid-template-columns: 1fr; }
  .fan-profile-head { grid-template-columns: 52px 1fr; }
  .fan-profile-head .ios-unread,
  .fan-profile-head .quiet-pill { grid-column: 2; justify-self: start; }
  .risk-controls { grid-template-columns: 1fr 1fr; }
  .risk-controls label,
  .risk-controls .primary { grid-column: 1 / -1; }
}

/* 0.8e-k: Outing exploration page */
.outing-page { display: flex; flex-direction: column; gap: 18px; }
.outing-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.outing-title h1 { margin: 0; font-size: clamp(24px, 3vw, 28px); line-height: 1.1; font-weight: 800; color: var(--text); }
.outing-title p { margin: 8px 0 0; color: var(--text-muted); }
.outing-hero-card, .outing-panel, .outing-action-card, .outing-place-card { background: rgba(255,255,255,0.86); border: 1px solid rgba(226,232,240,0.9); box-shadow: 0 14px 36px rgba(15,23,42,0.07); }
.outing-hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 190px; padding: 24px; border-radius: 24px; overflow: hidden; position: relative; }
.outing-hero-copy { position: relative; z-index: 1; }
.outing-hero-copy h2 { margin: 4px 0 12px; font-size: clamp(24px, 4vw, 36px); line-height: 1.12; color: var(--text); }
.outing-hero-copy p { margin: 5px 0; color: var(--text); }
.outing-hero-icon { width: 108px; height: 108px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(145deg, rgba(0,122,255,0.12), rgba(255,255,255,0.9)); font-size: 52px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
.outing-status-grid, .outing-encounter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.outing-encounter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.outing-panel, .outing-action-card { border-radius: 22px; padding: 18px; }
.outing-panel h3, .outing-action-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--text); }
.outing-panel p { margin: 0; color: var(--text-muted); line-height: 1.65; }
.outing-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.outing-chip, .outing-pill { border: 1px solid rgba(148,163,184,0.32); background: rgba(255,255,255,0.92); color: var(--text); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 750; line-height: 1.1; }
.outing-chip { cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.outing-chip:hover { transform: translateY(-1px); border-color: rgba(0,122,255,0.4); background: var(--accent-soft); color: var(--accent); }
.crowd-pill { background: rgba(0,122,255,0.08); color: var(--accent); border-color: rgba(0,122,255,0.18); }
.risk-tone-safe .risk-label, .risk-tone-safe.outing-pill { background: rgba(52,199,89,0.12); color: #188038; border-color: rgba(52,199,89,0.24); }
.risk-tone-watch .risk-label, .risk-tone-watch.outing-pill { background: rgba(255,204,0,0.16); color: #8a6500; border-color: rgba(255,204,0,0.28); }
.risk-tone-danger .risk-label, .risk-tone-danger.outing-pill { background: rgba(255,59,48,0.12); color: #b42318; border-color: rgba(255,59,48,0.24); }
.risk-tone-neutral .risk-label, .risk-tone-neutral.outing-pill { background: rgba(148,163,184,0.14); color: #475569; border-color: rgba(148,163,184,0.28); }
.outing-place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.outing-place-card { border-radius: 20px; padding: 16px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.outing-place-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15,23,42,0.1); }
.outing-place-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.outing-place-head h4 { margin: 0; font-size: 16px; color: var(--text); }
.outing-place-card p { margin: 0 0 12px; color: var(--text-muted); line-height: 1.6; }
.outing-action-copy p { margin-top: 4px; color: var(--text-muted); }
.outing-action-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.outing-history-list { display: grid; gap: 10px; }
.outing-history-card { border: 1px solid rgba(226,232,240,0.9); border-radius: 16px; padding: 12px; background: rgba(248,250,252,0.8); }
.outing-history-card header { display: flex; justify-content: space-between; gap: 10px; color: var(--text); margin-bottom: 8px; }
.outing-history-card header span { color: var(--text-muted); }
.outing-history-card p { margin: 4px 0; }
@media (max-width: 1100px) { .outing-place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .outing-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .outing-title, .outing-hero-card, .outing-place-head, .outing-history-card header { grid-template-columns: 1fr; flex-direction: column; } .outing-title { align-items: stretch; } .outing-hero-card, .outing-status-grid, .outing-encounter-grid, .outing-place-grid, .outing-action-fields { grid-template-columns: 1fr; } .outing-hero-icon { width: 82px; height: 82px; font-size: 40px; } .outing-page { max-width: 100%; overflow-x: hidden; } }

/* 0.8e-l: Fansign interaction page */
.signing-page { display: flex; flex-direction: column; gap: 18px; max-width: 100%; overflow-x: hidden; }
.signing-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.signing-title h1 { margin: 0; font-size: clamp(24px, 3vw, 28px); line-height: 1.1; font-weight: 800; color: var(--text); }
.signing-title p { margin: 8px 0 0; color: var(--text-muted); line-height: 1.55; }
.signing-hero-card, .signing-panel, .signing-action-card, .signing-status-card, .signing-fan-card { background: rgba(255,255,255,0.88); border: 1px solid rgba(226,232,240,0.92); box-shadow: 0 14px 36px rgba(127,86,0,0.07); }
.signing-hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 190px; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,248,232,0.86)); }
.signing-hero-copy h2 { margin: 4px 0 12px; font-size: clamp(24px, 4vw, 36px); line-height: 1.12; color: var(--text); }
.signing-hero-copy p { margin: 5px 0; color: var(--text); }
.signing-hero-icon { width: 108px; height: 108px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(145deg, rgba(255,204,0,0.18), rgba(255,255,255,0.92)); font-size: 52px; }
.signing-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.signing-status-card { border-radius: 18px; padding: 15px; display: grid; gap: 8px; }
.signing-status-card span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.signing-status-card b { color: var(--text); line-height: 1.45; }
.tone-safe { background: rgba(52,199,89,0.11); border-color: rgba(52,199,89,0.22); }
.tone-watch { background: rgba(255,204,0,0.15); border-color: rgba(255,204,0,0.28); }
.tone-warn { background: rgba(255,149,0,0.14); border-color: rgba(255,149,0,0.27); }
.tone-danger { background: rgba(255,59,48,0.11); border-color: rgba(255,59,48,0.24); }
.tone-neutral { background: rgba(248,250,252,0.9); }
.signing-panel, .signing-action-card { border-radius: 22px; padding: 18px; }
.signing-panel h3, .signing-action-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--text); }
.signing-fan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.signing-fan-card { border-radius: 20px; padding: 16px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.signing-fan-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15,23,42,0.1); }
.signing-fan-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.signing-fan-card h4 { margin: 0; font-size: 17px; color: var(--text); }
.signing-fan-card small { color: var(--text-muted); }
.signing-fan-card p { margin: 6px 0; line-height: 1.55; color: var(--text-muted); }
.signing-risk-tag { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-weight: 750; }
.signing-stage-note { color: var(--text-muted); margin-bottom: 12px; }
.signing-stage-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.signing-stage-step { border-radius: 16px; padding: 10px; background: rgba(148,163,184,0.12); color: #64748b; text-align: center; }
.signing-stage-step span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.9); margin-bottom: 6px; font-weight: 800; }
.signing-stage-step b { display: block; font-size: 12px; line-height: 1.35; }
.signing-stage-step.done { background: rgba(0,122,255,0.08); color: var(--accent); }
.signing-stage-step.current { background: linear-gradient(135deg, rgba(0,122,255,0.16), rgba(255,204,0,0.18)); color: var(--text); outline: 2px solid rgba(0,122,255,0.28); }
.signing-chip-row .outing-chip { background: rgba(255,255,255,0.94); }
.signing-action-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.signing-action-card textarea { min-height: 118px; border-radius: 18px; }
@media (max-width: 1100px) { .signing-fan-grid, .signing-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .signing-stage-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .signing-title, .signing-hero-card, .signing-fan-card header { grid-template-columns: 1fr; flex-direction: column; } .signing-title { align-items: stretch; } .signing-hero-card, .signing-status-grid, .signing-fan-grid, .signing-action-fields, .signing-stage-flow { grid-template-columns: 1fr; } .signing-hero-icon { width: 82px; height: 82px; font-size: 40px; } .signing-stage-step { text-align: left; display: flex; align-items: center; gap: 10px; } .signing-stage-step span { margin: 0; } }

/* 0.8e-m: schedule timeline polish */
.schedule-page { display: grid; gap: 16px; min-width: 0; }
.schedule-title { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.schedule-title h1 { margin: 0; color: var(--text); font-size: clamp(24px, 3vw, 28px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.schedule-title p { margin: 8px 0 0; color: var(--text-muted); line-height: 1.55; }
.schedule-hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px; border: 1px solid rgba(0,0,0,0.06); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,248,255,.86)); box-shadow: var(--shadow-card); overflow: hidden; }
.schedule-hero-copy h2 { margin: 2px 0 10px; font-size: clamp(26px, 4vw, 42px); letter-spacing: -0.05em; color: var(--text); }
.schedule-hero-copy p { margin: 5px 0; color: var(--text-muted); line-height: 1.55; }
.schedule-hero-icon { min-width: 104px; height: 104px; display: grid; place-items: center; position: relative; border-radius: 28px; background: linear-gradient(135deg, #edf6ff, #fff7e1); font-size: 44px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.schedule-hero-icon span { position: absolute; font-size: 22px; }
.schedule-hero-icon span:first-child { right: 14px; top: 13px; }
.schedule-hero-icon span:last-child { left: 14px; bottom: 13px; }
.schedule-filter-row, .schedule-people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.schedule-filter { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.86); color: var(--text-muted); font-weight: 850; cursor: pointer; box-shadow: 0 6px 16px rgba(20,24,40,.04); }
.schedule-filter.active, .schedule-filter:hover { border-color: rgba(0,122,255,.24); background: rgba(0,122,255,.1); color: var(--accent); }
.schedule-panel, .schedule-action-card { min-width: 0; padding: 18px 20px; border: 1px solid rgba(0,0,0,0.06); border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-card); }
.schedule-panel h3, .schedule-action-card h3 { margin: 0 0 12px; color: var(--text); font-size: 17px; }
.schedule-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.schedule-mini-card { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.9); }
.schedule-mini-card header { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.schedule-mini-card header span, .schedule-time-pill { display: inline-flex; width: fit-content; padding: 5px 10px; border-radius: 999px; background: #eef5ff; color: #1d6fc9; font-size: 12px; font-weight: 900; white-space: nowrap; }
.schedule-mini-card p { margin: 0; color: var(--text-muted); line-height: 1.45; }
.schedule-timeline { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.schedule-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; border-radius: 99px; background: #d8e2f2; }
.schedule-timeline-item { position: relative; min-width: 0; cursor: pointer; }
.schedule-dot { position: absolute; left: -20px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #edf6ff; }
.schedule-card { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(20,24,40,.055); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.schedule-card:hover { transform: translateY(-2px); border-color: rgba(0,122,255,.22); box-shadow: 0 18px 38px rgba(20,24,40,.08); }
.schedule-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.schedule-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.schedule-card p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.schedule-card footer { color: var(--text-soft); font-size: 12px; overflow-wrap: anywhere; }
.schedule-status, .schedule-risk, .schedule-person-chip { display: inline-flex; width: fit-content; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 850; line-height: 1; }
.status-pending { background: #fff6df; color: #9b6500; }
.status-active { background: #eef5ff; color: #1d6fc9; }
.status-done { background: #ecfff4; color: #1f8a4c; }
.status-changed { background: #fff0f0; color: #c23636; }
.status-unknown { background: #f3f5f9; color: #667085; }
.risk-safe { background: #ecfff4; color: #1f8a4c; }
.risk-watch { background: #fff6df; color: #9b6500; }
.risk-danger { background: #fff0f0; color: #c23636; }
.risk-unknown { background: #f3f5f9; color: #667085; }
.schedule-person-chip { background: #f4f1ff; color: #6f58e8; }
.muted-chip { background: #f3f5f9; color: #98a2b3; }
.schedule-note { padding: 10px 12px; border-radius: 14px; background: #f6f7fb; color: var(--text-muted); line-height: 1.6; overflow-wrap: anywhere; }
.schedule-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 18px; background: #fbfcff; color: var(--text-muted); }
.schedule-action-card { display: grid; gap: 12px; }
.schedule-action-card textarea { min-height: 110px; border-radius: 18px; }
.schedule-action-card input:focus, .schedule-action-card textarea:focus { outline: none; border-color: rgba(0,122,255,0.55); box-shadow: 0 0 0 4px rgba(0,122,255,0.12); }
@media (max-width: 900px) { .schedule-support-grid { grid-template-columns: 1fr; } .schedule-title { flex-direction: column; } }
@media (max-width: 640px) { .schedule-hero-card { grid-template-columns: 1fr; padding: 18px; } .schedule-hero-icon { width: 84px; height: 84px; min-width: 84px; font-size: 34px; } .schedule-timeline { padding-left: 16px; } .schedule-timeline::before { left: 5px; } .schedule-dot { left: -16px; } .schedule-panel, .schedule-action-card { padding: 15px; border-radius: 20px; } .schedule-card { padding: 14px; } }

/* 0.9a: global mobile-app frame and phone-first finishing polish. */
html { max-width: 100%; overflow-x: hidden; }
body {
  padding: 18px;
  overflow-x: hidden;
}
.app-shell-wrapper {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
}
.app-shell {
  min-height: calc(100vh - 36px);
  padding: 14px 0 14px 14px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.2));
  box-shadow: 0 26px 80px rgba(20,24,40,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.main-panel,
.content-grid,
.page-content,
.hero-card,
.tool-card { min-width: 0; }
.hero-card { overflow: hidden; }
.page-content,
.card,
.panel,
.section-card,
.widget-card,
.info-card,
.story-box,
.action-panel,
.record-card,
.notification-card,
.risk-card,
.fan-profile-card,
.hot-item,
.thread,
.comment,
.schedule-card,
.outing-history-card,
.signing-fan-card { overflow-wrap: anywhere; }
.mobile-tabbar { display: none; }

@media (min-width: 981px) {
  .drawer { top: 32px; height: calc(100vh - 64px); }
  .tool-card { max-height: calc(100vh - 84px); }
}

@media (max-width: 760px) {
  body { padding: 0; background: var(--bg); }
  .app-shell-wrapper,
  .app-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .app-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 84px;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(247,248,252,0.96), rgba(242,242,247,1));
  }
  .drawer {
    position: static;
    z-index: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    padding: 10px 12px 8px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: rgba(255,255,255,0.8);
  }
  .brand { margin-bottom: 8px; padding: 4px 2px 8px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand h1 { font-size: 17px; }
  .brand p { font-size: 12px; }
  .menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .menu button {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(242,242,247,0.86);
    scroll-snap-align: start;
  }
  .menu .menu-text { max-width: none; }
  .main-panel { width: 100%; padding: 0 10px; }
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border-radius: 22px;
  }
  .icon-button { display: none; }
  .topbar-title { min-width: 0; }
  .topbar-title .eyebrow { display: none; }
  .topbar h2 { font-size: 20px; letter-spacing: -0.02em; }
  .topbar-actions {
    display: contents;
    width: auto;
    margin: 0;
  }
  .notification-bell { grid-column: 3; grid-row: 1; width: 40px; height: 40px; min-height: 40px; }
  .status-pills {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
  }
  .status-pills .status-pill {
    max-width: 100%;
    min-height: 30px;
    height: auto;
    white-space: normal;
    line-height: 1.2;
    padding: 7px 10px;
  }
  .content-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .card { padding: 14px; border-radius: 22px; }
  .hero-card, .tool-card { width: 100%; }
  .section-title { gap: 10px; margin-bottom: 12px; }
  .section-title span { font-size: 28px; }
  .section-title h3 { font-size: 18px; }
  .page-content { gap: 12px; }
  .overview-grid, .list-grid, .platform-grid, .risk-grid, .character-grid, .character-form, .stats-editor, .dashboard-grid, .trend-grid, .schedule-support-grid { grid-template-columns: 1fr !important; }
  .dashboard-grid > *, .dashboard-grid .large-card, .dashboard-grid .small-card { grid-column: 1 / -1 !important; }
  .info-card, .stat, .dashboard-card, .fan-profile-card, .risk-card, .notification-card, .record-card, .hot-item, .action-queue-card, .schedule-panel, .schedule-action-card, .outing-panel, .outing-action-card, .signing-panel, .signing-action-card { border-radius: 20px; padding: 14px; }
  .hot-item { grid-template-columns: 1fr; align-items: start; }
  .tool-card {
    max-height: none;
    overflow: visible;
    padding: 14px;
    margin-bottom: 0;
  }
  .tool-section { padding: 12px; border-radius: 18px; }
  .tool-card .button-row, .chat-composer-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tool-card textarea, .tool-card input, .tool-card select, .reply-section #chatgptReply, .preview-section #freeInput { width: 100%; max-width: 100%; font-size: 14px; }
  button, button.primary, button.secondary, button.danger, .import-label, .queue-mini, .quick-tag, input, select { min-height: 40px; }
  textarea { font-size: 14px; }
  .queue-mini { padding: 0 12px; }
  .log-list, .record-list { max-height: 56vh; overflow: auto; }
  .fullActionText, pre, code { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0;
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-top: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 -12px 34px rgba(20,24,40,0.08);
  }
  .mobile-tab {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px 2px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    box-shadow: none;
  }
  .mobile-tab:hover { transform: none; background: rgba(0,0,0,0.035); }
  .mobile-tab.active { color: var(--accent); background: rgba(0,122,255,0.1); }
  .mobile-tab-icon { position: relative; font-size: 20px; line-height: 1; }
  .mobile-tab-dot {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    line-height: 12px;
    font-weight: 900;
  }
}

/* 0.9a 粉灰桌面模式 */
.app-shell { padding: 0; gap: 0; }
.drawer { display: none; }
.main-panel { width: 100%; padding: 0; }
.topbar { display: none; }
.desktop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; max-width: 1500px; margin: 20px auto; padding: 16px; align-items: start; }
.desktop-surface { min-height: calc(100vh - 40px); border-radius: 32px; background: rgba(255,255,255,0.42); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border: 1px solid rgba(255,255,255,0.7); box-shadow: var(--shadow-window); position: relative; overflow: hidden; padding: 22px 22px 122px; }
.desktop-surface::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 26%, var(--pink-soft), transparent 26%), radial-gradient(circle at 85% 70%, var(--rose-gray-soft), transparent 24%); pointer-events: none; }
.desktop-surface > * { position: relative; z-index: 1; }
.desktop-statusbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px 7px 16px; border-radius: 18px; background: var(--cream-white); border: 1px solid rgba(216,198,207,0.42); box-shadow: var(--shadow-card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 13px; }
.desktop-brandline { font-weight: 800; color: var(--text); }
.desktop-status-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.desktop-pill { border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,0.62); color: var(--text-muted); font-size: 12px; font-weight: 700; }
button.desktop-pill { cursor: pointer; }
.desktop-home { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 22px; padding-top: 22px; }
.desktop-widgets { display: grid; gap: 14px; align-content: start; }
.desktop-widget { padding: 16px; border-radius: 24px; background: rgba(255,252,253,0.72); border: 1px solid rgba(216,198,207,0.42); box-shadow: var(--shadow-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.desktop-widget h3 { margin: 0 0 10px; font-size: 15px; }
.widget-time { font-size: 34px; font-weight: 900; letter-spacing: -0.04em; }
.widget-muted { color: var(--text-muted); font-size: 13px; margin: 4px 0; }
.widget-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.widget-list li { padding: 9px 10px; border-radius: 14px; background: rgba(245,184,203,0.12); color: var(--text); font-size: 13px; }
.widget-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.widget-stat-grid span { padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.62); font-size: 12px; color: var(--text-muted); }
.widget-stat-grid b { display: block; color: var(--text); font-size: 16px; margin-top: 3px; }
.desktop-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 18px 16px; align-items: start; align-content: start; padding: 8px; }
.desktop-app { display: grid; justify-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: var(--text); cursor: pointer; position: relative; padding: 0; }
.desktop-app-icon { width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; background: var(--cream-white); border: 1px solid rgba(216,198,207,0.58); box-shadow: 0 12px 26px rgba(122,84,103,0.10); transition: transform var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft), border-color var(--duration-fast) var(--ease-soft), box-shadow var(--duration-normal) var(--ease-soft); }
.app-icon-glyph { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; text-align: center; flex: 0 0 34px; }
.desktop-app:hover .desktop-app-icon { transform: translateY(-3px); background: rgba(245,184,203,0.30); border-color: rgba(217,107,147,.26); box-shadow: 0 16px 32px rgba(122,84,103,0.14); }
.desktop-app:active .desktop-app-icon { transform: translateY(0) scale(.96); transition-duration: 100ms; }
.desktop-app-label { max-width: 88px; min-height: 30px; font-size: 12px; line-height: 1.25; font-weight: 800; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,0.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desktop-app-dot { position: absolute; top: -5px; right: calc(50% - 45px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d9647b; color: white; font-size: 11px; line-height: 19px; font-weight: 900; box-shadow: 0 0 0 3px rgba(255,255,255,.75); }
.desktop-dock { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 14px; border-radius: 26px; background: rgba(255,252,253,0.78); border: 1px solid rgba(255,255,255,0.78); box-shadow: var(--shadow-card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); max-width: calc(100% - 44px); overflow-x: auto; }
.desktop-dock-item { width: 64px; display: grid; justify-items: center; gap: 4px; color: var(--text-muted); }
.desktop-dock-button { width: 64px; height: 64px; min-width: 64px; min-height: 64px; border: 1px solid rgba(216,198,207,0.58); border-radius: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--cream-white); cursor: pointer; transition: transform var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft), border-color var(--duration-fast) var(--ease-soft), box-shadow var(--duration-normal) var(--ease-soft); }
.desktop-dock-button:hover { transform: translateY(-4px) scale(1.08); background: var(--rose-gray-soft); border-color: rgba(217,107,147,.26); box-shadow: 0 14px 28px rgba(122,84,103,0.13); }
.desktop-dock-button:active { transform: translateY(0) scale(.95); }
.desktop-dock-item.active .desktop-dock-button { background: var(--pink-soft); border-color: rgba(217,107,147,.32); }
.desktop-dock-item.active::after { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,107,147,0.12); }
.desktop-dock-label { max-width: 64px; font-size: 10.5px; line-height: 1.1; font-weight: 800; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-dock-item:hover .desktop-dock-label, .desktop-dock-item.active .desktop-dock-label { color: var(--accent); }

.desktop-window { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); animation: window-pop-in 260ms var(--ease-pop) both; transform-origin: center center; width: min(1120px, calc(100% - 40px)); height: min(820px, calc(100% - 110px)); max-width: 1120px; max-height: calc(100vh - 140px); background: rgba(255,252,253,0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 28px; box-shadow: var(--shadow-window); border: 1px solid rgba(255,255,255,0.75); overflow: hidden; z-index: 4; display: grid; grid-template-rows: 54px minmax(0, 1fr); }
.desktop-window.hidden { display: none; }
.desktop-window.is-closing { animation: window-soft-close 180ms var(--ease-standard) both; pointer-events: none; }
.desktop-window-titlebar { height: 54px; display: grid; grid-template-columns: 86px minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 0 16px; background: rgba(255,255,255,0.58); border-bottom: 1px solid var(--border); }
.desktop-window-titlebar strong { min-width: 0; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-lights { display: flex; align-items: center; gap: 8px; }
.window-lights span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.light-red { background: #ee8ba1; } .light-yellow { background: #f2c777; } .light-green { background: #9fd7b0; }
.desktop-window-close { width: 38px; height: 38px; min-width: 38px; min-height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; font-size: 22px; font-weight: 800; background: rgba(245, 184, 203, 0.22); color: #d96b93; border: 1px solid rgba(217, 107, 147, 0.18); cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.desktop-window-close:hover { background: rgba(245, 184, 203, 0.34); border-color: rgba(217, 107, 147, 0.3); }
.desktop-window-body { height: calc(100% - 54px); overflow-y: auto; overflow-x: hidden; padding: 18px 20px; }
.desktop-window-body > * { animation: page-soft-enter 180ms var(--ease-soft) both; }
.desktop-window-section-title { margin-bottom: 14px; }
.tool-card { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; background: var(--cream-white); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand-mark { background: var(--accent); box-shadow: 0 8px 18px rgba(217,107,147,0.18); }

@media (max-width: 760px) {
  body { background: linear-gradient(135deg, #f7f1f4, #eeeef3); }
  .app-shell { display: block; padding: 0; }
  .drawer { display: block; position: fixed; z-index: 20; left: 12px; top: 12px; transform: translateX(-110%); transition: transform .2s ease; }
  .drawer.open { transform: translateX(0); }
  .main-panel { padding: 0 0 76px; }
  .topbar { display: flex; margin: 10px; }
  .desktop-layout { display: block; margin: 0; padding: 0; }
  .desktop-surface { border-radius: 0; min-height: auto; padding: 12px; box-shadow: none; overflow: visible; }
  .desktop-statusbar { display: none; }
  .desktop-home { grid-template-columns: 1fr; padding-top: 0; }
  .desktop-app-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 14px 8px; }
  .desktop-window { position: static; transform: none; width: 100%; height: auto; max-height: none; box-shadow: none; margin-top: 14px; animation-name: window-pop-in-mobile; }
  .desktop-window-body { height: auto; max-height: none; overflow: visible; padding: 16px 14px; }
  .desktop-window.hidden { display: grid; }
  .desktop-dock { display: none; }
  .tool-card { position: static; max-height: none; margin: 12px; }
  .desktop-app-icon { width: 62px; height: 62px; }
}

/* 0.9b notification center polish */
.modal-backdrop {
  z-index: 120;
  padding: 18px;
  background: rgba(42, 35, 40, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.notification-center {
  width: min(520px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255,252,253,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(95,68,82,0.10);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(122,84,103,0.16);
  padding: 18px;
}
.notification-header { margin-bottom: 10px; }
.notification-header h3 {
  color: #2a2328;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.notification-header .eyebrow { color: #d96b93; }
.notification-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.notification-subtitle {
  margin: 0;
  color: #7f7279;
  font-size: 13px;
  line-height: 1.5;
}
.notification-unread-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(245,184,203,0.22);
  color: #d96b93;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(217,107,147,0.20);
}
.notification-filter-chips {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.notification-filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(95,68,82,0.10);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255,255,255,0.62);
  color: #7f7279;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.notification-filter-chip.active,
.notification-filter-chip:hover {
  background: #d96b93;
  border-color: rgba(217,107,147,0.28);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217,107,147,0.22);
}
.notification-tools-ios {
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.notification-tools-ios button { min-height: 36px; }
.notification-danger {
  background: rgba(255,59,48,0.08) !important;
  color: #bf5b54 !important;
  border-color: rgba(255,59,48,0.14) !important;
}
.notification-form {
  border-color: rgba(217,107,147,0.18);
  background: rgba(255,252,253,0.66);
}
.notification-list { display: grid; gap: 10px; }
.notification-card-ios {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid rgba(95,68,82,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 10px 24px rgba(122,84,103,0.08);
  color: #2a2328;
  transition: transform var(--duration-fast) var(--ease-soft), box-shadow var(--duration-normal) var(--ease-soft), background var(--duration-fast) var(--ease-soft), border-color var(--duration-fast) var(--ease-soft);
}
.notification-card-ios:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(122,84,103,0.13);
}
.notification-card-ios.unread {
  border-color: rgba(217,107,147,0.18);
  background: linear-gradient(135deg, rgba(245,184,203,0.22), rgba(255,255,255,0.80));
}
.notification-card-ios.read {
  background: rgba(255,255,255,0.52);
  color: #7f7279;
  box-shadow: 0 8px 20px rgba(122,84,103,0.06);
}
.notification-read-dot {
  position: absolute;
  left: 8px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d96b93;
  box-shadow: 0 0 0 4px rgba(217,107,147,0.13);
}
.notification-card-ios.read .notification-read-dot { display: none; }
.notification-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(245,184,203,0.22);
  font-size: 18px;
}
.notification-card-main { min-width: 0; }
.notification-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.notification-card-top small {
  margin: 0;
  color: #7f7279;
  font-size: 11px;
  white-space: nowrap;
}
.notification-card-ios .type-chip {
  background: rgba(245,184,203,0.22);
  color: #d96b93;
  padding: 4px 9px;
}
.notification-card-ios h4 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 900;
}
.notification-card-ios.read h4 { font-weight: 700; }
.notification-card-ios p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  color: #7f7279;
  line-height: 1.55;
  font-size: 13px;
}
.notification-actions button { min-height: 36px; }
.notification-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 26px 18px;
  border: 1px dashed rgba(95,68,82,0.16);
  border-radius: 18px;
  background: rgba(255,252,253,0.70);
  color: #7f7279;
  text-align: center;
}
.notification-empty div { font-size: 28px; }
.notification-empty p { margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
  .modal-backdrop { align-items: start; padding: 12px; padding-bottom: 88px; }
  .notification-center { width: calc(100% - 0px); max-height: calc(100vh - 104px); padding: 16px; }
  .notification-summary { align-items: flex-start; }
  .notification-tools-ios { display: grid; grid-template-columns: 1fr; }
  .notification-card-ios { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; }
  .notification-card-top { align-items: flex-start; flex-direction: column; }
  .notification-card-top small { white-space: normal; }
}

/* 0.9c: global log pink-gray story archive timeline. */
.global-log-page {
  display: grid;
  gap: 14px;
  color: #2a2328;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 12px;
}
.global-log-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,252,253,0.92), rgba(245,184,203,0.22));
  border: 1px solid rgba(217,107,147,0.18);
  box-shadow: 0 18px 44px rgba(121, 82, 98, 0.09);
}
.global-log-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.global-log-hero p {
  margin: 0;
  color: #7f7279;
  font-size: 14px;
}
.global-log-hero > span {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(217,107,147,0.14);
  color: #b54f77;
  border: 1px solid rgba(217,107,147,0.2);
  font-size: 13px;
  font-weight: 800;
}
.log-filter-bar, .log-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.log-filter-chip, .log-people span {
  border: 1px solid rgba(217,107,147,0.16);
  background: rgba(255,252,253,0.86);
  color: #7f7279;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}
.log-filter-chip.active {
  color: #fff;
  background: #d96b93;
  box-shadow: 0 10px 24px rgba(217,107,147,0.24);
}
.log-search {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(216,198,207,0.8);
  background: rgba(255,252,253,0.88);
  padding: 0 14px;
  color: #2a2328;
  font-weight: 700;
  box-sizing: border-box;
}
.log-tools { display: flex; justify-content: flex-end; }
.global-timeline { display: grid; gap: 14px; }
.timeline-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-marker::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(rgba(217,107,147,0.32), rgba(216,198,207,0.14));
}
.timeline-marker span {
  width: 14px;
  height: 14px;
  margin-top: 18px;
  border-radius: 50%;
  background: #d96b93;
  border: 4px solid rgba(255,252,253,0.95);
  box-shadow: 0 0 0 1px rgba(217,107,147,0.28), 0 8px 18px rgba(217,107,147,0.25);
  z-index: 1;
}
.timeline-card {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,252,253,0.88);
  border: 1px solid rgba(216,198,207,0.58);
  box-shadow: 0 14px 34px rgba(121, 82, 98, 0.075);
  overflow: hidden;
}
.log-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7f7279; font-size: 12px; }
.log-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(245,184,203,0.22);
  color: #9d4968;
}
.log-page-badge { background: rgba(180, 210, 255, 0.32); color: #567099; }
.log-kind-badge { background: rgba(216,198,207,0.32); color: #7f7279; }
.log-risk-badge { background: rgba(238,154,133,0.2); color: #b36052; }
.timeline-card h3 { margin: 12px 0; font-size: 18px; letter-spacing: -0.02em; }
.log-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.log-summary-grid p, .log-card-bottom p {
  margin: 0;
  padding: 11px;
  border-radius: 16px;
  background: rgba(245,184,203,0.16);
  color: #7f7279;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log-summary-grid b, .log-card-bottom b { display: block; margin-bottom: 4px; color: #2a2328; }
.log-card-bottom { display: grid; gap: 10px; margin-top: 12px; }
.log-card-bottom button { justify-self: start; }
.log-detail {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px dashed rgba(217,107,147,0.3);
  max-height: 520px;
  overflow: auto;
}
.log-detail h4 { margin: 12px 0 6px; }
.log-detail pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #2a2328;
  font-family: inherit;
  line-height: 1.55;
}
.log-empty {
  text-align: center;
  padding: 34px 18px;
  border: 1px dashed rgba(217,107,147,0.32);
  border-radius: 18px;
  background: rgba(255,252,253,0.86);
  color: #7f7279;
}
.log-empty div { font-size: 32px; margin-bottom: 8px; }
.log-empty p { margin: 0; line-height: 1.7; }
@media (max-width: 760px) {
  .global-log-hero { flex-direction: column; border-radius: 20px; }
  .timeline-item { grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
  .timeline-card { padding: 13px; border-radius: 18px; }
  .log-summary-grid { grid-template-columns: 1fr; }
  .log-card-top { gap: 6px; }
  .log-search { width: 100%; }
}
.timeline-card.log-tone-chat .log-page-badge, .timeline-card.log-tone-schedule .log-page-badge { background: rgba(166,205,245,0.34); color: #416c99; }
.timeline-card.log-tone-weibo .log-page-badge { background: rgba(245,184,203,0.34); color: #b54f77; }
.timeline-card.log-tone-forum .log-page-badge { background: rgba(210,190,238,0.34); color: #725a95; }
.timeline-card.log-tone-douban .log-page-badge { background: rgba(190,224,196,0.36); color: #527b5b; }
.timeline-card.log-tone-threads .log-page-badge { background: rgba(210,202,224,0.38); color: #6d627a; }
.timeline-card.log-tone-platform .log-page-badge, .timeline-card.log-tone-system .log-page-badge { background: rgba(216,198,207,0.36); color: #7f7279; }
.timeline-card.log-tone-outside .log-page-badge { background: rgba(180,225,220,0.36); color: #4c7a76; }
.timeline-card.log-tone-fansign .log-page-badge { background: rgba(244,218,154,0.38); color: #8f713a; }
.timeline-card.log-tone-risk .log-page-badge { background: rgba(238,154,133,0.24); color: #b36052; }
.timeline-card.log-tone-update .log-page-badge { background: rgba(245,184,203,0.26); color: #9d4968; }

/* 0.9d: save settings pink-gray backup center. */
.save-settings-page { display: grid; gap: 16px; max-width: 100%; overflow-x: hidden; padding-bottom: 96px; color: #2a2328; }
.save-settings-hero, .save-overview-card, .settings-group, .backup-reminder, .settings-danger-zone { border: 1px solid rgba(216,198,207,0.58); box-shadow: 0 16px 42px rgba(121,82,98,0.08); }
.save-settings-hero { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,252,253,0.94), rgba(245,184,203,0.22)); }
.save-settings-hero h1 { margin: 0 0 6px; font-size: clamp(25px, 4vw, 30px); letter-spacing: -0.04em; }
.save-settings-hero p { margin: 0; color: #7f7279; }
.save-settings-hero > span { flex: 0 0 auto; border-radius: 999px; padding: 9px 12px; background: rgba(255,252,253,0.86); border: 1px solid rgba(217,107,147,0.16); color: #9d4968; font-weight: 800; font-size: 13px; }
.save-overview-card { padding: 18px; border-radius: 24px; background: rgba(255,252,253,0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.save-overview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.save-overview-head h2, .settings-group h2, .backup-reminder h2, .settings-danger-zone h2 { margin: 0 0 5px; font-size: 18px; }
.save-overview-head p, .backup-reminder p, .settings-danger-zone p, .usage-note p { margin: 0; color: #7f7279; line-height: 1.65; }
.save-overview-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 18px; background: rgba(245,184,203,0.24); }
.save-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.save-stat-grid.compact { grid-template-columns: repeat(4, minmax(0,1fr)); }
.save-stat { min-width: 0; padding: 12px; border-radius: 18px; border: 1px solid rgba(217,107,147,0.14); background: rgba(245,184,203,0.16); }
.save-stat span { display: block; margin-bottom: 6px; color: #7f7279; font-size: 12px; font-weight: 800; }
.save-stat b { display: block; color: #2a2328; font-size: 16px; overflow-wrap: anywhere; }
.backup-reminder { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: rgba(245,184,203,0.22); }
.backup-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: rgba(255,252,253,0.88); font-size: 25px; }
.settings-group, .settings-danger-zone { padding: 16px; border-radius: 20px; background: rgba(255,252,253,0.88); }
.settings-list { border-radius: 18px; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); background: rgba(255,255,255,0.52); }
.settings-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.settings-row:last-child { border-bottom: 0; }
.settings-row b { display: block; margin-bottom: 4px; }
.settings-row p { margin: 0; color: #7f7279; line-height: 1.55; font-size: 13px; }
.settings-row-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 160px; }
.save-import-label { min-width: 150px; background: rgba(245,184,203,0.18); color: #9d4968; border-color: rgba(217,107,147,0.16); }
.settings-danger-zone { background: rgba(255,245,245,0.9); border-color: rgba(214,90,90,0.2); }
.danger-list { background: rgba(255,255,255,0.6); }
.settings-danger-zone button.danger { color: #b85757; background: rgba(255,214,214,0.62); border-color: rgba(214,90,90,0.18); box-shadow: none; }
.usage-note code { display: inline-block; margin-top: 10px; padding: 7px 10px; border-radius: 999px; background: rgba(216,198,207,0.22); color: #7f7279; overflow-wrap: anywhere; max-width: 100%; }
.save-settings-page button.primary { background: #d96b93; box-shadow: 0 10px 24px rgba(217,107,147,0.22); }
.save-settings-page button.secondary, .save-settings-page .import-label { border-radius: 14px; }
@media (max-width: 900px) { .save-stat-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); } .save-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .backup-reminder { grid-template-columns: auto minmax(0,1fr); } .backup-reminder button { grid-column: 1 / -1; } }
@media (max-width: 640px) { .save-settings-page { padding-bottom: 110px; } .save-settings-hero, .save-overview-head, .settings-row { grid-template-columns: 1fr; flex-direction: column; } .save-settings-hero { flex-direction: column; border-radius: 20px; } .save-settings-hero > span, .save-overview-head button, .settings-row-action, .settings-row-action button, .settings-row-action .import-label { width: 100%; } .settings-row-action { justify-content: stretch; min-width: 0; } .save-stat-grid, .save-stat-grid.compact, .backup-reminder { grid-template-columns: 1fr; } }


/* 0.9f: soft motion and interaction feel polish. */
.page-content { animation: page-soft-enter 180ms var(--ease-soft) both; }
@keyframes page-soft-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes window-pop-in { from { opacity: 0; transform: translate(-50%, 14px) scale(0.965); filter: blur(4px); } to { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); } }
@keyframes window-soft-close { from { opacity: 1; transform: translate(-50%, 0) scale(1); } to { opacity: 0; transform: translate(-50%, 8px) scale(0.975); } }
@keyframes window-pop-in-mobile { from { opacity: 0; transform: translateY(14px) scale(0.965); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.card, .panel, .section-card, .widget-card, .desktop-widget, .timeline-card, .schedule-card, .outing-panel, .outing-action-card, .signing-panel, .signing-action-card, .signing-fan-card, .fan-profile-card, .risk-card, .notification-card, .record-card, .hot-item, .action-queue-card, .character-card, .quick-tag, .log-filter-chip, .notification-filter-chip { transition: transform var(--duration-fast) var(--ease-soft), box-shadow var(--duration-normal) var(--ease-soft), border-color var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft); }
.card:hover, .panel:hover, .section-card:hover, .widget-card:hover, .desktop-widget:hover, .timeline-card:hover, .schedule-card:hover, .outing-panel:hover, .outing-action-card:hover, .signing-panel:hover, .signing-action-card:hover, .signing-fan-card:hover, .fan-profile-card:hover, .risk-card:hover, .notification-card:hover, .record-card:hover, .hot-item:hover, .action-queue-card:hover, .character-card:hover { transform: translateY(-2px); border-color: rgba(217,107,147,0.22); box-shadow: 0 16px 36px rgba(122,84,103,0.10); }
details > :not(summary) { animation: panel-soft-expand 180ms var(--ease-soft) both; }
@keyframes panel-soft-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.modal-backdrop:not(.hidden) { animation: modal-backdrop-in 180ms var(--ease-soft) both; }
.modal-backdrop.is-closing { animation: modal-backdrop-out 160ms var(--ease-standard) both; }
.modal-backdrop:not(.hidden) .notification-center { animation: notification-pop-in 220ms var(--ease-pop) both; transform-origin: top center; }
.modal-backdrop.is-closing .notification-center { animation: notification-pop-out 160ms var(--ease-standard) both; }
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes notification-pop-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes notification-pop-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-6px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } }

/* 0.9e: global pink-gray Apple-like toast system. */
.toast-container {
  position: fixed;
  z-index: 9999;
  right: 24px;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 48px));
}
.toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  color: #2a2328;
  background: rgba(255,252,253,0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(95,68,82,0.10);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(122,84,103,0.18);
  animation: toast-in 200ms var(--ease-pop) both;
  overflow: hidden;
}
.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.82;
}
.toast-success { background: linear-gradient(135deg, rgba(255,252,253,0.94), rgba(52,199,89,0.10)); }
.toast-success::before { background: #59b977; }
.toast-error { background: linear-gradient(135deg, rgba(255,252,253,0.94), rgba(255,59,48,0.10)); }
.toast-error::before { background: #d86a68; }
.toast-warning { background: linear-gradient(135deg, rgba(255,252,253,0.94), rgba(255,159,10,0.12)); }
.toast-warning::before { background: #d99a45; }
.toast-info { background: linear-gradient(135deg, rgba(255,252,253,0.94), rgba(245,184,203,0.22)); }
.toast-info::before { background: #d96b93; }
.toast-loading { background: linear-gradient(135deg, rgba(255,252,253,0.94), rgba(216,198,207,0.24)); }
.toast-loading::before { background: #bcaab4; }
.toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(245,184,203,0.22);
  font-size: 15px;
  line-height: 1;
}
.toast-body { min-width: 0; flex: 1; padding-right: 16px; }
.toast-title { display: block; margin: 0 0 3px; color: #2a2328; font-size: 13px; line-height: 1.25; }
.toast-message { margin: 0; color: #7f7279; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.toast-action {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217,107,147,0.16);
  background: rgba(245,184,203,0.22);
  color: #9d4968;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9d8b95;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover { background: rgba(245,184,203,0.22); transform: none; }
.toast-leaving { animation: toast-out 160ms var(--ease-standard) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-4px) scale(0.985); } }
@media (max-width: 760px) {
  .toast-container {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 88px;
    max-width: none;
  }
  .toast {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 16px;
    font-size: 13px;
  }
  .toast-close { width: 30px; height: 30px; }
}

/* 0.9f focus consistency for page-specific editors. */
.social-action-card textarea:focus,
.trends-editor textarea:focus,
.trends-editor input:focus,
.schedule-action-card input:focus,
.schedule-action-card textarea:focus {
  outline: none;
  border-color: rgba(217,107,147,0.56);
  box-shadow: 0 0 0 4px rgba(245,184,203,0.22);
  background: #fff;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 184, 203, 0.42), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(216, 198, 207, 0.38), transparent 28%),
    linear-gradient(135deg, #f7f1f4, #eeeef3);
  animation: startFadeIn 260ms var(--ease-soft) both;
}
.start-screen.hidden { display: none; }
.start-screen-leaving { animation: startFadeOut 240ms var(--ease-standard) both; }
.start-card {
  width: min(760px, calc(100vw - 48px));
  padding: clamp(28px, 5vw, 46px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255, 252, 253, 0.78);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 34px 92px rgba(122, 84, 103, 0.22);
  text-align: center;
  transform: translateY(0);
}
.start-kicker, .start-version { color: var(--text-muted); font-size: 13px; letter-spacing: .08em; margin: 0; }
.start-card h1 { margin: 10px 0 0; font-size: clamp(42px, 8vw, 72px); line-height: 1; color: #2a2328; }
.start-card h2 { margin: 12px 0 0; font-size: clamp(20px, 4vw, 30px); color: var(--accent); }
.start-tagline { margin: 12px 0 22px; color: var(--text-muted); }
.start-save-summary { margin: 0 auto 22px; padding: 16px; border-radius: 24px; background: rgba(255,255,255,0.58); border: 1px solid var(--border); text-align: left; }
.start-save-summary dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.start-save-summary div { min-width: 0; }
.start-save-summary dt { color: var(--text-soft); font-size: 12px; }
.start-save-summary dd { margin: 3px 0 0; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.start-summary-note, .start-empty { margin: 0 0 12px; color: var(--text-muted); text-align: center; }
.start-empty { margin: 0; }
.start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0; }
.start-actions button, .danger-soft-button {
  border: 0;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-soft), box-shadow var(--duration-normal) var(--ease-soft);
}
.start-actions button:hover, .danger-soft-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(122, 84, 103, 0.16); }
.start-primary { background: var(--accent); color: white; }
.start-secondary { background: rgba(255,255,255,0.76); color: var(--text); border: 1px solid var(--border) !important; }
.start-danger, .danger-soft-button { background: #ffdede; color: #b4232b; }
.start-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 26px; border-radius: 28px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,252,253,.92); box-shadow: var(--shadow-window); }
.start-dialog h3 { margin: 0 0 12px; font-size: 24px; }
.start-dialog p, .start-dialog li { line-height: 1.75; color: var(--text-muted); }
.start-help-dialog { width: min(680px, calc(100vw - 32px)); }
@keyframes startFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes startFadeOut { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 640px) {
  .start-screen { padding: 12px; align-items: start; overflow: auto; }
  .start-card { width: calc(100vw - 24px); margin: 12px 0 84px; padding: 24px 18px; }
  .start-save-summary dl { grid-template-columns: 1fr; }
  .start-actions { display: grid; grid-template-columns: 1fr; }
  .start-actions button { width: 100%; }
}
.social-comment-page { display: grid; gap: 16px; max-width: 100%; overflow-x: hidden; }
.social-comment-hero { padding: 22px; border-radius: 28px; background: rgba(255,252,253,.78); border: 1px solid rgba(216,198,207,.46); box-shadow: var(--shadow-card); }
.social-comment-hero h2 { margin: 4px 0 8px; }
.social-comment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 100%; }
.social-comment-grid .wide { grid-column: 1 / -1; }
.social-comment-style-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-comment-style-row .active, .social-chip.active { background: var(--pink-soft); border-color: rgba(217,107,147,.32); color: var(--accent); }
.social-comment-list { display: grid; gap: 10px; max-height: 460px; overflow: auto; }
.social-comment-card { padding: 12px; border-radius: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--border); overflow-wrap: anywhere; }
.social-comment-card header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.social-comment-card header span, .social-comment-card small { border-radius: 999px; padding: 4px 8px; background: rgba(245,184,203,.18); color: var(--text-muted); font-size: 12px; }
.social-comment-risk { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.66); border: 1px solid var(--border); }
.social-comment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.social-comment-record pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
@media (max-width: 760px) { .social-comment-grid { grid-template-columns: 1fr; } .social-comment-actions button { width: 100%; } .social-comment-list { max-height: none; } }

/* 1.2b mobile iPhone app mode */
.mobile-phone-shell,.mobile-bridge-sheet,.mobile-bridge-backdrop{display:none}
@media (max-width:760px){
  *{box-sizing:border-box} html,body{width:100%;max-width:100%;overflow-x:hidden} img,svg,canvas,video,textarea,input,select,button{max-width:100%}
  .card,.panel,.widget,.log-card,.notification-card,.comment-card,.risk-card,.character-card,.schedule-card,.record-card,.info-card{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}
  .card-grid,.stats-grid,.character-grid,.risk-grid,.comment-grid,.schedule-grid,.change-grid,.desktop-layout,.desktop-surface,.desktop-window,.desktop-dock,.desktop-widget-grid,.desktop-app-grid,.right-panel,.chatgpt-panel,.assistant-panel,.desktop-status-bar,.desktop-statusbar,.drawer,.topbar,.mobile-tabbar{display:none!important}
  pre,code{white-space:pre-wrap;word-break:break-word}
  body{background:#f7f1f4;color:#2a2328}.app-shell-wrapper,.app-shell,.main-panel{display:block;min-height:0;background:transparent;padding:0;margin:0;box-shadow:none;border:0}.mobile-phone-shell{display:block!important;min-height:100dvh;width:100%;overflow-x:hidden;color:#2a2328;background:radial-gradient(circle at 20% 10%,rgba(245,184,203,.45),transparent 32%),radial-gradient(circle at 80% 20%,rgba(216,198,207,.42),transparent 30%),linear-gradient(145deg,#f7f1f4,#f4e8ee 48%,#eeeef3)}
  .mobile-status-bar{height:34px;padding:env(safe-area-inset-top) 18px 0;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;position:sticky;top:0;z-index:80;color:#2a2328}.mobile-home-screen{padding:10px 16px calc(110px + env(safe-area-inset-bottom));animation:mobileIn .22s ease both}.mobile-home-title{margin:8px 0 12px}.mobile-home-title h2{margin:0;font-size:28px}.mobile-home-title p{margin:4px 0 0;color:#7d6572;font-size:13px}.mobile-home-widgets{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.mobile-widget{border:1px solid rgba(255,255,255,.68);background:rgba(255,252,253,.68);backdrop-filter:blur(22px);border-radius:24px;padding:14px;box-shadow:0 14px 34px rgba(95,68,82,.12)}.mobile-widget:first-child{grid-column:1/-1}.mobile-widget h3{margin:0 0 8px;font-size:14px}.mobile-widget p{margin:4px 0;color:#6b5662;font-size:12px}.mobile-widget b{font-size:18px}.mobile-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mobile-mini-stats span{background:rgba(255,255,255,.55);border-radius:16px;padding:8px;font-size:11px}.mobile-mini-stats strong{display:block;font-size:15px;color:#3a2b33}.mobile-app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px 10px}.mobile-app-icon-button,.mobile-dock-button{border:0;background:transparent;color:inherit;text-align:center}.mobile-app-icon-button:active,.mobile-dock-button:active{transform:scale(.96)}.mobile-app-icon{width:58px;height:58px;margin:0 auto 6px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#fffafd,#f0cdda);box-shadow:0 12px 22px rgba(130,80,105,.18);font-weight:800;font-size:23px}.mobile-app-name{font-size:11px;font-weight:700}.mobile-phone-dock{position:fixed;left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));height:76px;border-radius:28px;background:rgba(255,252,253,.72);backdrop-filter:blur(24px);display:grid!important;grid-template-columns:repeat(4,1fr);box-shadow:0 18px 40px rgba(95,68,82,.2);z-index:60;align-items:center}.mobile-dock-button span:first-child{display:block;font-size:22px}.mobile-dock-button span:last-child{display:block;font-size:11px;font-weight:800;margin-top:3px}.mobile-app-screen{min-height:calc(100dvh - 34px);animation:mobileIn .22s ease both}.mobile-app-header{height:52px;position:sticky;top:34px;background:rgba(255,252,253,.88);backdrop-filter:blur(20px);border-bottom:1px solid rgba(95,68,82,.08);z-index:80;display:grid;grid-template-columns:84px 1fr 84px;align-items:center;padding:0 10px}.mobile-back-button{border:0;background:transparent;font-weight:800;color:#8f5269;text-align:left}.mobile-app-header-title{text-align:center;font-weight:900}.mobile-risk-pill{justify-self:end;font-size:11px;border-radius:999px;background:#fff2f7;padding:6px 8px;color:#7b4055}.mobile-app-body{padding:12px;padding-bottom:calc(120px + env(safe-area-inset-bottom));overflow-x:hidden}.mobile-app-card,.page-hero,.story-box,.tool-section,.profile-action-card{border-radius:22px!important;background:rgba(255,252,253,.82)!important;border:1px solid rgba(95,68,82,.08)!important;box-shadow:0 12px 28px rgba(95,68,82,.1)!important;padding:14px!important}.page-content{display:block}.chat-layout,.mobile-social-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px}.character-list{display:block}.chat-contact{width:100%}.kakao-chat-panel{background:#f7efd5!important;border-radius:22px!important}.chat-record-list{background:#f7efd5;padding:12px;border-radius:20px}.chat-bubble.outgoing,.message-player{margin-left:auto;background:#ffe69a!important}.chat-bubble.incoming,.message-npc{margin-right:auto;background:#fff!important}.chat-bubble.system,.message-system{margin-inline:auto;background:rgba(80,80,80,.12)!important;text-align:center}.chat-composer{position:sticky;bottom:88px;background:rgba(255,252,253,.9);backdrop-filter:blur(18px);border-radius:22px;padding:10px} textarea,input,select{font-size:16px!important}.mobile-bridge-backdrop{position:fixed;inset:0;background:rgba(43,32,39,.36);z-index:110}.mobile-bridge-backdrop:not(.hidden){display:block!important}.mobile-bridge-sheet{position:fixed;left:0;right:0;bottom:0;max-height:84dvh;overflow:auto;background:#fffafd;border-radius:28px 28px 0 0;z-index:120;box-shadow:0 -22px 50px rgba(63,42,52,.28);padding:8px 14px calc(18px + env(safe-area-inset-bottom))}.mobile-bridge-sheet:not(.hidden){display:block!important}.mobile-sheet-grabber{width:46px;height:5px;border-radius:99px;background:#d7bfca;margin:4px auto 10px}.mobile-sheet-header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fffafd;padding:4px 0 10px;z-index:3}.mobile-bridge-content .tool-card{display:block!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}.mobile-bridge-content textarea{font-size:16px!important}.button-row,.chat-composer-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px}.social-chip-row,.quick-row{display:flex;flex-wrap:wrap;overflow:visible}.comment-builder,.comment-layout{display:grid!important;grid-template-columns:1fr!important}.settings-row{display:grid!important;grid-template-columns:1fr!important;gap:8px}.hidden{display:none!important}@keyframes mobileIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
}
@media (min-width:761px){.mobile-phone-shell,.mobile-home-screen,.mobile-app-screen,.mobile-phone-dock,.mobile-bridge-fab,.mobile-bridge-sheet,.mobile-bridge-backdrop{display:none!important}}
