/*
 * EDIVIC Phase 10 final UI contract
 * Last-loaded, page-scoped safeguards for consistent responsive rendering.
 * No workflow, authentication, payment or data behaviour is defined here.
 */
:root{
  --edv-final-bg:#fff9e9;
  --edv-final-surface:#fffdf7;
  --edv-final-surface-2:#fff4d6;
  --edv-final-yellow:#ffc400;
  --edv-final-yellow-soft:#ffe58a;
  --edv-final-brown:#2b1b0d;
  --edv-final-brown-2:#4a3522;
  --edv-final-muted:#725f49;
  --edv-final-line:rgba(43,27,13,.14);
  --edv-final-success:#147a4f;
  --edv-final-danger:#b42318;
  --edv-final-radius:22px;
  --edv-final-shadow:0 18px 55px rgba(43,27,13,.10);
  --edv-final-content:1440px;
}
html{min-width:320px;background:var(--edv-final-bg)}
body{margin:0;min-width:320px;background:var(--edv-final-bg);color:var(--edv-final-brown);font-family:"Outfit",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body::selection{background:var(--edv-final-yellow);color:var(--edv-final-brown)}
:where(h1,h2,h3,h4){text-wrap:balance}
:where(p,li){text-wrap:pretty}
:where(a,button,input,select,textarea){-webkit-tap-highlight-color:transparent}
:where(button,.btn,[role="button"]){touch-action:manipulation}
:where(input,select,textarea){border-radius:12px}
:where(input,select,textarea):focus{border-color:#b97800!important}
:where(.panel,.card,.section-card,.workspace,.filter-panel,.results-panel,.stat-card){min-width:0}

/* Application-shell geometry: desktop sidebar, full-width tablet/mobile. */
body.edivic-app-shell-active main.edivic-shell-content,
body.edivic-app-shell-active main#main-content,
body.edivic-app-shell-active main.dashboard-main,
body.edivic-app-shell-active main.editor-dashboard-main,
body.edivic-app-shell-active main.pricing-main,
body.edivic-app-shell-active main.page-shell,
body.edivic-app-shell-active main.main-shell,
body.edivic-app-shell-active main.main{
  box-sizing:border-box;
  width:auto;
  max-width:none;
  min-width:0;
}
@media(min-width:1101px){
  body.edivic-app-shell-active main.edivic-shell-content,
  body.edivic-app-shell-active main#main-content,
  body.edivic-app-shell-active main.dashboard-main,
  body.edivic-app-shell-active main.editor-dashboard-main,
  body.edivic-app-shell-active main.pricing-main,
  body.edivic-app-shell-active main.page-shell,
  body.edivic-app-shell-active main.main-shell,
  body.edivic-app-shell-active main.main{
    margin-left:var(--edivic-shell-sidebar-w,288px)!important;
    width:calc(100% - var(--edivic-shell-sidebar-w,288px))!important;
  }
}
@media(max-width:1100px){
  body.edivic-app-shell-active main.edivic-shell-content,
  body.edivic-app-shell-active main#main-content,
  body.edivic-app-shell-active main.dashboard-main,
  body.edivic-app-shell-active main.editor-dashboard-main,
  body.edivic-app-shell-active main.pricing-main,
  body.edivic-app-shell-active main.page-shell,
  body.edivic-app-shell-active main.main-shell,
  body.edivic-app-shell-active main.main{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
    transform:none!important;
  }
}

/* Shared application page rhythm. */
body.edivic-app-shell-active main{
  padding-top:calc(var(--edivic-shell-topbar-h,76px) + clamp(18px,2.5vw,34px));
  padding-right:clamp(14px,2.5vw,34px);
  padding-bottom:clamp(36px,5vw,72px);
  padding-left:clamp(14px,2.5vw,34px);
}
body.edivic-app-shell-active main>.page-wrap,
body.edivic-app-shell-active main>.page-shell,
body.edivic-app-shell-active main>.dashboard-wrap,
body.edivic-app-shell-active main>.container{
  width:min(100%,var(--edv-final-content));
  margin-inline:auto;
}
body.edivic-app-shell-active :where(.hero,.page-hero,.dashboard-hero,.profile-hero,.hero-card){
  border-radius:clamp(20px,2.5vw,30px);
  overflow:hidden;
}
body.edivic-app-shell-active :where(.panel,.section-card,.workspace,.filter-panel,.results-panel,.stat-card){
  border-color:var(--edv-final-line);
}
body.edivic-app-shell-active :where(.btn,button:not(.edivic-app-menu-btn):not(.edivic-app-icon-btn)){
  min-height:42px;
}

/* Browse projects / editors. */
body[data-edivic-shell-page="browse-briefs.html"] main.page-shell,
body[data-edivic-shell-page="browse-editors.html"] main.page-shell{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="browse-briefs.html"] .page-wrap,
body[data-edivic-shell-page="browse-editors.html"] .page-wrap{width:min(100%,1420px);margin-inline:auto}
body[data-edivic-shell-page="browse-briefs.html"] .hero,
body[data-edivic-shell-page="browse-editors.html"] .hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);
  gap:clamp(24px,4vw,60px);
  align-items:center;
  padding:clamp(28px,4vw,58px)!important;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,196,0,.32),transparent 25rem),
    linear-gradient(135deg,#2b1b0d,#4d3216 68%,#77520f)!important;
  color:#fffdf7;
  box-shadow:var(--edv-final-shadow);
}
body[data-edivic-shell-page="browse-briefs.html"] .hero h1,
body[data-edivic-shell-page="browse-editors.html"] .hero h1{max-width:760px;color:#fffdf7!important;font-size:clamp(2.25rem,4vw,4.5rem)!important;line-height:1!important}
body[data-edivic-shell-page="browse-briefs.html"] .hero p,
body[data-edivic-shell-page="browse-editors.html"] .hero p{color:#f4e6cd!important}
body[data-edivic-shell-page="browse-briefs.html"] .hero-stat-grid,
body[data-edivic-shell-page="browse-editors.html"] .hero-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body[data-edivic-shell-page="browse-briefs.html"] .hero-stat,
body[data-edivic-shell-page="browse-editors.html"] .hero-stat{background:rgba(255,253,247,.10)!important;border:1px solid rgba(255,255,255,.16)!important;backdrop-filter:blur(12px)}
body[data-edivic-shell-page="browse-briefs.html"] .market-layout,
body[data-edivic-shell-page="browse-editors.html"] .market-layout{display:grid!important;grid-template-columns:minmax(250px,310px) minmax(0,1fr)!important;gap:22px!important;align-items:start;margin-top:24px}
body[data-edivic-shell-page="browse-briefs.html"] .filter-panel,
body[data-edivic-shell-page="browse-editors.html"] .filter-panel{position:sticky;top:calc(var(--edivic-shell-topbar-h,76px) + 18px);max-height:calc(100dvh - var(--edivic-shell-topbar-h,76px) - 36px);overflow:auto;background:var(--edv-final-surface);box-shadow:0 14px 38px rgba(43,27,13,.07)}
body[data-edivic-shell-page="browse-briefs.html"] :where(.project-grid,.brief-grid),
body[data-edivic-shell-page="browse-editors.html"] .editor-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.edivic-mobile-filter-toggle{display:none;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;padding:0 16px;border:1px solid #cfae70;border-radius:14px;background:var(--edv-final-surface);color:var(--edv-final-brown);font-weight:800;box-shadow:0 10px 28px rgba(43,27,13,.07)}
@media(max-width:1260px){
  body[data-edivic-shell-page="browse-briefs.html"] :where(.project-grid,.brief-grid),
  body[data-edivic-shell-page="browse-editors.html"] .editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:860px){
  body[data-edivic-shell-page="browse-briefs.html"] .hero,
  body[data-edivic-shell-page="browse-editors.html"] .hero{grid-template-columns:1fr!important;padding:28px 22px!important}
  body[data-edivic-shell-page="browse-briefs.html"] .market-layout,
  body[data-edivic-shell-page="browse-editors.html"] .market-layout{grid-template-columns:1fr!important}
  body[data-edivic-shell-page="browse-briefs.html"] .filter-panel,
  body[data-edivic-shell-page="browse-editors.html"] .filter-panel{position:static;max-height:none;display:none}
  body[data-edivic-shell-page="browse-briefs.html"].edivic-filters-open .filter-panel,
  body[data-edivic-shell-page="browse-editors.html"].edivic-filters-open .filter-panel{display:block}
  .edivic-mobile-filter-toggle{display:flex}
}
@media(max-width:620px){
  body[data-edivic-shell-page="browse-briefs.html"] :where(.project-grid,.brief-grid),
  body[data-edivic-shell-page="browse-editors.html"] .editor-grid{grid-template-columns:1fr!important}
  body[data-edivic-shell-page="browse-briefs.html"] .results-toolbar,
  body[data-edivic-shell-page="browse-editors.html"] .results-toolbar{align-items:stretch!important;flex-wrap:wrap!important}
  body[data-edivic-shell-page="browse-briefs.html"] .sort-select,
  body[data-edivic-shell-page="browse-editors.html"] .sort-select{width:100%!important}
}

/* Editor profile. */
body[data-edivic-shell-page="editor-profile.html"] main.main{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="editor-profile.html"] main.main>.page-shell{width:min(100%,1320px);margin-inline:auto}
body[data-edivic-shell-page="editor-profile.html"] .profile-hero{background:linear-gradient(135deg,#2b1b0d,#5d3c16)!important;color:#fffdf7;box-shadow:var(--edv-final-shadow)}
body[data-edivic-shell-page="editor-profile.html"] .profile-hero :where(h1,p,.hero-specialty,.hero-meta){color:#fffdf7!important}
body[data-edivic-shell-page="editor-profile.html"] .content-grid{grid-template-columns:minmax(0,1fr) minmax(280px,360px)!important;gap:22px!important}
body[data-edivic-shell-page="editor-profile.html"] .side-column{position:sticky;top:calc(var(--edivic-shell-topbar-h,76px) + 18px)}
@media(max-width:920px){body[data-edivic-shell-page="editor-profile.html"] .content-grid{grid-template-columns:1fr!important}body[data-edivic-shell-page="editor-profile.html"] .side-column{position:static}}
@media(max-width:620px){body[data-edivic-shell-page="editor-profile.html"] .hero-grid{grid-template-columns:1fr!important}body[data-edivic-shell-page="editor-profile.html"] .hero-actions{display:grid!important;grid-template-columns:1fr!important}body[data-edivic-shell-page="editor-profile.html"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Post project. */
body[data-edivic-shell-page="postproject.html"] main.main{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="postproject.html"] main.main>.page-shell{width:min(100%,1260px);margin-inline:auto}
body[data-edivic-shell-page="postproject.html"] .page-head,
body[data-edivic-shell-page="postproject.html"] .hero{background:linear-gradient(135deg,#2b1b0d,#5d3c16)!important;color:#fffdf7;border-radius:28px;padding:clamp(24px,4vw,48px)!important}
body[data-edivic-shell-page="postproject.html"] .form-layout,
body[data-edivic-shell-page="postproject.html"] .content-grid{grid-template-columns:minmax(0,1fr) minmax(270px,340px)!important;gap:22px!important}
body[data-edivic-shell-page="postproject.html"] .side-stack{position:sticky;top:calc(var(--edivic-shell-topbar-h,76px) + 18px)}
@media(max-width:900px){body[data-edivic-shell-page="postproject.html"] :is(.form-layout,.content-grid){grid-template-columns:1fr!important}body[data-edivic-shell-page="postproject.html"] .side-stack{position:static}}
@media(max-width:620px){body[data-edivic-shell-page="postproject.html"] :where(.grid-2,.two-column,.form-row){grid-template-columns:1fr!important}body[data-edivic-shell-page="postproject.html"] .form-actions{position:sticky;bottom:0;z-index:20;margin-inline:-14px;padding:12px 14px max(12px,env(safe-area-inset-bottom));background:rgba(255,253,247,.96);backdrop-filter:blur(14px);border-top:1px solid var(--edv-final-line)}}

/* Project details. */
body[data-edivic-shell-page="project-details.html"] main.main-shell{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="project-details.html"] main.main-shell>.page-wrap{width:min(100%,1320px);margin-inline:auto}
body[data-edivic-shell-page="project-details.html"] :where(.project-hero,.hero){border-radius:28px;background:linear-gradient(135deg,#2b1b0d,#5d3c16)!important;color:#fffdf7;box-shadow:var(--edv-final-shadow)}
body[data-edivic-shell-page="project-details.html"] :where(.project-hero,.hero) :where(h1,p){color:#fffdf7!important}
body[data-edivic-shell-page="project-details.html"] .content-grid{grid-template-columns:minmax(0,1fr) minmax(280px,360px)!important;gap:22px!important}
body[data-edivic-shell-page="project-details.html"] .sticky-column{position:sticky;top:calc(var(--edivic-shell-topbar-h,76px) + 18px)}
@media(max-width:940px){body[data-edivic-shell-page="project-details.html"] .content-grid{grid-template-columns:1fr!important}body[data-edivic-shell-page="project-details.html"] .sticky-column{position:static}}

/* Active projects. */
body[data-edivic-shell-page="active-projects.html"] main.main-shell{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="active-projects.html"] main.main-shell>.page-wrap{width:min(100%,1420px);margin-inline:auto}
body[data-edivic-shell-page="active-projects.html"] .page-hero{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,.4fr);gap:24px;padding:clamp(26px,4vw,48px)!important;background:linear-gradient(135deg,#2b1b0d,#5d3c16)!important;color:#fffdf7;box-shadow:var(--edv-final-shadow)}
body[data-edivic-shell-page="active-projects.html"] .page-hero :where(h1,p){color:#fffdf7!important}
body[data-edivic-shell-page="active-projects.html"] .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body[data-edivic-shell-page="active-projects.html"] .projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
body[data-edivic-shell-page="active-projects.html"] .workspace-toolbar{align-items:center;gap:14px;flex-wrap:wrap}
body[data-edivic-shell-page="active-projects.html"] .toolbar-controls{min-width:0;flex:1 1 520px}
@media(max-width:900px){body[data-edivic-shell-page="active-projects.html"] .page-hero{grid-template-columns:1fr!important}body[data-edivic-shell-page="active-projects.html"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-edivic-shell-page="active-projects.html"] .projects-grid{grid-template-columns:1fr!important}}
@media(max-width:560px){body[data-edivic-shell-page="active-projects.html"] .filter-tabs{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:5px}body[data-edivic-shell-page="active-projects.html"] .filter-tab{flex:0 0 auto!important}}

/* Messages. */
body[data-edivic-shell-page="messages.html"] main.main{padding:calc(var(--edivic-shell-topbar-h,76px) + 18px) clamp(12px,2vw,24px) 24px!important;height:100dvh;min-height:700px;overflow:hidden}
body[data-edivic-shell-page="messages.html"] .workspace{width:min(100%,1480px);height:calc(100dvh - var(--edivic-shell-topbar-h,76px) - 42px);margin-inline:auto;border-radius:24px!important;overflow:hidden;box-shadow:var(--edv-final-shadow)}
body[data-edivic-shell-page="messages.html"] .contact-panel{min-width:300px}
body[data-edivic-shell-page="messages.html"] .composer-wrap{padding-bottom:max(14px,env(safe-area-inset-bottom))}
@media(max-width:760px){
  body[data-edivic-shell-page="messages.html"] main.main{height:100dvh;min-height:0;padding:var(--edivic-shell-topbar-h,70px) 0 0!important}
  body[data-edivic-shell-page="messages.html"] .workspace{height:calc(100dvh - var(--edivic-shell-topbar-h,70px));border-radius:0!important}
  body[data-edivic-shell-page="messages.html"] .contact-panel{width:100%!important;min-width:100%!important}
  body[data-edivic-shell-page="messages.html"] .chat-panel{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;transform:translateX(102%);transition:transform .25s ease;background:var(--edv-final-surface);z-index:12}
  body[data-edivic-shell-page="messages.html"] .chat-panel.mobile-open,
  body[data-edivic-shell-page="messages.html"] .chat-panel.is-open,
  body[data-edivic-shell-page="messages.html"] .workspace.chat-open .chat-panel{transform:translateX(0)!important}
  body[data-edivic-shell-page="messages.html"] .messages{padding:14px!important}
  body[data-edivic-shell-page="messages.html"] .quick-replies{overflow-x:auto;flex-wrap:nowrap!important;padding-inline:12px}
  body[data-edivic-shell-page="messages.html"] .quick-reply{flex:0 0 auto}
}

/* Notifications. */
body[data-edivic-shell-page="notifications.html"] main.main{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="notifications.html"] main.main>.hero,
body[data-edivic-shell-page="notifications.html"] main.main>.layout,
body[data-edivic-shell-page="notifications.html"] main.main>.status{width:min(100%,1320px);margin-inline:auto}
body[data-edivic-shell-page="notifications.html"] .hero{padding:clamp(26px,4vw,48px)!important;background:linear-gradient(135deg,#2b1b0d,#5d3c16)!important;color:#fffdf7;box-shadow:var(--edv-final-shadow)}
body[data-edivic-shell-page="notifications.html"] .hero :where(h1,p){color:#fffdf7!important}
body[data-edivic-shell-page="notifications.html"] .layout{grid-template-columns:minmax(0,1fr) minmax(300px,390px)!important;gap:22px!important}
body[data-edivic-shell-page="notifications.html"] .side-stack{position:sticky;top:calc(var(--edivic-shell-topbar-h,76px) + 18px)}
@media(max-width:980px){body[data-edivic-shell-page="notifications.html"] .layout{grid-template-columns:1fr!important}body[data-edivic-shell-page="notifications.html"] .side-stack{position:static}}
@media(max-width:560px){body[data-edivic-shell-page="notifications.html"] .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-edivic-shell-page="notifications.html"] .toolbar{align-items:stretch!important;flex-direction:column}body[data-edivic-shell-page="notifications.html"] .filter-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap}body[data-edivic-shell-page="notifications.html"] .filter-tabs button{flex:0 0 auto}}

/* Settings. */
body[data-edivic-shell-page="settings.html"] main.main{padding-inline:clamp(14px,2.5vw,34px)!important}
body[data-edivic-shell-page="settings.html"] main.main>:where(.status,.page-head,.workspace){width:min(100%,1320px);margin-inline:auto}
body[data-edivic-shell-page="settings.html"] .page-head{grid-template-columns:minmax(0,1fr) minmax(300px,.6fr)!important;gap:18px!important}
body[data-edivic-shell-page="settings.html"] .hero{padding:clamp(26px,4vw,48px)!important;background:linear-gradient(135deg,#2b1b0d,#5d3c16)!important;color:#fffdf7;box-shadow:var(--edv-final-shadow)}
body[data-edivic-shell-page="settings.html"] .hero :where(h1,p){color:#fffdf7!important}
body[data-edivic-shell-page="settings.html"] .section-tabs{position:sticky;top:calc(var(--edivic-shell-topbar-h,76px) + 10px);z-index:22;background:rgba(255,253,247,.94);backdrop-filter:blur(16px)}
body[data-edivic-shell-page="settings.html"] .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-edivic-shell-page="settings.html"] .security-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
@media(max-width:980px){body[data-edivic-shell-page="settings.html"] .page-head{grid-template-columns:1fr!important}}
@media(max-width:720px){body[data-edivic-shell-page="settings.html"] .section-tabs{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden;white-space:nowrap;gap:8px!important;padding:8px!important}body[data-edivic-shell-page="settings.html"] .section-tabs button{flex:0 0 auto!important;width:auto!important}body[data-edivic-shell-page="settings.html"] .grid-2{grid-template-columns:1fr!important}body[data-edivic-shell-page="settings.html"] .form-actions{position:sticky;bottom:0;z-index:20;margin-inline:-14px;padding:12px 14px max(12px,env(safe-area-inset-bottom));background:rgba(255,253,247,.96);backdrop-filter:blur(14px);border-top:1px solid var(--edv-final-line)}}

/* Reset password: retain its functional markup, give it the shared auth quality. */
body[data-edivic-page="reset-password.html"]{background:radial-gradient(circle at 8% 10%,rgba(255,196,0,.23),transparent 30rem),linear-gradient(145deg,#fffaf0,#fff4d6 58%,#fffdf7);color:var(--edv-final-brown)}
body[data-edivic-page="reset-password.html"] .page-shell{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:clamp(30px,5vw,70px) 0}
body[data-edivic-page="reset-password.html"] .reset-card{display:grid!important;grid-template-columns:minmax(0,.45fr) minmax(420px,.55fr);min-height:620px;border:1px solid var(--edv-final-line);border-radius:30px;overflow:hidden;background:var(--edv-final-surface);box-shadow:var(--edv-final-shadow)}
body[data-edivic-page="reset-password.html"] .story-panel{padding:clamp(34px,5vw,68px);background:linear-gradient(145deg,#2b1b0d,#5d3c16);color:#fffdf7}
body[data-edivic-page="reset-password.html"] .story-panel :where(h1,p){color:#fffdf7!important}
body[data-edivic-page="reset-password.html"] .form-panel{display:flex;align-items:center;padding:clamp(28px,5vw,68px);background:var(--edv-final-surface)}
body[data-edivic-page="reset-password.html"] .form-wrap{width:min(100%,520px);margin-inline:auto}
body[data-edivic-page="reset-password.html"] :where(input,.submit-btn){min-height:50px}
@media(max-width:860px){body[data-edivic-page="reset-password.html"] .reset-card{grid-template-columns:1fr!important}body[data-edivic-page="reset-password.html"] .story-panel{min-height:auto}body[data-edivic-page="reset-password.html"] .form-panel{padding:30px 22px}}

/* Google callback: compact, trustworthy status screen. */
body[data-edivic-page="google-auth-callback.html"]{background:radial-gradient(circle at 10% 10%,rgba(255,196,0,.25),transparent 30rem),linear-gradient(145deg,#fffaf0,#fff4d6);color:var(--edv-final-brown)}
body[data-edivic-page="google-auth-callback.html"] main.page{min-height:calc(100dvh - var(--edv-public-h,76px));display:grid;place-items:center;width:min(100%,980px);margin-inline:auto;padding:40px 18px!important}
body[data-edivic-page="google-auth-callback.html"] main.page>.hero{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(220px,.42fr);gap:22px;padding:clamp(28px,5vw,58px)!important;border:1px solid var(--edv-final-line);border-radius:30px;background:var(--edv-final-surface)!important;color:var(--edv-final-brown)!important;box-shadow:var(--edv-final-shadow)}
body[data-edivic-page="google-auth-callback.html"] main.page>.hero :where(h1,p){color:var(--edv-final-brown)!important}
body[data-edivic-page="google-auth-callback.html"] .card{display:grid;place-items:center;min-height:200px;border-radius:22px;background:linear-gradient(145deg,#2b1b0d,#5d3c16);color:var(--edv-final-yellow);font-size:3rem}
@media(max-width:700px){body[data-edivic-page="google-auth-callback.html"] main.page>.hero{grid-template-columns:1fr!important}}

/* Public/legal pages and 404: consistent readable measure. */
body:not(.edivic-app-shell-active) main:not(.auth-page-shell){max-width:100%}
body[data-edivic-page="about.html"] main.page,
body[data-edivic-page="contact.html"] main.page,
body[data-edivic-page="privacy.html"] main.page,
body[data-edivic-page="terms.html"] main.page,
body[data-edivic-page="refund.html"] main.page,
body[data-edivic-page="404.html"] main.page{padding-inline:clamp(14px,3vw,34px)!important}

/* Final compact device safeguards. */
@media(max-width:520px){
  body.edivic-app-shell-active main{padding-left:12px!important;padding-right:12px!important}
  body.edivic-app-shell-active :where(.hero,.page-hero,.dashboard-hero,.profile-hero){border-radius:20px!important}
  :where(.hero-actions,.panel-actions,.form-actions){gap:10px!important}
  :where(.hero-actions,.panel-actions)>.btn{width:100%;justify-content:center}
}
@media(max-width:360px){
  body.edivic-app-shell-active main{padding-left:10px!important;padding-right:10px!important}
  body[data-edivic-shell-page="browse-briefs.html"] .hero-stat-grid,
  body[data-edivic-shell-page="browse-editors.html"] .hero-stat-grid,
  body[data-edivic-shell-page="active-projects.html"] .stats-grid,
  body[data-edivic-shell-page="notifications.html"] .hero-stats{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.chat-panel,.edivic-public-drawer{transition:none!important}}

/* Final fallback for pages whose legacy stylesheets define their own skip-link classes. */
.edivic-skip-link,.skip-link,.auth-skip-link{
  position:fixed!important;z-index:2147483647!important;top:8px!important;left:8px!important;
  display:inline-flex!important;align-items:center!important;min-height:44px!important;padding:0 14px!important;
  border:2px solid var(--edv-final-brown)!important;border-radius:12px!important;background:var(--edv-final-surface)!important;
  color:var(--edv-final-brown)!important;font:800 14px/1.2 "Outfit",system-ui,sans-serif!important;text-decoration:none!important;
  box-shadow:0 10px 30px rgba(43,27,13,.20)!important;transform:translateY(-180%)!important;transition:transform .16s ease!important
}
.edivic-skip-link:focus,.edivic-skip-link:focus-visible,.skip-link:focus,.skip-link:focus-visible,.auth-skip-link:focus,.auth-skip-link:focus-visible{transform:translateY(0)!important}
