@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600&display=swap');

:root{
  --navy:#273775;
  --navy-deep:#121d4b;
  --ink:#14204a;
  --ink-soft:#27375f;
  --muted:#52627e;
  --line:rgba(39,55,117,.14);
  --blue:#43a5d9;
  --cyan:#59c4df;
  --violet:#586ba9;
  --red:#dc2626;
  --green:#169c5b;
  --amber:#d97706;
  --glass:rgba(255,255,255,.58);
  --glass-strong:rgba(255,255,255,.76);
  --glass-border:rgba(255,255,255,.42);
  --shadow:0 28px 80px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.82);
  --shadow-soft:0 18px 46px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.76);
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--navy-deep);scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  font-family:'Exo',sans-serif;
  font-size:14px;
  font-weight:400;
  background:
    radial-gradient(circle at 12% 5%,rgba(67,165,217,.26),transparent 31%),
    radial-gradient(circle at 89% 7%,rgba(89,196,223,.19),transparent 32%),
    radial-gradient(circle at 72% 92%,rgba(67,165,217,.16),transparent 35%),
    linear-gradient(135deg,#09122f,#111d4c 48%,#17265c);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  overflow-x:hidden;
}
body::before,body::after{
  content:'';
  position:fixed;
  pointer-events:none;
  z-index:-1;
}
body::before{
  inset:0;
  opacity:.42;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:42px 42px;
}
body::after{
  right:-130px;
  bottom:-180px;
  width:560px;
  height:560px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(89,196,223,.24),transparent 66%);
  animation:ambient-drift 12s ease-in-out infinite alternate;
}
b,strong,h1,h2,h3,h4,h5,h6{font-weight:600}
button,input,select,textarea{font:inherit;font-weight:400}
a{color:var(--blue)}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{
  width:1em;
  height:1em;
  display:inline-block;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:-.14em;
}

.topbar{
  width:min(1640px,calc(100% - 28px));
  min-height:66px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:20;
  border:1px solid var(--glass-border);
  border-top:0;
  border-radius:0 0 23px 23px;
  background:linear-gradient(135deg,rgba(255,255,255,.68),rgba(255,255,255,.40));
  backdrop-filter:blur(28px) saturate(1.65);
  -webkit-backdrop-filter:blur(28px) saturate(1.65);
  box-shadow:0 18px 52px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.84);
}
.brand{display:flex;align-items:center;gap:12px}
.brand b{font-size:19px;letter-spacing:-.025em}
.brand small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:13px;
  font-weight:500;
  letter-spacing:.11em;
}
.kalert-logo{display:block;object-fit:contain}
.header-logo{width:68px;height:45px;filter:drop-shadow(0 9px 14px rgba(18,29,75,.18))}
.login-logo{width:min(220px,72%);height:auto;margin:0 auto;filter:drop-shadow(0 16px 24px rgba(18,29,75,.18))}
.brand-mark{
  width:58px;
  height:58px;
  border-radius:19px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:27px;
  font-weight:600;
  background:linear-gradient(145deg,var(--cyan),var(--blue) 54%,var(--navy));
  box-shadow:0 14px 34px rgba(39,55,117,.22),inset 0 1px 0 rgba(255,255,255,.34);
}
.brand-mark.small{width:43px;height:43px;border-radius:14px;font-size:20px}
.brand-mark .icon{width:29px;height:29px;stroke-width:1.65}
.brand-mark.small .icon{width:24px;height:24px}

.container{width:min(1600px,calc(100% - 40px));margin:0 auto;padding:38px 0 68px}
.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  padding:8px 3px 25px;
  animation:fade-up .45s ease both;
}
.hero h1{
  display:flex;
  align-items:center;
  gap:13px;
  margin:5px 0 8px;
  font-size:clamp(31px,4.2vw,48px);
  line-height:1.08;
  letter-spacing:-.045em;
  color:#f7fbff;
}
.hero-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:17px;
  background:linear-gradient(145deg,var(--cyan),var(--blue) 54%,var(--navy));
  box-shadow:0 16px 36px rgba(39,55,117,.24),inset 0 1px 0 rgba(255,255,255,.38);
}
.hero-icon .icon{width:26px;height:26px;stroke-width:1.7}
.hero p{max-width:720px;margin:0;color:rgba(220,231,247,.72);line-height:1.65}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#72d6ed;
  font-size:13px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.eyebrow .icon{width:13px;height:13px;stroke-width:2}
