/* Shared home card and responsive layout, based on the notification center. */
.oa-home-header { text-align:center; }
.oa-home-header h1 { margin:0; font-size:22px; color:#173c57; }
.oa-home-grid {
  width:96%;
  min-height:clamp(225px,min(53dvh,36cqi),680px);
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.45fr) minmax(0,1fr);
  grid-template-areas:"left lead right";
  align-items:stretch;
  gap:clamp(12px,2cqi,32px);
}
.oa-home-lead { grid-area:lead; display:grid; }
.oa-home-left { grid-area:left; }
.oa-home-right { grid-area:right; }
.oa-home-side { display:grid; grid-auto-rows:1fr; gap:clamp(10px,1.5dvh,20px); }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-grid .oa-home-card:nth-child(n) {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  padding:0!important;
  overflow:hidden;
  white-space:normal;
  border:1px solid #c6d8e6!important;
  border-radius:16px!important;
  box-shadow:0 2px 7px #2349660b!important;
  color:#20577e;
  grid-column:auto;
  cursor:pointer;
  width:100%;
  min-height:86px!important;
  background:linear-gradient(145deg,#fff,var(--nc-pale,#edf5fb))!important;
}
html body :is(#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-lead .oa-home-card:nth-child(n) {
  min-height:225px!important;
  border-color:var(--nc-ink)!important;
  box-shadow:0 12px 30px #23496619!important;
}
.oa-home-watermark { position:absolute; right:-7px; bottom:-24px; width:clamp(92px,11cqi,180px); color:var(--nc-ink); opacity:.10; pointer-events:none; }
.oa-home-watermark svg { display:block; width:100%; }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-card-head {
  display:flex; align-items:center; position:absolute; inset:0; justify-content:center; flex-direction:column; gap:7px;
  padding:10px 30px; background:none!important; box-shadow:none; text-align:center;
}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-card-head strong { flex:0 1 auto; font-size:clamp(20px,2.5cqi,42px)!important; line-height:1.25; color:#20577e; }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-side .oa-home-card-head strong { font-size:clamp(16px,1.45cqi,26px)!important; }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-icon { display:grid; place-items:center; width:clamp(39px,4cqi,66px); height:clamp(39px,4cqi,66px); border-radius:12px; color:var(--nc-strong); background:var(--nc-tint); }
.oa-home-icon svg { width:21px; height:21px; }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-side .oa-home-icon { width:clamp(30px,3cqi,48px); height:clamp(30px,3cqi,48px); border-radius:9px; }
.oa-home-arrow { position:absolute; right:12px; bottom:8px; color:#52768f; }
/* Keep the list surface only for groups that do not render independent cards. */
.oa-home-right:not(.oa-home-side) {
  gap:0;
  padding:6px 10px;
  border:1px solid #d7e4ed;
  border-radius:16px;
  background:#f4f8fb;
}
html body :is(#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-right:not(.oa-home-side) .oa-home-card:nth-child(n) {
  min-height:48px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body :is(#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-right:not(.oa-home-side) .oa-home-card + .oa-home-card:nth-child(n) {
  box-shadow:inset 0 1px #dbe6ee!important;
}
html body :is(#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-right:not(.oa-home-side) .oa-home-card:nth-child(n):is(:hover,:focus-visible) {
  background:#e8f2fa!important;
}
.oa-home-right .oa-home-watermark,.oa-home-right .oa-home-arrow { display:none; }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-right .oa-home-card-head {
  position:static;
  flex:1;
  align-self:stretch;
  flex-direction:row;
  justify-content:flex-start;
  padding:8px 4px;
  text-align:left;
}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-right .oa-home-card-head strong { font-size:clamp(14px,1.25cqi,22px)!important; flex:1; }
.oa-home-right .oa-home-icon { flex-shrink:0; }
@container(max-width:640px) {
  .oa-home-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"lead lead" "left right";
    width:100%;
    min-height:0;
  }
  html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-lead .oa-home-card:nth-child(n) {
    min-height:132px!important;
  }
  html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-left .oa-home-card-head { padding-inline:14px; }
}
@container(max-width:440px) {
  .oa-home-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"lead" "left" "right"; }
  .oa-home-left { grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr)); }
}

