:root { color-scheme:dark; --cr-bg:#081322; --cr-line:#263c53; --cr-text:#e5edf7; --cr-muted:#9ab0c9; --cr-blue:#8ac4ff; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; background:radial-gradient(ellipse at 60% 0%, #112b45, transparent 58%), var(--cr-bg); color:var(--cr-text); font:14px/1.5 Inter, system-ui, sans-serif; }
button, input { font:inherit; }
button, summary, a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
a { color:var(--cr-blue); }
:is(button, a, summary, input):focus-visible { outline:2px solid var(--cr-blue); outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.cr-shell { width:min(1600px, calc(100% - 64px)); margin:auto; padding:24px 0 0; }
.cr-top { display:flex; align-items:center; gap:16px; min-height:44px; }
.cr-top-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
.cr-top > .gls-account { margin-left:4px; }
.cr-conn { display:inline-flex; align-items:center; gap:7px; color:var(--cr-muted); font-size:12px; }
.cr-conn::before { content:""; width:6px; height:6px; border-radius:50%; background:#b6c4d3; }
.cr-conn.ok::before { background:#83d8ae; box-shadow:0 0 10px #83d8ae33; }
.cr-conn.off { color:#ffc090; }
.cr-hero { padding:26px 0 24px; }
.cr-eyebrow { margin:0 0 5px; color:var(--cr-blue); font-size:11px; letter-spacing:.15em; font-weight:700; }
.cr-hero h1 { margin:0; font-size:32px; line-height:1.25; letter-spacing:-.04em; font-weight:650; }
.cr-sub { margin:6px 0 0; color:var(--cr-muted); font-size:13px; }
.cr-inbox { display:grid; grid-template-columns:220px 340px minmax(0,1fr); min-height:540px; height:calc(100dvh - 256px); max-height:1000px; border:1px solid var(--cr-line); border-radius:16px; background:#0d1c2ef2; box-shadow:0 16px 60px #0000001c; overflow:hidden; }
.cr-domains { min-width:0; padding:24px 12px; display:flex; flex-direction:column; background:#0b192af0; border-right:1px solid var(--cr-line); }
.cr-section-label { margin:0; color:#8da8c4; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.cr-domains > .cr-section-label { margin:0 12px 15px; }
.cr-domain { display:flex; width:100%; align-items:center; gap:10px; min-height:46px; padding:10px 12px; margin-bottom:4px; border:1px solid transparent; border-radius:8px; background:transparent; color:#a9bdd3; text-align:left; font-size:12px; font-weight:550; }
.cr-domain img { width:18px; height:18px; flex:none; filter:invert(.72) sepia(.2) saturate(1.5) hue-rotate(170deg); opacity:.8; }
.cr-domain span { flex:1; }
.cr-domain:hover { background:#14283d; color:#edf4ff; }
.cr-domain.on { background:#1c3650; color:#eaf3ff; border-color:#385874; }
.cr-domain.on img { filter:invert(.85); opacity:1; }
.cr-domain b { min-width:20px; padding:1px 5px; border-radius:5px; background:#244968; color:#cce6ff; font-size:11px; text-align:center; }
.cr-folders { margin-top:20px; padding-top:16px; border-top:1px solid var(--cr-line); }
.cr-domain-help { margin:auto 12px 0; padding-top:28px; font-size:11px; color:#8098b2; }
.cr-list-column { display:flex; flex-direction:column; min-height:0; min-width:0; border-right:1px solid var(--cr-line); }
.cr-list-head { padding:22px 18px 15px; border-bottom:1px solid var(--cr-line); }
.cr-list-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:15px; }
.cr-list-heading h2 { margin:0; font-size:15px; font-weight:650; }
.cr-list-heading > span { flex:none; font-size:11px; color:#8aa4be; }
.cr-search { display:block; }
input { width:100%; min-width:0; border:1px solid #304961; border-radius:8px; background:#091727; color:var(--cr-text); padding:10px 12px; font-size:12px; }
input::placeholder { color:#869cb3; opacity:1; }
.cr-read-filters { display:flex; gap:6px; margin-top:12px; }
.cr-read-filters button { min-height:32px; padding:5px 12px; border:1px solid transparent; border-radius:6px; background:transparent; color:#a2b6cc; font-size:12px; }
.cr-read-filters button.on { background:#1e354d; color:#d8eaff; border-color:#344f6a; }
.cr-list { padding:6px; overflow-y:auto; flex:1; min-height:0; scrollbar-color:#385773 #0b192a; scrollbar-width:thin; }
.cr-item { position:relative; display:grid; gap:5px; width:100%; padding:17px 14px; border:1px solid transparent; border-bottom-color:#21354a; border-radius:0; background:transparent; color:#b6c7da; text-align:left; }
.cr-item:hover { background:#12263b; }
.cr-item.on { background:#17324c; border-color:#3b5e7e; border-radius:9px; }
.cr-item.fresh::before { position:absolute; content:""; width:4px; height:4px; top:24px; left:4px; border-radius:50%; background:var(--cr-blue); }
.cr-item-top { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.cr-item-top strong { font-size:13px; font-weight:550; color:#dce7f3; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.cr-item.fresh .cr-item-top strong { color:#fff; font-weight:700; }
.cr-item-top time { flex:none; color:#8ba2bb; font-size:11px; }
.cr-item-form { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#9fc6ec; font-size:12px; }
.cr-item-msg { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.6; font-size:12px; color:#9dafc3; overflow-wrap:anywhere; }
.cr-item-bottom { display:flex; justify-content:space-between; gap:8px; margin-top:5px; color:#859bb3; font-size:11px; }
.cr-unread-text { color:#a7d3ff; }
.cr-load-more { margin:10px; }
.cr-list-column > .cr-status:empty { display:none; }
.cr-list-column > .cr-status { padding:8px 14px; }
.cr-empty { margin:30px 14px; text-align:center; color:#a9bdd2; font-size:13px; }
.cr-empty strong { color:#dce8f5; font-weight:550; }
.cr-empty p { font-size:12px; color:#8ca4bd; }
.cr-detail { min-width:0; overflow-y:auto; padding:28px clamp(24px, 3vw, 48px); scrollbar-color:#385773 #0b192a; scrollbar-width:thin; }
.cr-detail-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; min-height:260px; text-align:center; }
.cr-detail-empty > img { width:42px; height:42px; filter:invert(.6); opacity:.55; margin-bottom:20px; }
.cr-detail-empty h2 { font-size:19px; font-weight:550; letter-spacing:-.02em; color:#cedceb; margin:0; }
.cr-detail-empty p { font-size:13px; color:#869fb8; max-width:290px; margin:8px 0 0; }
.cr-d-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.cr-client-name { margin:0 0 6px; font-size:clamp(22px,2vw,30px); line-height:1.25; font-weight:650; letter-spacing:-.035em; overflow-wrap:anywhere; }
.cr-client-name:focus { outline:none; }
.cr-detail-form { margin:0 0 6px; color:#b8cbe0; font-size:13px; }
.cr-detail-date { font-size:11px; color:#8da5bd; }
.cr-contact-details { display:flex; flex-wrap:wrap; gap:6px 18px; margin:22px 0 12px; }
.cr-contact-details a { color:#dce9f8; font-size:13px; text-decoration:none; overflow-wrap:anywhere; }
.cr-contact { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 26px; }
.cr-message { margin-top:24px; padding-top:22px; border-top:1px solid var(--cr-line); }
.cr-message h3, .cr-answers h3 { margin:0 0 14px; color:#91acc6; font-size:11px; text-transform:uppercase; letter-spacing:.09em; font-weight:650; }
.cr-message p { margin:0; font-size:14px; color:#e0eaf7; line-height:1.85; overflow-wrap:anywhere; }
.cr-answers { padding-top:28px; }
.cr-answers dl { margin:0; }
.cr-answers dl > div { display:grid; grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr); gap:20px; padding:12px 0; border-bottom:1px solid #21354a; font-size:13px; }
.cr-answers dt { color:#97afc7; }
.cr-answers dd { margin:0; color:#e1ecf9; overflow-wrap:anywhere; }
.cr-origin { margin:28px 0 0; font-size:11px; color:#829bb4; overflow-wrap:anywhere; }
.cr-existing-note { margin-top:24px; padding:12px; border:1px solid var(--cr-line); border-radius:8px; color:var(--cr-muted); font-size:12px; }
.cr-existing-note summary { cursor:pointer; }
.cr-existing-note p { white-space:normal; overflow-wrap:anywhere; }
.cr-more { position:relative; }
.cr-more > summary { list-style:none; min-width:36px; min-height:36px; display:grid; place-items:center; border:1px solid #304961; border-radius:8px; cursor:pointer; font-size:20px; }
.cr-more > summary::-webkit-details-marker { display:none; }
.cr-menu { position:absolute; top:calc(100% + 6px); right:0; z-index:5; min-width:180px; padding:6px; border:1px solid #35526e; border-radius:10px; background:#13273c; box-shadow:0 10px 30px #0005; }
.cr-menu button { display:block; width:100%; min-height:40px; border:0; border-radius:6px; padding:8px 10px; background:none; color:#dbe8f8; text-align:left; font-size:12px; }
.cr-menu button:hover { background:#25435e; }
.cr-btn { display:inline-flex; align-items:center; justify-content:center; min-height:38px; gap:6px; padding:8px 14px; border:1px solid #446886; border-radius:8px; background:#1d3b56; color:#c3e0ff; font-size:12px; font-weight:600; text-decoration:none; cursor:pointer; }
.cr-btn:hover { background:#234762; border-color:#7dbdff; }
.cr-btn.ghost { background:transparent; }
.cr-btn.sm { min-height:36px; }
.cr-status { margin:10px 0 0; font-size:12px; color:#f1bf9a; }
.cr-mobile-back { display:none; }
.cr-dialog { width:min(520px,calc(100% - 28px)); padding:24px; border:1px solid #35526e; border-radius:14px; background:#101f32; color:var(--cr-text); box-shadow:0 20px 70px #0008; }
.cr-dialog::backdrop { background:#050d18b8; backdrop-filter:blur(5px); }
.cr-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cr-dialog-head h2 { font-size:18px; margin:0; }
.cr-x { border:0; background:none; color:#c8d9ec; font-size:24px; min-width:40px; min-height:40px; }
.cr-muted { font-size:13px; color:#9eb3ca; }
.small { font-size:12px; }
.cr-dialog-actions { display:flex; justify-content:flex-end; margin-top:18px; }
.cr-key { padding:12px; border:1px solid #466c91; border-radius:8px; }
.cr-key p { font-size:12px; color:#c9def4; }
.cr-key-row { display:flex; gap:8px; }
.cr-key-row input { min-width:0; }
@media(min-width:1700px) { .cr-inbox { grid-template-columns:235px 370px minmax(0,1fr); } }
@media(max-width:1180px) {
  .cr-shell { width:calc(100% - 32px); }
  .cr-inbox { grid-template-columns:190px 290px minmax(0,1fr); }
  .cr-domain { padding:10px 8px; gap:7px; }
  .cr-detail { padding:24px; }
}
@media(max-width:960px) {
  .cr-shell { width:calc(100% - 24px); padding-top:12px; }
  .cr-hero { padding:24px 2px; }
  .cr-top { flex-wrap:wrap; gap:8px; }
  .cr-top-actions { order:3; flex-basis:100%; justify-content:flex-end; }
  .cr-top > .gls-account { order:2; margin-left:auto; }
  .cr-inbox { grid-template-columns:minmax(0,1fr); height:calc(100dvh - 260px); min-height:470px; }
  .cr-inbox > :is(.cr-domains,.cr-list-column,.cr-detail) { display:none; }
  .cr-inbox[data-view="domains"] > .cr-domains { display:flex; }
  .cr-inbox[data-view="list"] > .cr-list-column { display:flex; }
  .cr-inbox[data-view="detail"] > .cr-detail { display:block; }
  .cr-domains { border-right:0; padding:24px 16px; overflow-y:auto; }
  .cr-domain { min-height:50px; padding:12px; font-size:14px; }
  .cr-mobile-back { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; margin-bottom:10px; border:0; background:none; color:#b3d8ff; font-size:12px; }
  .cr-list-column { border:0; }
  .cr-list-head { padding:10px 18px 14px; }
  .cr-detail { padding:12px 20px 28px; }
  .cr-read-filters button { min-height:40px; }
  .cr-answers dl > div { gap:12px; }
}
@media(prefers-reduced-motion:no-preference) {
  .cr-item,.cr-domain,.cr-btn { transition:background .15s ease, border-color .15s ease; }
}