.live{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  white-space:nowrap;
  color:#147a3a;
  font-size:13px;
  font-weight:600;
  border:1px solid rgba(52,199,89,.18);
  border-radius:999px;
  background:rgba(52,199,89,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 8px 20px rgba(34,197,94,.08);
}
.live .icon{width:17px;height:17px;filter:drop-shadow(0 2px 4px rgba(22,156,91,.18))}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.stats article,.panel{
  position:relative;
  overflow:hidden;
  border:1px solid var(--glass-border);
  background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(218,227,240,.66));
  backdrop-filter:blur(30px) saturate(1.55);
  -webkit-backdrop-filter:blur(30px) saturate(1.55);
  box-shadow:var(--shadow-soft);
}
.stats article::before,.panel::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.48),transparent 35%,rgba(255,255,255,.10));
}
.stats article>* ,.panel>*{position:relative}
.stats article{
  min-height:132px;
  padding:22px;
  display:flex;
  align-items:center;
  gap:17px;
  border-radius:27px;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  animation:fade-up .45s ease both;
}
.stats article:nth-child(2){animation-delay:.04s}
.stats article:nth-child(3){animation-delay:.08s}
.stats article:nth-child(4){animation-delay:.12s}
.stats article::after{
  content:'';
  position:absolute;
  right:-28px;
  top:-34px;
  width:118px;
  height:118px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(67,165,217,.15),transparent 68%);
}
.stats article:nth-child(2)::after{background:radial-gradient(circle,rgba(255,59,48,.14),transparent 68%)}
.stats article:nth-child(3)::after{background:radial-gradient(circle,rgba(39,55,117,.14),transparent 68%)}
.stats article:nth-child(4)::after{background:radial-gradient(circle,rgba(255,159,10,.14),transparent 68%)}
.stats article:hover{transform:translateY(-3px);box-shadow:0 26px 68px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.84)}
.stats span{color:rgba(16,24,39,.82);font-size:13px;font-weight:500}
.stats b{display:block;margin-top:9px;font-size:36px;line-height:1;letter-spacing:-.045em}
.stats article.critical b{color:var(--red)}
.stat-copy{position:relative;z-index:1}
.stats .stat-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  color:var(--blue);
  border:1px solid rgba(255,255,255,.78);
  border-radius:19px;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(221,244,255,.55));
  box-shadow:0 15px 30px rgba(8,127,255,.12),inset 0 1px 0 rgba(255,255,255,.92);
}
.stats .stat-icon .icon{width:29px;height:29px;stroke-width:1.7}
.stats .stat-critical .stat-icon{color:#e32929;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,226,226,.63));box-shadow:0 15px 30px rgba(220,38,38,.11),inset 0 1px 0 rgba(255,255,255,.92)}
.stats .stat-pending .stat-icon{color:var(--navy);background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(224,231,249,.68));box-shadow:0 15px 30px rgba(39,55,117,.12),inset 0 1px 0 rgba(255,255,255,.92)}
.stats .stat-failed .stat-icon{color:#dd7a08;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,238,211,.68));box-shadow:0 15px 30px rgba(217,119,6,.11),inset 0 1px 0 rgba(255,255,255,.92)}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.panel{
  padding:22px;
  border-radius:28px;
  animation:fade-up .5s ease .12s both;
}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.panel h2{margin:4px 0 0;font-size:20px;letter-spacing:-.025em}
.panel-title{display:flex;align-items:center;gap:13px}
.panel-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  color:var(--blue);
  border:1px solid rgba(255,255,255,.82);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(222,244,255,.56));
  box-shadow:0 12px 27px rgba(39,55,117,.12),inset 0 1px 0 rgba(255,255,255,.95);
}
.panel-icon .icon{width:24px;height:24px;stroke-width:1.7}
.source-icon{color:var(--navy);background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(224,231,249,.66))}
.event-icon{color:#de4f32;background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,232,224,.62))}
.channel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 2px;
  border-top:1px solid var(--line);
}
.channel-main{display:flex;align-items:center;gap:12px;min-width:0}
.channel-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:var(--blue);
  border-radius:13px;
  background:rgba(67,165,217,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}
