:root {
  --black: #020204;
  --black-2: #050507;
  --panel: #09090d;
  --panel-2: #08080d;
  --white: #f8faff;
  --violet: #a778ff;
  --violet-soft: rgba(167, 120, 255, .14);
  --pink: #ff3152;
  --green: #38e89b;
  --amber: #f3bb63;
  --muted: rgba(248, 250, 255, .51);
  --muted-2: rgba(248, 250, 255, .31);
  --line: rgba(248, 250, 255, .105);
  --line-soft: rgba(248, 250, 255, .065);
  --heading: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --sidebar: 252px;
}

* { box-sizing: border-box; }

html { background: var(--black); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(248, 250, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 255, .018) 1px, transparent 1px),
    var(--black);
  background-size: 74px 74px;
  color: var(--white);
  font: 400 14px/1.5 var(--body);
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 1px solid var(--violet); outline-offset: 3px; }

.ambient {
  position: fixed;
  z-index: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: .08;
}
.ambient-one { top: -340px; right: 4vw; background: var(--violet); }
.ambient-two { bottom: -480px; left: 34vw; background: #4b2cc7; }

.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.app-shell[hidden], [data-view][hidden], [data-view-panel][hidden] { display: none !important; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 28px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(2, 2, 4, .94);
  backdrop-filter: blur(22px);
}

.brand-row { position: relative; padding: 0 10px 29px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font: 500 22px/1 var(--heading);
  letter-spacing: -.025em;
}
.brand-mark svg { display: block; margin: 0 1px; }
.brand-edition {
  display: block;
  margin-top: 9px;
  color: var(--muted-2);
  font: 500 8px/1 var(--heading);
  letter-spacing: .25em;
}
.mobile-close { display: none; }

.workspace-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 28px;
  padding: 11px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 255, .018);
}
.workspace-avatar, .sender-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(248, 250, 255, .06);
  color: rgba(248, 250, 255, .72);
  font: 500 10px/1 var(--heading);
}
.workspace-avatar { overflow: hidden; border-radius: 50%; }
.workspace-avatar img, .user-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workspace-card small { display: block; color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .16em; }
.workspace-card strong { display: block; overflow: hidden; margin-top: 5px; font: 500 11px/1.1 var(--heading); text-overflow: ellipsis; white-space: nowrap; }
.workspace-card button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label {
  margin: 0 10px 9px;
  color: rgba(248, 250, 255, .25);
  font: 500 8px/1 var(--heading);
  letter-spacing: .2em;
}
.nav-label-second { margin-top: 24px; }
.nav-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(248, 250, 255, .48);
  font: 500 13px/1 var(--heading);
  text-align: left;
  cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}
.nav-item:before {
  position: absolute;
  top: 50%;
  left: -19px;
  width: 2px;
  height: 0;
  background: var(--violet);
  box-shadow: 0 0 18px rgba(167, 120, 255, .75);
  content: "";
  transform: translateY(-50%);
  transition: height .24s ease;
}
.nav-item svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.45; }
.nav-item:first-of-type svg { fill: currentColor; stroke: none; }
.nav-item:hover { color: rgba(248, 250, 255, .82); background: rgba(248, 250, 255, .022); }
.nav-item.active { border-color: rgba(167, 120, 255, .2); background: linear-gradient(90deg, rgba(167, 120, 255, .12), rgba(167, 120, 255, .025)); color: var(--white); }
.nav-item.active:before { height: 26px; }
.nav-item.active svg { color: var(--violet); }
.nav-count {
  display: grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 49, 82, .13);
  color: #ff8397;
  font: 600 9px/1 var(--heading);
}
.nav-count.neutral { background: rgba(248, 250, 255, .06); color: var(--muted); }

.system-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(167, 120, 255, .055), rgba(248, 250, 255, .008));
}
.system-card-head { display: flex; align-items: center; gap: 8px; }
.system-card-head small { color: var(--muted); font: 500 8px/1 var(--heading); letter-spacing: .17em; }
.live-dot, .connected i, .quiet-status i, .mail-status i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px rgba(56, 232, 155, .8);
}
.system-card > strong { display: block; margin-top: 17px; font: 500 13px/1.2 var(--heading); }
.system-line { height: 1px; margin: 13px 0 11px; background: rgba(248, 250, 255, .07); }
.system-line span { display: block; width: 100%; height: 1px; background: linear-gradient(90deg, var(--violet), var(--green)); box-shadow: 0 0 12px rgba(167, 120, 255, .45); }
.system-card p { margin: 0; color: var(--muted-2); font-size: 10px; }
.sidebar-foot { display: flex; justify-content: space-between; padding: 17px 4px 0; color: rgba(248, 250, 255, .21); font: 500 7px/1 var(--heading); letter-spacing: .16em; }

.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 2, 4, .78);
  backdrop-filter: blur(24px);
}
.mobile-menu { display: none; }
.top-context span { display: block; color: var(--violet); font: 500 8px/1 var(--heading); letter-spacing: .18em; }
.top-context strong { display: block; margin-top: 7px; font: 500 15px/1 var(--heading); }
.top-actions { display: flex; justify-content: flex-end; gap: 9px; align-items: center; }
.icon-button, .user-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(248, 250, 255, .015);
  cursor: pointer;
}
.icon-button svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.icon-button i { position: absolute; top: 8px; right: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--pink); }
.user-button { overflow: hidden; border-color: rgba(248, 250, 255, .18); border-radius: 50%; font: 500 11px/1 var(--heading); }

.content { width: min(100%, 1660px); margin: 0 auto; padding: 52px 38px 72px; }
.view { display: none; animation: view-in .42s cubic-bezier(.16, 1, .3, 1); }
.view.active { display: block; }

