@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root{--navy:#071d32;--navy2:#0c3450;--teal:#0d7b80;--gold:#d7a843;--gold2:#b78625;--ink:#122438;--muted:#65768a;--line:#dce5eb;--bg:#eef3f6;--white:#fff;--shadow:0 14px 35px rgba(7,29,50,.08)}
*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--bg)}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.admin-shell{min-height:100vh;display:grid;grid-template-columns:265px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;overflow:auto;padding:1.1rem .9rem;background:radial-gradient(circle at 18% 5%,rgba(215,168,67,.16),transparent 25%),linear-gradient(180deg,#061828,#0a2942);color:#d5e2eb;box-shadow:18px 0 45px rgba(7,29,50,.15);z-index:20}.brand{display:flex;align-items:center;gap:.75rem;padding:.5rem .45rem 1.15rem;border-bottom:1px solid rgba(255,255,255,.11)}.brand img{width:55px;height:55px;border-radius:50%;object-fit:cover;box-shadow:0 10px 25px rgba(0,0,0,.24)}.brand strong{display:block;color:#fff;font:700 1.25rem 'Playfair Display',serif}.brand small{display:block;color:rgba(255,255,255,.55);font-size:.63rem;text-transform:uppercase;letter-spacing:.12em}.userbox{margin:1.05rem 0;padding:.9rem;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.055)}.userbox b{display:block;color:#fff;font-size:.83rem}.userbox span{font-size:.7rem;color:rgba(255,255,255,.55)}.sidenav{display:grid;gap:.34rem}.sidenav a{display:flex;align-items:center;gap:.72rem;min-height:44px;padding:.68rem .78rem;border-radius:11px;color:#cad8e3;font-size:.8rem;font-weight:700;transition:.2s}.sidenav a:hover,.sidenav a.active{color:#fff;background:linear-gradient(90deg,rgba(215,168,67,.18),rgba(255,255,255,.055));box-shadow:inset 3px 0 0 var(--gold)}.ico{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.07);color:#efc56b;font-size:.67rem;font-weight:800}.count{margin-left:auto;padding:.13rem .42rem;border-radius:999px;background:var(--gold);color:var(--navy);font-size:.62rem}.sidefoot{margin-top:1rem;padding:1rem .5rem;border-top:1px solid rgba(255,255,255,.1);display:grid;gap:.55rem}.sidefoot a{color:#fff;font-size:.75rem;font-weight:700}.main{min-width:0}.topbar{position:sticky;top:0;z-index:15;min-height:74px;padding:0 1.8rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.topbar h1{margin:0;font:700 1.35rem 'Playfair Display',serif}.topbar p{margin:.12rem 0 0;color:var(--muted);font-size:.72rem}.top-actions{display:flex;gap:.6rem}.chip{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:.57rem .82rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);font-size:.72rem;font-weight:800}.chip:hover{border-color:var(--teal);color:var(--teal)}.mobile-toggle{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff}.content{padding:1.7rem}.alert{margin-bottom:1rem;padding:.85rem 1rem;border-radius:11px;font-size:.8rem;font-weight:700}.alert.ok{color:#0d663b;background:#e8f8ef;border:1px solid #bce7cd}.alert.bad{color:#8b2525;background:#fff0f0;border:1px solid #efc7c7}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.4rem}.stat{position:relative;overflow:hidden;padding:1.2rem;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 10px 26px rgba(7,29,50,.055)}.stat:after{content:"";position:absolute;width:85px;height:85px;right:-28px;top:-28px;border-radius:50%;background:rgba(13,123,128,.08)}.stat span{display:block;color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.stat strong{display:block;margin-top:.25rem;color:var(--navy);font:700 1.95rem 'Playfair Display',serif}.panel{margin-bottom:1.4rem;overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow)}.panel-head{padding:1.05rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #e5ebef;background:linear-gradient(#fff,#fbfcfd)}.panel-head h2,.panel-head h3{margin:0;font:700 1.25rem 'Playfair Display',serif}.panel-head p{margin:.15rem 0 0;color:var(--muted);font-size:.72rem}.panel-body{padding:1.25rem}.quickgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.quick{padding:1.15rem;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,#fff,#f7fafb);transition:.2s}.quick:hover{transform:translateY(-4px);border-color:#b8d3d5;box-shadow:var(--shadow)}.quick .eyebrow{color:var(--gold2);font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.quick h3{margin:.25rem 0 .45rem;font:700 1.15rem 'Playfair Display',serif}.quick p{margin:0;color:var(--muted);font-size:.78rem}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.field{display:grid;gap:.35rem}.field.full{grid-column:1/-1}.field span{font-size:.76rem;font-weight:800;color:#26394c}.field input,.field textarea,.field select{width:100%;margin:0;padding:.88rem .95rem;border:1px solid #cbd6de;border-radius:10px;background:#fff}.field textarea{min-height:145px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 4px rgba(13,123,128,.1)}.check{display:flex;align-items:center;gap:.55rem;min-height:42px;font-size:.78rem;font-weight:700}.check input{width:auto}.actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.1rem}.btn{min-height:42px;padding:.7rem 1rem;border:0;border-radius:999px;background:var(--gold);color:var(--navy);font-size:.76rem;font-weight:800;cursor:pointer}.btn:hover{background:var(--gold2)}.tablewrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;min-width:720px}.table th{padding:.78rem .9rem;background:#f3f6f8;color:#516274;font-size:.64rem;text-align:left;text-transform:uppercase;letter-spacing:.08em}.table td{padding:.85rem .9rem;border-top:1px solid #e5ebef;font-size:.77rem;vertical-align:middle}.table tr:hover td{background:#fbfcfd}.thumb{width:52px;height:52px;border-radius:11px;object-fit:cover;background:#e7eef2;border:1px solid #d7e0e6}.status{display:inline-flex;padding:.32rem .56rem;border-radius:999px;font-size:.64rem;font-weight:800}.status.live{color:#0d663b;background:#e8f8ef}.status.off{color:#7b4a1d;background:#fff3df}.row-actions{display:flex;gap:.4rem}.row-actions a,.row-actions button{min-height:32px;padding:.43rem .62rem;border-radius:8px;border:1px solid #d3dde4;background:#fff;color:var(--navy);font-size:.67rem;font-weight:800;cursor:pointer}.row-actions a:hover{border-color:var(--teal);color:var(--teal)}.row-actions button{color:#933131}.empty{padding:2rem;text-align:center;color:var(--muted)}
.login-page{min-height:100vh;display:grid;place-items:center;padding:1rem;background:radial-gradient(circle at 20% 15%,rgba(215,168,67,.18),transparent 24%),linear-gradient(135deg,#061828,#0d4d58)}.login-card{width:min(450px,94vw);overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.22)}.login-head{padding:1.5rem;background:linear-gradient(145deg,#071d32,#0c4f58);color:#fff}.login-head img{width:76px;height:76px;border-radius:50%;object-fit:cover}.login-head h1{margin:.7rem 0 .1rem;font:700 1.7rem 'Playfair Display',serif}.login-head p{margin:0;color:rgba(255,255,255,.62);font-size:.75rem}.login-body{padding:1.5rem}
@media(max-width:1100px){.admin-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:1rem .65rem}.stats{grid-template-columns:repeat(2,1fr)}.quickgrid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.admin-shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;transform:translateX(-105%);transition:.3s}.sidebar.open{transform:none}.mobile-toggle{display:inline-grid;place-items:center}.topbar{padding:0 1rem}.content{padding:1rem}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:560px){.stats,.quickgrid{grid-template-columns:1fr}.top-actions .chip:first-child{display:none}.panel-head{align-items:flex-start;flex-direction:column}}

.rich-editor{overflow:hidden;border:1px solid #cbd7df;border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(7,29,50,.055)}
.editor-toolbar{position:sticky;top:74px;z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.72rem;border-bottom:1px solid #dbe4ea;background:linear-gradient(180deg,#fbfcfd,#f1f5f7);box-shadow:0 5px 14px rgba(7,29,50,.045)}
.rte-group{display:flex;align-items:center;gap:.3rem;padding-right:.5rem;border-right:1px solid #d8e1e7}.rte-group:last-child{border-right:0;padding-right:0}
.editor-toolbar button,.editor-select{min-height:36px;padding:.45rem .62rem;border:1px solid #cbd6de;border-radius:8px;background:#fff;color:#183047;font-size:.7rem;font-weight:800;cursor:pointer;transition:.18s}
.editor-toolbar button:hover,.editor-select:hover{border-color:#0d7b80;color:#0d7b80;background:#eef8f7;transform:translateY(-1px)}
.editor-select{min-width:118px}.editor-surface{min-height:410px;padding:1.35rem 1.45rem;outline:none;color:#21364a;background:#fff;font-size:.96rem;line-height:1.78}
.editor-surface:empty:before{content:attr(data-placeholder);color:#98a7b4}.editor-surface h2,.editor-surface h3,.editor-surface h4,.editor-surface h5{margin:1.3rem 0 .55rem;color:#071d32;font-family:Georgia,'Times New Roman',serif}
.editor-surface blockquote{margin:1rem 0;padding:.85rem 1rem;border-left:4px solid #d7a843;border-radius:0 10px 10px 0;background:#faf6ed}
.editor-surface img{display:block;max-width:100%;max-height:560px;margin:auto;object-fit:contain;border-radius:13px;box-shadow:0 12px 28px rgba(7,29,50,.11)}
.editor-surface figure{margin:1.5rem 0}.editor-surface figcaption{margin-top:.45rem;color:#65768a;text-align:center;font-size:.75rem}.editor-help{display:block;margin-top:.55rem;color:#65768a;font-size:.72rem}
@media(max-width:820px){.editor-toolbar{position:static}.rte-group{border-right:0;padding-right:0}.editor-surface{min-height:330px;padding:1rem}}


/* V14 reliable premium editor */
.rich-editor{
  position:relative;
  overflow:visible;
  border:1px solid #c8d5df;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 34px rgba(7,29,50,.07);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.rich-editor.is-focused{
  border-color:#0d7b80;
  box-shadow:0 0 0 4px rgba(13,123,128,.1),0 16px 38px rgba(7,29,50,.09);
}
.rich-editor.has-error{
  border-color:#bd3434;
  box-shadow:0 0 0 4px rgba(189,52,52,.1);
}
.editor-toolbar{
  position:relative;
  top:auto;
  z-index:3;
  min-height:62px;
  padding:.72rem .8rem;
  border-radius:15px 15px 0 0;
  border-bottom:1px solid #d9e3e9;
  background:linear-gradient(180deg,#f9fbfc,#edf3f6);
}
.rte-group{
  min-height:40px;
  padding:.18rem .55rem .18rem 0;
}
.editor-toolbar button,
.editor-select{
  height:38px;
  min-height:38px;
  border-color:#c4d1da;
  box-shadow:0 1px 1px rgba(7,29,50,.025);
}
.editor-toolbar button:focus-visible,
.editor-select:focus-visible{
  outline:2px solid rgba(13,123,128,.4);
  outline-offset:2px;
}
.editor-surface{
  position:relative;
  display:block;
  width:100%;
  min-height:390px;
  max-height:720px;
  overflow-y:auto;
  padding:1.4rem 1.55rem 2.25rem;
  border-radius:0 0 15px 15px;
  background:#fff;
  color:#20364a;
  caret-color:#0d7b80;
  cursor:text;
  white-space:normal;
  word-break:break-word;
  user-select:text;
  -webkit-user-select:text;
}
.editor-surface:focus{
  outline:none;
}
.editor-surface:empty::before{
  position:absolute;
  left:1.55rem;
  top:1.4rem;
  content:attr(data-placeholder);
  color:#99a7b3;
  pointer-events:none;
}
.editor-surface p{
  margin:.25rem 0 1rem;
}
.editor-surface ul,
.editor-surface ol{
  margin:.55rem 0 1.1rem;
  padding-left:1.5rem;
}
.editor-surface a{
  color:#0d7b80;
  text-decoration:underline;
}
.editor-surface font[size="2"]{font-size:.82rem}
.editor-surface font[size="3"]{font-size:1rem}
.editor-surface font[size="4"]{font-size:1.25rem}
.editor-surface font[size="5"]{font-size:1.55rem}
.editor-surface::-webkit-scrollbar{width:9px}
.editor-surface::-webkit-scrollbar-thumb{
  border:2px solid #fff;
  border-radius:999px;
  background:#c3d0d8;
}
.editor-help{
  margin:.65rem .15rem 0;
  line-height:1.5;
}
@media(max-width:700px){
  .editor-toolbar{
    gap:.35rem;
    padding:.6rem;
  }
  .rte-group{
    width:auto;
    min-height:36px;
    padding-right:.25rem;
  }
  .editor-toolbar button,
  .editor-select{
    height:35px;
    min-height:35px;
    padding:.38rem .5rem;
  }
  .editor-select{min-width:105px}
  .editor-surface{
    min-height:310px;
    padding:1rem 1rem 1.8rem;
  }
  .editor-surface:empty::before{
    left:1rem;
    top:1rem;
  }
}


/* V22 case-study dual media manager */
.case-media-manager{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:stretch;
  gap:1rem;
  padding:1.1rem;
  border:1px solid #d4dfe6;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbfc,#f2f6f8);
}

.case-media-option{
  padding:1rem;
  border:1px solid #d7e1e7;
  border-radius:13px;
  background:#fff;
  box-shadow:0 7px 18px rgba(7,29,50,.045);
}

.case-media-heading{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-bottom:.85rem;
}

.case-media-heading strong{
  display:block;
  color:#071d32;
  font-size:.86rem;
}

.case-media-heading small{
  display:block;
  margin-top:.15rem;
  color:#68798a;
  font-size:.68rem;
  line-height:1.4;
}

.media-number{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#fff;
  background:#0d7b80;
  font-size:.68rem;
  font-weight:900;
}

.image-option .media-number{
  color:#071d32;
  background:#ddb044;
}

.case-media-divider{
  display:grid;
  place-items:center;
  color:#7b8995;
}

.case-media-divider span{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.12em;
}

.case-image-preview{
  min-height:135px;
  margin-top:.75rem;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px dashed #b9c8d2;
  border-radius:11px;
  color:#8796a2;
  background:#f5f8fa;
  font-size:.7rem;
}

.case-image-preview img{
  width:100%;
  height:150px;
  display:block;
  object-fit:cover;
}

.case-image-preview.is-empty{
  min-height:95px;
}

.case-thumb{
  object-fit:cover;
}

.media-badge{
  display:inline-flex;
  padding:.35rem .55rem;
  border-radius:999px;
  font-size:.6rem;
  font-weight:900;
  text-transform:uppercase;
}

.media-badge.video{
  color:#0d6770;
  background:#dff2f1;
}

.media-badge.none{
  color:#7e8992;
  background:#edf1f3;
}

@media(max-width:900px){
  .case-media-manager{
    grid-template-columns:1fr;
  }

  .case-media-divider span{
    writing-mode:horizontal-tb;
    transform:none;
  }
}

/* V24 admin typography refinements */
body,input,textarea,select,button{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
.panel-head h2,.panel-head h3,.topbar h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;letter-spacing:-.02em}
.field small{display:block;margin-top:.35rem;color:#71808c;font-size:.68rem}


/* V26 consistent Poppins typography in the management system */
html,body,button,input,textarea,select{
  font-family:'Poppins',Arial,sans-serif!important;
}

h1,h2,h3,h4,h5,h6,
.brand strong{
  font-family:'Poppins',Arial,sans-serif!important;
  letter-spacing:-.02em;
}

.panel,
.quick,
.stat,
.field input,
.field textarea,
.field select{
  border-radius:6px!important;
}

.btn,.chip,.status,.case-filter-links a{
  border-radius:4px!important;
}


/* =========================================================
   V27 STRUCTURED SUCCESS-STORY OUTCOME DETAILS
   ========================================================= */

.outcome-details-panel{
  padding:1.15rem;
  border:1px solid #d3dee5;
  border-radius:9px!important;
  background:
    linear-gradient(120deg,rgba(13,123,128,.055),transparent 42%),
    #f8fafb;
}

.outcome-details-heading{
  margin-bottom:1rem;
  padding-bottom:.9rem;
  border-bottom:1px solid #dbe4e9;
}

.outcome-step{
  display:inline-block;
  margin-bottom:.25rem;
  color:#0d7b80;
  font-size:.65rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.outcome-details-heading h3{
  margin:0 0 .25rem;
  color:#102d42;
  font-size:1rem;
}

.outcome-details-heading p{
  max-width:900px;
  margin:0;
  color:#697b8a;
  font-size:.7rem;
  line-height:1.55;
}

.outcome-details-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.85rem;
}

.story-admin-meta{
  display:block;
  margin-top:.25rem;
  color:#748694;
  font-size:.62rem;
}

@media(max-width:1050px){
  .outcome-details-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .outcome-details-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V28 WEBSITE IMAGE MANAGER + RESPONSIVE ADMIN
   ========================================================= */
.media-manager-note{margin-bottom:1.2rem;padding:1rem 1.1rem;display:grid;gap:.25rem;border:1px solid #cfe0e5;border-radius:8px;background:#f2f8f8;color:#47616f}.media-manager-note strong{color:#10364c}.media-manager-note span{font-size:.72rem;line-height:1.55}
.media-admin-group{margin-top:1.4rem}.media-admin-group:first-of-type{margin-top:0}.media-admin-group-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem;padding-bottom:.55rem;border-bottom:1px solid #dde5ea}.media-admin-group-head h3{margin:0;color:#102d42;font-size:1rem}.media-admin-group-head span{color:#71828f;font-size:.68rem}
.media-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.media-admin-card{min-width:0;padding:.85rem;display:flex;flex-direction:column;border:1px solid #d8e1e7;border-radius:8px;background:#fff;box-shadow:0 4px 14px rgba(12,45,68,.04)}.media-admin-preview{height:180px;overflow:hidden;border:1px solid #e0e6ea;border-radius:6px;background:#edf2f4}.media-admin-preview img{width:100%;height:100%;display:block;object-fit:cover}.media-admin-copy{padding:.8rem .1rem .7rem}.media-admin-copy h4{margin:0 0 .3rem;color:#102d42;font-size:.82rem}.media-admin-copy p{min-height:42px;margin:0;color:#687b89;font-size:.68rem;line-height:1.5}.media-admin-copy small{display:block;margin-top:.45rem;color:#0d7b80;font-size:.61rem;font-weight:600}.media-upload-control{margin-top:auto;padding:.7rem;border:1px dashed #b7c8d2;border-radius:6px;background:#f8fafb}.media-upload-control span{display:block;margin-bottom:.4rem;color:#264558;font-size:.66rem;font-weight:600}.media-upload-control input{width:100%;font-size:.66rem}.media-reset{margin:.65rem 0 0!important;font-size:.64rem!important}.media-path{margin-top:.45rem;overflow:hidden;color:#85939c;font-size:.58rem;text-overflow:ellipsis;white-space:nowrap}.media-save-actions{position:sticky;bottom:0;z-index:5;margin:1.5rem -.2rem -.2rem;padding:1rem;display:flex;align-items:center;gap:1rem;border-top:1px solid #d9e3e8;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}.media-save-actions span{color:#6c7d89;font-size:.67rem}

@media(max-width:1200px){.media-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-main{min-width:0}.content{min-width:0}}
@media(max-width:900px){.admin-shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:200;width:min(320px,88vw);transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto}.sidebar.open{transform:none}.admin-main{margin-left:0!important}.topnav{padding:.8rem 1rem}.content{padding:1rem}.mobile-toggle{display:inline-flex!important}.stats-grid,.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.formgrid{grid-template-columns:1fr 1fr}.tablewrap{overflow-x:auto}.table{min-width:780px}}
@media(max-width:650px){.media-admin-grid,.stats-grid,.quick-grid,.formgrid,.outcome-details-grid{grid-template-columns:1fr!important}.panel-head{align-items:flex-start;flex-direction:column;padding:1rem}.panel-body{padding:1rem}.content{padding:.75rem}.media-admin-preview{height:160px}.media-save-actions{align-items:stretch;flex-direction:column}.media-save-actions .btn{width:100%}.login-card{width:calc(100% - 24px)}.editor-toolbar{overflow-x:auto;flex-wrap:nowrap}.editor-surface{min-height:330px}.case-media-manager{grid-template-columns:1fr!important}.case-media-divider span{writing-mode:horizontal-tb!important;transform:none!important}.table{min-width:720px}}


/* V30 feedback settings and authorship */
html,body,button,input,textarea,select{font-family:'Inter',Arial,sans-serif!important}
h1,h2,h3,.login-head h1{font-family:'Lora',Georgia,serif!important}
.panel,.quick,.stat,.media-admin-card{border-radius:7px!important}

/* Client portal administration */
.admin-client-search{display:flex;gap:.65rem;max-width:720px}.admin-client-search input{flex:1;min-width:0;padding:.78rem .9rem;border:1px solid #cbd6de;border-radius:10px}.client-doc-count{display:inline-flex;padding:.3rem .52rem;border-radius:999px;background:#eef6f6;color:#0d6d72;font-size:.66rem;font-weight:800}.admin-client-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.admin-client-summary>div{padding:.85rem;border:1px solid var(--line);border-radius:12px;background:#f8fafb}.admin-client-summary span{display:block;color:var(--muted);font-size:.63rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800}.admin-client-summary strong{display:block;margin-top:.18rem;color:var(--navy);font-size:.9rem}.admin-client-folders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.4rem}.admin-folder-card{position:relative;min-height:180px;padding:1rem;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#fff,#f7fafb);box-shadow:var(--shadow);transition:.2s}.admin-folder-card:hover,.admin-folder-card.active{transform:translateY(-3px);border-color:#b6d2d4;box-shadow:0 16px 35px rgba(7,29,50,.11)}.admin-folder-card>span{color:var(--gold2);font-size:.65rem;font-weight:800}.admin-folder-card h3{margin:.7rem 0 .15rem;color:var(--navy);font-size:1rem}.admin-folder-card p{margin:0;color:var(--muted);font-size:.72rem}.admin-folder-icon{position:relative;width:62px;height:46px;margin-top:.75rem;border-radius:7px 9px 9px 9px;background:linear-gradient(135deg,#e3ba58,#d39d27);box-shadow:0 7px 16px rgba(183,134,37,.16)}.admin-folder-icon:before{content:"";position:absolute;left:5px;top:-8px;width:27px;height:10px;border-radius:5px 5px 0 0;background:#e8c873}.admin-folder-icon.small{width:48px;height:36px;margin:0}.admin-folder-icon.small:before{width:21px;height:8px;top:-6px}.admin-client-type-folders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.admin-type-folder{min-height:105px;padding:.8rem;display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:.7rem;border:1px solid var(--line);border-radius:12px;background:#fff;transition:.18s}.admin-type-folder:hover,.admin-type-folder.active{border-color:#a9cbcd;background:#f5fbfa}.admin-type-folder .admin-folder-icon{grid-row:1/3}.admin-type-folder strong{color:var(--navy);font-size:.76rem;line-height:1.2}.admin-type-folder span{color:var(--muted);font-size:.63rem}.admin-document-type-group{padding:1rem 1.25rem;border-top:1px solid var(--line)}.admin-document-type-group h3{margin:0 0 .65rem;color:var(--navy);font-size:1rem}.admin-document-type-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.admin-document-type-list>div{padding:.6rem .7rem;display:flex;align-items:center;gap:.55rem;border:1px solid var(--line);border-radius:10px;background:#f9fbfc}.admin-document-type-list>div>span{min-width:0;flex:1;font-size:.72rem;font-weight:700}.admin-document-type-list form{margin:0}.admin-document-type-list .chip{min-height:31px;padding:.36rem .55rem;font-size:.63rem}
@media(max-width:1100px){.admin-client-summary,.admin-client-folders,.admin-client-type-folders{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-client-search{flex-direction:column}.admin-client-summary,.admin-client-folders,.admin-client-type-folders,.admin-document-type-list{grid-template-columns:1fr}.admin-folder-card{min-height:150px}}


/* Final three-stage Client Portal administration */
.admin-client-folders{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.admin-folder-card{
  min-height:190px!important;
}
.admin-folder-card h3{
  font-size:1.05rem!important;
  line-height:1.2;
}
.admin-client-type-folders{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.admin-type-folder{
  min-height:112px!important;
}
@media(max-width:1100px){
  .admin-client-folders,
  .admin-client-type-folders{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .admin-client-folders,
  .admin-client-type-folders{
    grid-template-columns:1fr!important;
  }
}


/* Prominent full-client ZIP download */
.admin-download-all-zip{
  min-height:46px;
  padding:.48rem .72rem;
  display:inline-flex;
  align-items:center;
  gap:.58rem;
  border:1px solid #a8cec8;
  border-radius:10px;
  background:linear-gradient(135deg,#eef9f6,#fff);
  color:#0c5d61;
  box-shadow:0 7px 18px rgba(18,74,79,.08);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.admin-download-all-zip:hover{
  transform:translateY(-1px);
  border-color:#72b5ab;
  box-shadow:0 10px 22px rgba(18,74,79,.12);
}
.admin-download-all-zip.disabled{
  opacity:.5;
  cursor:not-allowed;
}
.admin-download-zip-icon{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:8px;
  background:#0f7778;
  color:#fff;
  font-size:1rem;
  font-weight:800;
}
.admin-download-all-zip>span:last-child{
  display:grid;
  line-height:1.08;
}
.admin-download-all-zip strong{
  color:#12364b;
  font-size:.7rem;
}
.admin-download-all-zip small{
  margin-top:.16rem;
  color:#6d7e89;
  font-size:.56rem;
}

.admin-client-zip-banner{
  margin:0 1.1rem 1.1rem;
  padding:1rem;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:.9rem;
  border:1px solid #c9dce1;
  border-radius:12px;
  background:linear-gradient(135deg,#f9fcfd,#f2f8f8);
}
.admin-client-zip-banner.ready{
  border-color:#b6d9d2;
  background:linear-gradient(135deg,#f6fcfa,#fff);
}
.admin-client-zip-symbol{
  width:50px;height:50px;
  display:grid;place-items:center;
  border-radius:10px;
  background:#173b50;
  color:#fff;
  font-size:.67rem;
  font-weight:800;
  letter-spacing:.06em;
}
.admin-client-zip-banner strong{
  display:block;
  color:#15374b;
  font-size:.82rem;
}
.admin-client-zip-banner p{
  max-width:650px;
  margin:.18rem 0 0;
  color:#637681;
  font-size:.68rem;
  line-height:1.45;
}
.admin-client-zip-banner>a{
  min-height:40px;
  padding:.6rem .78rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#0f7778;
  color:#fff;
  font-size:.66rem;
  font-weight:800;
  white-space:nowrap;
}
.admin-client-zip-banner>span:last-child{
  color:#7b8b95;
  font-size:.65rem;
  font-weight:700;
}

@media(max-width:800px){
  .admin-client-zip-banner{
    grid-template-columns:44px minmax(0,1fr);
  }
  .admin-client-zip-symbol{
    width:42px;height:42px;
  }
  .admin-client-zip-banner>a,
  .admin-client-zip-banner>span:last-child{
    grid-column:1/-1;
    width:100%;
  }
}
