/* Orion UX V9 · Premium surfaces for planning, accounts and settings
   Visual-only layer. Keeps domain logic, financial calculations and persistence unchanged. */
:root{
  --orion-v9-card:linear-gradient(145deg,rgba(17,27,41,.94),rgba(10,17,27,.97));
  --orion-v9-card-soft:rgba(15,24,36,.72);
  --orion-v9-line:rgba(143,174,219,.16);
  --orion-v9-line-hover:rgba(131,176,255,.38);
  --orion-v9-glow:0 12px 28px rgba(0,0,0,.16);
}

/* Planning: turn plain rows into deliberate, legible navigation surfaces. */
.planning-screen-v0{background:transparent}
.planning-root-intro-v0{
  max-width:720px;
  margin:2px 0 18px;
  padding:14px 16px;
  border:1px solid var(--orion-v9-line);
  border-radius:16px;
  background:linear-gradient(110deg,rgba(74,119,187,.10),rgba(255,255,255,.018));
  color:#b5c2d5;
}
.planning-domain-list-v0{
  gap:10px;
  margin-top:16px;
}
.planning-domain-row-v0,
.planning-entity-row-v0,
.planning-candidate-row-v0{
  min-height:84px;
  padding:16px 17px;
  border:1px solid var(--orion-v9-line);
  border-radius:18px;
  background:var(--orion-v9-card);
  box-shadow:var(--orion-v9-glow);
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.planning-domain-row-v0:last-child,
.planning-entity-row-v0:last-child,
.planning-candidate-row-v0:last-child{border-bottom:1px solid var(--orion-v9-line)}
.planning-domain-copy-v0 strong,
.planning-entity-copy-v0 strong,
.planning-candidate-row-v0 strong{font-size:15px;letter-spacing:-.01em}
.planning-domain-copy-v0 small,
.planning-entity-copy-v0 small,
.planning-candidate-row-v0 small{color:#9eacc0}
.planning-domain-side-v0{gap:12px}
.planning-domain-side-v0 strong{font-size:14px;font-variant-numeric:tabular-nums;color:#dce7f8}
.planning-domain-side-v0>span,
.planning-entity-chevron-v0{color:#83b0ff;font-size:25px}
.planning-empty-v0,
.planning-empty-v0:only-child{
  padding:22px;
  border:1px dashed rgba(143,174,219,.25);
  border-radius:18px;
  background:rgba(255,255,255,.018);
}
.planning-detail-hero-v0{
  padding:20px;
  border:1px solid var(--orion-v9-line);
  border-radius:22px;
  background:var(--orion-v9-card);
  box-shadow:var(--orion-v9-glow);
}
.planning-detail-list-v0,
.planning-form-v0,
.planning-payment-form-v0{
  padding:18px;
  border:1px solid var(--orion-v9-line);
  border-radius:20px;
  background:var(--orion-v9-card);
}
.planning-field-control-v0{
  min-height:50px;
  border-color:rgba(143,174,219,.20);
  border-radius:13px;
  background:rgba(4,9,16,.62);
}
.planning-primary-action-v0,
.planning-secondary-action-v0,
.planning-danger-action-v0{
  min-height:49px;
  border-radius:14px;
}

/* Accounts: make each institution and card group feel like a coherent module. */
.accounts-screen-v0,.account-internal-screen-v0{background:transparent}
.accounts-account-section-v1,
.accounts-card-section-v1{
  margin-top:12px;
  padding:17px;
  border:1px solid var(--orion-v9-line);
  border-radius:21px;
  background:var(--orion-v9-card);
  box-shadow:var(--orion-v9-glow);
}
.accounts-section-title-v1{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.accounts-section-title-v1 h2{
  margin:0;
  font-size:17px;
  font-weight:750;
  letter-spacing:-.025em;
}
.accounts-inline-primary-v0{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:0 13px;
  border:1px solid rgba(131,176,255,.30);
  border-radius:12px;
  background:rgba(74,119,187,.12);
  color:#b9d2ff;
  font-weight:700;
}
.accounts-list-v0{gap:8px;margin-top:12px}
.account-row-v0{
  min-height:76px;
  padding:12px;
  grid-template-columns:42px minmax(0,1fr) minmax(88px,auto) auto;
  border:1px solid rgba(143,174,219,.12);
  border-radius:15px;
  background:rgba(4,10,18,.42);
  transition:border-color .18s ease,background .18s ease;
}
.account-row-v0:last-child{border-bottom:1px solid rgba(143,174,219,.12)}
.account-logo-v0{border:1px solid rgba(143,174,219,.12);background:#111d2c}
.account-row-balance-v0{font-variant-numeric:tabular-nums;color:#e4edfb}
.accounts-empty-compact-v1{
  margin-top:12px;
  padding:18px;
  border:1px dashed rgba(143,174,219,.24);
  border-radius:15px;
  color:#a5b3c7;
  background:rgba(255,255,255,.015);
}
.account-detail-hero-v0{
  padding:20px;
  border:1px solid var(--orion-v9-line);
  border-radius:22px;
  background:var(--orion-v9-card);
  box-shadow:var(--orion-v9-glow);
}
.account-detail-list-v0,
.account-form-v0{
  padding:17px;
  border:1px solid var(--orion-v9-line);
  border-radius:20px;
  background:var(--orion-v9-card);
}
.account-field-control-v0{
  min-height:50px;
  border-color:rgba(143,174,219,.20);
  border-radius:13px;
  background:rgba(4,9,16,.62);
}
.account-primary-action-v0,
.account-secondary-action-v0,
.account-danger-action-v0{min-height:49px;border-radius:14px}

/* Settings: calm grouped navigation, with destructive actions visually separated. */
.settings-screen-v0{gap:14px}
.settings-profile-summary-v0{
  padding:18px;
  border:1px solid var(--orion-v9-line);
  border-radius:20px;
  background:linear-gradient(125deg,rgba(74,119,187,.13),rgba(15,24,36,.72));
}
.settings-profile-summary-v0 strong{letter-spacing:-.035em}
.settings-list-v0,.settings-data-action-host-v0,.settings-info-list-v0{
  overflow:hidden;
  border:1px solid var(--orion-v9-line);
  border-radius:19px;
  background:var(--orion-v9-card);
}
.settings-row-v0,.settings-action-v0{
  min-height:72px;
  padding:15px 16px;
  border-bottom-color:rgba(143,174,219,.12);
  transition:background .18s ease;
}
.settings-row-v0:last-child,.settings-action-v0:last-child{border-bottom:0}
.settings-row-copy-v0 strong{font-size:15px;letter-spacing:-.01em}
.settings-row-copy-v0 small{color:#9eacc0}
.settings-row-value-v0{color:#c4d1e4}
.settings-danger-zone-v0{
  padding:5px 14px 14px;
  border:1px solid rgba(255,123,123,.19);
  border-radius:19px;
  background:linear-gradient(145deg,rgba(75,26,31,.16),rgba(15,15,21,.55));
}
.settings-field-control-v0{
  min-height:50px;
  border:1px solid rgba(143,174,219,.20);
  border-radius:13px;
  background:rgba(4,9,16,.62);
}
.settings-primary-action-v0,.settings-secondary-action-v0{min-height:48px;border-radius:14px}

/* Consistent interaction feedback and reduced-motion support. */
@media(hover:hover){
  .planning-domain-row-v0:hover,.planning-entity-row-v0:hover,.planning-candidate-row-v0:hover{
    border-color:var(--orion-v9-line-hover);
    background:linear-gradient(145deg,rgba(21,36,56,.98),rgba(10,17,27,.98));
    transform:translateY(-1px);
  }
  .account-row-v0:hover{border-color:var(--orion-v9-line-hover);background:rgba(27,43,64,.54)}
  .settings-row-v0:hover,.settings-action-v0:hover{background:rgba(112,163,255,.055)}
  .accounts-inline-primary-v0:hover{background:rgba(74,119,187,.20)}
}
@media(min-width:760px){
  .planning-screen-v0,.accounts-screen-v0{padding-top:26px;padding-bottom:136px}
  .planning-domain-list-v0{grid-template-columns:repeat(2,minmax(0,1fr))}
  .planning-domain-row-v0{min-height:112px}
  .accounts-account-section-v1,.accounts-card-section-v1{padding:21px}
  .accounts-list-v0{grid-template-columns:repeat(2,minmax(0,1fr))}
  .account-row-v0{min-width:0}
  .settings-screen-v0{padding-top:26px;padding-bottom:136px}
}
@media(max-width:420px){
  .accounts-account-section-v1,.accounts-card-section-v1{padding:13px;border-radius:18px}
  .account-row-v0{grid-template-columns:36px minmax(0,1fr) auto;gap:9px;padding:11px}
  .account-logo-v0{width:34px;height:34px}
  .account-row-balance-v0{grid-column:2;grid-row:2;text-align:left;font-size:13px}
  .account-row-chevron-v0{grid-column:3;grid-row:1/3}
  .planning-domain-row-v0,.planning-entity-row-v0,.planning-candidate-row-v0{padding:14px;border-radius:16px}
}
@media(prefers-reduced-motion:reduce){
  .planning-domain-row-v0,.planning-entity-row-v0,.planning-candidate-row-v0,.account-row-v0,.settings-row-v0,.settings-action-v0{transition:none}
}

/* Form and action finishing: clear primary action, calm secondary actions. */
.planning-form-v0,.planning-payment-form-v0,.account-form-v0{
  width:100%;
  max-width:760px;
  margin-inline:auto;
  gap:17px;
  box-shadow:var(--orion-v9-glow),inset 0 1px rgba(255,255,255,.025);
}
.planning-field-v0,.account-field-v0{gap:8px}
.planning-field-label-v0,.account-field-label-v0{
  color:#aebdd1;
  font-size:11px;
  font-weight:750;
  letter-spacing:.035em;
}
.planning-field-control-v0,.account-field-control-v0,.settings-field-control-v0{
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.planning-field-control-v0:focus-visible,.account-field-control-v0:focus-visible,.settings-field-control-v0:focus-visible{
  border-color:rgba(131,176,255,.72);
  box-shadow:0 0 0 3px rgba(112,163,255,.11);
  outline:none;
}
.planning-primary-action-v0,.account-primary-action-v0,.settings-primary-action-v0{
  border:1px solid rgba(151,190,255,.58);
  background:linear-gradient(180deg,#9ac0ff 0%,#6f9eea 100%);
  color:#07111e;
  box-shadow:0 8px 20px rgba(61,117,207,.16),inset 0 1px rgba(255,255,255,.42);
  font-weight:780;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.planning-secondary-action-v0,.account-secondary-action-v0,.settings-secondary-action-v0{
  border:1px solid rgba(143,174,219,.22);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
  color:#dce6f5;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.planning-danger-action-v0,.planning-danger-confirm-v0,.account-danger-action-v0,.account-danger-confirm-v0,
.settings-primary-action-v0.danger{
  border:1px solid rgba(255,123,123,.28);
  background:linear-gradient(180deg,rgba(92,35,42,.34),rgba(47,20,26,.48));
  color:#ffc2c0;
}
.planning-detail-row-v0,.account-detail-row-v0{
  border-bottom-color:rgba(143,174,219,.13);
}
.planning-static-field-v0,.account-static-field-v0{
  border-bottom-color:rgba(143,174,219,.13);
}
.settings-row-v0.danger .settings-row-copy-v0 strong,
.settings-danger-zone-v0 .settings-row-copy-v0 strong{color:#ffaaa6}
@media(hover:hover){
  .planning-primary-action-v0:hover,.account-primary-action-v0:hover,.settings-primary-action-v0:hover{
    filter:brightness(1.045);
    box-shadow:0 10px 24px rgba(61,117,207,.22),inset 0 1px rgba(255,255,255,.48);
  }
  .planning-secondary-action-v0:hover,.account-secondary-action-v0:hover,.settings-secondary-action-v0:hover{
    border-color:rgba(131,176,255,.34);
    background:rgba(112,163,255,.07);
  }
}
.planning-primary-action-v0:active,.account-primary-action-v0:active,.settings-primary-action-v0:active,
.planning-secondary-action-v0:active,.account-secondary-action-v0:active,.settings-secondary-action-v0:active{
  transform:scale(.99);
}
@media(min-width:760px){
  .planning-form-v0,.planning-payment-form-v0,.account-form-v0{padding:24px;border-radius:24px}
  .planning-detail-screen-v0,.account-detail-screen-v0{max-width:820px;margin-inline:auto}
  .planning-action-stack-v0,.account-action-stack-v0{grid-template-columns:repeat(2,minmax(0,1fr))}
  .planning-danger-zone-v0,.account-danger-zone-v0{max-width:820px;margin-inline:auto}
}