.page-intro { display: flex; justify-content: space-between; gap: 50px; align-items: flex-end; margin-bottom: 39px; }
.page-intro h1 { margin: 13px 0 0; font: 500 clamp(46px, 5vw, 76px)/.91 var(--heading); letter-spacing: -.065em; }
.page-intro h1 em { color: rgba(248, 250, 255, .36); font-style: normal; }
.eyebrow { margin: 0; color: rgba(167, 120, 255, .88); font: 500 9px/1 var(--heading); letter-spacing: .22em; }
.eyebrow > span { display: inline-block; width: 19px; height: 1px; margin: 0 9px 3px 0; background: var(--violet); }
.intro-copy { max-width: 440px; margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.compact-intro { align-items: center; }
.compact-intro h1 { font-size: clamp(44px, 4.3vw, 67px); }

.panel { border: 1px solid var(--line); background: rgba(8, 8, 13, .86); }
.command-grid { display: grid; grid-template-columns: minmax(0, 1.44fr) minmax(360px, .72fr); }
.briefing-panel { position: relative; min-height: 465px; padding: 24px 28px 0; overflow: hidden; }
.briefing-panel:after {
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(167, 120, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(167, 120, 255, .06), inset 0 0 90px rgba(167, 120, 255, .025);
  content: "";
}
.panel-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .18em; }
.quiet-status, .connected { display: flex; align-items: center; gap: 8px; }
.quiet-status i { width: 4px; height: 4px; }
.briefing-copy { position: relative; z-index: 1; max-width: 720px; margin-top: 64px; padding-left: 53px; }
.briefing-index { position: absolute; top: 9px; left: 0; color: var(--violet); font: 500 9px/1 var(--heading); }
.briefing-copy h2 { max-width: 620px; margin: 0; font: 500 clamp(36px, 4.4vw, 64px)/.94 var(--heading); letter-spacing: -.057em; }
.briefing-copy p { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.briefing-metrics { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.briefing-metrics > * { min-height: 108px; padding: 19px 21px; border: 0; border-right: 1px solid var(--line); background: rgba(2, 2, 4, .32); text-align: left; }
.briefing-metrics > *:last-child { border-right: 0; }
.briefing-metrics button { cursor: pointer; transition: background .2s ease; }
.briefing-metrics button:hover { background: rgba(167, 120, 255, .07); }
.briefing-metrics small { display: block; color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .16em; }
.briefing-metrics strong { display: inline-block; margin-top: 11px; font: 500 29px/1 var(--heading); }
.briefing-metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }

.engine-panel { position: relative; min-height: 465px; padding: 24px; border-left: 0; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(167, 120, 255, .085), transparent 38%), rgba(5, 5, 8, .92); }
.engine-orbit { position: absolute; top: 54%; left: 50%; width: 335px; height: 335px; transform: translate(-50%, -50%); }
.orbit { position: absolute; border: 1px solid rgba(248, 250, 255, .095); border-radius: 50%; }
.orbit-a { inset: 22px; border-style: dashed; animation: orbit 38s linear infinite; }
.orbit-b { inset: 67px; border-color: rgba(167, 120, 255, .16); animation: orbit-reverse 31s linear infinite; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines line { stroke: rgba(248, 250, 255, .09); stroke-width: .8; stroke-dasharray: 2 5; }
.engine-core { position: absolute; top: 50%; left: 50%; display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid rgba(248, 250, 255, .36); border-radius: 50%; background: rgba(2, 2, 4, .82); box-shadow: 0 0 40px rgba(167, 120, 255, .2), inset 0 0 28px rgba(167, 120, 255, .1); transform: translate(-50%, -50%); }
.engine-core:before { position: absolute; inset: -13px; border: 1px solid rgba(167, 120, 255, .16); border-radius: 50%; content: ""; }
.core-sweep { position: absolute; top: 50%; left: -15px; width: 118px; height: 1px; background: linear-gradient(90deg, transparent, var(--white) 44%, var(--pink) 50%, transparent 72%); box-shadow: 0 0 8px rgba(255, 49, 82, .42); transform: rotate(-37deg); }
.core-logo { display: flex; align-items: center; font: 500 15px/1 var(--heading); }
.core-logo svg { width: 10px; height: 13px; margin: 0 1px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.node { position: absolute; z-index: 2; width: 8px; height: 8px; border: 1px solid rgba(248, 250, 255, .75); border-radius: 50%; background: var(--panel-2); box-shadow: 0 0 0 5px rgba(248, 250, 255, .012); }
.node:after { position: absolute; inset: 2px; border-radius: 50%; background: var(--violet); opacity: 0; content: ""; animation: node-live 9.4s ease-in-out infinite; }
.n1{left:164px;top:0}.n2{left:244px;top:22px}.n3{left:314px;top:78px}.n4{right:0;top:171px}.n5{right:24px;top:260px}.n6{right:89px;bottom:9px}.n7{left:154px;bottom:-4px}.n8{left:67px;bottom:26px}.n9{left:11px;top:251px}.n10{left:-2px;top:158px}.n11{left:24px;top:68px}.n12{left:92px;top:14px}.n13{right:43px;top:132px}
.n2:after{animation-delay:.7s}.n3:after{animation-delay:1.4s}.n4:after{animation-delay:2.1s}.n5:after{animation-delay:2.8s}.n6:after{animation-delay:3.5s}.n7:after{animation-delay:4.2s}.n8:after{animation-delay:4.9s}.n9:after{animation-delay:5.6s}.n10:after{animation-delay:6.3s}.n11:after{animation-delay:7s}.n12:after{animation-delay:7.7s}.n13:after{animation-delay:8.4s}
.engine-caption { position: absolute; right: 24px; bottom: 21px; left: 24px; display: flex; justify-content: space-between; }
.engine-caption strong { font: 500 10px/1 var(--heading); letter-spacing: .08em; }
.engine-caption span { color: var(--muted-2); font-size: 9px; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(330px, .66fr); gap: 14px; margin-top: 14px; }
.priority-panel, .assistant-panel { min-height: 365px; padding: 25px 27px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.section-head h2 { margin: 10px 0 0; font: 500 23px/1.1 var(--heading); letter-spacing: -.035em; }
.text-link { border: 0; background: transparent; color: var(--muted); font: 500 10px/1 var(--heading); cursor: pointer; }
.text-link span { margin-left: 8px; color: var(--violet); }
.mail-list { margin-top: 21px; }
.mail-row {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto 44px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 11px 7px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, padding .2s ease;
}
.mail-row:hover, .mail-row.selected { padding-right: 12px; padding-left: 12px; background: rgba(167, 120, 255, .035); }
.sender-avatar { width: 38px; height: 38px; color: rgba(248, 250, 255, .65); }
.sender-avatar.violet { border: 1px solid rgba(167, 120, 255, .3); background: rgba(167, 120, 255, .1); color: #cdb6ff; }
.sender-avatar.green { border: 1px solid rgba(56, 232, 155, .22); background: rgba(56, 232, 155, .07); color: #84f2c3; }
.sender-avatar.large { width: 45px; height: 45px; }
.mail-copy { display: block; min-width: 0; }
.mail-copy strong, .mail-copy b, .mail-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-copy strong { color: rgba(248, 250, 255, .72); font: 500 10px/1.2 var(--heading); }
.mail-copy b { margin-top: 5px; font: 500 13px/1.2 var(--heading); }
.mail-copy small { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.mail-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 500 7px/1 var(--heading); letter-spacing: .11em; }
.mail-status.review { color: #c8adff; }
.mail-status.review i { background: var(--violet); box-shadow: 0 0 12px rgba(167, 120, 255, .7); }
.mail-status.safe { color: #75dfaf; }
.mail-status.priority { color: rgba(248, 250, 255, .7); }
.mail-status.muted { color: var(--muted-2); }
.mail-row time { color: var(--muted-2); font: 500 9px/1 var(--heading); text-align: right; }
.mail-row.dimmed { opacity: .62; }

.assistant-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(12, 10, 20, .96), rgba(5, 5, 8, .95)); }
.assistant-glow { position: absolute; top: -150px; right: -160px; width: 360px; height: 360px; border-radius: 50%; background: rgba(167, 120, 255, .13); filter: blur(65px); }
.assistant-head { position: relative; display: flex; gap: 13px; align-items: center; }
.assistant-symbol { position: relative; width: 37px; height: 37px; border: 1px solid rgba(167, 120, 255, .35); border-radius: 50%; }
.assistant-symbol:before, .assistant-symbol:after { position: absolute; top: 50%; left: 5px; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--white), var(--pink)); content: ""; transform: rotate(-40deg); }
.assistant-symbol:after { inset: 9px; width: 17px; height: 17px; border: 1px solid rgba(248, 250, 255, .6); border-radius: 50%; background: transparent; transform: none; }
.assistant-head h2 { margin: 6px 0 0; font: 500 18px/1 var(--heading); }
.assistant-question { position: relative; max-width: 420px; margin: 35px 0 25px; font: 500 25px/1.2 var(--heading); letter-spacing: -.038em; }
.evidence-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.evidence-pills span { padding: 7px 9px; border: 1px solid rgba(56, 232, 155, .15); color: rgba(118, 230, 178, .76); font: 500 8px/1 var(--heading); letter-spacing: .07em; }
.evidence-pills span.warn { border-color: rgba(167, 120, 255, .22); color: rgba(200, 173, 255, .79); }
.review-cta { position: absolute; right: 27px; bottom: 25px; left: 27px; display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 15px; border: 1px solid rgba(248, 250, 255, .36); background: transparent; color: var(--white); font: 500 10px/1 var(--heading); letter-spacing: .08em; cursor: pointer; transition: background .25s ease, color .25s ease; }
.review-cta:hover { background: var(--white); color: var(--black); }

.review-workspace { display: grid; grid-template-columns: 230px minmax(390px, 1.08fr) minmax(360px, .82fr); gap: 12px; }
.review-queue { min-height: 655px; padding: 19px 15px; }
.queue-item { display: grid; width: 100%; min-height: 88px; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 12px 10px; border: 1px solid transparent; border-bottom-color: var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.queue-item.active { border-color: rgba(167, 120, 255, .22); background: rgba(167, 120, 255, .055); }
.risk-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px rgba(167, 120, 255, .7); }
.risk-mark.amber { background: var(--amber); box-shadow: 0 0 10px rgba(243, 187, 99, .6); }
.queue-item strong, .queue-item small { display: block; }
.queue-item strong { font: 500 11px/1.35 var(--heading); }
.queue-item small { margin-top: 7px; color: var(--muted-2); font-size: 9px; }
.queue-item > b { color: var(--muted); font: 500 11px/1 var(--heading); }

.message-preview { min-height: 655px; overflow: hidden; }
.message-toolbar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid var(--line); color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .15em; }
.message-toolbar div { display: flex; height: 100%; }
.message-toolbar button { padding: 0 10px; border: 0; border-left: 1px solid var(--line-soft); background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.message-head { display: grid; grid-template-columns: 45px 1fr auto; gap: 13px; align-items: center; padding: 22px; border-bottom: 1px solid var(--line-soft); }
.message-head h2 { margin: 0; font: 500 18px/1.2 var(--heading); letter-spacing: -.02em; }
.message-head p, .message-head small { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.message-head small { display: block; color: var(--muted-2); }
.more-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.thread-context { margin: 18px 22px 0; padding: 12px 14px; border-left: 1px solid var(--violet); background: rgba(167, 120, 255, .035); }
.thread-context span { color: rgba(199, 171, 255, .75); font: 500 8px/1 var(--heading); letter-spacing: .15em; }
.thread-context p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.message-body { padding: 22px; color: rgba(248, 250, 255, .69); font-size: 13px; line-height: 1.72; }
.message-body p { margin: 0 0 17px; }
.attachment-chip { display: grid; width: min(100%, 390px); grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; margin-top: 27px; padding: 12px; border: 1px solid var(--line); background: rgba(248, 250, 255, .018); text-align: left; cursor: pointer; }
.attachment-chip > span { display: grid; width: 36px; height: 38px; place-items: center; background: rgba(255, 49, 82, .08); color: #ff8295; font: 500 8px/1 var(--heading); }
.attachment-chip strong, .attachment-chip small { display: block; }
.attachment-chip strong { font: 500 10px/1.2 var(--heading); }
.attachment-chip small { margin-top: 5px; color: var(--muted-2); font-size: 9px; }
.attachment-chip b { color: var(--violet); }

.decision-panel { min-height: 655px; padding: 24px; background: radial-gradient(circle at 90% 5%, rgba(167, 120, 255, .08), transparent 30%), rgba(8, 8, 13, .91); }
.decision-status { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.status-orb { position: relative; display: block; width: 42px; height: 42px; border: 1px solid rgba(167, 120, 255, .28); border-radius: 50%; }
.status-orb:before, .status-orb:after { position: absolute; inset: 7px; border: 1px dashed rgba(167, 120, 255, .35); border-radius: 50%; content: ""; animation: orbit 18s linear infinite; }
.status-orb:after { inset: 16px; border: 0; background: var(--violet); box-shadow: 0 0 16px rgba(167, 120, 255, .78); }
.decision-status p { margin: 0; color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .15em; }
.decision-status strong { display: block; margin-top: 6px; font: 500 14px/1 var(--heading); }
.decision-status > b { color: #c9afff; font: 500 21px/1 var(--heading); }
.decision-summary { margin: 22px 0; color: rgba(248, 250, 255, .72); font-size: 14px; line-height: 1.62; }
.reason-list { border-top: 1px solid var(--line-soft); }
.reason { display: grid; grid-template-columns: 23px 1fr; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.reason > span { color: var(--muted-2); font: 500 8px/1 var(--heading); }
.reason strong { font: 500 11px/1.2 var(--heading); }
.reason p { margin: 6px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.reason.positive strong { color: #7ce3b3; }
.reason.negative strong { color: #c7abff; }
.human-question { margin-top: 23px; padding: 18px; border: 1px solid rgba(167, 120, 255, .23); background: rgba(167, 120, 255, .045); }
.human-question > span { color: var(--violet); font: 500 8px/1 var(--heading); letter-spacing: .14em; }
.human-question h3 { margin: 11px 0 18px; font: 500 18px/1.3 var(--heading); letter-spacing: -.025em; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.decision-button { min-height: 42px; padding: 8px; border: 1px solid var(--line); background: transparent; font: 500 9px/1.2 var(--heading); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.decision-button.expected:hover { border-color: rgba(56, 232, 155, .45); background: rgba(56, 232, 155, .055); }
.decision-button.danger:hover { border-color: rgba(255, 49, 82, .5); background: rgba(255, 49, 82, .06); }
.decision-button.unsure { grid-column: 1 / -1; color: var(--muted); }
.safe-action-note { display: flex; gap: 8px; margin: 15px 1px 0; color: var(--muted-2); font-size: 9px; }
.safe-action-note span { color: var(--green); }

.inbox-layout { display: grid; grid-template-columns: minmax(500px, 1.3fr) minmax(300px, .55fr); gap: 13px; }
.inbox-card { min-height: 590px; padding: 0 23px 20px; }
.inbox-tabs { display: flex; gap: 24px; min-height: 59px; align-items: stretch; border-bottom: 1px solid var(--line); }
.inbox-tabs button { position: relative; border: 0; background: transparent; color: var(--muted); font: 500 10px/1 var(--heading); cursor: pointer; }
.inbox-tabs button.active { color: var(--white); }
.inbox-tabs button.active:after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--violet); content: ""; }
.inbox-tabs b { margin-left: 5px; color: var(--muted-2); }
.inbox-summary { min-height: 590px; padding: 27px; }
.inbox-summary h2 { max-width: 330px; margin: 20px 0 48px; font: 500 31px/1.08 var(--heading); letter-spacing: -.045em; }
.summary-bars { display: grid; gap: 20px; }
.summary-bars > div { display: grid; grid-template-columns: 110px 1fr 28px; gap: 12px; align-items: center; }
.summary-bars span { color: var(--muted); font-size: 10px; }
.summary-bars i { height: 2px; background: rgba(248, 250, 255, .07); }
.summary-bars i b { display: block; height: 100%; background: var(--violet); box-shadow: 0 0 9px rgba(167, 120, 255, .45); }
.summary-bars strong { color: var(--muted); font: 500 10px/1 var(--heading); text-align: right; }
.inbox-summary > p:last-child { margin-top: 60px; color: var(--muted-2); font-size: 10px; }

.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report-card { position: relative; min-height: 310px; padding: 25px; overflow: hidden; }
.report-card > p { margin: 0; color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .17em; }
.report-card > strong { display: block; margin-top: 54px; font: 500 48px/1 var(--heading); letter-spacing: -.05em; }
.report-card > span { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.sparkline { position: absolute; right: 24px; bottom: 25px; left: 24px; display: flex; height: 70px; gap: 7px; align-items: end; }
.sparkline i { flex: 1; min-height: 3px; background: linear-gradient(var(--violet), rgba(167, 120, 255, .12)); }
.ring-stat { position: absolute; right: 25px; bottom: 24px; display: grid; width: 102px; height: 102px; place-items: center; align-content: center; border: 1px solid rgba(167, 120, 255, .28); border-radius: 50%; box-shadow: inset 0 0 30px rgba(167, 120, 255, .04); }
.ring-stat b, .ring-stat small { display: block; }
.ring-stat b { font: 500 17px/1 var(--heading); }
.ring-stat small { margin-top: 6px; color: var(--muted-2); font-size: 7px; }
.speed-track { position: absolute; right: 25px; bottom: 46px; left: 25px; height: 2px; background: rgba(248, 250, 255, .07); }
.speed-track i { display: block; width: 74%; height: 100%; background: linear-gradient(90deg, var(--green), var(--violet)); box-shadow: 0 0 11px rgba(56, 232, 155, .45); }
.report-wide { display: flex; min-height: 235px; grid-column: 1 / -1; align-items: flex-end; justify-content: space-between; gap: 50px; padding: 35px; background: radial-gradient(circle at 84% 30%, rgba(167, 120, 255, .1), transparent 27%), var(--panel); }
.report-wide h2 { max-width: 670px; margin: 18px 0 13px; font: 500 36px/1.05 var(--heading); letter-spacing: -.045em; }
.report-wide > div > span { color: var(--muted); }
.report-wide button, .settings-concept button { flex: none; min-width: 160px; min-height: 46px; padding: 0 15px; border: 1px solid rgba(248, 250, 255, .35); background: transparent; font: 500 9px/1 var(--heading); letter-spacing: .08em; cursor: pointer; }
.report-wide button b, .settings-concept button b { margin-left: 15px; color: var(--violet); }

.learning-concept { min-height: 530px; padding: 30px; }
.learning-state { display: grid; grid-template-columns: 8px 1fr auto; gap: 13px; align-items: center; }
.learning-state small, .learning-state strong { display: block; }
.learning-state small { color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .17em; }
.learning-state strong { margin-top: 7px; font: 500 18px/1 var(--heading); }
.learning-state > b { color: #7fe5b7; font: 500 9px/1 var(--heading); letter-spacing: .14em; }
.learning-progress { height: 2px; margin-top: 34px; background: rgba(248, 250, 255, .07); }
.learning-progress i { display: block; width: 31.6%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--green)); }
.learning-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1px; border-bottom: 1px solid var(--line); }
.learning-stats > div { min-height: 128px; padding: 30px 20px; border-right: 1px solid var(--line); }
.learning-stats > div:last-child { border-right: 0; }
.learning-stats small, .learning-stats strong { display: block; }
.learning-stats small { color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .16em; }
.learning-stats strong { margin-top: 16px; font: 500 24px/1 var(--heading); }
.learning-next { max-width: 780px; margin: 55px auto 10px; text-align: center; }
.learning-next > span { color: var(--violet); font: 500 8px/1 var(--heading); letter-spacing: .2em; }
.learning-next h2 { margin: 18px 0 13px; font: 500 34px/1.1 var(--heading); letter-spacing: -.045em; }
.learning-next p { color: var(--muted-2); }

.settings-concept { display: flex; min-height: 230px; align-items: center; justify-content: space-between; gap: 40px; padding: 34px; }
.settings-concept span { color: var(--violet); font: 500 8px/1 var(--heading); letter-spacing: .2em; }
.settings-concept h2 { margin: 16px 0 10px; font: 500 32px/1 var(--heading); }
.settings-concept p { margin: 0; color: var(--muted); }

/* Centre de contrôle FishAI */
.operations-heading {
  display: flex;
  min-height: 58px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}
.operations-heading h1 { margin: 9px 0 0; font: 500 29px/1 var(--heading); letter-spacing: -.04em; }
.operations-status { display: flex; gap: 22px; align-items: center; color: var(--muted-2); font: 500 9px/1 var(--heading); }
.operations-status b { color: var(--muted); font-weight: 500; }

.ops-stat-strip { display: grid; grid-template-columns: 1.03fr 1.15fr .82fr .9fr 1fr; margin-bottom: 12px; }
.ops-stat-strip > * { display: grid; min-width: 0; min-height: 81px; grid-template-columns: 1fr auto; gap: 7px 12px; align-content: center; padding: 13px 18px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; }
.ops-stat-strip > *:last-child { border-right: 0; }
.ops-stat-strip button { cursor: pointer; transition: background .2s ease; }
.ops-stat-strip button:hover { background: var(--violet-soft); }
.ops-stat-strip small { grid-column: 1 / -1; overflow: hidden; color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .12em; text-overflow: ellipsis; white-space: nowrap; }
.ops-stat-strip strong { overflow: hidden; font: 500 21px/1 var(--heading); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.ops-stat-strip span { align-self: center; overflow: hidden; color: var(--muted-2); font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ops-stat-strip .trend.positive { color: rgba(56, 232, 155, .72); }
.ops-stat-strip .trend.attention { color: rgba(199, 173, 255, .82); }

.control-room-grid { display: grid; grid-template-columns: minmax(660px, 1fr) 356px; gap: 12px; }
.topology-panel { position: relative; min-height: 735px; overflow: hidden; border-top: 1px solid rgba(248, 250, 255, .07); border-bottom: 1px solid rgba(248, 250, 255, .07); background: radial-gradient(circle at 50% 54%, rgba(167, 120, 255, .075), transparent 34%), #030305; }
.topology-header { position: relative; z-index: 5; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 8px; }
.topology-header h2 { margin: 9px 0 0; font: 500 18px/1 var(--heading); letter-spacing: -.025em; }
.topology-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: var(--muted-2); font: 500 8px/1 var(--heading); }
.topology-legend span { display: flex; align-items: center; gap: 6px; }
.topology-legend i, .event-node { width: 5px; height: 5px; border-radius: 50%; }
.topology-legend .ready, .event-node.ready { background: var(--green); box-shadow: 0 0 8px rgba(56, 232, 155, .55); }
.topology-legend .working, .event-node.working { background: var(--violet); box-shadow: 0 0 10px rgba(167, 120, 255, .75); }
.topology-legend .degraded, .event-node.degraded { background: var(--amber); box-shadow: 0 0 9px rgba(243, 187, 99, .55); }
.topology-legend .offline { border: 1px solid rgba(248, 250, 255, .25); background: transparent; }

.system-topology { position: relative; height: 656px; overflow: hidden; }
.engine-constellation { position: absolute; top: 49%; left: 50%; width: min(91%, 650px); height: min(91%, 650px); overflow: visible; filter: drop-shadow(0 24px 65px rgba(0, 0, 0, .42)); transform: translate(-50%, -50%); }
.constellation-field { fill: url(#constellation-field); }
.constellation-ring { fill: none; stroke: rgba(248, 250, 255, .09); stroke-width: .8; transform-box: fill-box; transform-origin: center; }
.constellation-ring-outer { stroke-dasharray: 2 12; animation: constellation-ring-turn 42s linear infinite; }
.constellation-ring-inner { stroke: rgba(167, 120, 255, .17); stroke-dasharray: 1 9; animation: constellation-ring-turn-reverse 34s linear infinite; }
.constellation-stars { fill: rgba(248, 250, 255, .2); }
.constellation-engine { cursor: pointer; outline: none; }
.constellation-link, .constellation-signal { pointer-events: none; vector-effect: non-scaling-stroke; }
.constellation-link { stroke: rgba(248, 250, 255, .13); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: constellation-link-draw .72s cubic-bezier(.16, 1, .3, 1) var(--delay) forwards, constellation-link-live 10.4s ease-in-out var(--cycle) infinite; }
.constellation-signal { stroke: var(--accent); stroke-width: 1.55; stroke-linecap: round; stroke-dasharray: .075 .925; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px var(--accent)); animation: constellation-signal-travel 10.4s ease-in-out var(--cycle) infinite; }
.constellation-node-glow { fill: var(--accent); opacity: 0; pointer-events: none; filter: url(#constellation-glow); animation: constellation-node-glow 10.4s ease-in-out var(--cycle) infinite; }
.constellation-node { fill: #08080d; stroke: rgba(248, 250, 255, .62); stroke-width: 1.35; transform-box: fill-box; transform-origin: center; transition: fill .28s ease, stroke .28s ease, transform .28s ease; animation: constellation-node-live 10.4s ease-in-out var(--cycle) infinite; }
.constellation-engine.working .constellation-node { stroke: rgba(167, 120, 255, .82); }
.constellation-engine.degraded .constellation-node { stroke: rgba(243, 187, 99, .72); }
.constellation-engine:hover .constellation-node, .constellation-engine:focus-visible .constellation-node, .constellation-engine.selected .constellation-node { fill: var(--accent); stroke: #f8faff; transform: scale(1.48); animation: none; }
.constellation-engine:hover .constellation-node-glow, .constellation-engine:focus-visible .constellation-node-glow, .constellation-engine.selected .constellation-node-glow { opacity: .75; }

.fishi-core { position: absolute; z-index: 7; top: 49%; left: 50%; display: grid; width: 146px; height: 146px; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -50%); }
.fishi-core-mark { width: 146px; height: 146px; overflow: visible; filter: drop-shadow(0 0 30px rgba(167, 120, 255, .19)); transition: filter .3s ease; animation: constellation-core-breathe 6.5s ease-in-out infinite; }
.fishi-core:hover .fishi-core-mark, .fishi-core:focus-visible .fishi-core-mark { filter: drop-shadow(0 0 42px rgba(167, 120, 255, .32)); }
.fishi-core:focus-visible { outline: 1px solid rgba(167, 120, 255, .55); outline-offset: 8px; }
.core-mark-stroke { fill: #f8faff; filter: url(#core-soft-white); }
.core-mark-signal { fill: var(--pink); filter: url(#core-signal-glow); animation: fishi-lure 2.6s ease-in-out infinite; }
.topology-live-caption { position: absolute; z-index: 5; right: 23px; bottom: 15px; left: 23px; display: grid; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: center; min-height: 31px; padding: 0 12px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; }
.topology-live-caption i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 9px rgba(167, 120, 255, .75); animation: fishi-lure 2.6s ease-in-out infinite; }
.topology-live-caption time { color: var(--muted-2); font: 500 8px/1 var(--heading); }

.control-side { display: grid; min-height: 735px; grid-template-rows: 1fr; }
.fishi-panel { padding: 22px; }

.fishi-panel { position: relative; display: flex; min-height: 100%; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 95% 5%, rgba(167, 120, 255, .11), transparent 32%), rgba(8, 8, 13, .92); }
.fishi-dashboard-visual { position: relative; min-height: 270px; margin: -22px -22px 0; overflow: hidden; background: radial-gradient(circle at 50% 58%, rgba(167,120,255,.13), transparent 35%), #030305; }
.fishi-dashboard-visual:after { position: absolute; right: 9%; bottom: 8%; left: 9%; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,120,255,.22), transparent); content: ""; }
.fishi-dashboard-visual > img { position: absolute; top: 50%; left: 50%; width: 122%; height: 122%; max-width: none; object-fit: cover; transform: translate(-50%, -50%); filter: contrast(1.045) drop-shadow(0 16px 20px rgba(0,0,0,.74)); }
.fishi-dashboard-node { position: absolute; width: 5px; height: 5px; border: 1px solid rgba(248,250,255,.76); border-radius: 50%; background: #030305; animation: fishi-dashboard-node 3.4s ease-in-out infinite; }
.fishi-dashboard-node:after { position: absolute; top: 50%; left: 50%; width: 42px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); content: ""; opacity: .35; transform: rotate(var(--line-angle)) translateY(-50%); transform-origin: left center; }
.fishi-dashboard-node.node-red { top: 37%; left: 35%; color: #ff3152; box-shadow: 0 0 10px #ff3152; --line-angle: 56deg; }
.fishi-dashboard-node.node-green { top: 54%; right: 30%; color: #38e89b; box-shadow: 0 0 10px #38e89b; --line-angle: 145deg; animation-delay: -.8s; }
.fishi-dashboard-node.node-violet { right: 43%; bottom: 21%; color: #a778ff; box-shadow: 0 0 10px #a778ff; --line-angle: 205deg; animation-delay: -1.6s; }
.fishi-dashboard-node.node-blue { top: 26%; right: 36%; color: #5aa2ff; box-shadow: 0 0 10px #5aa2ff; --line-angle: 124deg; animation-delay: -2.3s; }
.fishi-dashboard-copy { padding-top: 20px; }.fishi-dashboard-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.fishi-dashboard-kicker > span { color: #b79ae9; font: 500 7px/1 var(--heading); letter-spacing: .14em; }.fishi-dashboard-kicker > b { display: flex; gap: 5px; align-items: center; color: var(--muted-2); font: 500 6.5px/1 var(--heading); }.fishi-dashboard-kicker > b i { width: 4px; height: 4px; border-radius: 50%; background: #38e89b; box-shadow: 0 0 7px rgba(56,232,155,.7); }
.fishi-dashboard-copy h2 { margin: 14px 0 9px; font: 500 24px/1.04 var(--heading); letter-spacing: -.04em; }.fishi-dashboard-copy > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.58; }
.fishi-dashboard-summary { margin-top: 20px; border-top: 1px solid var(--line); }.fishi-dashboard-summary > div { display: grid; min-height: 61px; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-soft); }.fishi-dashboard-summary .summary-dot { width: 5px; height: 5px; border-radius: 50%; }.fishi-dashboard-summary .summary-dot.violet { background: #a778ff; box-shadow: 0 0 8px rgba(167,120,255,.65); }.fishi-dashboard-summary .summary-dot.red { background: #ff3152; box-shadow: 0 0 8px rgba(255,49,82,.55); }.fishi-dashboard-summary .summary-dot.green { background: #38e89b; box-shadow: 0 0 8px rgba(56,232,155,.55); }.fishi-dashboard-summary p, .fishi-dashboard-summary b, .fishi-dashboard-summary small { margin: 0; }.fishi-dashboard-summary b, .fishi-dashboard-summary small { display: block; }.fishi-dashboard-summary b { color: rgba(248,250,255,.76); font: 500 10px/1.2 var(--heading); }.fishi-dashboard-summary small { margin-top: 5px; color: var(--muted-2); font-size: 7.5px; }.fishi-dashboard-summary em { color: #a778ff; font-style: normal; }
.fishi-dashboard-open { display: flex; min-height: 45px; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 14px; border: 1px solid rgba(167,120,255,.34); background: rgba(167,120,255,.1); color: #f4efff; font: 500 9px/1 var(--heading); cursor: pointer; transition: border-color .2s ease, background .2s ease; }.fishi-dashboard-open:hover { border-color: rgba(167,120,255,.66); background: rgba(167,120,255,.16); }.fishi-dashboard-open b { color: #c8afff; font-size: 13px; }.fishi-dashboard-disclosure { margin-top: 10px; color: var(--muted-2); font-size: 7px; text-align: center; }
.fishi-panel.speaking .fishi-avatar { border-color: rgba(167, 120, 255, .72); box-shadow: 0 0 24px rgba(167, 120, 255, .18), inset 0 0 17px rgba(167, 120, 255, .12); }
.fishi-head { display: grid; grid-template-columns: 43px 1fr auto; gap: 11px; align-items: center; }
.fishi-avatar { position: relative; display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(167, 120, 255, .31); border-radius: 50%; background: radial-gradient(circle at 62% 35%, rgba(167, 120, 255, .13), transparent 58%); box-shadow: inset 0 0 17px rgba(167, 120, 255, .07); }
.fishi-avatar svg { width: 35px; height: 35px; overflow: visible; }
.fishi-tail, .fishi-body { fill: rgba(167, 120, 255, .09); stroke: rgba(248, 250, 255, .72); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.fishi-fin, .fishi-lure, .fishi-gill { fill: none; stroke: rgba(199, 173, 255, .66); stroke-width: 1.25; stroke-linecap: round; }
.fishi-eye { fill: var(--white); filter: drop-shadow(0 0 3px rgba(248, 250, 255, .85)); }
.fishi-lure-light { fill: var(--pink); filter: drop-shadow(0 0 4px rgba(255, 49, 82, .9)); animation: fishi-lure 2.6s ease-in-out infinite; }
.fishi-head p { margin: 0; color: rgba(199, 173, 255, .77); font: 500 7px/1 var(--heading); letter-spacing: .14em; }
.fishi-head h2 { margin: 6px 0 0; font: 500 16px/1 var(--heading); }
.fishi-online { display: flex; gap: 5px; align-items: center; color: var(--muted-2); font: 500 7px/1 var(--heading); }
.fishi-online i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.fishi-message { min-height: 58px; margin: 22px 0 17px; color: rgba(248, 250, 255, .68); font-size: 12px; line-height: 1.57; }
.fishi-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.fishi-suggestions button { padding: 7px 8px; border: 1px solid var(--line); background: rgba(248, 250, 255, .012); color: var(--muted); font-size: 8px; cursor: pointer; }
.fishi-suggestions button:hover { border-color: rgba(167, 120, 255, .3); color: var(--white); }
.fishi-watchlist { margin-top: 32px; border-top: 1px solid var(--line); }
.fishi-watchlist > p { margin: 17px 0 7px; color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .16em; }
.fishi-watchlist > button { display: grid; width: 100%; min-height: 69px; grid-template-columns: 6px 1fr auto; gap: 11px; align-items: center; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.fishi-watchlist i { width: 5px; height: 5px; border-radius: 50%; }
.fishi-watchlist i.violet { background: var(--violet); box-shadow: 0 0 9px rgba(167, 120, 255, .7); }
.fishi-watchlist i.amber { background: var(--amber); box-shadow: 0 0 9px rgba(243, 187, 99, .55); }
.fishi-watchlist i.green { background: var(--green); box-shadow: 0 0 9px rgba(56, 232, 155, .55); }
.fishi-watchlist b, .fishi-watchlist small { display: block; }
.fishi-watchlist b { color: rgba(248, 250, 255, .69); font: 500 10px/1.25 var(--heading); }
.fishi-watchlist small { margin-top: 6px; color: var(--muted-2); font-size: 8px; }
.fishi-watchlist em { color: var(--violet); font-style: normal; }
.fishi-input { display: grid; min-height: 42px; grid-template-columns: 1fr 32px; gap: 7px; align-items: center; margin-top: auto; padding: 0 6px 0 12px; border: 1px solid rgba(248, 250, 255, .15); background: rgba(2, 2, 4, .5); }
.fishi-input input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 10px; }
.fishi-input input::placeholder { color: var(--muted-2); }
.fishi-input button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(167, 120, 255, .3); background: rgba(167, 120, 255, .11); color: #cbb3ff; cursor: pointer; }
.fishi-schedule { margin: 14px 0 2px; border: 1px solid rgba(167,120,255,.2); background: rgba(167,120,255,.035); }
.fishi-schedule summary { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; color: #cbb3ff; font: 500 7px/1 var(--heading); letter-spacing: .12em; cursor: pointer; }
.fishi-schedule summary b { color: var(--muted-2); font-size: 6.5px; }
.fishi-schedule form { padding: 0 12px 12px; border-top: 1px solid var(--line-soft); }
.fishi-schedule form > p { margin: 10px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.fishi-schedule-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fishi-schedule-fields label { color: var(--muted-2); font-size: 7px; }
.fishi-schedule-fields input, .fishi-schedule-fields select { display: block; width: 100%; height: 31px; margin-top: 5px; padding: 0 7px; border: 1px solid var(--line); border-radius: 0; background: #08080d; color: var(--white); font-size: 8px; color-scheme: dark; }
.fishi-schedule form > small { display: block; margin-top: 8px; color: var(--muted-2); font-size: 7px; }
.fishi-schedule-actions { display: flex; gap: 7px; margin-top: 10px; }
.fishi-schedule-actions button { min-height: 31px; padding: 0 10px; border: 1px solid rgba(167,120,255,.32); background: rgba(167,120,255,.1); color: #efe8ff; font: 500 7px/1 var(--heading); cursor: pointer; }
.fishi-schedule-actions button:last-child { border-color: var(--line); background: transparent; color: var(--muted); }
.fishi-schedule-feedback, .fishi-schedule-latest { margin-bottom: 0 !important; }
.fishi-schedule-latest { padding-top: 9px; border-top: 1px solid var(--line-soft); color: rgba(248,250,255,.72) !important; }

.fishi-nav-state { min-width: 31px; padding: 3px 5px; border: 1px solid rgba(167, 120, 255, .25); border-radius: 5px; background: rgba(167, 120, 255, .07); color: #c6a8ff; font-size: 6px; letter-spacing: .1em; }
.fishi-avatar-astra { isolation: isolate; overflow: hidden; border-radius: 13px; background: #030305; }
.fishi-avatar-astra img { position: absolute; z-index: 1; top: 50%; left: 50%; width: 142%; height: 142%; max-width: none; object-fit: cover; transform: translate(-50%, -50%); filter: contrast(1.04) drop-shadow(0 5px 8px rgba(0, 0, 0, .72)); }
.fishi-avatar-signal { position: absolute; z-index: 2; width: 3px; height: 3px; border-radius: 50%; opacity: .72; animation: fishi-small-signal 2.8s ease-in-out infinite; }
.fishi-avatar-signal.signal-violet { top: 66%; left: 53%; background: #a778ff; box-shadow: 0 0 7px #a778ff; }
.fishi-avatar-signal.signal-green { top: 47%; left: 69%; background: #38e89b; box-shadow: 0 0 7px #38e89b; animation-delay: -.9s; }
.fishi-avatar-signal.signal-red { top: 38%; left: 33%; background: #ff3152; box-shadow: 0 0 7px #ff3152; animation-delay: -1.7s; }
.fishi-panel.speaking .fishi-avatar-astra { transform: translateY(-1px) scale(1.025); }
.fishi-panel.speaking .fishi-avatar-signal { opacity: 1; animation-duration: .9s; }
.fishi-avatar.mini.fishi-avatar-astra { overflow: hidden; border-radius: 10px; font-size: 0; }

/* Fishi studio — surface visuelle premium. */
.fishi-page-intro { align-items: flex-end; }
.fishi-preview-boundary { display: flex; min-width: 275px; gap: 10px; align-items: center; padding: 13px 15px; border: 1px solid rgba(167, 120, 255, .2); background: rgba(167, 120, 255, .035); }
.fishi-preview-boundary > i { width: 6px; height: 6px; border-radius: 50%; background: #a778ff; box-shadow: 0 0 10px rgba(167, 120, 255, .75); }
.fishi-preview-boundary b, .fishi-preview-boundary span { display: block; }
.fishi-preview-boundary b { color: #d8c9fb; font: 500 7px/1 var(--heading); letter-spacing: .14em; }
.fishi-preview-boundary span { margin-top: 5px; color: var(--muted-2); font-size: 8px; }
.fishi-studio-grid { display: grid; grid-template-columns: minmax(430px, .92fr) minmax(470px, 1.08fr); gap: 12px; }
.fishi-character-stage, .fishi-studio-chat { min-height: 610px; }
.fishi-character-stage { position: relative; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; padding: 18px 34px 28px; background: radial-gradient(circle at 50% 38%, rgba(167, 120, 255, .09), transparent 37%), linear-gradient(160deg, #07070a, #020204 68%); }
.fishi-character-stage:before { position: absolute; inset: 0; background-image: linear-gradient(rgba(248,250,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(248,250,255,.018) 1px,transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 50% 42%, #000, transparent 68%); content: ""; pointer-events: none; }
.fishi-stage-halo { position: absolute; top: 17%; left: 50%; width: 400px; height: 400px; border: 1px solid rgba(167, 120, 255, .08); border-radius: 50%; transform: translateX(-50%); }
.fishi-stage-halo:before, .fishi-stage-halo:after { position: absolute; border: 1px solid rgba(248, 250, 255, .035); border-radius: 50%; content: ""; }
.fishi-stage-halo:before { inset: 42px; }.fishi-stage-halo:after { inset: 89px; border-style: dashed; }
.fishi-mascot-premium { position: relative; z-index: 2; width: min(425px, 90%); aspect-ratio: 1; isolation: isolate; animation: fishi-premium-float 6.2s ease-in-out infinite; transition: filter .35s ease, transform .35s ease; }
.fishi-mascot-premium:before { position: absolute; z-index: -1; inset: 19%; border-radius: 50%; background: radial-gradient(circle, rgba(167, 120, 255, .17), rgba(70, 134, 255, .045) 42%, transparent 72%); filter: blur(18px); content: ""; transition: background .35s ease; }
.fishi-mascot-premium > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: contrast(1.035) drop-shadow(0 18px 26px rgba(0, 0, 0, .7)); }
.fishi-mascot-energy { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; pointer-events: none; }
.fishi-energy-traces path { fill: none; stroke-width: .38; stroke-linecap: round; stroke-dasharray: 1.35 6.3; opacity: .28; animation: fishi-trace-flow 7s linear infinite; }
.fishi-energy-traces path:nth-child(1) { stroke: #ff3152; }.fishi-energy-traces path:nth-child(2) { stroke: #38e89b; }.fishi-energy-traces path:nth-child(3) { stroke: #a778ff; }.fishi-energy-traces path:nth-child(4) { stroke: #4a8cff; }.fishi-energy-traces path:nth-child(5) { stroke: #a778ff; }.fishi-energy-traces path:nth-child(6) { stroke: #38e89b; }
.fishi-energy-pulses { opacity: .76; transition: opacity .3s ease; }.pulse-red { fill: #ff3152; }.pulse-green { fill: #38e89b; }.pulse-violet { fill: #c6a8ff; }.pulse-blue { fill: #5aa2ff; }
.fishi-mascot-premium[data-state="searching"] { filter: drop-shadow(0 0 20px rgba(167, 120, 255, .23)); animation-duration: 2.1s; }
.fishi-mascot-premium[data-state="searching"] .fishi-energy-traces path { opacity: .66; animation-duration: 1.2s; }.fishi-mascot-premium[data-state="searching"] .fishi-energy-pulses { opacity: 1; }
.fishi-mascot-premium[data-state="ready"]:before { background: radial-gradient(circle, rgba(56, 232, 155, .18), rgba(167, 120, 255, .055) 43%, transparent 72%); }
.fishi-mascot-premium[data-state="alert"] { filter: drop-shadow(0 0 20px rgba(255, 49, 82, .21)); }.fishi-mascot-premium[data-state="alert"]:before { background: radial-gradient(circle, rgba(255, 49, 82, .18), rgba(167, 120, 255, .055) 44%, transparent 72%); }
.fishi-character-copy { position: relative; z-index: 3; max-width: 440px; margin-top: -36px; text-align: center; }
.fishi-character-copy p { margin: 0 0 9px; color: #b597f0; font: 500 7px/1 var(--heading); letter-spacing: .18em; }.fishi-character-copy h2 { margin: 0; font: 500 26px/1.05 var(--heading); }.fishi-character-copy span { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.fishi-stage-status { position: relative; z-index: 3; display: flex; gap: 8px; align-items: center; margin-top: 17px; color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .12em; }.fishi-stage-status i { width: 5px; height: 5px; border-radius: 50%; background: #38e89b; box-shadow: 0 0 9px rgba(56,232,155,.65); }
.fishi-studio-chat { display: flex; flex-direction: column; padding: 25px; background: radial-gradient(circle at 100% 0, rgba(167,120,255,.1), transparent 30%), rgba(7,7,11,.94); }
.fishi-studio-chat > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.fishi-studio-chat > header p { margin: 0; color: #b394eb; font: 500 7px/1 var(--heading); letter-spacing: .17em; }.fishi-studio-chat > header h2 { margin: 7px 0 0; font: 500 19px/1 var(--heading); }.fishi-studio-chat > header > span { display: flex; gap: 6px; align-items: center; color: var(--muted-2); font: 500 7px/1 var(--heading); }.fishi-studio-chat > header > span i { width: 5px; height: 5px; border-radius: 50%; background: #38e89b; box-shadow: 0 0 8px rgba(56,232,155,.65); }
.fishi-studio-conversation { display: flex; min-height: 250px; max-height: 310px; flex-direction: column; gap: 9px; overflow: auto; padding: 22px 1px 13px; scrollbar-width: thin; scrollbar-color: rgba(167,120,255,.24) transparent; }
.fishi-studio-bubble { max-width: 88%; padding: 13px 14px; border: 1px solid rgba(255,255,255,.065); background: rgba(255,255,255,.018); color: #aeb7c1; font-size: 10px; line-height: 1.55; }.fishi-studio-bubble.assistant { border-color: rgba(167,120,255,.16); background: rgba(167,120,255,.038); }.fishi-studio-bubble.user { align-self: flex-end; border-color: rgba(90,162,255,.17); background: rgba(90,162,255,.04); }.fishi-studio-bubble b { display: block; margin-bottom: 5px; color: #f2f4f7; }.fishi-studio-bubble p { margin: 0; }
.fishi-studio-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }.fishi-studio-suggestions button { padding: 8px 9px; border: 1px solid rgba(167,120,255,.17); background: rgba(167,120,255,.025); color: #9b8caf; font-size: 8px; cursor: pointer; }.fishi-studio-suggestions button:hover { border-color: rgba(167,120,255,.42); color: #e0d4f8; }
.fishi-studio-form { margin-top: auto; }.fishi-studio-form > label { display: block; margin-bottom: 8px; color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .14em; text-transform: uppercase; }.fishi-studio-form > div { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: end; padding: 9px 9px 9px 13px; border: 1px solid rgba(167,120,255,.23); background: #030305; }.fishi-studio-form textarea { min-height: 45px; max-height: 110px; resize: vertical; border: 0; outline: 0; background: transparent; color: #f1f3f6; font: 10px/1.5 inherit; }.fishi-studio-form textarea::placeholder { color: #59616b; }.fishi-studio-form button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(167,120,255,.35); background: rgba(167,120,255,.13); color: #dbcaff; font-size: 17px; cursor: pointer; }
.fishi-studio-safety { margin: 11px 0 0; color: var(--muted-2); font-size: 8px; }.fishi-studio-safety span { margin-right: 6px; color: #38e89b; }
.fishi-morning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }.fishi-morning-grid article { min-height: 165px; padding: 20px; }.fishi-morning-grid small, .fishi-morning-grid strong { display: block; }.fishi-morning-grid small { color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .14em; }.fishi-morning-grid strong { margin-top: 12px; color: #f5f6fa; font: 500 26px/1 var(--heading); }.fishi-morning-grid p { min-height: 40px; margin: 10px 0 14px; color: var(--muted); font-size: 9px; line-height: 1.5; }.fishi-morning-grid button { padding: 0; border: 0; background: transparent; color: #b394eb; font-size: 8px; cursor: pointer; }.fishi-morning-grid .attention { border-color: rgba(255,49,82,.17); }.fishi-morning-grid .attention strong { color: #ff6b82; }
@keyframes fishi-premium-float { 0%, 100% { transform: translate3d(0, 2px, 0) rotate(-.35deg); } 50% { transform: translate3d(0, -5px, 0) rotate(.4deg); } }
@keyframes fishi-trace-flow { to { stroke-dashoffset: -31.2; } }
@keyframes fishi-small-signal { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.45); } }
@keyframes fishi-dashboard-node { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.35); } }

.operations-lower-grid { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(310px, .63fr); gap: 12px; margin-top: 12px; }
.event-stream, .attention-panel { min-height: 260px; padding: 23px; }
.event-list { margin-top: 18px; }
.event-list > div { display: grid; min-height: 51px; grid-template-columns: 57px 7px minmax(0, 1fr) 40px; gap: 10px; align-items: center; border-top: 1px solid var(--line-soft); }
.event-list time, .event-list em { color: var(--muted-2); font: 500 8px/1 var(--heading); font-style: normal; }
.event-list p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.event-list p strong { color: rgba(248, 250, 255, .75); font: 500 10px/1 var(--heading); }
.event-list p b { color: rgba(199, 173, 255, .72); font-weight: 500; }
.event-list em { text-align: right; }
.attention-case { display: grid; width: 100%; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; margin-top: 20px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.attention-case strong { font: 500 11px/1.2 var(--heading); }
.attention-case p { margin: 6px 0 0; color: var(--muted-2); font-size: 9px; }
.attention-case > b { color: var(--violet); }
.attention-summary { display: flex; gap: 15px; margin-top: 16px; color: var(--muted-2); font-size: 9px; }

@keyframes constellation-ring-turn { to { transform: rotate(1turn); } }
@keyframes constellation-ring-turn-reverse { to { transform: rotate(-1turn); } }
@keyframes constellation-link-draw { to { stroke-dashoffset: 0; } }
@keyframes constellation-link-live { 0%, 7%, 100% { stroke: rgba(248, 250, 255, .13); } 3.5% { stroke: var(--accent); } }
@keyframes constellation-signal-travel { 0%, 1%, 8%, 100% { opacity: 0; stroke-dashoffset: 1; } 2% { opacity: .2; } 5% { opacity: .95; stroke-dashoffset: 0; } 7% { opacity: 0; stroke-dashoffset: -.8; } }
@keyframes constellation-node-live { 0%, 7%, 100% { fill: #08080d; stroke: rgba(248, 250, 255, .62); transform: scale(1); } 3.5% { fill: var(--accent); stroke: #f8faff; transform: scale(1.45); } }
@keyframes constellation-node-glow { 0%, 7%, 100% { opacity: 0; } 3.5% { opacity: .72; } }
@keyframes constellation-core-breathe { 0%, 100% { transform: scale(.985); } 50% { transform: scale(1.015); } }
@keyframes fishi-lure { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; display: flex; max-width: min(410px, calc(100vw - 32px)); gap: 11px; align-items: center; padding: 14px 17px; border: 1px solid rgba(167, 120, 255, .28); background: rgba(8, 8, 13, .96); box-shadow: 0 18px 60px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.toast p { margin: 0; color: rgba(248, 250, 255, .78); font-size: 11px; }

@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes orbit { to { transform: rotate(1turn); } }
@keyframes orbit-reverse { to { transform: rotate(-1turn); } }
@keyframes node-live { 0%, 73%, 100% { opacity: 0; } 78%, 88% { opacity: 1; } }

@media (max-width: 1380px) {
  :root { --sidebar: 230px; }
  .content { padding-right: 27px; padding-left: 27px; }
  .topbar { padding: 0 27px; }
  .review-workspace { grid-template-columns: 205px minmax(350px, 1fr) 350px; }
  .engine-orbit { width: 305px; height: 305px; }
  .n1{left:149px}.n2{left:222px}.n3{left:286px;top:71px}.n4{top:155px}.n5{top:237px}.n6{right:81px}.n7{left:140px}.n8{left:61px}.n9{top:228px}.n10{top:143px}.n11{top:62px}.n12{left:84px}.n13{right:39px;top:120px}
  .control-room-grid { grid-template-columns: minmax(590px, 1fr) 330px; }
}

@media (max-width: 1120px) {
  .topbar { grid-template-columns: 1fr auto; }
  .command-grid, .workspace-grid, .inbox-layout { grid-template-columns: 1fr; }
  .engine-panel { min-height: 430px; border-top: 0; border-left: 1px solid var(--line); }
  .assistant-panel { min-height: 340px; }
  .review-workspace { grid-template-columns: 190px 1fr; }
  .decision-panel { grid-column: 1 / -1; min-height: auto; }
  .decision-actions { grid-template-columns: repeat(3, 1fr); }
  .decision-button.unsure { grid-column: auto; }
  .control-room-grid { grid-template-columns: 1fr; }
  .control-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .fishi-studio-grid { grid-template-columns: 1fr; }
  .fishi-character-stage { min-height: 540px; }
  .ops-stat-strip { grid-template-columns: repeat(3, 1fr); }
  .ops-stat-strip > *:nth-child(3) { border-right: 0; }
  .ops-stat-strip > *:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 830px) {
  .sidebar { width: min(290px, 88vw); transform: translateX(-105%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .sidebar.open { transform: translateX(0); box-shadow: 40px 0 100px rgba(0, 0, 0, .7); }
  .mobile-close { position: absolute; top: -8px; right: 4px; display: block; border: 0; background: transparent; color: var(--muted); font-size: 24px; }
  .app-main { margin-left: 0; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 14px; padding: 0 18px; }
  .mobile-menu { display: block; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
  .content { padding: 34px 18px 55px; }
  .page-intro { display: block; }
  .intro-copy { margin-top: 24px; }
  .briefing-panel { min-height: 535px; }
  .briefing-copy { margin-top: 48px; }
  .briefing-metrics { grid-template-columns: 1fr 1fr 1fr; }
  .review-workspace { grid-template-columns: 1fr; }
  .review-queue { min-height: auto; }
  .message-preview, .decision-panel { min-height: auto; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .report-wide { grid-column: 1 / -1; }
  .operations-heading { align-items: flex-start; }
  .ops-stat-strip { grid-template-columns: 1fr 1fr; }
  .ops-stat-strip > * { border-bottom: 1px solid var(--line); }
  .ops-stat-strip > *:nth-child(2n) { border-right: 0; }
  .ops-stat-strip > *:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .topology-header { align-items: flex-start; }
  .topology-legend { max-width: 235px; }
  .system-topology { height: 600px; }
  .control-side { grid-template-columns: 1fr; }
  .operations-lower-grid { grid-template-columns: 1fr; }
  .fishi-preview-boundary { width: 100%; min-width: 0; margin-top: 22px; }
  .fishi-morning-grid { grid-template-columns: 1fr; }
  .fishi-morning-grid p { min-height: 0; }
}

@media (max-width: 570px) {
  .topbar { min-height: 68px; }
  .top-context span { display: none; }
  .top-actions .icon-button { display: none; }
  .content { padding: 29px 14px 44px; }
  .page-intro h1 { font-size: 44px; }
  .intro-copy { font-size: 14px; }
  .briefing-panel { min-height: 645px; padding: 20px; }
  .panel-topline { gap: 12px; }
  .briefing-copy { padding-left: 0; }
  .briefing-index { display: none; }
  .briefing-copy h2 { font-size: 38px; }
  .briefing-metrics { grid-template-columns: 1fr; }
  .briefing-metrics > * { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .briefing-metrics strong { margin-top: 8px; font-size: 23px; }
  .briefing-metrics span { display: inline; margin-left: 10px; }
  .engine-panel { min-height: 390px; }
  .engine-orbit { width: 270px; height: 270px; }
  .node { display: none; }
  .assistant-panel, .priority-panel { padding: 21px 18px; }
  .assistant-question { font-size: 22px; }
  .mail-row { grid-template-columns: 35px minmax(0, 1fr) 39px; }
  .mail-status { display: none; }
  .mail-row time { grid-column: 3; }
  .review-cta { right: 18px; left: 18px; }
  .review-workspace { gap: 9px; }
  .message-head { grid-template-columns: 41px 1fr; }
  .message-head .more-button { display: none; }
  .decision-actions { grid-template-columns: 1fr; }
  .decision-button.unsure { grid-column: auto; }
  .report-grid { grid-template-columns: 1fr; }
  .report-wide { display: block; grid-column: auto; }
  .report-wide button { margin-top: 28px; }
  .learning-stats { grid-template-columns: 1fr; }
  .learning-stats > div { min-height: 88px; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .learning-next h2 { font-size: 27px; }
  .settings-concept { display: block; }
  .settings-concept button { margin-top: 30px; }
  .operations-heading { display: block; }
  .operations-status { margin-top: 16px; justify-content: space-between; }
  .ops-stat-strip { grid-template-columns: 1fr; }
  .ops-stat-strip > * { min-height: 71px; border-right: 0; }
  .ops-stat-strip > *:last-child { grid-column: auto; }
  .topology-panel { min-height: auto; }
  .topology-header { display: block; }
  .topology-legend { margin-top: 17px; justify-content: flex-start; }
  .system-topology { height: 440px; padding-bottom: 56px; }
  .engine-constellation { top: 46%; width: min(112vw, 500px); height: min(112vw, 500px); }
  .fishi-core { top: 46%; width: 104px; height: 104px; }
  .fishi-core-mark { width: 104px; height: 104px; }
  .topology-live-caption { right: 12px; bottom: 10px; left: 12px; }
  .event-list > div { grid-template-columns: 52px 6px 1fr; padding: 8px 0; }
  .event-list p { white-space: normal; }
  .event-list em { display: none; }
  .fishi-character-stage { min-height: 500px; padding: 14px 18px 25px; }
  .fishi-mascot-premium { width: min(390px, 116%); }
  .fishi-character-copy { margin-top: -24px; }
  .fishi-character-copy h2 { font-size: 23px; }
  .fishi-studio-chat { min-height: 570px; padding: 19px; }
  .fishi-studio-suggestions button { flex: 1 1 45%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* FishAI workspace — direction artistique et vues de travail */
body { background: #020204; }
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 62% 42%, rgba(99, 54, 190, .14), transparent 42%),
    linear-gradient(90deg, rgba(2, 2, 4, .91), rgba(5, 2, 12, .62) 53%, rgba(2, 2, 4, .86)),
    linear-gradient(rgba(2, 2, 4, .24), rgba(2, 2, 4, .74)),
    url("./assets/fishai-starfish-purple-rc19.webp?v=rc19-consumer-profile-1") center / cover no-repeat;
  content: "";
  pointer-events: none;
}
.ambient { opacity: .035; }
.sidebar { background: rgba(2, 2, 4, .91); }
.app-main { position: relative; }
.topbar { background: rgba(2, 2, 4, .72); backdrop-filter: blur(28px); }
.panel { background: rgba(8, 8, 13, .73); backdrop-filter: blur(22px); }
.topology-panel { border: 1px solid rgba(248, 250, 255, .065); background: radial-gradient(circle at 50% 54%, rgba(167, 120, 255, .12), transparent 35%), rgba(2, 2, 4, .59); backdrop-filter: blur(18px); }

.constellation-label {
  fill: rgba(248, 250, 255, .38);
  font: 500 9px/1 var(--heading);
  letter-spacing: .02em;
  pointer-events: none;
  transition: fill .25s ease, filter .25s ease, opacity .25s ease;
}
.constellation-engine.outer .constellation-label { font-size: 8.5px; }
.constellation-engine:hover .constellation-label,
.constellation-engine:focus-visible .constellation-label,
.constellation-engine.selected .constellation-label,
.constellation-engine.runtime-active .constellation-label { fill: #f8faff; filter: drop-shadow(0 0 7px var(--accent)); }
.constellation-engine.runtime-active .constellation-node { fill: var(--accent); stroke: #f8faff; transform: scale(1.48); animation: none; }
.constellation-engine.runtime-active .constellation-node-glow { opacity: .78; animation: none; }
.constellation-engine.runtime-active .constellation-link { stroke: var(--accent); animation: none; }
.constellation-engine.runtime-active .constellation-signal { opacity: 1; animation: runtime-scan 1.8s linear infinite; }
@keyframes runtime-scan { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -.9; } }

.fishi-conversation {
  min-height: 78px;
  max-height: 178px;
  margin: 18px 0 13px;
  overflow: auto;
  scrollbar-color: rgba(167, 120, 255, .3) transparent;
}
.fishi-message, .fishi-user-message {
  width: fit-content;
  max-width: 94%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 250, 255, .08);
  background: rgba(248, 250, 255, .025);
  color: rgba(248, 250, 255, .7);
  font-size: 10px;
  line-height: 1.55;
}
.fishi-user-message { margin-left: auto; border-color: rgba(167, 120, 255, .2); background: rgba(167, 120, 255, .075); color: rgba(248, 250, 255, .82); }

/* Analyse d'un courriel */
.analyzer-workspace { display: grid; gap: 12px; }
.analyzer-drop { padding: 26px; }
.analyzer-head, .analysis-live-head, .training-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.analyzer-head h2, .analysis-live-head h2 { margin: 8px 0 0; font: 500 22px/1 var(--heading); letter-spacing: -.035em; }
.eml-drop {
  display: grid;
  min-height: 235px;
  place-items: center;
  align-content: center;
  gap: 13px;
  margin-top: 25px;
  border: 1px dashed rgba(167, 120, 255, .35);
  background: radial-gradient(circle at 50% 50%, rgba(167, 120, 255, .085), transparent 38%), rgba(2, 2, 4, .32);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.eml-drop:hover, .analyzer-drop.dragging .eml-drop { border-color: rgba(167, 120, 255, .72); background: radial-gradient(circle at 50% 50%, rgba(167, 120, 255, .14), transparent 42%), rgba(2, 2, 4, .36); }
.drop-orbit { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(167, 120, 255, .35); border-radius: 50%; box-shadow: inset 0 0 28px rgba(167, 120, 255, .08), 0 0 30px rgba(167, 120, 255, .07); }
.drop-orbit svg { width: 21px; fill: none; stroke: #b895ff; stroke-width: 1.35; }
.eml-drop strong { font: 500 17px/1 var(--heading); }
.eml-drop small { color: var(--muted-2); font-size: 10px; }
.analyzer-actions, .mail-copilot-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.primary-action, .secondary-action, .export-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(248, 250, 255, .13);
  background: transparent;
  color: rgba(248, 250, 255, .75);
  font: 500 9px/1 var(--heading);
  cursor: pointer;
}
.primary-action { border-color: rgba(167, 120, 255, .45); background: rgba(167, 120, 255, .14); color: #f8faff; }
.primary-action span { margin-left: 17px; color: #cdb7ff; }
.primary-action:disabled { opacity: .35; cursor: not-allowed; }
.secondary-action:hover, .export-action:hover { border-color: rgba(167, 120, 255, .42); color: var(--white); }
.analysis-live { min-height: 480px; padding: 27px; }
.analysis-live-head > strong { color: #c9afff; font: 500 31px/1 var(--heading); }
.analysis-progress { height: 2px; margin-top: 24px; background: rgba(248, 250, 255, .07); }
.analysis-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--green)); box-shadow: 0 0 12px rgba(167, 120, 255, .55); transition: width .55s ease; }
.analysis-stages { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.analysis-stages > div { display: flex; min-height: 64px; gap: 9px; align-items: center; border-right: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; transition: color .25s ease, background .25s ease; }
.analysis-stages > div:last-child { border-right: 0; }
.analysis-stages b { margin-left: 15px; color: rgba(167, 120, 255, .55); font: 500 8px/1 var(--heading); }
.analysis-stages .active { background: rgba(167, 120, 255, .05); color: var(--white); }
.analysis-stages .done b { color: var(--green); }
.analysis-stages .done { color: rgba(248, 250, 255, .67); }
.analysis-evidence-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); gap: 12px; margin-top: 18px; }
.analysis-trace, .analysis-verdict { min-height: 245px; border: 1px solid var(--line-soft); background: rgba(2, 2, 4, .25); }
.subhead { display: flex; min-height: 44px; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--line-soft); color: var(--muted-2); font: 500 8px/1 var(--heading); letter-spacing: .14em; }
.analysis-events { padding: 9px 15px; }
.analysis-events p { position: relative; margin: 0; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.analysis-events p:before { position: absolute; top: 15px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px rgba(167, 120, 255, .7); content: ""; }
.analysis-events p strong { color: rgba(248, 250, 255, .78); font-weight: 500; }
.analysis-events .analysis-placeholder { color: var(--muted-2); }
.analysis-events .analysis-placeholder:before { background: rgba(248, 250, 255, .2); box-shadow: none; }
.analysis-verdict { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.verdict-orb { position: relative; width: 42px; height: 42px; margin-bottom: 22px; border: 1px solid rgba(167, 120, 255, .26); border-radius: 50%; }
.verdict-orb:before { position: absolute; inset: 12px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 16px rgba(167, 120, 255, .75); content: ""; }
.analysis-verdict small { color: var(--violet); font: 500 8px/1 var(--heading); letter-spacing: .17em; }
.analysis-verdict h3 { margin: 12px 0 9px; font: 500 20px/1.2 var(--heading); }
.analysis-verdict p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.analysis-verdict.complete .verdict-orb { border-color: rgba(243, 187, 99, .4); }
.analysis-verdict.complete .verdict-orb:before { background: var(--amber); box-shadow: 0 0 16px rgba(243, 187, 99, .62); }
.analysis-verdict.error .verdict-orb { border-color: rgba(255, 107, 129, .42); }
.analysis-verdict.error .verdict-orb:before { background: #ff6b81; box-shadow: 0 0 16px rgba(255, 107, 129, .55); }
.analysis-verdict-metrics { display: grid; width: 100%; gap: 8px; margin: auto 0 0; }
.analysis-verdict-metrics[hidden] { display: none; }
.analysis-verdict-metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.analysis-verdict-metrics dt { color: var(--muted-2); font-size: 8px; }
.analysis-verdict-metrics dd { margin: 0; color: rgba(248, 250, 255, .82); font: 500 10px/1.2 var(--heading); text-align: right; }
.human-context-panel { display: grid; width: 100%; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.human-context-panel[hidden] { display: none; }
.human-context-panel h4 { margin: 0; color: var(--white); font: 500 14px/1.3 var(--heading); }
.human-context-panel h4:focus-visible { border-radius: 3px; outline: 2px solid var(--amber); outline-offset: 4px; }
.human-context-panel > p { font-size: 9px; }
.human-context-panel label { color: var(--muted-2); font-size: 8px; letter-spacing: .06em; }
.human-context-panel select, .human-context-panel textarea { width: 100%; border: 1px solid var(--line); background: rgba(8, 5, 14, .88); color: var(--white); font: 400 10px/1.45 var(--body); }
.human-context-panel select:focus-visible, .human-context-panel textarea:focus-visible, .human-context-panel button:focus-visible, .human-context-consent input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.human-context-panel select { min-height: 34px; padding: 0 9px; }
.human-context-panel textarea { resize: vertical; padding: 8px 9px; }
.human-context-consent { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; line-height: 1.45; letter-spacing: 0 !important; }
.human-context-consent input { margin: 2px 0 0; accent-color: var(--violet); }
.human-context-panel .secondary-action { min-height: 36px; border: 1px solid rgba(167, 120, 255, .34); background: rgba(167, 120, 255, .09); color: var(--white); font: 500 9px/1 var(--heading); cursor: pointer; }
.human-context-panel .secondary-action:disabled { cursor: wait; opacity: .55; }
.human-context-lifecycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.human-context-lifecycle[hidden] { display: none; }
.human-context-panel .human-context-delete { border-color: rgba(255, 107, 107, .38); background: rgba(255, 107, 107, .08); }
.human-context-panel .human-context-pending { padding: 8px 9px; border-left: 2px solid var(--violet); background: rgba(167, 120, 255, .07); color: rgba(248, 250, 255, .78); line-height: 1.5; }
.human-context-panel .human-context-pending[hidden] { display: none; }
.human-context-panel .human-context-warning { color: var(--amber); }
.human-context-panel .human-context-status { min-height: 14px; color: var(--green); }
.human-context-comparison { display: grid; gap: 9px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.human-context-comparison[hidden] { display: none; }
.human-context-comparison h5 { margin: 0; color: var(--white); font: 500 11px/1.3 var(--heading); }
.human-context-comparison > p { margin: 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.human-context-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.human-context-before-after > div { display: grid; gap: 5px; padding: 9px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .018); }
.human-context-before-after small { color: var(--muted-2); font-size: 7px; letter-spacing: .12em; }
.human-context-before-after strong { color: rgba(248, 250, 255, .88); font: 500 10px/1.3 var(--heading); }
.human-context-comparison ul { display: grid; gap: 5px; margin: 0; padding-left: 16px; color: var(--muted); font-size: 8px; line-height: 1.5; }
@media (max-width: 570px) {
  .human-context-before-after { grid-template-columns: 1fr; }
}

/* Compte personnel: profil modifiable, toujours résolu par la session BFF. */
.account-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(430px, 1.22fr); gap: 12px; }
.account-card, .account-session-card { min-height: 220px; padding: 26px; }
.account-card h2, .account-session-card h2 { margin: 14px 0 8px; font: 500 24px/1.15 var(--heading); }
.account-card > p:not(.eyebrow), .account-session-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.account-profile-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(270px, .7fr) minmax(360px, 1.3fr); gap: 42px; align-items: center; }
.account-profile-summary { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 22px; align-items: center; }
.account-avatar-editor { display: grid; justify-items: center; gap: 9px; }
.account-avatar-preview {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(167, 120, 255, .34);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, rgba(167, 120, 255, .28), rgba(15, 9, 28, .94));
  box-shadow: 0 0 36px rgba(92, 45, 184, .16);
  color: #e1d6ff;
  font: 500 25px/1 var(--heading);
}
.account-avatar-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-avatar-actions { display: flex; gap: 10px; }
.account-avatar-actions button { padding: 0; border: 0; border-bottom: 1px solid rgba(167, 120, 255, .34); background: transparent; color: #cbb4ff; font-size: 8px; cursor: pointer; }
.account-avatar-actions button:last-child { border-bottom-color: rgba(255, 107, 129, .3); color: #ff97a8; }
.account-avatar-actions button:disabled { opacity: .45; cursor: wait; }
.account-avatar-editor > small { color: var(--muted-2); font-size: 7px; text-align: center; }
.account-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-profile-form label { color: rgba(248, 250, 255, .44); font: 500 8px/1 var(--heading); letter-spacing: .08em; text-transform: uppercase; }
.account-profile-form input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(2, 2, 4, .54);
  color: rgba(248, 250, 255, .88);
  font: 500 11px/1 var(--heading);
}
.account-profile-form input:focus { border-color: rgba(167, 120, 255, .58); box-shadow: 0 0 0 3px rgba(167, 120, 255, .06); }
.account-profile-form-footer { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.account-details { display: grid; gap: 10px; margin: 26px 0 0; }
.account-profile-form .account-details { margin: 0; }
.account-details div { display: flex; justify-content: space-between; gap: 18px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.account-details dt { color: var(--muted-2); font-size: 8px; }
.account-details dd { margin: 0; color: rgba(248, 250, 255, .82); font: 500 10px/1.2 var(--heading); text-align: right; }
.account-grid .mailbox-settings-card { grid-column: 1 / -1; min-height: 190px; margin-top: 0; }
.account-session-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 150px; }
.account-feedback { grid-column: 1 / -1; min-height: 16px; color: #c4aaff !important; }
.account-profile-feedback { grid-column: 1 / -1; min-height: 16px; margin: 0; color: #c4aaff; font-size: 9px; }
.billing-card { grid-column: 1 / -1; min-height: 218px; padding: 26px; background: radial-gradient(circle at 93% 0, rgba(167,120,255,.105), transparent 32%), rgba(8,8,13,.82); }
.billing-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.billing-card h2 { margin: 12px 0 8px; }
.billing-card-head p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.billing-status { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(167,120,255,.3); color: #cbb4ff; font: 500 7px/1 var(--heading); letter-spacing: .13em; }
.billing-status[data-state="active"] { border-color: rgba(56,232,155,.3); color: #8de9bd; }
.billing-status[data-state="past_due"], .billing-status[data-state="expired"] { border-color: rgba(243,187,99,.38); color: #f4c978; }
.billing-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 20px; }
.billing-metrics div { display: grid; gap: 7px; padding: 12px 13px; border: 1px solid var(--line-soft); background: rgba(2,2,4,.3); }
.billing-metrics span { color: var(--muted-2); font-size: 8px; }
.billing-metrics strong { color: rgba(248,250,255,.86); font: 500 14px/1.2 var(--heading); }
.billing-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.billing-card-foot > div:first-child { display: grid; gap: 7px; }
.billing-card-foot strong { color: #f2eaff; font: 500 13px/1.2 var(--heading); }
.billing-card-foot small { max-width: 570px; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.billing-actions button[hidden] { display: none; }
.billing-feedback { min-height: 15px; margin: 13px 0 0; color: #c4aaff; font-size: 9px; }
.billing-support-panel { margin-top: 16px; padding: 18px; border: 1px solid var(--line-soft); background: rgba(2,2,4,.34); }
.billing-trial-policy { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.billing-support-panel[hidden] { display: none; }
.billing-support-panel h3 { margin: 0 0 7px; font: 500 14px/1.2 var(--heading); }
.billing-support-panel > p, .billing-support-panel label { color: var(--muted); font-size: 9px; line-height: 1.55; }
.billing-support-panel label { display: block; margin: 12px 0 6px; }
.billing-support-panel select, .billing-support-panel textarea { width: 100%; border: 1px solid var(--line-soft); background: rgba(248,250,255,.035); color: var(--text); padding: 10px; }
.billing-support-panel textarea { min-height: 90px; resize: vertical; }
.billing-support-ack { display: flex !important; gap: 8px; align-items: flex-start; }
.billing-support-requests { margin-top: 12px; }
.billing-support-request { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 8px; }
.privacy-card { grid-column: 1 / -1; padding: 26px; background: radial-gradient(circle at 8% 0, rgba(69,233,164,.08), transparent 30%), rgba(8,8,13,.82); }
.privacy-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.privacy-card h2 { margin: 12px 0 8px; font: 500 24px/1.15 var(--heading); }
.privacy-local-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(56,232,155,.25); color: #8de9bd; font: 500 7px/1 var(--heading); letter-spacing: .13em; white-space: nowrap; }
.privacy-local-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(56,232,155,.65); }
.privacy-facts { display: grid; gap: 9px; margin: 19px 0 22px; padding: 0; list-style: none; }
.privacy-facts li { position: relative; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.privacy-facts li:before { position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--green); content: ""; }
.privacy-destruction-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.privacy-destruction-intro > div { display: grid; gap: 7px; }
.privacy-destruction-intro strong { color: rgba(248,250,255,.86); font: 500 13px/1.2 var(--heading); }
.privacy-destruction-intro small { max-width: 680px; color: var(--muted-2); font-size: 8px; line-height: 1.55; }
.privacy-danger { border-color: rgba(255,107,129,.34); color: #ff9bad; }
.privacy-danger:hover:not(:disabled) { border-color: rgba(255,107,129,.62); background: rgba(255,49,82,.075); }
.privacy-confirmation { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: end; margin-top: 18px; padding: 18px; border: 1px solid rgba(255,107,129,.22); background: rgba(255,49,82,.035); }
.privacy-confirmation[hidden] { display: none; }
.privacy-confirmation label { color: var(--muted); font-size: 9px; line-height: 1.5; }
.privacy-confirmation label strong { color: #ffc1cb; font-weight: 500; }
.privacy-confirmation input { display: block; width: 100%; min-height: 43px; margin-top: 10px; padding: 0 12px; border: 1px solid rgba(255,107,129,.25); outline: 0; background: rgba(2,2,4,.58); color: #fff; font: 500 10px/1 var(--heading); }
.privacy-confirmation input:focus { border-color: rgba(255,107,129,.62); box-shadow: 0 0 0 3px rgba(255,49,82,.06); }
.privacy-confirmation > div { display: flex; gap: 8px; }
.privacy-feedback { min-height: 15px; margin: 13px 0 0; color: #ffc1cb; font-size: 9px; }

@media (max-width: 920px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-profile-card { grid-column: auto; grid-template-columns: 1fr; }
  .account-grid .mailbox-settings-card { grid-column: auto; }
  .account-session-card { grid-column: auto; }
  .privacy-card { grid-column: auto; }
}

@media (max-width: 570px) {
  .account-card, .account-session-card { padding: 20px; }
  .account-profile-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .account-profile-form { grid-template-columns: 1fr; }
  .account-profile-form-footer { grid-column: auto; grid-template-columns: 1fr; }
  .account-profile-feedback { grid-column: auto; }
  .account-session-card { grid-template-columns: 1fr; }
  .billing-card-foot { align-items: flex-start; flex-direction: column; }
  .billing-actions { justify-content: flex-start; }
  .privacy-card-head, .privacy-destruction-intro { align-items: flex-start; flex-direction: column; }
  .privacy-confirmation { grid-template-columns: 1fr; }
  .privacy-confirmation > div, .privacy-confirmation button { width: 100%; }
}

@media (max-width: 570px) {
  .billing-card { padding: 20px; }
  .billing-card-head { flex-direction: column; gap: 13px; }
  .billing-metrics { grid-template-columns: 1fr; }
  .billing-card-foot { gap: 16px; }
  .billing-actions, .billing-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .billing-actions button { transition: none; }
}

/* Courriels et Fishi */
.mail-copilot { display: flex; min-height: 590px; flex-direction: column; padding: 24px; background: radial-gradient(circle at 88% 8%, rgba(167, 120, 255, .1), transparent 30%), rgba(8, 8, 13, .78); }
.mail-copilot-head { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fishi-avatar.mini { width: 34px; height: 34px; color: #d6c6ff; font-size: 23px; }
.mail-copilot-head small, .mail-copilot-head strong { display: block; }
.mail-copilot-head small { color: var(--violet); font: 500 7px/1 var(--heading); letter-spacing: .14em; }
.mail-copilot-head strong { margin-top: 6px; font: 500 11px/1 var(--heading); }
.mail-copilot-body { flex: 1; padding-top: 23px; }
.mail-copilot-body h2 { margin: 13px 0 11px; font: 500 24px/1.12 var(--heading); letter-spacing: -.04em; }
.mail-copilot-body > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.65; }
.mail-signals { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.mail-signals span { padding: 6px 8px; border: 1px solid rgba(56, 232, 155, .22); color: rgba(126, 229, 184, .78); font-size: 8px; }
.mail-signals span.attention { border-color: rgba(167, 120, 255, .25); color: #c8aeff; }
.mail-recommendation { padding: 14px; border-left: 1px solid var(--violet); background: rgba(167, 120, 255, .045); }
.mail-recommendation small, .mail-recommendation strong { display: block; }
.mail-recommendation small { color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .16em; }
.mail-recommendation strong { margin-top: 9px; color: rgba(248, 250, 255, .75); font: 500 11px/1.5 var(--heading); }
#mail-draft { display: none; width: 100%; margin-top: 16px; padding: 13px; resize: vertical; border: 1px solid rgba(167, 120, 255, .22); outline: 0; background: rgba(2, 2, 4, .5); color: rgba(248, 250, 255, .78); font: 400 10px/1.55 var(--body); }
#mail-draft.visible { display: block; animation: view-in .35s ease both; }
.mail-copilot-actions { margin-top: 15px; }
.copilot-note { margin: 12px 0 0; color: var(--muted-2); font-size: 8px; text-align: right; }

/* Historique exportable */
.history-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.history-summary > div { min-height: 92px; padding: 20px; border-right: 1px solid var(--line); }
.history-summary > div:last-child { border-right: 0; }
.history-summary small, .history-summary strong, .history-summary span { display: block; }
.history-summary small { color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .15em; }
.history-summary strong { margin-top: 12px; font: 500 22px/1 var(--heading); }
.history-summary span { margin-top: 7px; color: var(--muted-2); font-size: 8px; }
.history-panel { overflow: hidden; }
.history-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 14px; align-items: center; min-height: 72px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.history-toolbar > label { display: grid; min-height: 38px; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; padding: 0 11px; border: 1px solid var(--line); background: rgba(2, 2, 4, .3); }
.history-toolbar label svg { width: 15px; fill: none; stroke: var(--muted-2); stroke-width: 1.4; }
.history-toolbar input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 9px; }
.history-filters { display: flex; }
.history-filters button { min-height: 34px; padding: 0 11px; border: 0; border-right: 1px solid var(--line-soft); background: transparent; color: var(--muted-2); font-size: 8px; cursor: pointer; }
.history-filters button.active { color: #d2bdff; background: rgba(167, 120, 255, .08); }
.export-action { border-color: rgba(167, 120, 255, .28); }
.export-action span { margin-right: 8px; color: var(--violet); }
.history-table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th { height: 44px; padding: 0 17px; color: var(--muted-2); font: 500 7px/1 var(--heading); letter-spacing: .14em; text-align: left; }
.history-table td { height: 70px; padding: 10px 17px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; }
.history-table td:first-child { width: 85px; }
.history-table time, .history-table td strong, .history-table td small { display: block; }
.history-table time, .history-table td strong { color: rgba(248, 250, 255, .74); font: 500 10px/1.25 var(--heading); }
.history-table td small { margin-top: 5px; color: var(--muted-2); font-size: 8px; }
.history-table td > button { border: 0; background: transparent; color: var(--violet); font-size: 8px; cursor: pointer; }
.history-verdict { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border: 1px solid var(--line); }
.history-verdict.safe { border-color: rgba(56, 232, 155, .22); color: #78ddb0; }
.history-verdict.danger { border-color: rgba(255, 49, 82, .28); color: #ff7e94; }
.history-verdict.review { border-color: rgba(167, 120, 255, .3); color: #c9afff; }
.history-table tr.hidden { display: none; }
.history-footer { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 8px; }

@media (max-width: 1120px) {
  .analysis-evidence-grid { grid-template-columns: 1fr; }
  .history-toolbar { grid-template-columns: 1fr auto; }
  .history-filters { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 830px) {
  .history-summary { grid-template-columns: 1fr 1fr; }
  .history-summary > div:nth-child(2) { border-right: 0; }
  .history-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 570px) {
  body::before { background-position: 58% center; }
  .analyzer-drop, .analysis-live { padding: 18px; }
  .analysis-stages { grid-template-columns: 1fr; }
  .analysis-stages > div { min-height: 42px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .analyzer-actions, .mail-copilot-actions { flex-direction: column; }
  .primary-action, .secondary-action { width: 100%; }
  .history-summary { grid-template-columns: 1fr; }
  .history-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .history-toolbar { grid-template-columns: 1fr; }
  .history-filters { grid-column: auto; grid-row: auto; overflow-x: auto; }
  .export-action { width: 100%; }
  .history-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

/* Fishi compact studio v3 — one calm assistant surface, not a dashboard inside
   the dashboard. The original Astra artwork remains untouched. */
.fishi-studio-grid { width: min(980px, 100%); grid-template-columns: 1fr; gap: 0; margin: 0 auto; }
.fishi-character-stage { min-height: 176px; flex-direction: row; justify-content: flex-start; padding: 14px 30px 15px; border-bottom-color: transparent; background: radial-gradient(circle at 13% 50%, rgba(167,120,255,.105), transparent 22%), linear-gradient(160deg,#07070a,#030305 72%); }
.fishi-character-stage:before { background-size: 46px 46px; mask-image: linear-gradient(90deg,#000,transparent 56%); }
.fishi-stage-halo { top: 50%; left: 101px; width: 158px; height: 158px; opacity: .72; transform: translate(-50%,-50%); }
.fishi-stage-halo:before { inset: 25px; }.fishi-stage-halo:after { inset: 51px; }
.fishi-mascot-premium { width: 154px; flex: 0 0 154px; animation-duration: 4.7s; }
.fishi-character-copy { max-width: 510px; margin: 0 0 0 15px; text-align: left; }.fishi-character-copy p { margin-bottom: 8px; }.fishi-character-copy h2 { font-size: 24px; }.fishi-character-copy span { max-width: 470px; margin-top: 8px; font-size: 9.5px; }
.fishi-stage-status { margin: 0 0 0 auto; padding-left: 20px; white-space: nowrap; }
.fishi-studio-chat { min-height: 470px; padding: 25px 31px 26px; border-top-color: rgba(167,120,255,.13); background: linear-gradient(180deg,rgba(7,7,11,.97),rgba(3,3,5,.99)); }
.fishi-studio-chat > header { padding-bottom: 14px; }.fishi-studio-chat > header h2 { font-size: 17px; }
.fishi-studio-conversation { min-height: 172px; max-height: 245px; padding: 18px 0 10px; }
.fishi-studio-bubble { max-width: 78%; padding: 11px 13px; line-height: 1.58; }.fishi-studio-bubble.assistant { padding-left: 0; border-color: transparent; background: transparent; color: #b9c0c9; }.fishi-studio-bubble.assistant:before { display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 0; border-radius: 50%; background: #a778ff; box-shadow: 0 0 8px rgba(167,120,255,.65); content: ""; }.fishi-studio-bubble.user { border-radius: 12px 12px 3px 12px; }
.fishi-studio-suggestions { margin: 2px 0 15px; }.fishi-studio-suggestions button { border-radius: 999px; background: transparent; }
.fishi-studio-form > div { border-radius: 15px; box-shadow: 0 12px 34px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.015); }.fishi-studio-form button { border-radius: 11px; }
.fishi-morning-grid { width: min(980px,100%); margin-right: auto; margin-left: auto; }
@keyframes fishi-premium-float { 0%,100% { transform: translate3d(0,3px,0) rotate(-.7deg); } 48% { transform: translate3d(0,-8px,0) rotate(.75deg); } 72% { transform: translate3d(1px,-4px,0) rotate(.15deg); } }

@media (max-width: 760px) {
  .fishi-character-stage { min-height: 300px; flex-direction: column; justify-content: center; padding: 16px 20px 22px; }
  .fishi-stage-halo { top: 78px; left: 50%; }
  .fishi-mascot-premium { width: 128px; flex-basis: 128px; }
  .fishi-character-copy { margin: -8px 0 0; text-align: center; }.fishi-character-copy span { max-width: 420px; }
  .fishi-stage-status { margin: 14px 0 0; padding: 0; }
  .fishi-studio-chat { min-height: 520px; padding: 20px 18px 22px; }
  .fishi-studio-bubble { max-width: 92%; }
}

/* Fishi in the control centre — a calm assistant rail with a full conversation
   available on demand. The Astra source artwork is never cropped or redrawn. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fishi-control-assistant {
  position: relative;
  display: flex;
  min-height: 735px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 8% 9%, rgba(167,120,255,.12), transparent 25%),
    linear-gradient(155deg, rgba(10,9,15,.98), rgba(3,3,5,.99) 62%);
}
.fishi-control-shell {
  width: min(468px, 100%);
  margin: 0 auto;
  transition: width .38s cubic-bezier(.16,1,.3,1);
}
.fishi-control-shell.is-expanded { width: min(860px, 100%); }
.fishi-control-assistant:before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 14% 8%, #000, transparent 42%);
  content: "";
  pointer-events: none;
}
.fishi-control-header {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 150px;
  grid-template-columns: 112px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.fishi-control-mascot {
  width: 112px;
  flex-basis: 112px;
  margin-left: -9px;
  animation-duration: 4.7s;
}
.fishi-control-mascot:after {
  position: absolute;
  z-index: -1;
  inset: 31%;
  border: 1px solid rgba(167,120,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(167,120,255,.12);
  content: "";
  animation: fishi-control-orbit 8s linear infinite;
}
.fishi-control-mascot > img { object-fit: contain; filter: contrast(1.035) drop-shadow(0 13px 21px rgba(0,0,0,.78)); }
.fishi-control-identity { min-width: 0; }
.fishi-control-identity > p {
  margin: 0;
  color: #aa8de4;
  font: 500 6.5px/1 var(--heading);
  letter-spacing: .15em;
  white-space: nowrap;
}
.fishi-control-identity h2 {
  margin: 9px 0 10px;
  font: 500 19px/1.06 var(--heading);
  letter-spacing: -.035em;
}
.fishi-control-identity > span {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted-2);
  font: 500 6.5px/1 var(--heading);
  letter-spacing: .1em;
}
.fishi-control-identity > span i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(56,232,155,.75);
  transition: background .25s ease, box-shadow .25s ease;
}
.fishi-control-identity > span b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.fishi-control-expand {
  align-self: start;
  width: 28px;
  height: 28px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.015);
  color: #a98ee0;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.fishi-control-expand:hover { border-color: rgba(167,120,255,.42); background: rgba(167,120,255,.08); transform: translate(1px,-1px); }

.fishi-control-answer {
  position: relative;
  z-index: 1;
  min-height: 132px;
  padding: 22px 3px 20px;
}
.fishi-control-answer:before {
  position: absolute;
  top: 27px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 9px rgba(167,120,255,.8);
  content: "";
}
.fishi-control-answer small {
  display: block;
  margin-left: 13px;
  color: var(--muted-2);
  font: 500 6.5px/1 var(--heading);
  letter-spacing: .16em;
}
.fishi-control-answer p {
  margin: 14px 0 0;
  color: rgba(248,250,255,.76);
  font-size: 11px;
  line-height: 1.67;
}
.fishi-control-answer .fishi-studio-conversation {
  min-height: 92px;
  max-height: 238px;
  padding: 13px 0 0;
}
.fishi-control-answer .fishi-studio-bubble { max-width: 94%; padding: 9px 11px; }
.fishi-control-answer .fishi-studio-bubble.assistant { padding-left: 0; border-color: transparent; background: transparent; }
.fishi-control-answer .fishi-studio-bubble p { margin: 0; }
.fishi-control-answer .fishi-studio-bubble.user { border-radius: 12px 12px 3px 12px; }
.fishi-control-assistant.is-expanded .fishi-control-answer .fishi-studio-conversation { min-height: 180px; max-height: 410px; }
.fishi-control-assistant.is-expanded { min-height: min(820px, calc(100vh - 115px)); }
.fishi-control-answer.is-thinking p { color: var(--muted); }

.fishi-control-signals {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.fishi-control-signals button {
  position: relative;
  min-width: 0;
  min-height: 82px;
  padding: 15px 7px 13px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.fishi-control-signals button:last-child { border-right: 0; }
.fishi-control-signals button:hover { background: rgba(167,120,255,.045); }
.fishi-control-signals .summary-dot { display: block; width: 4px; height: 4px; margin-bottom: 9px; border-radius: 50%; }
.fishi-control-signals .summary-dot.violet { background: var(--violet); box-shadow: 0 0 7px rgba(167,120,255,.7); }
.fishi-control-signals .summary-dot.red { background: var(--pink); box-shadow: 0 0 7px rgba(255,49,82,.7); }
.fishi-control-signals .summary-dot.green { background: var(--green); box-shadow: 0 0 7px rgba(56,232,155,.65); }
.fishi-control-signals b, .fishi-control-signals small { display: block; }
.fishi-control-signals b { color: #f4f5f8; font: 500 20px/1 var(--heading); }
.fishi-control-signals small { margin-top: 6px; overflow: hidden; color: var(--muted-2); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }

.fishi-control-suggestions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 14px;
}
.fishi-control-suggestions button {
  padding: 7px 9px;
  border: 1px solid rgba(167,120,255,.16);
  border-radius: 999px;
  background: transparent;
  color: #988ba7;
  font-size: 7.5px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.fishi-control-suggestions button:hover { border-color: rgba(167,120,255,.4); background: rgba(167,120,255,.04); color: #dfd4f6; }
.fishi-control-form { position: relative; z-index: 1; margin-top: auto; }
.fishi-control-form > div {
  display: grid;
  min-height: 48px;
  grid-template-columns: minmax(0,1fr) 34px;
  gap: 7px;
  align-items: center;
  padding: 6px 6px 6px 13px;
  border: 1px solid rgba(167,120,255,.25);
  border-radius: 14px;
  background: rgba(1,1,3,.76);
  box-shadow: 0 14px 32px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.018);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fishi-control-form > div:focus-within { border-color: rgba(167,120,255,.55); box-shadow: 0 14px 38px rgba(0,0,0,.28), 0 0 0 3px rgba(167,120,255,.045); }
.fishi-control-form input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 9.5px; }
.fishi-control-form input::placeholder { color: #555b65; }
.fishi-control-form button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(167,120,255,.37);
  border-radius: 10px;
  background: rgba(167,120,255,.13);
  color: #dbcaff;
  cursor: pointer;
}
.fishi-control-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
}
.fishi-control-footer > span { color: var(--muted-2); font-size: 6.5px; }
.fishi-control-footer button { padding: 0; border: 0; background: transparent; color: #a98ee0; font-size: 7px; cursor: pointer; }
.fishi-control-footer button b { margin-left: 4px; }

.fishi-control-assistant[data-state="searching"] .fishi-control-identity > span i { background: var(--violet); box-shadow: 0 0 10px rgba(167,120,255,.85); }
.fishi-control-assistant[data-state="alert"] .fishi-control-identity > span i { background: var(--pink); box-shadow: 0 0 10px rgba(255,49,82,.78); }
.fishi-control-assistant[data-state="ready"] .fishi-control-answer:before { background: var(--green); box-shadow: 0 0 9px rgba(56,232,155,.7); }

@keyframes fishi-control-orbit { to { transform: rotate(1turn); } }

@media (max-width: 1120px) {
  .fishi-control-assistant { grid-column: 1 / -1; min-height: 580px; }
  .fishi-control-header { grid-template-columns: 124px minmax(0,1fr) 32px; }
  .fishi-control-mascot { width: 124px; flex-basis: 124px; }
  .fishi-control-answer { min-height: 105px; }
}

@media (max-width: 570px) {
  .fishi-control-assistant { min-height: 650px; padding: 17px; }
  .fishi-control-header { min-height: 139px; grid-template-columns: 96px minmax(0,1fr) 27px; gap: 6px; }
  .fishi-control-mascot { width: 96px; flex-basis: 96px; margin-left: -7px; }
  .fishi-control-identity h2 { font-size: 17px; }
  .fishi-control-identity > p { font-size: 5.8px; letter-spacing: .12em; }
  .fishi-control-identity > span { font-size: 5.8px; }
  .fishi-control-expand { width: 27px; height: 27px; }
  .fishi-control-answer { min-height: 126px; }
  .fishi-control-signals button { min-height: 78px; }
  .fishi-control-suggestions button { flex: 1 1 calc(50% - 6px); }
  .fishi-control-suggestions button:last-child { flex-basis: 100%; }
}

/* Connected Fishi states. Data and source notes remain deliberately compact,
   but visible: a grounded answer must never look like an unsupported claim. */
.fishi-mascot-premium[data-state="offline"] {
  filter: grayscale(.42) brightness(.72) drop-shadow(0 0 14px rgba(255,49,82,.16));
  animation-duration: 9s;
}
.fishi-mascot-premium[data-state="offline"]:before {
  background: radial-gradient(circle,rgba(255,49,82,.12),transparent 70%);
}
.fishi-control-assistant[data-state="offline"] .fishi-control-identity > span i {
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255,49,82,.72);
}
.fishi-studio-bubble.pending { opacity: .68; }
.fishi-studio-bubble.pending p:after {
  display: inline-block;
  width: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  animation: fishi-ellipsis 1.15s steps(4,end) infinite;
  content: "…";
}
.fishi-studio-bubble.error { color: #e7a0aa; }
.fishi-answer-note {
  display: block;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 7px;
  line-height: 1.45;
}
.fishi-answer-sources {
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
}
.fishi-answer-sources summary {
  padding: 8px 0 3px;
  color: #aa91dc;
  font-size: 7.5px;
  cursor: pointer;
}
.fishi-answer-sources > div {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.035);
}
.fishi-answer-sources b { margin: 0; color: #c9ced5; font-size: 8px; }
.fishi-answer-sources span { color: var(--muted-2); font-size: 7px; line-height: 1.45; }
.fishi-action-proposals { display: grid; gap: 7px; margin-top: 5px; }
.fishi-action-proposals > button,
.fishi-action-proposals article > button {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(167,120,255,.25);
  border-radius: 7px;
  background: rgba(167,120,255,.07);
  color: #cbb5f4;
  font: inherit;
  cursor: pointer;
}
.fishi-action-proposals button:disabled { opacity: .5; cursor: wait; }
.fishi-action-proposals > strong { color: #d8cbed; font-size: 8px; }
.fishi-action-proposals article {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
}
.fishi-action-proposals article p,
.fishi-action-roadmap { margin: 0; color: var(--muted-2); font-size: 7px; line-height: 1.5; }
.fishi-action-proposals article small { color: #9fa8b2; font-size: 7px; }
.fishi-action-proposals details summary { color: #aa91dc; font-size: 7px; cursor: pointer; }
.fishi-action-proposals pre {
  max-height: 180px;
  margin: 5px 0 0;
  padding: 7px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: rgba(0,0,0,.2);
  color: #adb5bf;
  font-size: 6.5px;
}
.fishi-action-roadmap b { display: inline; color: #d4aa70; }
.fishi-action-verified { color: #83d8af !important; }
.fishi-action-safety { color: #93a0ad; font-size: 7px; }
[data-fishi-control]:disabled,
[data-fishi-studio]:disabled,
.fishi-control-form button:disabled,
.fishi-studio-form button:disabled { opacity: .42; cursor: wait; }
#ops-assistant-mode,#ops-data-scope { font-size: clamp(12px,1.25vw,20px); }
@keyframes fishi-ellipsis { from { width: 0; } to { width: 1.2em; } }

#analysis-progress-bar.analysis-progress-0 { width:0; }
#analysis-progress-bar.analysis-progress-8 { width:8%; }
#analysis-progress-bar.analysis-progress-20 { width:20%; }
#analysis-progress-bar.analysis-progress-24 { width:24%; }
#analysis-progress-bar.analysis-progress-52 { width:52%; }
#analysis-progress-bar.analysis-progress-72 { width:72%; }
#analysis-progress-bar.analysis-progress-88 { width:88%; }
#analysis-progress-bar.analysis-progress-100 { width:100%; }

/* Privacy controls keep the mailbox identity next to its actual preference. */
#mailbox-memory-controls label { display: flex; align-items: flex-start; gap: .65rem; margin: .8rem 0; overflow-wrap: anywhere; }
#mailbox-memory-controls input { flex: 0 0 auto; margin-top: .25rem; }
#privacy-data-export { display: inline-block; margin: .5rem 0 1rem; }
