@supports (color: color-mix(in srgb, red 50%, blue)) {
/* Sunyar visual candidate, based on release 040cd81d / 2b08ce4f.
   Consume the existing approved tokens; never reset theme or permission state. */
body {
  --sy-canvas: var(--frame-bg, var(--bg, #f7f7f4));
  --sy-panel: var(--frame-surface, var(--surface, #fff));
  --sy-text: var(--frame-ink, var(--ink, #222321));
  --sy-secondary: var(--frame-muted, var(--muted, #6d7069));
  --sy-stroke: var(--frame-line, var(--line, #e7e7e0));
  --sy-accent: var(--frame-gold, var(--gold, #b58c32));
  --sy-accent-surface: var(--frame-soft, var(--soft, #f5eedb));
  --sy-glow: color-mix(in srgb, var(--sy-accent) 8%, transparent);
  --sy-gold-shadow: color-mix(in srgb, var(--sy-accent) 12%, transparent);
}
body[data-page="login"], body[data-page="workspace"],
body:has(> .global-navigation) {
  background: radial-gradient(ellipse at 10% 0%, var(--sy-glow), transparent 48%),
    radial-gradient(ellipse at 88% 100%, var(--sy-glow), transparent 52%), var(--sy-canvas);
}
.shell-workspace > .workspace-main, .accounting-page {
  background: radial-gradient(ellipse at 5% 0%, var(--sy-glow), transparent 48%),
    radial-gradient(ellipse at 90% 96%, var(--sy-glow), transparent 53%), var(--sy-canvas);
}
.shell-workspace .sidebar, .global-navigation { background: var(--sy-panel); }
.shell-workspace .workspace-selector, .global-navigation .global-selector {
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sy-glow), transparent 75%), var(--sy-panel);
}
.shell-workspace .shell-nav a, .global-navigation nav a {
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.shell-workspace .shell-nav a:hover, .global-navigation nav a:hover {
  background: var(--sy-accent-surface);
  color: var(--sy-text);
}
/* Existing [hidden], [disabled], busy, readOnly, font and iframe gates remain authoritative. */
@media (prefers-reduced-motion: reduce) {
  .shell-workspace .shell-nav a, .global-navigation nav a { transition: none; }
}


/* Workspace, login and profile: existing markup and existing clients. */
.shell-home .welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 5px 22px;
  text-align: right;
  padding: 28px 32px;
  margin: 24px 0 8px;
  min-height: 215px;
  border: 1px solid var(--sy-stroke);
  border-radius: 22px;
  background: radial-gradient(ellipse at 12% 65%, var(--sy-gold-shadow), transparent 55%), var(--sy-panel);
  overflow: hidden;
}
.shell-home .welcome > .mini-label { grid-column: 1; grid-row: 1; }
.shell-home .welcome > h1 { grid-column: 1; grid-row: 2; font-size: 30px; line-height: 1.7; }
.shell-home .welcome > p { grid-column: 1; grid-row: 3; font-size: 12px; }
.shell-home .welcome-symbol {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: relative;
  margin: 0;
  width: 220px;
  height: 160px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.shell-home .welcome-symbol::before {
  content: "";
  position: absolute;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--sy-accent-surface), var(--sy-accent));
  box-shadow: 0 18px 40px var(--sy-gold-shadow);
  z-index: -1;
}
.shell-home .welcome-symbol::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 91px;
  border: 1px solid color-mix(in srgb, var(--sy-accent) 32%, var(--sy-stroke));
  border-radius: 50%;
  transform: rotate(-25deg);
  z-index: -1;
}
.shell-home .welcome-symbol .wing-logo { width: 148px; }
.shell-cards { gap: 18px; margin: 22px 0 32px; }
.shell-cards > a {
  border-radius: 18px;
  padding: 25px;
  background: linear-gradient(150deg, var(--sy-glow), transparent 50%), var(--sy-panel);
  box-shadow: 0 7px 24px color-mix(in srgb, var(--sy-text) 3%, transparent);
  transition: border-color .18s, box-shadow .18s;
}
.shell-cards > a:hover { box-shadow: 0 9px 30px var(--sy-gold-shadow); }
.shell-cards > a h2 { margin-top: 22px; }
.shell-cards > a b { color: var(--sy-accent); }
.login-layout .brand-side {
  background: radial-gradient(ellipse at 20% 70%, var(--sy-gold-shadow), transparent 62%), var(--sy-canvas);
}
.login-layout .orbit-ring {
  border-color: color-mix(in srgb, var(--sy-accent) 25%, var(--sy-stroke));
}
.login-layout .float-card {
  border-radius: 14px;
  box-shadow: 0 8px 28px var(--sy-gold-shadow);
}
.shell-profile-card {
  border-radius: 18px;
  background: linear-gradient(140deg, var(--sy-glow), transparent 55%), var(--sy-panel);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--sy-text) 3%, transparent);
}
.shell-profile-seal {
  background: var(--sy-accent-surface);
  color: var(--sy-accent);
  border-color: color-mix(in srgb, var(--sy-accent) 25%, var(--sy-stroke));
}
@media (max-width: 1050px) {
  .shell-home .welcome { grid-template-columns: minmax(0, 1fr) 160px; gap: 5px 14px; }
  .shell-home .welcome-symbol { width: 160px; }
  .shell-home .welcome-symbol::after { width: 165px; }
  .shell-home .welcome > h1 { font-size: 26px; }
}
@media (max-width: 760px) {
  .shell-home .welcome { display: flex; flex-direction: column; align-items: flex-start; padding: 25px 20px; }
  .shell-home .welcome-symbol { align-self: center; order: 4; height: 135px; }
  .shell-home .welcome > h1 { font-size: 25px; }
  .shell-home .welcome > p { font-size: 11px; }
  .shell-cards > a { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .shell-cards > a { transition: none; }
}


/* Presentation only. Keep financial status, grid precision and form names intact. */
.accounting-page > header, body.users-page > main > header,
body:has(form#password) > main > header {
  border: 1px solid var(--sy-stroke);
  border-radius: 18px;
  padding: 25px 27px;
  background: radial-gradient(ellipse at 5% 30%, var(--sy-glow), transparent 58%), var(--sy-panel);
}
.accounting-page .ledger, .users-layout .ledger,
body.users-page fieldset, body:has(form#password) fieldset {
  border-radius: 18px;
  background: var(--sy-panel);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--sy-text) 3%, transparent);
}
.accounting-page .ledger-heading { padding-top: 24px; padding-bottom: 21px; }
.accounting-page .toolbar, .accounting-page .view-bar {
  background: color-mix(in srgb, var(--sy-canvas) 60%, var(--sy-panel));
  border-color: var(--sy-stroke);
}
.accounting-page #grid { background: var(--sy-panel); }
.accounting-page #grid th {
  background: color-mix(in srgb, var(--sy-canvas) 70%, var(--sy-panel));
  color: var(--sy-secondary);
}
.accounting-page #grid tbody tr:hover { background: var(--sy-glow); }
.accounting-page .edit-banner { border-color: var(--sy-stroke); border-radius: 11px; }
body.users-page .role-cards article {
  border-radius: 15px;
  background: linear-gradient(140deg, var(--sy-glow), transparent 60%), var(--sy-panel);
}
body.users-page .user-card { border-radius: 12px; }
body.users-page .user-card[aria-pressed=true] {
  background: var(--sy-accent-surface);
  border-color: var(--sy-accent);
}
.rates-area .rates-card {
  border-radius: 18px;
  background: radial-gradient(ellipse at 0 0, var(--sy-glow), transparent 60%), var(--sy-panel);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--sy-text) 3%, transparent);
}
.rates-area .rates-chip {
  background: var(--sy-accent-surface);
  border-color: color-mix(in srgb, var(--sy-accent) 20%, var(--sy-stroke));
}
.rates-area .rates-result { background: var(--sy-accent-surface); border-radius: 12px; }
.rates-area .rates-heading { align-items: flex-start; }
@media (max-width: 760px) {
  .accounting-page > header, body.users-page > main > header,
  body:has(form#password) > main > header { padding: 21px 19px; }
}


/* This document is the retained same-origin iframe. No chat/support client changes. */
html[data-sunyar-embedded="chat"] #page-chat {
  background: radial-gradient(ellipse at 50% 25%, var(--sy-glow), transparent 60%), var(--sy-canvas);
}
html[data-sunyar-embedded="chat"] #welcome {
  position: relative;
  background: radial-gradient(ellipse at 50% 60%, var(--sy-glow), transparent 68%);
}
html[data-sunyar-embedded="chat"] .quick-grid > button,
html[data-sunyar-embedded="chat"] .prompt-pills button {
  border-radius: 14px;
  border-color: var(--sy-stroke);
  background: var(--sy-panel);
}
html[data-sunyar-embedded="chat"] #chat-form.composer {
  border-radius: 17px;
  background: var(--sy-panel);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--sy-text) 5%, transparent);
}
html[data-sunyar-embedded="chat"] #chat-form.composer:focus-within { border-color: var(--sy-accent); }
html[data-sunyar-embedded="chat"] .bubble { border-radius: 17px; }
html[data-sunyar-embedded="support"] #page-support {
  background: radial-gradient(ellipse at 5% 0%, var(--sy-glow), transparent 52%), var(--sy-canvas);
}
html[data-sunyar-embedded="support"] .support-guide {
  background: radial-gradient(ellipse at 5% 15%, var(--sy-gold-shadow), transparent 65%), var(--sy-panel);
  border-radius: 20px;
}
html[data-sunyar-embedded="support"] .white-panel,
html[data-sunyar-embedded="support"] .support-ticket {
  border-radius: 18px;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--sy-text) 3%, transparent);
}

}
