/* Colors and font family match Portal-Digitale-2.0/src/index.css and tailwind.config.ts. */
:root{
  font-family:Inter,system-ui,sans-serif;font-synthesis:none;
  --background:210 20% 98%;--foreground:213 40% 20%;
  --card:0 0% 100%;--card-foreground:213 40% 20%;
  --primary:213 40% 20%;--primary-foreground:0 0% 100%;
  --secondary:214 32% 91%;--secondary-foreground:213 40% 20%;
  --muted:210 40% 96%;--muted-foreground:213 25% 40%;
  --accent:213 30% 90%;--accent-foreground:213 40% 20%;
  --destructive:0 84% 60%;--success:142 76% 36%;--warning:38 92% 50%;
  --border:214 32% 91%;--input:214 32% 91%;--ring:213 40% 20%;
  --sidebar-background:213 40% 20%;--sidebar-foreground:210 40% 98%;
  --sidebar-primary:213 40% 35%;--sidebar-primary-foreground:0 0% 100%;
  --sidebar-accent:213 40% 28%;--sidebar-accent-foreground:210 40% 98%;
  --sidebar-border:213 40% 25%;--sidebar-ring:213 40% 35%;
  --gradient-primary:linear-gradient(135deg,hsl(213 40% 20%) 0%,hsl(213 40% 30%) 100%);
  --gradient-sidebar:linear-gradient(180deg,hsl(213 40% 20%) 0%,hsl(213 40% 15%) 100%);
  --primary-color:hsl(var(--primary));--muted-color:hsl(var(--muted-foreground));
  --line:hsl(var(--border));--dark:hsl(var(--sidebar-background));
  --chart-color:hsl(var(--sidebar-primary));--chart-grid:hsl(var(--border));
  color:hsl(var(--foreground));background:hsl(var(--background));
}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--primary-color)}.initial{padding:80px;text-align:center}.layout{display:flex;min-height:100vh}.sidebar{width:244px;background:var(--gradient-sidebar);color:hsl(var(--sidebar-foreground) / .8);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 20px;z-index:10}.brand{display:flex;gap:11px;align-items:center;color:#fff}.brand-name{font-weight:700;font-size:17px;letter-spacing:.6px}.brand small{display:block;font-size:10px;letter-spacing:1.7px;color:hsl(var(--sidebar-foreground) / .7);margin-top:5px}.nav-caption{font-size:10px;letter-spacing:1.8px;color:hsl(var(--sidebar-foreground) / .55);margin:42px 14px 14px}nav{display:grid;gap:7px}.nav-item{display:flex;gap:13px;align-items:center;width:100%;border:0;background:transparent;color:hsl(var(--sidebar-foreground) / .7);padding:13px 14px;border-radius:9px;text-align:left;font-size:13px}.nav-item:hover{background:hsl(var(--sidebar-accent));color:white}.nav-item.active{background:hsl(var(--sidebar-primary));color:hsl(var(--sidebar-primary-foreground))}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding-top:40px}.portal-link{display:flex;align-items:center;gap:9px;text-decoration:none;color:hsl(var(--sidebar-foreground) / .7);font-size:12px;padding:14px}.user{display:flex;align-items:center;gap:10px;border-top:1px solid hsl(var(--sidebar-border));padding-top:20px;margin-top:12px}.avatar{height:36px;width:36px;border-radius:50%;background:hsl(var(--muted));color:hsl(var(--muted-foreground));display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}.user-name{font-size:12px;color:hsl(var(--sidebar-foreground));max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role{font-size:10px;color:hsl(var(--sidebar-foreground) / .7);margin-top:4px}.logout{border:0;background:transparent;color:hsl(var(--sidebar-foreground) / .7);padding:5px;margin-left:auto}.main{margin-left:244px;width:calc(100% - 244px)}.topbar{height:82px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#fff}.breadcrumb{font-size:12px;color:hsl(var(--muted-foreground))}.breadcrumb b{color:hsl(var(--foreground));font-weight:500}.top-meta{display:flex;align-items:center;gap:18px;font-size:11px;color:hsl(var(--muted-foreground))}.status-dot{height:7px;width:7px;display:inline-block;background:hsl(var(--success));border-radius:50%;margin-right:7px}.status-dot.off{background:hsl(var(--warning))}.content{max-width:1510px;padding:34px 40px 50px;margin:auto}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;color:var(--primary-color);font-weight:600;margin-bottom:10px}h1{font-size:29px;font-weight:600;letter-spacing:-1px;margin:0 0 9px}h2{font-size:16px;font-weight:600;letter-spacing:-.3px;margin:0}h3{font-size:14px;margin:0 0 9px}p{line-height:1.65}.sub{font-size:12px;color:var(--muted-color);margin:0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid hsl(var(--border));border-radius:8px;background:white;color:hsl(var(--foreground));padding:10px 14px;font-size:12px;white-space:nowrap;text-decoration:none;min-height:40px}.btn:hover{border-color:hsl(var(--sidebar-primary) / .5);background:hsl(var(--muted))}.btn.primary{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.btn.primary:hover{background:hsl(var(--primary) / .9)}.btn.small{padding:6px 10px;min-height:31px;font-size:11px}.btn.danger{color:hsl(0 70% 40%)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:21px}.metric-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:hsl(var(--muted-foreground));margin-bottom:17px}.metric-icon{display:grid;place-items:center;background:hsl(var(--muted));color:hsl(var(--muted-foreground));height:31px;width:31px;border-radius:8px}.metric-number{font-size:33px;font-weight:600;letter-spacing:-1px}.metric-number small{font-size:14px;color:hsl(var(--muted-foreground));font-weight:400;letter-spacing:0}.metric-foot{margin-top:11px;font-size:10px;color:hsl(var(--muted-foreground))}.metric-foot strong{font-weight:500;color:var(--primary-color)}.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.card-body{padding:24px}.card-head{padding:22px 24px;display:flex;justify-content:space-between;gap:16px;align-items:center}.card-head .sub{margin-top:7px;font-size:11px}.tag{display:inline-flex;align-items:center;font-size:10px;font-weight:500;line-height:1.3;padding:5px 9px;border-radius:6px;background:hsl(var(--muted));color:hsl(var(--muted-foreground));white-space:nowrap}.tag.good{background:hsl(var(--success) / .1);color:hsl(var(--success))}.tag.warn{background:hsl(var(--warning) / .12);color:hsl(38 92% 28%)}.tag.bad{background:hsl(var(--destructive) / .08);color:hsl(0 70% 40%)}.tag.neutral{background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.chart-wrap{padding:5px 24px 16px}.chart{width:100%;height:auto;display:block}.chart text{font-family:inherit;font-size:10px;fill:hsl(var(--muted-foreground))}.chart line{stroke:hsl(var(--border));stroke-dasharray:3 4}.legend{display:flex;align-items:center;gap:7px;font-size:10px;color:hsl(var(--muted-foreground));margin:12px 0}.legend i{height:8px;width:8px;background:var(--chart-color);border-radius:3px}.summary{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:9px;padding:17px;margin:0 24px 21px;font-size:11px;color:hsl(var(--muted-foreground));line-height:1.8}.summary strong{display:block;color:hsl(var(--foreground));font-size:12px;margin-bottom:5px}.runtime-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid hsl(var(--border));font-size:11px}.runtime-row:last-child{border:0}.runtime-row span{color:hsl(var(--muted-foreground))}.runtime-row b{font-weight:500}.progress-chart{margin-top:20px}.progress-chart svg{width:100%;height:8px;border-radius:5px;display:block}.progress-label{display:flex;justify-content:space-between;font-size:10px;color:hsl(var(--muted-foreground));margin-bottom:9px}.checks{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.checks .tag{font-size:9px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px;white-space:nowrap}th{font-weight:500;color:hsl(var(--muted-foreground));background:hsl(var(--muted));padding:13px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:16px 20px;border-bottom:1px solid hsl(var(--border));color:hsl(var(--muted-foreground))}tr:last-child td{border-bottom:0}td strong{color:hsl(var(--foreground));font-weight:500;display:block;margin-bottom:5px}td .secondary{color:hsl(var(--muted-foreground));font-size:10px}.table-empty{padding:44px;text-align:center;color:hsl(var(--muted-foreground));font-size:13px;white-space:normal}.table-empty .icon{width:30px;height:30px;display:block;margin:0 auto 12px;color:hsl(var(--muted-foreground))}.text-button{background:transparent;border:0;color:var(--primary-color);font-size:11px;padding:4px;text-decoration:none}.filterbar{padding:18px 22px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.filterbar input{flex:1;min-width:80px}.field{width:100%;border:1px solid hsl(var(--border));background:#fff;border-radius:7px;padding:10px 12px;font-size:12px;color:hsl(var(--foreground));min-height:40px}.field:focus{outline:2px solid hsl(var(--ring) / .5);outline-offset:1px}.filterbar select{width:180px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;border-top:1px solid var(--line);font-size:11px;color:hsl(var(--muted-foreground))}.pagination .actions{gap:5px}.empty-state{padding:60px;text-align:center;color:hsl(var(--muted-foreground))}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.form-section{padding:26px;border-bottom:1px solid var(--line)}.form-section:last-child{border-bottom:0}.label{font-size:12px;font-weight:500;display:block;margin-bottom:9px}.hint{font-size:10px;color:hsl(var(--muted-foreground));line-height:1.7;margin-top:8px}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.switch{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--primary-color)}input[type=checkbox]{accent-color:var(--primary-color);width:17px;height:17px}.state-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:15px}.state-option{display:flex;gap:7px;align-items:center;font-size:11px;padding:7px 8px;border:1px solid hsl(var(--border));border-radius:7px;cursor:pointer}.state-option:has(input:checked){border-color:hsl(var(--primary) / .5);background:hsl(var(--muted))}.state-option input{width:14px;height:14px}.settings-footer{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;gap:15px}.notice{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:9px;padding:16px 18px;color:hsl(var(--muted-foreground));font-size:11px;line-height:1.8;margin-bottom:20px}.notice.error{background:hsl(var(--destructive) / .08);border-color:hsl(var(--destructive) / .25);color:hsl(0 70% 40%)}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.team-person{display:flex;gap:12px;align-items:center;margin-bottom:24px}.team-person .avatar{height:45px;width:45px;font-size:15px;background:hsl(var(--muted))}.team-values{display:flex;gap:30px;margin:15px 0}.team-values b{font-size:26px;font-weight:600;display:block}.team-values span{font-size:10px;color:hsl(var(--muted-foreground))}.timeline{padding:0 24px 22px}.timeline-row{border-top:1px solid var(--line);padding:16px 0;font-size:11px;line-height:1.7}.timeline-row strong{display:block;font-size:12px;color:hsl(var(--foreground))}.timeline-row small{color:hsl(var(--muted-foreground))}.details-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:12px}.details-list span{display:block;font-size:10px;color:hsl(var(--muted-foreground));margin-bottom:7px}.detail-links a{display:block;overflow-wrap:anywhere;font-size:11px;margin-bottom:14px}.divider{border-top:1px solid var(--line);margin:23px 0}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-head button{border:0;background:transparent;padding:7px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;max-width:640px;width:calc(100% - 30px);color:hsl(var(--foreground));box-shadow:0 20px 90px hsl(var(--foreground) / .22)}dialog::backdrop{background:hsl(var(--foreground) / .5);backdrop-filter:blur(3px)}#toast{position:fixed;right:25px;bottom:25px;max-width:450px;z-index:100;background:hsl(var(--primary));color:white;padding:15px 20px;box-shadow:0 5px 25px hsl(var(--foreground) / .2);border-radius:10px;font-size:12px;line-height:1.6;display:none}#toast.show{display:block}#toast.error{background:hsl(var(--destructive))}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--gradient-primary);color:white;padding:50px 12%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:after{content:'';width:500px;height:500px;border-radius:50%;border:1px solid hsl(var(--sidebar-primary));position:absolute;bottom:-270px;right:-270px;box-shadow:0 0 0 70px hsl(213 40% 23%),0 0 0 71px hsl(213 40% 35%),0 0 0 140px hsl(213 40% 21%),0 0 0 141px hsl(213 40% 30%);pointer-events:none}.login-story h1{font-size:clamp(35px,4vw,58px);line-height:1.15;font-weight:500;letter-spacing:-2px;max-width:480px;margin-top:45px}.login-story h1 em{font-style:normal;color:hsl(var(--primary-foreground))}.login-story p{color:hsl(var(--primary-foreground) / .8);max-width:370px;font-size:14px}.login-kicker{color:hsl(var(--primary-foreground));letter-spacing:2px;font-size:10px;margin-top:50px}.login-features{display:grid;gap:19px;margin:40px 0;font-size:12px;color:hsl(var(--primary-foreground) / .85)}.login-features span{display:flex;gap:12px;align-items:center}.login-bottom{font-size:10px;letter-spacing:1px;color:hsl(var(--primary-foreground) / .6);margin-top:60px}.login-form-side{display:flex;align-items:center;justify-content:center;padding:35px}.login-form{width:100%;max-width:370px}.login-form h2{font-size:26px;letter-spacing:-.8px;margin:14px 0}.login-form .sub{font-size:12px;margin-bottom:35px}.login-form .field{margin-bottom:20px;min-height:47px}.login-form .btn{width:100%;margin-top:7px;min-height:47px}.login-form .hint{margin-top:22px;text-align:center}.form-error{font-size:12px;color:hsl(0 70% 40%);line-height:1.6;margin-bottom:15px}.mobile-menu{display:none}.screen-error{padding:45px;text-align:center}.screen-error p{color:hsl(0 70% 40%);font-size:13px}.loading{padding:65px;text-align:center;color:hsl(var(--muted-foreground));font-size:13px}.file-field{font-size:12px;max-width:100%}.footer-note{margin-top:24px;font-size:10px;color:hsl(var(--muted-foreground));display:flex;justify-content:space-between;gap:20px}
@media(min-width:1500px){.content{padding-top:42px}.metric{padding:25px}.chart-wrap{padding-bottom:25px}}
@media(max-width:1150px){.sidebar{width:214px;padding:25px 14px}.main{margin-left:214px;width:calc(100% - 214px)}.content{padding:28px 25px}.topbar{padding:0 25px}.metrics{gap:10px}.metric{padding:17px}.grid-main{grid-template-columns:1fr 1fr}.team-grid{grid-template-columns:repeat(2,1fr)}.heading{align-items:flex-start}.heading .actions{justify-content:flex-end}.state-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:244px;box-shadow:15px 0 30px hsl(var(--foreground) / .2)}.sidebar.open{transform:translateX(0)}.main{width:100%;margin:0}.mobile-menu{display:inline-flex;border:0;background:transparent;color:hsl(var(--foreground));padding:7px}.topbar{height:65px;padding:0 20px}.breadcrumb{display:flex;align-items:center;gap:8px}.top-meta .date-label{display:none}.content{padding:25px 20px}.metrics{grid-template-columns:repeat(2,1fr)}.grid-main{grid-template-columns:1fr}.heading{flex-wrap:wrap;gap:14px}.heading .actions{justify-content:flex-start}h1{font-size:26px}.login{grid-template-columns:1fr}.login-story{display:none}.login-form-side{min-height:100vh}.login-form .brand{color:hsl(var(--foreground))}.login-form .brand small{color:hsl(var(--muted-foreground))}.form-grid{grid-template-columns:1fr}.state-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:500px){.team-grid{grid-template-columns:1fr}.filterbar{flex-wrap:wrap;padding:15px}.filterbar input{width:100%;flex:auto}.filterbar select{width:calc(100% - 96px)}.card-head,.card-body{padding:19px}.metrics{gap:10px}.metric-number{font-size:28px}.metric-head{font-size:10px}.metric-icon{width:26px;height:26px}.metric-icon .icon{width:15px}.metric-foot{font-size:9px}.state-grid{grid-template-columns:repeat(4,1fr)}.state-option{padding:6px}.settings-footer{align-items:flex-start;flex-direction:column}.details-list{grid-template-columns:1fr}.footer-note{font-size:9px}.btn{font-size:11px;padding:9px 11px}.sub{font-size:11px}}

fieldset{border:0;padding:0;margin:0;min-width:0}

body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
::selection{background:hsl(var(--sidebar-primary) / .18)}
.login-form .brand{color:hsl(var(--foreground))}
.login-form .brand small{color:hsl(var(--muted-foreground))}
.login-form .login-kicker{color:hsl(var(--primary))}

/* Reuse Digitale's original logo assets in their light and dark variants. */
.brand{flex-direction:column;align-items:flex-start;gap:12px}
.brand-logo{display:block;height:80px;width:auto;max-width:100%;object-fit:contain;flex-shrink:0}
.brand-caption{display:flex;flex-direction:column;gap:5px}
.brand-name{font-size:13px;font-weight:600;letter-spacing:1.4px}
.brand small{font-size:9px;letter-spacing:1.5px;margin:0}
.sidebar .brand-logo{height:56px}
