:root{
  --omni-v70-navy:#071a38;
  --omni-v70-blue:#174f88;
  --omni-v70-gold:#d3a126;
  --omni-v70-gold-light:#f5cf68;
  --omni-v70-cream:#eadcba;
  --omni-v70-ice:#dceaf3;
  --omni-v70-paper:#f5f0e4;
  --omni-v70-line:rgba(174,119,15,.34);
  --omni-v70-shadow:0 27px 68px rgba(5,30,65,.17),0 8px 28px rgba(178,125,16,.09);
}

body{
  background:
    radial-gradient(circle at 85% 3%,rgba(220,163,31,.31),transparent 22%),
    radial-gradient(circle at 14% 78%,rgba(48,130,188,.2),transparent 29%),
    linear-gradient(135deg,#e8edf0 0%,#e4edf3 48%,#eadcba 100%);
  background-attachment:fixed;
  color:#092143;
}
body:after{opacity:.72}

aside{
  background:
    radial-gradient(circle at 25% 8%,rgba(255,221,111,.38),transparent 19%),
    linear-gradient(166deg,#1b5d96 0%,#103d70 40%,#061a38 100%);
  border-right:1px solid rgba(245,207,104,.25);
  box-shadow:22px 0 72px rgba(5,28,61,.27),5px 0 30px rgba(213,159,34,.08);
}
.brand img,.master-brand img{filter:drop-shadow(0 0 19px rgba(255,218,103,.7))}
.nav.active,aside nav a.active{border-color:rgba(255,222,115,.34);box-shadow:inset 4px 0 0 var(--omni-v70-gold-light),0 14px 31px rgba(1,15,36,.24),0 0 24px rgba(218,163,34,.08)}

main>header{
  background:
    radial-gradient(circle at 91% 0,rgba(216,159,29,.24),transparent 28%),
    linear-gradient(115deg,rgba(247,245,237,.97),rgba(218,234,244,.94) 62%,rgba(237,219,174,.93));
  border-color:var(--omni-v70-line);
  box-shadow:var(--omni-v70-shadow),inset 0 1px 0 rgba(255,255,255,.94);
}
main>header:after{border-color:rgba(210,151,25,.34);box-shadow:0 0 76px rgba(221,166,37,.18)}
.portal-link,.account-trigger,.ghost,.secondary{
  background:linear-gradient(145deg,rgba(248,245,236,.92),rgba(226,234,237,.9));
  border-color:rgba(169,116,15,.3);
  box-shadow:0 11px 27px rgba(9,43,83,.1),inset 0 1px 0 rgba(255,255,255,.9);
}
.account-icon{box-shadow:0 0 22px rgba(220,165,37,.52)}
.automation-badge{background:linear-gradient(145deg,rgba(229,245,238,.91),rgba(222,237,237,.87));border-color:rgba(29,113,92,.25);box-shadow:0 10px 26px rgba(12,64,73,.1),0 0 20px rgba(31,171,125,.07)}
.automation-badge .automation-resume{min-height:0;margin-left:4px;padding:6px 9px;border:1px solid rgba(181,105,12,.3);border-radius:8px;background:#fff7e8;color:#8a5708;font-size:10px;line-height:1;font-weight:850;white-space:nowrap;box-shadow:none}.automation-badge .automation-resume:hover{background:#ffe8bd}.automation-badge .automation-resume:disabled{opacity:.65;cursor:wait}

.cards article,.metrics article,.panel,.certificate-card,.list-item,.token-item,.cert-monitor article,.integration-card,.kanban-column,.kanban-card,.check-option,.settings-card{
  border-color:var(--omni-v70-line);
  background:
    radial-gradient(circle at 100% 100%,rgba(209,153,28,.15),transparent 34%),
    linear-gradient(145deg,rgba(248,246,239,.97),rgba(219,234,244,.94));
  box-shadow:var(--omni-v70-shadow),inset 0 1px 0 rgba(255,255,255,.96);
}
.cards article:nth-child(even),.metrics article:nth-child(even),.certificate-card:nth-child(even),.integration-card:nth-child(even){
  background:
    radial-gradient(circle at 100% 100%,rgba(38,113,168,.11),transparent 35%),
    linear-gradient(145deg,rgba(237,224,194,.97),rgba(247,245,238,.96));
}
.cards article,.metrics article,.certificate-card,.integration-card,.kanban-card{transition:transform .23s ease,box-shadow .23s ease,border-color .23s ease,filter .23s ease}
.cards article:hover,.metrics article:hover,.certificate-card:hover,.integration-card:hover,.kanban-card:hover{transform:translateY(-4px);border-color:rgba(199,142,24,.67);box-shadow:0 36px 84px rgba(7,31,67,.2),0 0 34px rgba(211,157,33,.14),inset 0 1px 0 #fff}
.cards .accent,.metrics .accent{
  background:radial-gradient(circle at 85% 0,rgba(255,220,105,.28),transparent 35%),linear-gradient(135deg,#0a2957,#17518c 58%,#2878ae);
  border-color:rgba(239,195,64,.73);
  box-shadow:0 30px 74px rgba(6,37,76,.33),0 0 42px rgba(224,169,40,.17),inset 0 1px 0 rgba(255,255,255,.16);
}
.panel:after,.metrics article:before,.cards article:before{border-color:rgba(204,145,22,.27);box-shadow:0 0 38px rgba(210,157,35,.09)}

.primary,button[type=submit],#searchNotes,#batch,.open-client{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#f6d266,#d29a16);
  color:#071a38;
  border-color:#e9bc47;
  box-shadow:0 15px 34px rgba(196,139,12,.27),0 0 24px rgba(218,163,34,.12),inset 0 1px 0 #fff0aa;
}
.primary:hover,button[type=submit]:hover,#searchNotes:hover,#batch:hover,.open-client:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 20px 42px rgba(187,130,10,.3),0 0 30px rgba(222,169,44,.17),inset 0 1px 0 #fff3b6}
input,select,textarea{
  background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(244,239,226,.88));
  border-color:rgba(34,83,132,.23);
  box-shadow:inset 0 1px 0 #fff,0 7px 19px rgba(15,51,89,.055);
}
input:focus,select:focus,textarea:focus{border-color:#c89322!important;outline:none!important;box-shadow:0 0 0 4px rgba(211,161,38,.17),0 13px 29px rgba(22,72,119,.1)!important}
.check-option{background:linear-gradient(145deg,#f5efe1,#e4edf2)}
.check-option input,.history-option input{accent-color:#c99825}

.document-table-wrap,.table-wrap{
  background:linear-gradient(145deg,rgba(247,245,238,.92),rgba(219,233,242,.88));
  border-color:rgba(169,116,16,.28);
  box-shadow:0 20px 49px rgba(12,45,82,.13),inset 0 1px 0 #fff;
}
th{background:linear-gradient(180deg,#e6eef2,#e5d9bb);color:#78570a;border-bottom-color:rgba(164,111,12,.26)}
td{border-bottom-color:rgba(31,77,122,.1)}
tbody tr:hover{background:rgba(247,226,168,.3)}
.doc-actions{background:linear-gradient(90deg,#092653,#12477e)}
.badge,.status.active,.status.valid,.due-badge.future{box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}

.finance-hero{
  border-color:rgba(238,193,63,.53);
  background:radial-gradient(circle at 88% 12%,rgba(255,220,109,.27),transparent 26%),linear-gradient(125deg,#082550,#17528d 58%,#10406f);
  box-shadow:0 31px 74px rgba(7,35,73,.3),0 0 36px rgba(219,163,35,.1);
}
.finance-hero-badge{border-color:rgba(255,224,128,.28);background:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}

.kanban-panel{background:radial-gradient(circle at 92% 0,rgba(211,156,31,.18),transparent 29%),linear-gradient(145deg,rgba(246,243,234,.96),rgba(218,232,241,.92))}
.kanban-column{background:linear-gradient(160deg,#e9dfc7,#dfeaf1);overflow:hidden}
.kanban-column>header{background:linear-gradient(135deg,rgba(246,241,227,.9),rgba(219,231,238,.86));border-bottom-color:rgba(166,113,14,.24);box-shadow:none}
.kanban-card{background:linear-gradient(145deg,#f9f7f0,#e4edf2);box-shadow:0 10px 24px rgba(22,55,91,.11),inset 0 1px 0 #fff}
.kanban-column.drag-over{border-color:#c99524;box-shadow:0 18px 42px rgba(26,40,76,.18),0 0 26px rgba(211,158,34,.12)}

dialog{background:linear-gradient(145deg,#f6f1e5,#dfeaf2);border:1px solid rgba(182,126,18,.36);box-shadow:0 42px 105px rgba(3,22,49,.43),0 0 38px rgba(217,162,35,.1)}
dialog form{background:transparent!important}
dialog::backdrop{background:rgba(3,18,43,.76);backdrop-filter:blur(10px)}
.notice{border-left-color:var(--omni-v70-gold-light);background:linear-gradient(135deg,#0b2b57,#174c81);box-shadow:0 18px 42px rgba(5,27,60,.27)}

.auth-shell{background:linear-gradient(135deg,#e2ebf0,#e8dbb9)}
.auth-brand{
  background:radial-gradient(circle at 20% 9%,rgba(255,219,108,.22),transparent 23%),radial-gradient(circle at 85% 75%,rgba(52,131,189,.22),transparent 35%),linear-gradient(145deg,#071a38,#123f73 63%,#1a5b92);
  box-shadow:22px 0 72px rgba(5,28,61,.25);
}
.auth-brand:after{border-color:rgba(245,207,104,.42);box-shadow:0 0 0 85px rgba(211,158,34,.075),0 0 80px rgba(212,158,34,.1)}
.auth-brand h1 em{color:var(--omni-v70-gold-light);text-shadow:0 0 30px rgba(240,191,61,.2)}
.auth-panel{background:radial-gradient(circle at 85% 8%,rgba(215,158,29,.24),transparent 25%),linear-gradient(145deg,#e4edf2,#eadfbe)}
.auth-panel .card{
  background:radial-gradient(circle at 100% 0,rgba(212,156,29,.16),transparent 32%),linear-gradient(145deg,rgba(249,247,240,.98),rgba(219,233,242,.96));
  border-color:rgba(174,119,15,.38);
  box-shadow:0 32px 82px rgba(5,30,65,.22),0 0 34px rgba(211,158,34,.11),inset 0 1px 0 #fff;
}
.auth-panel .primary{background:linear-gradient(135deg,#f5d069,#ce9718);color:#071a38}
.show-password{background:linear-gradient(145deg,#ede3ca,#dce7ed);border:1px solid rgba(171,117,16,.2)}

@media(max-width:760px){
  body{background:radial-gradient(circle at 88% 3%,rgba(218,160,28,.3),transparent 21%),linear-gradient(150deg,#dce8ee,#e6d8b7 56%,#d9e6ed);background-attachment:scroll}
  body:after{animation:none}
  aside{background:radial-gradient(circle at 15% 0,rgba(255,220,111,.3),transparent 22%),linear-gradient(115deg,#195b94,#0e396a 58%,#071b3a);box-shadow:0 13px 38px rgba(5,28,61,.25)}
  main>header{background:radial-gradient(circle at 92% 0,rgba(211,155,26,.22),transparent 29%),linear-gradient(135deg,rgba(246,242,231,.97),rgba(215,231,241,.96))}
  .cards article,.metrics article,.certificate-card,.integration-card,.panel{box-shadow:0 21px 48px rgba(7,31,67,.16),0 0 24px rgba(205,149,26,.08),inset 0 1px 0 #fff}
  .cards article:nth-child(odd),.metrics article:nth-child(odd){background:radial-gradient(circle at 100% 100%,rgba(208,152,27,.18),transparent 34%),linear-gradient(145deg,#f5f0e3,#deebf2)}
  .cards article:nth-child(even),.metrics article:nth-child(even){background:radial-gradient(circle at 100% 100%,rgba(34,108,162,.12),transparent 35%),linear-gradient(145deg,#eadbb8,#f4f1e7)}
  .cards article:hover,.metrics article:hover,.certificate-card:hover,.integration-card:hover,.kanban-card:hover{transform:none}
  .auth-brand{min-height:270px;background:radial-gradient(circle at 15% 5%,rgba(255,220,111,.24),transparent 24%),linear-gradient(145deg,#071a38,#164d85)}
  .auth-panel{background:linear-gradient(155deg,#dce9f0,#e9ddbb)}
  .auth-panel .card{box-shadow:0 25px 58px rgba(5,30,65,.2),0 0 26px rgba(211,158,34,.1),inset 0 1px 0 #fff}
  .kanban-column{background:linear-gradient(160deg,#e8dcc1,#dce8ef)}
}

@media(prefers-reduced-motion:reduce){body:after,main>header:before{animation:none!important}}