.channel-icon.source{color:var(--navy);background:rgba(39,55,117,.10)}
.channel-icon .icon{width:21px;height:21px}
.channel:first-of-type{border-top:0}
.channel b{font-weight:600}
.channel small,.events td small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.channel small .icon{width:14px;height:14px;margin-right:5px;vertical-align:-.2em}
.pill,.severity{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  line-height:1;
  vertical-align:middle;
  white-space:nowrap;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.025em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}
.pill .icon,.severity .icon{width:15px;height:15px;stroke-width:2.1}
.pill.ok{background:rgba(52,199,89,.14);color:#14783a}
.pill.bad,.severity.critical{background:rgba(255,59,48,.14);color:#b42318}
.severity.warning{background:rgba(255,159,10,.16);color:#975800}
.severity.info{background:rgba(67,165,217,.16);color:#205f91}
.severity.recovery{background:rgba(52,199,89,.14);color:#14783a}
.muted{color:var(--muted)}
.empty-note{display:flex;align-items:center;gap:9px}
.empty-note .icon{width:20px;height:20px;color:var(--blue)}
.error-detail{
  padding:10px 12px;
  color:var(--red);
  font-size:13px;
  line-height:1.5;
  border:1px solid rgba(239,68,68,.12);
  border-radius:13px;
  background:rgba(255,241,242,.66);
}
.error-detail .icon{width:16px;height:16px;margin-right:4px}

.events{animation-delay:.17s}
.record-count{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  color:var(--muted);
  font-size:13px;
  border:1px solid rgba(255,255,255,.68);
  border-radius:999px;
  background:rgba(255,255,255,.44);
}
.record-count .icon{width:14px;height:14px;color:var(--navy)}
.table-wrap{
  width:100%;
  max-height:64vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.58);
  border-radius:18px;
  background:rgba(239,244,250,.56);
}
table{width:100%;min-width:880px;border-collapse:separate;border-spacing:0}
th{
  position:sticky;
  top:0;
  z-index:2;
  padding:12px;
  text-align:left;
  color:rgba(16,24,39,.78);
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-bottom:1px solid var(--line);
  background:rgba(247,249,252,.88);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
}
th .icon{width:14px;height:14px;margin-right:5px;color:#4587d8}
td{
  padding:15px 12px;
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.48;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}
tbody tr{transition:background .16s ease}
tbody tr:hover{background:rgba(255,255,255,.44)}
tbody tr:last-child td{border-bottom:0}
td:nth-child(2){max-width:620px}
td b{color:var(--ink);font-weight:600}
.event-title{display:flex;align-items:flex-start;gap:7px}
.event-title .icon{width:16px;height:16px;margin-top:1px;color:#4d83d5}
.cell-with-icon{display:inline-flex;align-items:flex-start;gap:6px}
.cell-with-icon .icon{width:14px;height:14px;margin-top:1px;color:#40536c}
td a{display:inline-flex;align-items:center;gap:5px;margin-top:6px;color:var(--blue);font-weight:600;text-decoration:none}
td a .icon{width:13px;height:13px}
td a:hover{text-decoration:underline}
.empty{padding:45px;text-align:center;color:var(--muted)}
.empty-icon{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 11px;color:#6d88ae;border-radius:20px;background:rgba(255,255,255,.5)}
.empty-icon .icon{width:31px;height:31px}

.ghost,button{
  padding:10px 16px;
  color:#fff;
  font-weight:600;
  border:1px solid rgba(255,255,255,.36);
  border-radius:14px;
  background:linear-gradient(135deg,var(--cyan),var(--blue) 54%,var(--navy));
  box-shadow:0 12px 27px rgba(39,55,117,.22),inset 0 1px 0 rgba(255,255,255,.28);
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.ghost,button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ghost .icon,button .icon{width:16px;height:16px;stroke-width:2}
button:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 16px 34px rgba(39,55,117,.28)}
.ghost{color:var(--blue);border-color:rgba(255,255,255,.78);background:rgba(255,255,255,.62);box-shadow:0 8px 20px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.86)}
.ghost:hover{box-shadow:0 12px 28px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.92)}

.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{
  width:min(430px,100%);
  padding:36px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--glass-border);
  border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.48));
  backdrop-filter:blur(34px) saturate(1.6);
  -webkit-backdrop-filter:blur(34px) saturate(1.6);
  box-shadow:var(--shadow);
  animation:login-in .5s cubic-bezier(.2,.8,.2,1) both;
}
.login-card::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.78),transparent 40%);
}
.login-card>*{position:relative}
.login-card .brand-mark{margin:0 auto}
.login-card h1{margin:16px 0 4px;text-align:center;font-size:37px;letter-spacing:-.04em}
.login-card>p{margin:0 0 26px;text-align:center;color:var(--muted);line-height:1.5}
.login-card label{display:block;margin:14px 0 7px;font-size:13px;font-weight:600}
.login-card label .icon{width:14px;height:14px;margin-right:4px;color:var(--blue)}
.input-shell{position:relative}
.input-shell>.icon{
  position:absolute;
  left:14px;
  top:50%;
  z-index:2;
  width:17px;
  height:17px;
  color:#43566e;
  transform:translateY(-50%);
  pointer-events:none;
}
.login-card input{
  width:100%;
  padding:13px 14px 13px 42px;
  color:var(--ink);
  border:1px solid rgba(255,255,255,.88);
  border-radius:14px;
  outline:0;
  background:rgba(255,255,255,.64);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 8px 18px rgba(15,23,42,.04);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.login-card input:focus{
  border-color:rgba(67,165,217,.58);
  background:rgba(255,255,255,.84);
  box-shadow:0 0 0 4px rgba(67,165,217,.14),inset 0 1px 0 rgba(255,255,255,.94);
}
.login-card button{width:100%;margin-top:20px;padding:13px}
.google-login-button{
  width:100%;
  margin-top:20px;
  padding:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#fff;
  font-weight:650;
  text-decoration:none;
  border-radius:14px;
  background:linear-gradient(135deg,var(--cyan),var(--blue) 55%,var(--navy));
  box-shadow:0 12px 27px rgba(39,55,117,.22),inset 0 1px 0 rgba(255,255,255,.28);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.google-login-button:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 16px 34px rgba(39,55,117,.28)}
.google-login-button .icon{width:17px;height:17px;stroke-width:2}
.login-hint{display:block;margin-top:14px;color:var(--muted);text-align:center;line-height:1.5}
.notice{padding:11px 13px;border-radius:12px;font-size:13px;line-height:1.5}
.notice .icon{width:16px;height:16px;margin-right:5px}
.notice.danger{color:#991b1b;border:1px solid rgba(239,68,68,.12);background:rgba(254,226,226,.72)}

@keyframes fade-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes login-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ambient-drift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-28px,-16px,0) scale(1.04)}}

