:root{color-scheme:dark;--bg:#061020;--panel:#0b1a2f;--panel2:#0e2138;--line:rgba(160,200,231,.17);--muted:#9aafc5;--text:#eef7ff;--mint:#58eed5;--gold:#f1cd8c;--indigo:#849cfa;--shadow:0 25px 85px rgba(0,0,0,.3)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;overflow-x:hidden;background:radial-gradient(circle at 19% 12%,#11294c 0,transparent 34%),radial-gradient(circle at 95% 56%,#0b3140 0,transparent 33%),var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.65}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--mint);outline-offset:3px}[hidden]{display:none!important}.skip-link{position:absolute;z-index:1000;top:-100px;right:20px;background:white;color:#041526;padding:10px 16px;border-radius:10px}.skip-link:focus{top:12px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ambient{position:fixed;pointer-events:none;z-index:0;filter:blur(2px);opacity:.36}.ambient-a{width:460px;height:460px;left:-280px;top:130px;border-radius:100%;background:radial-gradient(circle,rgba(72,205,207,.22),transparent 70%)}.ambient-b{width:580px;height:580px;right:-330px;bottom:-200px;border-radius:100%;background:radial-gradient(circle,rgba(116,137,253,.23),transparent 70%)}.topbar,.gate-shell,.workspace,.footer{position:relative;z-index:1}.topbar{max-width:1480px;margin:auto;min-height:96px;padding:20px clamp(20px,4.5vw,68px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(178,204,236,.08)}.brand{display:flex;align-items:center;gap:14px}.brand-mark{width:49px;height:49px;border-radius:15px;display:grid;place-items:center;font-size:27px;font-weight:1000;position:relative;color:#061729;background:linear-gradient(145deg,#5bedd3,#86bfff);box-shadow:0 9px 27px rgba(67,226,215,.26)}.brand-pulse{position:absolute;font-size:11px;right:-4px;top:-6px;background:#10293e;color:var(--gold);border-radius:50%;width:20px;height:20px;display:grid;place-items:center}.brand strong{font-size:19px;letter-spacing:.14em;display:block;line-height:1.2}.brand strong em{color:var(--mint);font-style:normal}.brand small{font-size:11px;display:block;margin-top:5px;color:var(--muted);font-weight:650;letter-spacing:.07em}.topbar-tools{display:flex;gap:11px;align-items:center}.security-tag,.date-chip{border:1px solid var(--line);color:#c7d9ec;padding:9px 14px;border-radius:40px;background:rgba(255,255,255,.03);font-size:12px;font-weight:700}.security-tag i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 15px var(--mint);margin-inline-end:8px}.ghost-button,.signout-button{background:rgba(255,255,255,.035);color:#e4f4ff;border:1px solid var(--line);border-radius:12px;padding:10px 15px;font-weight:750;transition:.2s}.ghost-button:hover,.signout-button:hover{border-color:rgba(88,238,213,.55);background:rgba(88,238,213,.08)}.gate-shell{max-width:1410px;margin:0 auto;min-height:min(790px,calc(100vh - 180px));padding:clamp(35px,7vw,108px) clamp(20px,5.5vw,75px) 90px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(350px,.78fr);gap:clamp(35px,7vw,120px);align-items:center}.hero-copy{max-width:780px}.eyebrow,.card-kicker{color:var(--mint);font-size:11px;font-weight:850;letter-spacing:.2em;direction:ltr;text-align:start}.sparkle{font-size:19px;margin-inline-end:6px}.hero-copy h1{font-size:clamp(49px,6.3vw,96px);font-weight:920;letter-spacing:-.065em;line-height:1.18;margin:28px 0;max-width:800px}.hero-copy h1 span{background:linear-gradient(115deg,#5ce9d1,#8bc2f7 58%,#f0d29a);background-clip:text;-webkit-background-clip:text;color:transparent}.hero-lead{max-width:640px;font-size:clamp(16px,1.5vw,21px);color:#b8d0e0;line-height:2;margin:0}.hero-metrics{display:flex;gap:0;max-width:600px;margin-top:54px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:19px 0}.hero-metrics>div{flex:1;display:flex;flex-direction:column;gap:3px;padding:0 18px;border-inline-end:1px solid var(--line)}.hero-metrics>div:first-child{padding-inline-start:0}.hero-metrics>div:last-child{border:0}.hero-metrics strong{font-size:clamp(25px,3vw,39px);line-height:1.15;font-weight:850;color:#f0f8ff;direction:ltr}.hero-metrics span{font-size:12px;color:var(--muted)}.hero-rail{margin-top:35px;color:#9cb2c4;font-size:13px;display:flex;align-items:center;gap:18px}.rail-line{height:1px;max-width:54px;flex:1;background:var(--mint)}.login-card{position:relative;isolation:isolate;overflow:hidden;padding:clamp(26px,3vw,44px);border-radius:30px;border:1px solid rgba(142,228,240,.28);background:linear-gradient(160deg,rgba(20,49,77,.92),rgba(7,20,39,.98) 65%);box-shadow:var(--shadow)}.login-card:before{content:"";position:absolute;inset:0;border-radius:30px;padding:1px;background:linear-gradient(145deg,rgba(93,246,208,.5),transparent 36%,rgba(244,207,148,.24) 90%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.login-shine{position:absolute;width:280px;height:280px;left:-140px;top:-190px;background:radial-gradient(circle,rgba(89,240,222,.20),transparent 70%);pointer-events:none}.card-kicker{display:flex;justify-content:space-between}.card-kicker span{color:var(--mint);text-shadow:0 0 12px var(--mint)}.login-icon{width:72px;height:72px;display:grid;place-items:center;margin:36px 0 24px;border-radius:23px;border:1px solid rgba(112,245,218,.4);background:linear-gradient(145deg,rgba(66,227,209,.2),rgba(83,126,248,.1));font-size:43px;color:var(--mint)}.login-card h2{font-size:clamp(26px,2.5vw,38px);letter-spacing:-.04em;line-height:1.3;margin:0 0 10px}.login-card p{color:#a9c1d6;font-size:14px;margin:0 0 24px}.login-card form,.form-panel{display:grid;gap:12px}.login-card label,.form-panel label,.filter-bar label{color:#d6e8f5;font-size:13px;font-weight:800}.login-card input,.form-panel input,.form-panel textarea,.form-panel select,.filter-bar select,.filter-bar input{border:1px solid rgba(161,195,219,.22);border-radius:12px;padding:13px 14px;width:100%;background:#0a1a30;color:#f0faff;min-height:49px;transition:border-color .2s}.login-card input:focus,.form-panel input:focus,.form-panel select:focus{border-color:var(--mint)}.login-card form label:not(:first-child){margin-top:7px}.primary-button{background:linear-gradient(115deg,#55dfc8,#7bc8e6);color:#052133;border:0;border-radius:12px;min-height:52px;padding:12px 19px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:18px;box-shadow:0 10px 27px rgba(34,211,188,.15);transition:transform .2s,box-shadow .2s}.primary-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 16px 36px rgba(34,211,188,.22)}.login-card .primary-button{margin-top:12px;width:100%}.login-card .notice{margin-top:12px;min-height:0}.login-foot{margin-top:22px;padding-top:20px;border-top:1px solid var(--line);display:flex;gap:13px;font-size:12px;color:#93aec3;align-items:flex-start}.login-foot span:first-child{color:var(--gold);font-size:20px}.notice{font-size:13px;min-height:25px;color:#b7d4e7}.notice.error{color:#ffb1ac}.notice.success{color:#6bedc6}.footer{border-top:1px solid rgba(177,215,229,.09);max-width:1480px;margin:0 auto;padding:23px clamp(20px,4.5vw,68px);display:flex;justify-content:space-between;gap:12px;color:#708ba4;font-size:10px;letter-spacing:.08em}.workspace{max-width:1560px;min-height:calc(100vh - 180px);margin:0 auto;display:grid;grid-template-columns:260px minmax(0,1fr);padding:28px clamp(16px,3vw,46px);gap:32px}.sidebar{align-self:start;position:sticky;top:20px;min-height:calc(100vh - 190px);padding:24px 17px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(170deg,rgba(17,40,63,.95),rgba(9,23,42,.96));display:flex;flex-direction:column}.sidebar-heading{padding:10px 12px 25px;border-bottom:1px solid var(--line)}.pill{color:var(--mint);font-size:10px;letter-spacing:.2em;font-weight:800}.sidebar h2{font-size:23px;margin:10px 0 4px}.sidebar p{font-size:12px;color:var(--muted);margin:0}.side-nav{display:grid;gap:7px;margin-top:22px}.side-button{width:100%;padding:13px 14px;border:1px solid transparent;border-radius:12px;text-align:start;color:#b8ccda;background:transparent;display:flex;align-items:center;gap:13px;font-weight:760;font-size:13px}.side-button>span:first-child{font-size:22px;min-width:25px;color:#83a6b9}.side-button:hover,.side-button.active{background:linear-gradient(105deg,rgba(78,219,208,.13),rgba(83,126,248,.07));border-color:rgba(80,220,206,.2);color:white}.side-button.active>span:first-child{color:var(--mint)}.sidebar-bottom{margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}.account-chip{display:flex;align-items:center;gap:10px;margin-bottom:14px}.account-avatar{border-radius:12px;width:39px;height:39px;display:grid;place-items:center;background:linear-gradient(145deg,#43b9b0,#527fbd);color:#061527;font-weight:900}.account-chip strong{display:block;font-size:12px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-chip small{display:block;color:var(--muted);font-size:10px}.signout-button{width:100%;font-size:12px}.workspace-main{min-width:0;padding-top:16px}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.workspace-top h1{font-size:clamp(30px,3.2vw,43px);margin:6px 0 0;letter-spacing:-.04em}.workspace-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.stat{border:1px solid var(--line);border-radius:19px;background:linear-gradient(150deg,rgba(22,46,70,.92),rgba(12,27,48,.85));padding:22px 20px;min-height:145px;position:relative;overflow:hidden}.stat:after{content:"";position:absolute;left:-50px;bottom:-70px;width:140px;height:140px;border-radius:100%;background:radial-gradient(circle,rgba(76,233,208,.08),transparent 70%)}.stat span{display:block;font-size:12px;color:#b4cadd;font-weight:720}.stat strong{font-size:41px;line-height:1.5;display:block;color:#f2faff;direction:ltr;text-align:start}.stat small{font-size:9px;color:#658da4;letter-spacing:.14em}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:36px 0 17px}.section-heading h2{margin:6px 0 0;font-size:24px;letter-spacing:-.03em}.section-heading p{font-size:12px;color:var(--muted);margin:0}.council-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.council-card{position:relative;overflow:hidden;min-height:206px;background:linear-gradient(155deg,rgba(24,50,76,.94),rgba(10,24,43,.96));border:1px solid rgba(148,207,225,.15);border-radius:19px;padding:20px;display:flex;flex-direction:column;align-items:flex-start;text-align:start;color:inherit;transition:transform .18s,border-color .18s,box-shadow .18s}.council-card:not(:disabled):hover{transform:translateY(-5px);border-color:var(--mint);box-shadow:0 20px 40px rgba(0,0,0,.18)}.council-card:before{content:"";position:absolute;height:120px;width:120px;left:-35px;top:-55px;border-radius:50%;background:radial-gradient(circle,var(--glow,rgba(80,220,200,.14)),transparent 72%)}.council-card .council-icon{font-size:29px;color:var(--accent,var(--mint));border:1px solid rgba(158,229,238,.19);width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.035);margin-bottom:17px}.council-card h3{font-size:15px;margin:0 0 5px;line-height:1.5}.council-card p{font-size:11px;line-height:1.7;color:#9bb5ca;margin:0 0 16px;flex:1}.council-card small{font-size:10px;font-weight:800;color:var(--accent,var(--mint));padding-top:7px}.council-card:disabled{opacity:.58}.council-card:disabled small{color:#94a7b5}.record-list{display:grid;gap:12px}.record-card,.empty-card{border:1px solid var(--line);border-radius:17px;padding:18px 21px;background:linear-gradient(145deg,rgba(17,39,62,.9),rgba(9,25,44,.88))}.record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.record-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.record-card h3{font-size:16px;line-height:1.5;margin:7px 0}.record-card p{color:#b4cbd9;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}.record-meta{color:var(--muted);font-size:11px;display:flex;gap:10px;flex-wrap:wrap}.kind-tag,.status-tag{display:inline-block;font-size:10px;font-weight:800;border-radius:20px;padding:5px 10px;border:1px solid rgba(130,206,223,.24);color:#b4e5e6;background:rgba(70,176,179,.09)}.status-tag{color:#e7c892;background:rgba(212,166,93,.07);border-color:rgba(212,166,93,.21)}.status-editor{display:flex;gap:8px;margin-top:12px;align-items:center;flex-wrap:wrap}.status-editor select{width:auto;min-width:150px;background:#0a1a30;color:var(--text);border:1px solid var(--line);border-radius:9px;padding:8px;font-size:12px}.status-editor button,.membership-actions button{font-size:11px;border:1px solid var(--line);border-radius:9px;background:#16403e;color:#c5fff1;padding:8px 11px;font-weight:750}.empty-card{text-align:center;color:var(--muted);font-size:13px;padding:35px 25px}.filter-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 15px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.025);margin-bottom:17px}.filter-bar select{max-width:240px}.filter-bar input{flex:1;min-width:170px}.form-panel{max-width:830px;border:1px solid var(--line);border-radius:22px;padding:clamp(20px,3vw,35px);background:linear-gradient(155deg,#112942,#0a1a2c);gap:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid>div{display:grid;gap:8px}.form-panel .primary-button{justify-self:start;margin-top:12px}.form-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.form-actions p{color:var(--muted);font-size:12px}.membership-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.member-id{font-size:12px;letter-spacing:.01em;overflow-wrap:anywhere;color:#9ac6da;direction:ltr}.member-entry{display:flex;align-items:center;justify-content:space-between;gap:16px}.member-entry p{margin:0}.view[hidden]{display:none!important}
@media(max-width:1150px){.council-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{gap:20px;grid-template-columns:220px minmax(0,1fr)}}@media(max-width:850px){.gate-shell{grid-template-columns:1fr;min-height:auto;padding-top:60px;gap:40px}.hero-copy h1{font-size:clamp(44px,8vw,70px)}.login-card{max-width:650px;width:100%}.workspace{grid-template-columns:1fr;gap:12px}.sidebar{position:static;min-height:0}.sidebar-heading{display:none}.side-nav{display:flex;overflow-x:auto;margin:0 0 15px}.side-button{min-width:max-content;width:auto}.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:10px}.signout-button{width:auto}.workspace-main{padding-top:0}}@media(max-width:600px){.topbar{padding:16px 17px;flex-wrap:wrap}.brand strong{font-size:16px}.topbar-tools{width:100%;justify-content:space-between}.security-tag{font-size:10px}.home-link{font-size:11px}.gate-shell{padding:44px 18px 60px}.hero-metrics{margin-top:36px}.hero-metrics>div{padding:0 10px}.hero-metrics span{font-size:10px}.hero-rail{font-size:11px}.workspace{padding:16px 12px}.workspace-top{align-items:flex-start;flex-direction:column}.stats-grid{gap:9px}.stat{padding:14px;min-height:120px}.stat strong{font-size:31px}.council-grid{gap:9px}.council-card{min-height:230px;padding:14px}.council-card h3{font-size:14px}.section-heading{display:block}.section-heading p{margin-top:10px}.form-grid{grid-template-columns:1fr}.footer{display:block;padding:20px}.footer span{display:block;margin:4px 0}.member-entry{display:block}.membership-actions{margin-top:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}


/* ======================================================
   NABD COUNCILS / SIGNATURE INSTITUTIONAL DESIGN v2
   Refined midnight navy · brushed champagne gold · teal
   Illustrations are first-party SVG assets stored locally.
   ====================================================== */
:root {
  --bg: #04121e;
  --panel: #092235;
  --panel2: #0e2a3e;
  --text: #f5f5ef;
  --muted: #b2bdc5;
  --gold: #dfbd80;
  --mint: #5ac8c0;
  --line: rgba(219,181,117,.30);
  --shadow: 0 28px 78px rgba(0,0,0,.37);
}
body {
  background:
    radial-gradient(ellipse 54% 42% at 75% 2%, rgba(17,73,91,.37), transparent 80%),
    radial-gradient(ellipse 48% 35% at 1% 50%, rgba(15,64,73,.23), transparent 75%),
    linear-gradient(145deg,#061523,#03111e 55%,#071d2b);
  color: var(--text);
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
body:before {
  content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(224,194,139,.023) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(224,194,139,.019) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg,transparent 0%, #000 70%,transparent);
}
.ambient-a { background: radial-gradient(circle,rgba(188,142,64,.25),transparent 70%); }
.ambient-b { background: radial-gradient(circle,rgba(36,133,147,.28),transparent 70%); }
.topbar {
  min-height: 103px; border-bottom: 1px solid rgba(221,184,122,.24);
  background: linear-gradient(115deg,rgba(5,19,30,.97),rgba(9,35,51,.89));
  max-width: none; padding-inline: clamp(18px,3.8vw,68px);
  box-shadow: 0 8px 32px rgba(0,0,0,.19);
}
.brand { gap: 18px; }
.brand-mark {
  height: 57px; width: 57px; border-radius: 14px;
  border: 1px solid rgba(255,223,164,.58);
  color: #ffe2a5;
  background: linear-gradient(145deg,#213b43,#081c2d 70%);
  font-size: 28px; font-family: Georgia,serif; font-weight: 800;
  box-shadow: inset 0 0 0 3px rgba(210,170,104,.12),0 10px 28px rgba(0,0,0,.22);
}
.brand-mark:before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(223,189,128,.35);
  border-radius: 9px; pointer-events: none;
}
.brand-pulse { background: linear-gradient(135deg,#bf9651,#f2dab0); color: #11283a; box-shadow: 0 0 0 2px #092333; }
.brand strong { font-size: 25px; color: #f8f4e8; letter-spacing: 0; font-weight: 850; }
.brand strong em { color: var(--gold); }
.brand small { color: #dbcba7; letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.security-tag {
  border-color:rgba(222,181,110,.32); color:#e6d0a9;
  background:rgba(7,29,42,.66); backdrop-filter:blur(8px);
}
.security-tag i {background: #d4b576; box-shadow:0 0 12px #d4b576;}
.ghost-button, .signout-button {
  border:1px solid rgba(222,181,110,.38); color:#f0dcbb;
  background:rgba(9,30,44,.68); border-radius:11px;
}
.ghost-button:hover,.signout-button:hover {
  border-color:#d9b675; background:rgba(219,184,119,.12); color:#fff5db;
}
.gate-shell {
  max-width: 1500px;
  background: linear-gradient(110deg,rgba(4,19,32,.72),rgba(4,18,30,.24)),
              url("../images/councils/hero-architecture.svg") left top/cover no-repeat;
  border-radius: 0 0 34px 34px;
}
.gate-shell:before { content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(6,22,32,.18),rgba(5,20,30,.54));
  border-radius:inherit; pointer-events:none; z-index:-1;
}
.hero-copy h1 { font-weight:900; text-shadow:0 6px 30px #051320; letter-spacing:-.052em; }
.hero-copy h1 span {
  background:linear-gradient(125deg,#fff1c4,#d9af69,#66cfc7);
  background-clip:text;-webkit-background-clip:text;color:transparent;
}
.eyebrow,.card-kicker,.pill { color: #e9c58e; letter-spacing:.14em; }
.hero-lead { color: #e2e3d9; text-shadow:0 2px 8px #061521; }
.hero-metrics { background:rgba(4,23,34,.38); border-radius:16px; border-color:rgba(222,182,111,.29); }
.hero-metrics strong {color:#fff1d3;}
.rail-line {background:linear-gradient(90deg,#bb9460,#e4c991);}
.login-card {
  border:1px solid rgba(224,186,123,.48); border-radius:24px;
  background:linear-gradient(150deg,rgba(14,43,59,.96),rgba(3,20,32,.98));
  box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,237,184,.1);
}
.login-card:before {background:linear-gradient(145deg,rgba(247,211,145,.63),transparent 44%,rgba(64,184,188,.32) 90%);}
.login-shine {background:radial-gradient(circle,rgba(222,180,102,.26),transparent 70%);}
.login-icon {color:#f9d797; border-color:rgba(241,204,134,.48);background:rgba(228,184,108,.09); }
.login-card h2 {color:#fff6de;}
.login-card input, .form-panel input, .form-panel textarea, .form-panel select,
.filter-bar select,.filter-bar input {
  background:#081e2e;border:1px solid rgba(204,170,110,.3);color:#f5f1e8;
}
.login-card input:focus,.form-panel input:focus,.form-panel select:focus {border-color:#dbbd82;}
.primary-button {
  color:#172c36; background:linear-gradient(115deg,#f7dca5,#d7b472 54%,#a98451);
  border:1px solid rgba(255,230,170,.7); box-shadow:0 8px 25px rgba(194,141,57,.15);
  font-weight:850; border-radius:11px;
}
.primary-button:hover:not(:disabled) {box-shadow:0 12px 38px rgba(198,151,78,.3);}
.workspace {
  max-width: 1660px;
  grid-template-columns: 244px minmax(0,1fr);
  gap: 26px;
  padding: 26px clamp(15px,3vw,50px) 48px;
  align-items:start;
}
.sidebar {
  background:linear-gradient(160deg,rgba(13,43,58,.97),rgba(5,24,37,.99));
  border:1px solid rgba(222,185,116,.36);
  border-radius:17px;
  box-shadow:inset 0 1px 0 rgba(255,240,206,.1),0 24px 70px rgba(0,0,0,.23);
  padding:22px 14px;
  min-height:calc(100vh - 170px);
  overflow:hidden;
}
.sidebar:before {
  content:""; position:absolute; inset:auto -70px -60px -70px; height:310px;
  background:url("../images/councils/hero-architecture.svg") left bottom/auto 100% no-repeat;
  opacity:.23; filter:saturate(.6); pointer-events:none;
}
.sidebar-heading {position:relative;padding:16px 14px 28px;text-align:center;border-bottom:1px solid rgba(223,184,114,.30);}
.sidebar-crest {
  margin: 0 auto 13px; width:64px; height:64px; border-radius:16px;
  display:grid;place-items:center;font-size:34px;color:#f1d193;
  background:linear-gradient(145deg,rgba(220,178,103,.15),rgba(14,53,66,.55));
  border:1px solid rgba(237,203,140,.47);
  box-shadow:inset 0 0 18px rgba(233,198,136,.10);
}
.sidebar-heading h2 {font-size:25px;color:#fff7e6;margin:9px 0 7px;}
.sidebar-heading p {color:#c9c7bc;font-size:12px;}
.side-nav {position:relative;display:grid;gap:8px;margin-top:24px;}
.side-button {font-size:13px;color:#e4dfd1;border-radius:12px;border:1px solid transparent;min-height:51px;padding:12px;}
.side-button>span:first-child {color:#d9ba80;font-size:19px;}
.side-button:hover,.side-button.active {
  border-color:rgba(219,181,110,.47);
  background:linear-gradient(110deg,rgba(23,116,120,.34),rgba(15,56,72,.60));
  box-shadow:inset 3px 0 0 rgba(227,194,127,.46),0 8px 21px rgba(0,0,0,.11);
}
.side-button.active>span:first-child {color:#f5dba5;}
.sidebar-security {
  position:relative;text-align:center;border-top:1px solid rgba(229,190,118,.25);
  padding:26px 10px 18px;margin-top:32px;color:#f1dfbf;
}
.sidebar-security:before {content:"";width:42px;height:2px;background:var(--gold);
  position:absolute;top:-1px;left:calc(50% - 21px);
}
.sidebar-lock {font-size:32px;display:block;line-height:1.4;color:var(--gold);}
.sidebar-security p {font-size:12px;line-height:1.8;color:#d8dfdb;margin:4px 0 9px;}
.sidebar-security small {font-size:10px;letter-spacing:.2em;color:#c2a671;}
.sidebar-bottom {position:relative;margin-top: auto;padding-top:22px;}
.account-avatar {color:#ffdfaa;background:linear-gradient(145deg,#2b5961,#765e40);border:1px solid rgba(217,182,115,.45);}
.workspace-main {padding-top:0;}
.workspace-top {
  min-height:228px;
  border-radius:18px;
  border:1px solid rgba(230,191,121,.46);
  padding:clamp(25px,3vw,46px);
  box-shadow:inset 0 1px 0 rgba(255,241,211,.17),0 18px 50px rgba(0,0,0,.21);
  background: linear-gradient(90deg,rgba(4,17,30,.08),rgba(4,18,31,.77) 52%,rgba(4,18,31,.94)),
    url("../images/councils/hero-architecture.svg") left center/cover no-repeat;
  align-items:flex-start;
  position:relative; isolation:isolate; overflow:hidden;
}
.workspace-top:after {
  content:"";position:absolute;inset:auto 24px 14px auto;width:94px;height:3px;
  background:linear-gradient(90deg,#8c653b,#f3dca4);border-radius:5px;opacity:.8;
}
.workspace-top .eyebrow {font-size:12px;line-height:1.6;color:#efcd94;letter-spacing:.03em;direction:auto;}
.workspace-top h1 {
  color:#fff7e7;text-shadow:0 4px 26px #04101d;
  font-size:clamp(30px,3.65vw,51px);line-height:1.35;margin:12px 0 8px;
  letter-spacing:-.04em;
}
.workspace-top p {font-size:14px;color:#d1dbe0;margin:0;max-width:540px;line-height:1.9;}
.workspace-top .workspace-actions {align-self:flex-end;justify-content:flex-end;}
.workspace-top .date-chip {border-color:rgba(233,201,142,.40);color:#ead6ae;background:rgba(3,20,33,.67);}
.workspace-top .ghost-button {background:rgba(3,19,31,.66);}
.stats-grid {margin-top:23px;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
.stat {
  padding:22px 18px 20px; min-height:155px;
  border-radius:15px; border:1px solid rgba(231,192,121,.47);
  background:linear-gradient(145deg,rgba(18,48,65,.96),rgba(5,23,38,.98));
  box-shadow:inset 0 1px 0 rgba(254,226,163,.13),0 13px 35px rgba(0,0,0,.16);
}
.stat:before {content:"";position:absolute;inset:0;background:linear-gradient(125deg,transparent 45%,rgba(225,180,96,.06));pointer-events:none;}
.stat:after {background:radial-gradient(circle,rgba(222,182,111,.16),transparent 70%);}
.stat span:not(.stat-icon) {color:#d8ddda;font-weight:790;font-size:13px;max-width:80%;}
.stat strong {color:#fef7e8;font-family:system-ui,sans-serif;font-size:39px;font-weight:750;line-height:1.42;direction:ltr;}
.stat small {color:#c6a775;font-size:9px;letter-spacing:.10em;}
.stat-icon {
  position:absolute; inset-inline-end:16px; top:20px; width:38px;height:38px;
  border-radius:11px;display:grid;place-items:center;
  background:rgba(231,189,110,.09);border:1px solid rgba(224,194,131,.34);
  color:#efd49e;font-size:24px;line-height:1;
}
.stat-members .stat-icon,.stat-tasks .stat-icon {color:#7bd6cf;border-color:rgba(118,221,208,.35);}
.stat-members,.stat-tasks {border-color:rgba(92,185,181,.43);}
.section-heading {margin:42px 0 23px;position:relative;}
.section-heading:before {
  content:"";width:4px;height:40px;flex:0 0 4px;align-self:center;
  background:linear-gradient(#f0d297,#ab8650);border-radius:6px;
}
.section-heading h2 {font-size:clamp(22px,2.4vw,29px);color:#f8f2e7;margin:4px 0 0;}
.section-heading p {color:#c0ccd1;}
.section-heading .eyebrow {font-size:10px;color:#d8b77d;}
.council-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}
.council-card {
  --accent: #ddb878;
  background:linear-gradient(110deg,rgba(14,43,58,.98),rgba(5,24,39,.96));
  min-height:176px;
  border:1px solid rgba(225,188,121,.64);border-radius:14px;
  padding:24px 22px; text-align:start;
  box-shadow:inset 0 1px 0 rgba(255,230,186,.14),0 10px 26px rgba(0,0,0,.18);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
  isolation:isolate;
}
.council-card:before {
  content:"";inset:0;left:0;top:0;width:100%;height:100%;
  position:absolute;background:linear-gradient(125deg,rgba(208,165,91,.02),transparent 60%);
  border-radius:inherit;pointer-events:none;z-index:0;
}
.council-card:after {content:"";position:absolute;inset:auto 18px 0 18px;height:2px;
  background:linear-gradient(90deg,transparent,rgba(240,206,149,.78),transparent);opacity:.48;}
.council-card:not(:disabled):hover {
  border-color:#f4d69f;transform:translateY(-4px);
  box-shadow:inset 0 1px 0 rgba(255,229,167,.2),0 20px 43px rgba(0,0,0,.3),0 0 0 1px rgba(219,184,121,.15);
}
.council-art {position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.66;overflow:hidden;}
.council-art:after {content:"";position:absolute;inset:0;
  background:linear-gradient(270deg,#081f31 5%,rgba(8,31,49,.80) 30%,rgba(8,31,49,.17) 87%);
}
.council-art img {width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.78);}
.council-content {position:relative;z-index:2;display:flex;gap:15px;align-items:flex-start;width:100%;height:100%;}
.council-icon {
  flex:0 0 51px;width:51px;height:55px;display:grid;place-items:center;
  color:#f4d59b;font-size:29px;font-family:Georgia,serif;
  border:1px solid rgba(238,196,116,.72);border-radius:13px;
  background:linear-gradient(135deg,rgba(205,161,86,.22),rgba(19,45,57,.92));
  box-shadow:inset 0 0 0 2px rgba(199,171,107,.1),0 6px 18px rgba(0,0,0,.16);
  margin:0;
}
.council-text {display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:4px;max-width:calc(100% - 66px);}
.council-card h3 {font-size:clamp(13px,1.25vw,17px);font-weight:850;line-height:1.55;
  color:#fff8e9;margin:0;text-shadow:0 2px 10px #061724;}
.council-card p {font-size:11px;color:#d5d5cd;margin:0;line-height:1.75;flex:0;max-width:340px;}
.council-card .council-foot {
  display:inline-flex;align-items:center;margin-top:9px;padding:5px 12px;
  border-radius:24px;border:1px solid rgba(236,196,120,.75);
  background:rgba(9,29,38,.75);color:#f4d99f;font-weight:800;
  font-size:11px;line-height:1.3;white-space:normal;
}
.council-arrow {
  position:absolute;z-index:2;inset-inline-end:18px;bottom:18px;
  border:1px solid rgba(222,183,112,.58);border-radius:50%;width:27px;height:27px;
  display:grid;place-items:center;color:#f1d89d;font-size:20px;line-height:1;
  background:rgba(5,23,37,.85);
}
.council-card:disabled {opacity:.56;cursor:not-allowed;}
.council-card:disabled .council-foot {color:#aeb7b6;border-color:rgba(183,184,172,.42);}
.council-card:focus-visible {outline:3px solid #f0ce91;outline-offset:4px;}
.activity-shell {
  margin-top:35px; padding:0 20px 20px;
  border:1px solid rgba(214,181,116,.4);border-radius:17px;
  background:linear-gradient(140deg,rgba(15,44,62,.90),rgba(5,22,36,.96));
  box-shadow:inset 0 1px 0 rgba(240,220,165,.11),0 18px 42px rgba(0,0,0,.16);
}
.activity-shell .section-heading {margin:22px 0;}
.activity-link {
  color:#f4d9a7;border:1px solid rgba(224,180,107,.61);
  border-radius:10px;padding:10px 15px;background:rgba(7,28,42,.64);
  font-size:12px;font-weight:780;
}
.activity-link:hover {background:rgba(195,157,90,.16);}
.activity-shell .record-list {gap:0;border:1px solid rgba(216,187,130,.19);border-radius:12px;overflow:hidden;}
.activity-shell .record-card {
  border:0;border-radius:0;border-bottom:1px solid rgba(206,182,130,.18);
  box-shadow:none;background:rgba(5,24,38,.33);padding:13px 17px;
}
.activity-shell .record-card:last-child {border-bottom:0;}
.activity-shell .record-card h3 {font-size:14px;margin:6px 0;}
.activity-shell .empty-card {background:rgba(3,23,33,.18);border:0;border-radius:10px;margin:0;}
.record-card,.empty-card,.form-panel {
  border-color:rgba(212,183,130,.32);
  background:linear-gradient(135deg,rgba(17,44,60,.95),rgba(7,26,42,.97));
}
.record-card,.empty-card {border-radius:12px;}
.kind-tag {color:#eddbb8;background:rgba(220,178,103,.1);border-color:rgba(220,178,103,.3);}
.status-tag {color:#79d0c7;}
.form-panel {box-shadow:0 16px 38px rgba(0,0,0,.2);}
.status-editor button,.membership-actions button {
  border-color:rgba(229,190,122,.45);background:#253d3c;color:#fbe5ba;
}
.footer {
  border-top:1px solid rgba(220,180,110,.34);max-width:none;
  background:linear-gradient(90deg,#071b29,#0c2b3d,#051421);
  padding:27px clamp(17px,3.5vw,55px);align-items:center;color:#d3cfbe;
}
.footer-brand {font-size:13px;color:#f3d59d;font-weight:900;letter-spacing:.12em;}
.footer-brand small {display:block;color:#abaaa1;font-size:9px;letter-spacing:.16em;}
.footer-secure {color:#d7b785;font-size:10px;}
@media(max-width:1200px) {
  .workspace {grid-template-columns:220px minmax(0,1fr);gap:17px;}
  .council-card {padding:20px 16px;}
  .stats-grid {gap:9px;}
  .stat {padding:19px 13px;}
  .stat-icon {inset-inline-end:12px;}
}
@media(max-width:870px) {
  .workspace {display:flex;flex-direction:column;gap:20px;}
  .sidebar {width:100%;position:relative;top:auto;min-height:0;padding:12px 13px;border-radius:15px;}
  .sidebar-heading {display:flex;align-items:center;gap:10px;text-align:start;padding:0 6px 13px;}
  .sidebar-heading .sidebar-crest {width:42px;height:42px;min-width:42px;font-size:21px;margin:0;}
  .sidebar-heading .pill {display:none;}
  .sidebar-heading h2 {font-size:20px;margin:0;}
  .sidebar-heading p {margin:0;font-size:11px;}
  .side-nav {display:flex;overflow-x:auto;gap:8px;scrollbar-width:thin;margin:13px 0 3px;}
  .side-button {white-space:nowrap;min-width:max-content;width:auto;padding:8px 11px;min-height:45px;}
  .sidebar-security {display:none;}
  .sidebar-bottom {display:flex;gap:12px;justify-content:space-between;padding-top:10px;margin-top:10px;align-items:center;}
  .signout-button {width:auto;}
  .workspace-main {width:100%;}
  .workspace-top {min-height:190px;}
  .stats-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  .council-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px) {
  .topbar {padding:15px;min-height:78px;}
  .brand-mark {height:46px;width:46px;font-size:23px;}
  .brand strong {font-size:20px;}
  .brand small {font-size:10px;}
  .security-tag {display:none;}
  .home-link {font-size:11px;}
  .workspace {padding:13px 11px 28px;}
  .workspace-top {min-height:200px;padding:24px;flex-direction:column;gap:11px;
    background-position:36% center;
  }
  .workspace-top .eyebrow {font-size:11px;}
  .workspace-top h1 {font-size:clamp(27px,6vw,37px);}
  .workspace-top p {font-size:12px;}
  .workspace-top .workspace-actions {align-self:stretch;justify-content:space-between;}
  .stats-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px;}
  .stat {padding:16px 14px;min-height:128px;}
  .stat strong {font-size:35px;}
  .stat span:not(.stat-icon) {font-size:11px;}
  .stat small {font-size:8px;}
  .stat-icon {width:32px;height:32px;font-size:19px;top:13px;inset-inline-end:11px;}
  .section-heading {margin:31px 0 18px;}
  .section-heading:before {height:32px;}
  .council-card {min-height:164px;padding:18px 14px;}
  .council-icon {width:40px;height:45px;flex-basis:40px;font-size:24px;}
  .council-content {gap:10px;}
  .council-text {max-width:calc(100% - 50px);}
  .council-card h3 {font-size:14px;}
  .council-card p {font-size:10px;}
  .council-card .council-foot {font-size:10px;padding:5px 9px;margin-top:8px;}
  .council-arrow {inset-inline-end:8px;bottom:11px;width:22px;height:22px;}
  .activity-shell {margin-top:26px;padding:0 12px 12px;}
  .activity-shell .section-heading {margin:18px 0;}
  .activity-link {font-size:10px;padding:8px;}
  .footer {padding:19px;display:flex;flex-wrap:wrap;font-size:10px;}
}
@media(max-width:490px) {
  .council-grid {grid-template-columns:1fr;gap:11px;}
  .council-card {min-height:152px;padding:20px 18px;}
  .council-card h3 {font-size:16px;}
  .council-card p {font-size:12px;}
  .council-icon {width:49px;height:52px;flex-basis:49px;}
  .sidebar-heading p {display:none;}
  .side-button {font-size:12px;}
  .workspace-top {background-position:35% center;}
  .activity-shell .section-heading {display:flex;flex-wrap:wrap;gap:7px;}
  .activity-shell .section-heading:before {display:none;}
  .footer-secure {display:none;}
}
@media(prefers-reduced-motion:reduce) {
  .council-card {transition:none!important;}
}

/* Verifiable council member identity */
.member-identity-number{color:#f7d99a!important;font:850 clamp(17px,2vw,22px) ui-monospace,monospace!important;letter-spacing:.04em;overflow-wrap:anywhere}
.member-identity-link{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;padding:10px 15px;background:linear-gradient(115deg,#f2dbad,#d0ac74);color:#123042!important;border:1px solid #e9c98d;border-radius:10px;text-decoration:none;font-weight:800;font-size:13px;transition:transform .15s}
.member-identity-link:hover{transform:translateY(-2px)}
.member-identity-link:focus-visible{outline:3px solid #f3e8c7;outline-offset:3px}
