/* Royadarman brand tokens. Namespaced; not a Smart Teb rebrand. */
:root {
  --rd-brand-deep: #006d6b;
  --rd-brand-primary: #006d6b;
  --rd-brand-accent: #2699F0;
  --rd-brand-highlight: #6BB4E8;
  --rd-canvas: #F3F8FE;
  --rd-surface: #FFFFFF;
  --rd-surface-muted: #EAF3FD;
  --rd-border: #C8DCF2;
  --rd-text: #15304B;
  --rd-text-muted: #49647F;
  --rd-on-primary: #FFFFFF;
  --rd-success: #18794E;
  --rd-warning: #B54708;
  --rd-danger: #B42318;
  --rd-focus: #006d6b;
  --rd-dark-canvas: #0C1628;
  --rd-dark-surface: #14243A;
  --rd-dark-text: #E8F2FC;
  --rd-dark-text-muted: #B4C9DE;
  --rd-brand-gradient: linear-gradient(135deg, #006d6b 0%, #006d6b 48%, #2699F0 100%);
}
/* Opt in on the Royadarman application root. Keep typography and layout unchanged. */
[data-brand="royadarman"] {
  --rd-ui-primary: var(--rd-brand-primary);
  --rd-ui-on-primary: var(--rd-on-primary);
  --rd-ui-canvas: var(--rd-canvas);
  --rd-ui-surface: var(--rd-surface);
  --rd-ui-text: var(--rd-text);
  --rd-ui-muted: var(--rd-text-muted);
  --rd-ui-border: var(--rd-border);
  --rd-ui-focus: var(--rd-focus);
}
[data-brand="royadarman"][data-theme="dark"],
[data-brand="royadarman"] [data-theme="dark"] {
  --rd-ui-primary: var(--rd-brand-highlight);
  --rd-ui-on-primary: var(--rd-dark-canvas);
  --rd-ui-canvas: var(--rd-dark-canvas);
  --rd-ui-surface: var(--rd-dark-surface);
  --rd-ui-text: var(--rd-dark-text);
  --rd-ui-muted: var(--rd-dark-text-muted);
  --rd-ui-border: #37536F;
  --rd-ui-focus: var(--rd-brand-highlight);
}

/* Canonical Laravel delivery layer. No synthetic state or authority. */
:root{--brand:var(--rd-brand-primary);--brand-2:var(--rd-brand-deep);--brand-soft:var(--rd-surface-muted);--bg:var(--rd-canvas);--surface:var(--rd-surface);--surface-2:#f8fbff;--ink:var(--rd-text);--muted:var(--rd-text-muted);--line:#dbe7f4;--line-strong:#b4cbe5;--shadow:0 16px 48px #006d6b0c}
body[data-brand="royadarman"]{--brand:var(--rd-brand-primary);--brand-2:var(--rd-brand-deep);--bg:var(--rd-canvas);--ink:var(--rd-text);--muted:var(--rd-text-muted);--line:#dbe7f4;color:var(--ink);-webkit-font-smoothing:antialiased}
[data-brand] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--rd-focus);outline-offset:3px}
[data-brand] :is(.btn,.button){min-height:44px;border-radius:12px}
[data-brand] :is(.btn.primary,.button.primary){background:var(--rd-brand-primary);border-color:var(--rd-brand-primary);color:#fff;box-shadow:0 4px 12px #006d6b16}
[data-brand] :is(.btn.primary,.button.primary):hover{background:var(--rd-brand-deep);border-color:var(--rd-brand-deep)}
[data-brand] :is(input,select,textarea){font:inherit;max-width:100%;border-radius:12px;min-height:44px}
[data-brand] .app-sidebar{background:linear-gradient(170deg,#006d6b 0%,#112d65 62%,#102653 100%);border-inline-end:1px solid #163d75}
[data-brand] .app-brand{align-items:center;gap:12px;padding-bottom:24px}
[data-brand] .app-brand img{width:46px;height:46px;flex:0 0 46px;padding:5px;background:#fff;border-radius:14px}
[data-brand] .app-brand strong{font-size:1.08rem;letter-spacing:-.02em}
[data-brand] .app-role{color:#d1e4fb;line-height:1.8}
[data-brand] .app-nav a{min-height:46px;border-radius:12px;color:#e0ecfb}
[data-brand] .app-nav a.active{background:#ffffff19;color:#fff;border:1px solid #ffffff25;box-shadow:inset -3px 0 #88c9ff}
[dir="ltr"] [data-brand] .app-nav a.active{box-shadow:inset 3px 0 #88c9ff}
[data-brand] .app-nav a:hover{background:#ffffff12;color:#fff}
[data-brand] .app-sidebar :focus-visible{outline-color:#a9d8ff}
[data-brand] .app-sidebar-foot .btn{color:#f0f6ff;background:#ffffff0b;border-color:#ffffff38}
[data-brand] .app-content{max-width:1500px;padding:clamp(18px,3vw,38px)}
[data-brand] .app-topbar{background:#ffffffef;border-bottom-color:#dbe7f4;box-shadow:0 2px 18px #006d6b04}
[data-brand] .hero-panel{background:linear-gradient(115deg,#fff 55%,#eaf3fd);border:1px solid #d2e3f6;border-radius:22px;padding:clamp(22px,3vw,34px);box-shadow:0 8px 30px #006d6b04}
[data-brand] .hero-panel h2{color:#153d70;letter-spacing:-.025em;line-height:1.6}
[data-brand] .hero-panel p{max-width:74ch;color:#49647f;line-height:1.9}
[data-brand] :is(.card,.metric,.stat){border-color:#dbe7f4;border-radius:18px;background:#fff;box-shadow:0 4px 22px #006d6b04}
[data-brand] .metric{border-block-start:3px solid #6bb4e8}
[data-brand] :is(.metric strong,.stat .num){color:var(--rd-brand-deep);font-variant-numeric:tabular-nums}
[data-brand] .card-head{background:#fbfdff;border-bottom-color:#e6eef8}
[data-brand] :is(.card-head,.card-body){padding:20px 22px}
[data-brand] .empty{padding:40px 22px;color:#49647f;background:#fbfdff;line-height:1.9}
[data-brand] .dashboard-shortcuts a{border-color:#d4e3f4;color:#194b8a;background:#fff;border-radius:13px}
[data-brand] .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
[data-brand] thead th{background:#f3f8fe;color:#49647f}
[data-brand] tbody tr:hover{background:#f6faff}
[data-brand] .notice{line-height:1.85;border-radius:12px}
[data-brand].auth-body{background:radial-gradient(ellipse at 10% 15%,#dcecff 0%,transparent 45%),var(--rd-canvas);min-height:100dvh;padding:clamp(12px,3vw,34px)}
[data-brand] .auth-shell{border:1px solid #d5e4f5;border-radius:26px;box-shadow:0 20px 80px #006d6b10}
[data-brand] .auth-aside{background:linear-gradient(145deg,#006d6b,#006d6b);padding:clamp(26px,4vw,46px)}
[data-brand] .auth-aside img{width:78px;height:78px;padding:8px;background:#fff;border-radius:21px;box-shadow:0 8px 24px #05265a20}
[data-brand] .auth-aside p,[data-brand] .auth-point{color:#e1efff}
[data-brand] .auth-point::before{color:#b9e0ff}
[data-brand] .auth-main{padding:clamp(24px,4vw,46px)}
[data-brand] .auth-card h1{color:#153d70;font-size:clamp(1.5rem,3vw,1.9rem)}
[data-brand] .auth-card .secondary{min-height:44px;display:flex;align-items:center;justify-content:center;color:var(--rd-brand-primary)}
[data-brand] .public-home-hero{background:radial-gradient(ellipse at 18% 25%,#e3efff 0%,transparent 50%),linear-gradient(180deg,#fbfdff,#f3f8fe);border-bottom:1px solid #e1ecf8}
[data-brand] .public-home-eyebrow{color:var(--rd-brand-primary);font-weight:750}
[data-brand] .public-home-hero h1{color:#123b70;letter-spacing:-.03em;line-height:1.5}
[data-brand] .public-home-path{background:#fff;border:1px solid #d5e4f5;border-radius:24px;box-shadow:0 16px 45px #006d6b08}
[data-brand] .public-home-brand-mark{object-fit:contain;background:#f3f8fe;border-radius:22px;padding:10px}
[data-brand] .public-home-service{background:#fff;border-color:#d5e4f5;border-radius:18px;box-shadow:0 5px 24px #006d6b04}
[data-brand] .public-home-service:hover{border-color:#85b4e8;box-shadow:0 8px 24px #006d6b0a}
[data-brand] .public-home-intake{color:#49647f;border-inline-start:3px solid #9bbde2;padding-inline-start:12px;line-height:1.9}
[data-brand] .brand img{object-fit:contain}
[data-brand] .nav-backdrop{display:none}
@media(max-width:900px){[data-brand] .app-shell.nav-open .nav-backdrop{display:block;position:fixed;inset:0;border:0;width:100%;height:100dvh;background:#102c5866;z-index:40}[data-brand] .app-sidebar{width:min(310px,86vw);height:100dvh}[data-brand] .app-topbar{padding:12px 16px;gap:12px}[data-brand] .app-content{padding:18px}[data-brand] .card-head{gap:12px;flex-wrap:wrap}}
@media(max-width:600px){[data-brand] :is(.metric-grid,.stat-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}[data-brand] .metric{padding:16px}[data-brand] .metric strong{font-size:1.65rem}[data-brand] :is(.card-head,.card-body){padding:17px}[data-brand] .auth-shell{grid-template-columns:minmax(0,1fr);border-radius:20px}[data-brand] .auth-aside{display:none}[data-brand] .auth-main{padding:26px 20px}[data-brand] .auth-card h1{line-height:1.65}[data-brand] .hero-panel{padding:23px}[data-brand] .public-home-path{border-radius:18px}}
@media(prefers-reduced-motion:reduce){[data-brand] *,[data-brand] *::before,[data-brand] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