@media(max-width:900px){
  .stats{grid-template-columns:1fr 1fr}
  .grid{grid-template-columns:1fr}
  .hero{gap:20px}
  .live{white-space:nowrap}
}
@media(max-width:560px){
  body{font-size:13px}
  .topbar{width:calc(100% - 20px);min-height:60px;padding:8px 10px;border-radius:0 0 19px 19px}
  .brand small{display:none}
  .brand b{font-size:17px}
  .brand-mark.small{width:39px;height:39px;border-radius:13px;font-size:18px}
  .container{width:calc(100% - 24px);padding:26px 0 46px}
  .hero{display:block;padding-bottom:20px}
  .hero h1{font-size:32px}
  .hero-icon{width:43px;height:43px;border-radius:14px}
  .hero-icon .icon{width:22px;height:22px}
  .live{margin-top:14px}
  .stats{gap:10px}
  .stats article{min-height:112px;padding:16px;gap:11px;border-radius:21px}
  .stats b{font-size:30px}
  .stats .stat-icon{width:43px;height:43px;border-radius:14px}
  .stats .stat-icon .icon{width:22px;height:22px}
  .panel{padding:16px;border-radius:22px}
  .panel h2{font-size:18px}
  .panel-icon{width:42px;height:42px;border-radius:14px}
  .panel-icon .icon{width:21px;height:21px}
  .channel{align-items:flex-start}
  .pill{flex-shrink:0}
  .login-shell{padding:14px}
  .login-card{padding:27px;border-radius:26px}
  .login-card h1{font-size:34px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

/* Kalert Standard v1 and centralized Action Catalog */
.main-nav{
  display:flex;
  align-items:center;
  gap:5px;
  padding:4px;
  border:1px solid rgba(255,255,255,.52);
  border-radius:15px;
  background:rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}
.main-nav a{
  min-height:36px;
  padding:9px 13px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--ink-soft);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  border-radius:11px;
}
.main-nav a:hover,.main-nav a.active{
  color:#fff;
  background:linear-gradient(135deg,var(--cyan),var(--blue) 58%,var(--navy));
  box-shadow:0 8px 20px rgba(39,55,117,.18),inset 0 1px 0 rgba(255,255,255,.25);
}
.main-nav .icon{width:16px;height:16px}
.standard-hero h1,.catalog-hero h1{display:block}
.standard-section{margin-bottom:22px}
.level-standard-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.level-standard-card{
  min-width:0;
  padding:18px;
  border:1px solid rgba(255,255,255,.64);
  border-radius:20px;
  background:rgba(255,255,255,.48);
  box-shadow:0 12px 30px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.82);
}
.level-standard-card header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.level-standard-card header>div{display:grid;gap:1px}
.level-standard-card header b{font-size:15px;letter-spacing:.06em}
.level-standard-card header small{color:var(--muted);font-size:12px}
.level-code{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#fff;
  font-size:17px;
  font-weight:600;
  border-radius:15px;
  background:var(--navy);
  box-shadow:0 9px 22px rgba(39,55,117,.18);
}
.level-standard-card>p{min-height:58px;margin:0 0 14px;color:var(--ink-soft);line-height:1.55}
.level-standard-card dl{display:grid;gap:9px;margin:0}
.level-standard-card dl div{padding-top:9px;border-top:1px solid rgba(39,55,117,.09)}
.level-standard-card dt{margin-bottom:3px;color:var(--navy);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.level-standard-card dd{margin:0;color:var(--muted);font-size:12px;line-height:1.48}
.level-0 .level-code{background:#64748b}
.level-1 .level-code{background:#1686bd}
.level-2 .level-code{background:#7c5ab8}
.level-3 .level-code{background:#d97706}
.level-4 .level-code{background:#dc2626}
.level-5 .level-code{background:#8c1826}
.standard-flow{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.standard-flow article{
  min-width:0;
  display:flex;
  gap:12px;
  padding:16px;
  border:1px solid rgba(255,255,255,.58);
  border-radius:18px;
  background:rgba(255,255,255,.43);
}
.standard-flow article>span,.step-number{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#fff;
  font-size:11px;
  font-weight:600;
  border-radius:11px;
  background:linear-gradient(135deg,var(--cyan),var(--navy));
}
.standard-flow article>div{display:grid;align-content:start;gap:2px}
.standard-flow b,.principle-grid b{color:var(--navy);font-size:11px;letter-spacing:.07em}
.standard-flow strong,.principle-grid strong{font-size:14px}
.standard-flow p,.principle-grid p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.standard-callout{
  margin:15px 0 0;
  padding:13px 15px;
  color:#284164;
  border:1px solid rgba(67,165,217,.2);
  border-radius:14px;
  background:rgba(226,244,255,.58);
}
.standard-callout .icon{margin-right:6px}
.standard-callout code{font-weight:600}
.principle-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.principle-grid article{
  min-width:0;
  display:grid;
  align-content:start;
  gap:3px;
  padding:16px;
  border:1px solid rgba(255,255,255,.58);
  border-radius:18px;
  background:rgba(255,255,255,.43);
}
.principle-grid .step-number{margin-bottom:7px}
.catalog-notice{
  margin:0 0 18px;
  padding:13px 15px;
  color:#10623a;
  border:1px solid rgba(22,156,91,.22);
  border-radius:15px;
  background:rgba(225,249,236,.78);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.catalog-notice .icon{margin-right:6px}
.catalog-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.catalog-stats article{
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(255,255,255,.48);
  border-radius:18px;
  background:rgba(255,255,255,.54);
  box-shadow:0 12px 28px rgba(0,0,0,.09),inset 0 1px 0 rgba(255,255,255,.82);
}
.catalog-stats span{color:var(--muted);font-size:12px}
.catalog-stats b{font-size:24px;color:var(--navy)}
.catalog-panel{padding:20px}
.catalog-view-tabs{display:flex;gap:7px;margin-bottom:14px}
.catalog-view-tabs a{
  padding:9px 12px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--ink-soft);
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  border:1px solid rgba(39,55,117,.12);
  border-radius:12px;
  background:rgba(255,255,255,.48);
}
.catalog-view-tabs a.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--cyan),var(--navy))}
.catalog-filters{
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) repeat(4,minmax(150px,1fr)) auto auto;
  gap:8px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:17px;
  background:rgba(255,255,255,.38);
}
.catalog-filters input,.catalog-filters select{
  width:100%;
  min-width:0;
  height:40px;
  padding:0 11px;
  color:var(--ink);
  outline:0;
  border:1px solid rgba(39,55,117,.13);
  border-radius:11px;
  background:rgba(255,255,255,.72);
}
.catalog-filters input:focus,.catalog-filters select:focus{border-color:rgba(67,165,217,.64);box-shadow:0 0 0 3px rgba(67,165,217,.12)}
.catalog-filters button{height:40px;padding:0 15px;border-radius:11px}
.filter-reset{padding:9px;color:var(--muted);font-size:12px;white-space:nowrap}
.catalog-result-head{
  margin:14px 2px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:12px;
}
.catalog-result-head b{color:var(--navy);font-size:16px}
.catalog-list{display:grid;gap:11px}
.catalog-action{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.62);
  border-left:5px solid #64748b;
  border-radius:18px;
  background:rgba(255,255,255,.52);
  box-shadow:0 10px 26px rgba(15,23,42,.055),inset 0 1px 0 rgba(255,255,255,.86);
}
.catalog-action.level-border-1{border-left-color:#1686bd}
.catalog-action.level-border-2{border-left-color:#7c5ab8}
.catalog-action.level-border-3{border-left-color:#d97706}
.catalog-action.level-border-4{border-left-color:#dc2626}
.catalog-action.level-border-5{border-left-color:#8c1826}
.catalog-action>header{
  display:grid;
  grid-template-columns:38px minmax(300px,1.3fr) minmax(230px,.7fr);
  gap:12px;
  align-items:start;
  padding:14px 15px 11px;
  border-bottom:1px solid rgba(39,55,117,.085);
}
.catalog-index{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:11px;
  border-radius:10px;
  background:rgba(255,255,255,.74);
}
.catalog-key{min-width:0;display:grid;gap:4px}
.catalog-key>div{display:flex;align-items:center;gap:7px;min-width:0}
.catalog-key code{
  overflow:hidden;
  color:var(--navy);
  font-size:12px;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catalog-key>b{font-size:13px}
.catalog-key>strong{color:var(--muted);font-size:12px}
.source-badge{
  padding:4px 7px;
  flex:0 0 auto;
  color:#fff;
  font-size:9px;
  font-weight:600;
  letter-spacing:.06em;
  border-radius:8px;
  background:var(--navy);
}
.source-badge.source-vps_reporter{background:#3b7f98}
.catalog-classification{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.catalog-classification>span{
  padding:5px 8px;
  color:var(--muted);
  font-size:10px;
  border:1px solid rgba(39,55,117,.1);
  border-radius:9px;
  background:rgba(255,255,255,.65);
}
.catalog-classification .catalog-level{font-weight:600;color:var(--navy)}
.catalog-classification .level-3{color:#9a4f03;background:#fff7df}
.catalog-classification .level-4,.catalog-classification .level-5{color:#a51818;background:#fff0f0}
.catalog-classification .implementation.live{color:#10623a;background:#e8f8ef}
.catalog-classification .implementation.audit_only{color:#52627e;background:#edf1f7}
.catalog-classification .implementation.declared_only{color:#8a5200;background:#fff6dc}
.catalog-body{
  display:grid;
  grid-template-columns:1.15fr 1fr 1fr .48fr;
  gap:0;
  padding:0 15px;
}
.catalog-body>div{min-width:0;padding:13px 14px;border-left:1px solid rgba(39,55,117,.075)}
.catalog-body>div:first-child{padding-left:0;border-left:0}
.field-label{
  display:block;
  margin-bottom:5px;
  color:var(--navy);
  font-size:9px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.catalog-body p{margin:0;color:var(--ink-soft);font-size:11.5px;line-height:1.52}
.catalog-body small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.45}
.catalog-policy b{display:block;font-size:12px}
.catalog-policy code{font-size:9px;word-break:break-word}
.catalog-action>footer{
  min-height:45px;
  padding:8px 12px 8px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid rgba(39,55,117,.075);
  background:rgba(255,255,255,.2);
}
.catalog-action>footer>span{color:var(--muted);font-size:10px}
.catalog-action>footer form{margin:0}
.delete-action,.restore-action{
  padding:7px 10px;
  color:#a31d1d;
  font-size:11px;
  border:1px solid rgba(220,38,38,.14);
  border-radius:10px;
  background:rgba(255,244,244,.82);
  box-shadow:none;
}
.restore-action{color:#12663d;border-color:rgba(22,156,91,.14);background:rgba(235,250,242,.86)}
.delete-action:hover,.restore-action:hover{box-shadow:0 8px 18px rgba(15,23,42,.08)}
.catalog-empty{
  padding:48px 20px;
  color:var(--muted);
  text-align:center;
  border:1px dashed rgba(39,55,117,.18);
  border-radius:18px;
}
.catalog-empty .icon{width:22px;height:22px;margin-right:7px}

@media(max-width:1180px){
  .level-standard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .principle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .standard-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-filters input{grid-column:span 2}
  .catalog-action>header{grid-template-columns:38px minmax(0,1fr)}
  .catalog-classification{grid-column:2;justify-content:flex-start}
  .catalog-body{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-body>div:nth-child(3){border-left:0}
}
@media(max-width:760px){
  .topbar{flex-wrap:wrap}
  .main-nav{order:3;width:100%;justify-content:center}
  .main-nav a{flex:1;justify-content:center}
  .level-standard-grid,.standard-flow,.principle-grid,.catalog-stats{grid-template-columns:1fr}
  .catalog-filters{grid-template-columns:1fr}
  .catalog-filters input{grid-column:auto}
  .catalog-result-head{align-items:flex-start;flex-direction:column}
  .catalog-action>header{grid-template-columns:32px minmax(0,1fr)}
  .catalog-body{grid-template-columns:1fr}
  .catalog-body>div{padding:11px 0;border-left:0;border-top:1px solid rgba(39,55,117,.075)}
  .catalog-body>div:first-child{border-top:0}
}
@media(max-width:560px){
  .main-nav a{padding:8px 6px;font-size:11px}
  .topbar>.ghost,.topbar>form .ghost{padding:9px}
  .catalog-panel{padding:13px}
  .catalog-view-tabs{display:grid;grid-template-columns:1fr 1fr}
  .catalog-view-tabs a{justify-content:center}
  .catalog-action>header{padding:12px 10px}
  .catalog-body{padding:0 10px}
  .catalog-action>footer{align-items:flex-start;flex-direction:column}
}