@media(hover:hover) and (pointer:fine){
  html body :is(#onc-center:not(.onc-module-entering),#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-card { transition:transform .18s ease; }
  html body :is(#onc-center:not(.onc-module-entering),#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-card:is(:hover,:focus-visible) { transform:translateY(-2px); }
}

/* 20261109: the clear gate home is the shared presentation baseline.
   No content/permissions/counts are manufactured by these styles. */
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-watermark { display:none!important; }
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-right .oa-home-card-head {
  flex-direction:column!important;justify-content:center!important;text-align:center!important;padding:14px 8px!important;gap:9px;
}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) .oa-home-icon {
  box-shadow:inset 0 1px #fff,0 3px 0 #23496614,0 6px 12px #23496615;
}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) :is(.onc-preview-count,.contact-home-count,.gate-home-count) {
  position:static!important;inset:auto!important;display:block;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  padding:0!important;margin:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:var(--nc-strong,var(--nc-ink,#2978c4))!important;font-size:clamp(24px,3cqi,44px)!important;
  font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;
}
html body :is(#onc-center,#home-view,#contact-home-view,#vehicle-home-view,#gate-home,#contract-home,#energy-home,#housing-home,#dining-home,#welfare-home,#general-affairs-home,#forms-home) [hidden] { display:none!important; }
/* Announcements retain their three original, permission-scoped entrances. */
html body.ann-style #announcement-workbench .awb-home-grid { align-items:stretch;gap:clamp(12px,2cqi,32px); }
html body.ann-style #announcement-workbench .awb-home-grid .awb-summary-card {
  display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;padding:20px 14px!important;
  border:1px solid #c6d8e6!important;border-radius:16px!important;min-height:180px;
  background:linear-gradient(145deg,#fff,var(--home-pale,#eef7ff))!important;box-shadow:0 2px 7px #2349660b!important;
}
html body.ann-style #announcement-workbench .awb-home-grid [data-awb-card=file] {--home-ink:#2978c4;--home-tint:#cee4fb;--home-pale:#eef7ff;}
html body.ann-style #announcement-workbench .awb-home-grid [data-awb-card=text] {--home-ink:#ba661c;--home-tint:#f9dfb9;--home-pale:#fff7e9;}
html body.ann-style #announcement-workbench .awb-home-grid [data-awb-card=dept] {--home-ink:#8b59bd;--home-tint:#e9d8f7;--home-pale:#faf2ff;}
html body.ann-style #announcement-workbench .awb-home-grid .awb-summary-head {
  display:flex!important;position:static!important;flex-direction:column;justify-content:center;gap:10px;padding:0!important;background:none!important;width:100%;
}
html body.ann-style #announcement-workbench .awb-home-grid .awb-summary-icon {
  display:grid;place-items:center;width:48px;height:48px;border-radius:12px;color:var(--home-ink);background:var(--home-tint);
  box-shadow:inset 0 1px #fff,0 3px 0 #23496614,0 6px 12px #23496615;
}
html body.ann-style #announcement-workbench .awb-home-grid .awb-summary-head strong {color:#20577e;font-size:clamp(18px,2cqi,32px)!important;}
html body.ann-style #announcement-workbench .awb-home-grid .awb-summary-count {
  position:static!important;display:block;padding:0!important;margin:4px 0!important;border-radius:0;background:none!important;box-shadow:none!important;
  color:var(--home-ink)!important;font-weight:700;font-size:clamp(24px,3cqi,44px)!important;line-height:1.1;
}
html body.ann-style #announcement-workbench .awb-home-grid :is(.awb-summary-list,.awb-summary-foot) {display:none!important;}
/* One daily-work entrance uses the same card vocabulary without empty columns. */
html body.daily-dock-page #daily-home .daily-home-card {
  position:relative;width:min(100%,680px);min-height:clamp(225px,46dvh,540px);height:auto;border:1px solid #3c9167!important;border-radius:16px!important;
  background:linear-gradient(145deg,#fff,#f1faf4)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;
  box-shadow:0 12px 30px #23496619!important;
}
html body.daily-dock-page #daily-home .daily-home-icon {width:56px;height:56px;border-radius:12px;background:#d2e9da;color:#3c9167;box-shadow:inset 0 1px #fff,0 3px 0 #23496614,0 6px 12px #23496615;}
html body.daily-dock-page #daily-home .daily-home-card strong {font-size:clamp(22px,2.5vw,42px);color:#20577e;}
html body.daily-dock-page #daily-home .daily-home-pending {position:static;background:none;color:#3c9167;font-size:clamp(24px,3vw,44px);font-weight:700;padding:0;}

/* Four follow-up entrances stay compact enough to leave room for the Dock. */
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view) .oa-home-right:has(.oa-home-card + .oa-home-card) .oa-home-card-head {gap:4px!important;padding:8px!important;}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view) .oa-home-right .oa-home-card-head strong {flex:0 1 auto!important;}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view) .oa-home-right:has(.oa-home-card + .oa-home-card) .oa-home-icon {width:30px!important;height:30px!important;}
html body :is(#onc-center,.onc-module-ghost,#home-view,#contact-home-view,#vehicle-home-view) .oa-home-right:has(.oa-home-card + .oa-home-card) :is(.onc-preview-count,.contact-home-count) {font-size:24px!important;margin:0!important;}

html body.ann-style #announcement-workbench .awb-home-grid .awb-summary-head {border:0!important;box-shadow:none!important;}
html body.daily-dock-page main>header h1 {flex:1;text-align:center;font-size:24px;color:#173c57;}
html body #oa-hr-home {border-radius:16px;border-color:#c6d8e6;}
html body #oa-hr-home .oa-hr-home-card {border-radius:16px;gap:12px;box-shadow:0 2px 7px #2349660b;}
html body #oa-hr-home .oa-hr-home-card[href*=supervisors] {color:#8b59bd;background:linear-gradient(145deg,#fff,#faf2ff);}
html body #oa-hr-home .oa-hr-home-card[href*=staff] {color:#21867f;background:linear-gradient(145deg,#fff,#eefaf7);}
html body #oa-hr-home .oa-hr-home-card span {color:#20577e;}
