/* Shared Material-inspired presentation. Business states and print layouts stay
   in style.css; this screen-only layer owns the visual design tokens. */
@media screen {
  :root {
    --md-primary: #0b57d0;
    --md-on-primary: #fff;
    --md-primary-container: #d3e3fd;
    --md-on-primary-container: #0842a0;
    --md-surface: #f8fafd;
    --md-container: #f0f4f9;
    --md-card: #fff;
    --md-ink: #1f1f1f;
    --md-secondary: #444746;
    --md-outline: #747775;
    --md-divider: #e1e3e1;
    --md-hover: #e9eef6;
    --md-radius: 16px;
    --green: var(--md-primary);
    --ink: var(--md-ink);
    --muted: var(--md-secondary);
    --line: var(--md-divider);
    --paper: var(--md-surface);
  }
  body { background: var(--md-card); color: var(--md-ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; line-height: 1.65; }
  h1,h2,h3 { letter-spacing: 0; text-wrap: pretty; }
  button { background: var(--md-primary); color: var(--md-on-primary); font-size: 14px; font-weight: 600; line-height: 1.5; border-radius: 24px; padding: 10px 22px; min-height: 44px; transition: background-color .15s, box-shadow .15s; }
  button:hover { filter: none; box-shadow: 0 1px 3px #1f1f1f26; }
  button:disabled { background: #e3e3e3; color: #646766; box-shadow: none; cursor: not-allowed; }
  .outline, .report-export { color: var(--md-primary); border-color: var(--md-outline); background: transparent; box-shadow: none; font-size: 14px; }
  .outline:hover, .report-export:hover { background: #e8f0fe; box-shadow: none; }
  .link, .text-action { color: var(--md-primary); font-size: 14px; text-decoration: none; border-radius: 8px; }
  button.link { background: transparent; box-shadow: none; padding: 8px 12px; }
  .link:hover, .text-action:hover { background: #edf3fc; text-decoration: none; box-shadow: none; }
  :is(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid var(--md-primary); outline-offset: 3px; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { border: 1px solid var(--md-outline); border-radius: 8px; padding: 12px 14px; background-color: #fff; color: var(--md-ink); font-size: 16px; line-height: 1.5; min-height: 48px; }
  input:focus,select:focus,textarea:focus { outline: 2px solid var(--md-primary); outline-offset: -2px; border-color: var(--md-primary); }
  input::placeholder,textarea::placeholder { color: #6c706e; opacity: 1; }
  input:disabled,select:disabled,textarea:disabled,input[readonly] { color: #5f6368; background: #f0f2f4; border-color: #c4c7c5; }
  input[type=checkbox],input[type=radio] { accent-color: var(--md-primary); }
  label { color: var(--md-secondary); font-size: 14px; font-weight: 500; }
  label input,label select,label textarea { margin-top: 6px; }
  .form-help { color: var(--md-secondary); font-size: 14px; line-height: 1.65; }
  .panel,.activity-item,.login-panel,.feature-option { border: 1px solid var(--md-divider); border-radius: var(--md-radius); box-shadow: none; background: var(--md-card); }
  .panel { padding: 24px; }
  .panel h2,.section-head h2 { font-size: 20px; font-weight: 600; }
  .panel>.section-head { gap: 16px; }
  .badge { font-size: 13px; font-weight: 500; }
  .notice { border-radius: 12px; font-size: 14px; line-height: 1.7; padding: 12px 16px; }
  .empty { color: var(--md-secondary); font-size: 14px; padding: 32px 16px; }
  .form-actions { gap: 12px; align-items: center; }
  .form-actions button { min-height: 44px; }
  table { font-size: 14px; }
  th { background: var(--md-surface); color: var(--md-secondary); font-weight: 600; }
  th,td { padding: 14px 16px; border-color: var(--md-divider); }
  tbody tr:hover { background: #f8fafd; }
  td .link { padding: 8px 10px; min-height: 44px; }

  /* A calm navigation rail and a single visual hierarchy on every work page. */
  .management-view,.login-view,.admin-layout { background: var(--md-surface); }
  .management-view>header,.login-view>header,.management-view>header.with-dashboard-account { background: var(--md-surface); border-bottom: 0; padding: 18px 28px; min-height: 88px; }
  .brand-area { font-size: 14px; letter-spacing: .035em; }
  .brand-name { font-size: 22px; letter-spacing: .015em; }
  .management-view>header #mode { background: var(--md-primary-container); border-color: transparent; color: var(--md-on-primary-container); }
  .admin-layout { grid-template-columns: 248px minmax(0,1fr); }
  .admin-sidebar { padding: 20px 14px 28px; background: transparent; }
  .admin-sidebar>.eyebrow,.sidebar-help { display: none; }
  .admin-sidebar nav { gap: 22px; }
  .admin-nav-label { padding: 0 16px 8px; font-size: 12px; font-weight: 500; letter-spacing: .025em; color: var(--md-secondary); }
  .admin-nav-group:first-child>.admin-nav-label { display: none; }
  .admin-sidebar .admin-nav-group a { border-radius: 28px; padding: 12px 16px; min-height: 56px; gap: 14px; font-size: 14px; font-weight: 500; }
  .admin-sidebar .admin-nav-group a.selected { background: var(--md-primary-container); color: #001d35; box-shadow: none; font-weight: 600; }
  .admin-sidebar .admin-nav-group a:not(.selected):hover { background: var(--md-hover); }
  .admin-sidebar .admin-menu-entry { align-items: center; }
  .admin-menu-icon { flex: 0 0 22px; width: 22px; height: 22px; padding: 0; color: var(--md-secondary); }
  .admin-menu-icon svg { display: block; width: 22px; height: 22px; }
  .selected .admin-menu-icon { color: var(--md-on-primary-container); }
  .admin-menu-copy small { font-size: 12px; line-height: 1.45; margin-top: 2px; color: #5f6368; }
  .admin-menu-entry.selected small { color: #315471; }
  .admin-main { padding: 24px clamp(20px,3vw,40px) 48px; max-width: 1440px; }
  .admin-main h1,.admin-main>.section-head h1,.dashboard-overview-heading h1 { font-size: 28px; font-weight: 500; margin: 0; line-height: 1.5; }
  .admin-main>.section-head .eyebrow { display: none; }
  .admin-main>.section-head p { font-size: 14px; color: var(--md-secondary); margin-top: 8px; }
  .admin-main>.section-head>button { box-shadow: none; min-height: 44px; }
  .admin-back { margin: 0 0 16px -12px; font-size: 14px; min-height: 40px; }
  .admin-main .panel { border-radius: var(--md-radius); padding: 24px; }
  .admin-session { background: transparent; border: 0; border-bottom: 1px solid var(--md-divider); border-radius: 0; padding: 0 0 16px; margin: 16px 0 24px; color: var(--md-secondary); }
  .admin-session button { border-color: transparent; min-height: 40px; font-size: 13px; }
  .admin-list-tools { gap: 16px; }
  .admin-list-tools label { font-size: 14px; }
  .reservation-tabs { gap: 4px; margin: 20px 0 24px; padding: 0; border-bottom: 1px solid var(--md-divider); }
  .reservation-tabs a,.reservation-tabs button { border-radius: 0; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px 18px; color: var(--md-secondary); font-size: 14px; box-shadow: none; }
  .reservation-tabs a[aria-current=page],.reservation-tabs button.active { background: transparent; border-bottom-color: var(--md-primary); color: var(--md-primary); font-weight: 600; }
  .tabs button { border-radius: 20px; min-height: 40px; padding: 8px 18px; }
  .tabs button.active { background: var(--md-primary-container); color: var(--md-on-primary-container); border-color: transparent; }
  .schedule-toolbar { gap: 12px; }
  .schedule-toolbar>button { min-height: 44px; }
  .schedule-toolbar .outline { border-color: var(--md-divider); background: var(--md-card); }
  .detail-page { max-width: 960px; margin-top: 24px; }
  .detail-page #detail-content { padding: 32px; }
  .detail-page #detail-content>h2 { font-size: 24px; font-weight: 500; margin: 0 0 24px; }
  .detail-page #detail-back { margin-bottom: 8px; }

  /* Compact cards retain equal minimum heights and the existing drag handles. */
  .dashboard-overview { margin-bottom: 16px; }
  .dashboard-header-account { border-left: 0; padding-left: 0; gap: 16px; }
  .dashboard-identity strong { font-size: 14px; font-weight: 600; }
  .dashboard-role { background: #e8eaed; color: var(--md-secondary); border-radius: 6px; font-size: 12px; font-weight: 500; padding: 2px 8px; }
  .dashboard-header-account #session-remaining { color: #5f6368; font-size: 12px; }
  .dashboard-header-account button { border-color: transparent; font-size: 13px; }
  .dashboard-today { font-size: 14px; color: var(--md-secondary); }
  .dashboard-today time { font-weight: 500; }
  .dashboard-today>span { font-size: 12px; }
  .dashboard-my-permissions { font-size: 13px; margin-top: 8px; }
  .dashboard-display-settings { border: 0; margin: 0; padding: 0; }
  .dashboard-display-settings summary { display: list-item; font-size: 14px; font-weight: 500; padding: 8px 0; }
  .dashboard-display-settings[open] { background: var(--md-container); padding: 12px 20px; margin: 8px 0 16px; border-radius: 16px; }
  .dashboard-layout-status { min-height: 16px; margin: 0 0 8px; font-size: 13px; }
  .dashboard-work-grid { gap: 16px; }
  .dashboard-widget { min-height: 148px; border: 1px solid var(--md-divider); border-radius: var(--md-radius); transition: border-color .15s, box-shadow .15s; }
  .dashboard-widget:hover { border-color: #b8c7dc; box-shadow: 0 2px 6px #1f1f1f0d; }
  .dashboard-work-grid .dashboard-widget .dashboard-card { padding: 4px 20px 16px; border-radius: 0 0 16px 16px; gap: 6px; background: transparent; }
  .dashboard-work-grid .dashboard-card-title { font-size: 16px; font-weight: 500; color: var(--md-ink); }
  .dashboard-work-grid .dashboard-card-heading strong { font-size: 24px; font-weight: 500; color: var(--md-primary); }
  .dashboard-work-grid .dashboard-card-note { font-size: 13px; line-height: 1.65; color: var(--md-secondary); }
  .dashboard-work-grid .dashboard-card-action { font-size: 14px; font-weight: 500; color: var(--md-primary); padding-top: 10px; }
  .dashboard-widget-tools { padding: 2px 10px; justify-content: flex-end; min-height: 32px; }
  .dashboard-widget-tools button { background: transparent; color: #5f6368; box-shadow: none; min-width: 36px; min-height: 32px; padding: 4px 8px; font-size: 14px; }
  .dashboard-widget-tools button:hover { background: var(--md-container); }
  .dashboard-widget-tools .dashboard-drag-handle span { font-size: 12px; }
  .dashboard-roster-card .dashboard-shift-person b,.dashboard-roster-card .dashboard-shift-person>span { font-size: 14px; }
  .dashboard-roster-card .dashboard-shift-hours { font-size: 13px; color: var(--md-secondary); }
  .dashboard-roster-card .dashboard-shift-empty { font-size: 14px; }
  #dashboard-card-options label { font-size: 14px; min-height: 44px; }

  /* Helpful details expand in place; urgent states remain visible. */
  .inline-help { margin: 12px 0; font-size: 14px; color: var(--md-secondary); }
  .inline-help summary { cursor: pointer; padding: 8px 0; color: var(--md-primary); min-height: 44px; }
  .inline-help p { margin: 4px 0 12px; max-width: 72ch; }
  .feature-option:has(input:checked) { background: #edf3fe; border-color: #a8c7fa; }
  .feature-option strong { font-size: 16px; font-weight: 600; }
  .file-drop-zone { border-color: #a8c7fa; background: var(--md-surface); border-radius: var(--md-radius); }
  .login-panel { padding: 40px; border: 0; border-radius: 28px; max-width: 480px; }
  .login-panel h1 { margin-top: 0; font-size: 30px; }
  .login-label { display: none; }
  .login-panel p { font-size: 14px; }
  .login-panel input { min-height: 56px; }
  .login-back { font-size: 14px; }
  /* Keep the timeline hit areas and holiday/closure colors intact. */
  .timeline-item { min-height: 0; border-radius: 4px; background: transparent; padding: 4px 18px; font-size: 13px; box-shadow: none; }
  .timeline-item:hover { box-shadow: none; background: #ffffff55; }
  .timeline-resize { min-height: 0; padding: 0; border-radius: 3px; background: #20212422; color: #202124; box-shadow: none; }
  .timeline-save-status { font-size: 14px; }
  /* Public pages use the same type, buttons and surface palette. */
  body:not(.management-view):not(.login-view)>header { padding: 20px 28px; }
  .hero { background: #edf3fe; border-radius: 28px; }
  .hero h1 { font-weight: 500; letter-spacing: 0; }
  .primary-action,.community-actions a { background: var(--md-primary); }
  .quick a,.activity-item,.facility { border-radius: var(--md-radius); border-color: var(--md-divider); }
  .quick b { font-weight: 500; }
  .page-title { background: var(--md-surface); border: 0; }
  .page-title h1 { font-weight: 500; }
  footer { background: var(--md-surface); }
}
@media screen and (max-width:1000px) {
  .management-view>header.with-dashboard-account { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .dashboard-header-account { padding-top: 10px; border-top: 1px solid var(--md-divider); }
}
@media screen and (max-width:800px) {
  .admin-layout { grid-template-columns: minmax(0,1fr); }
  .admin-sidebar { padding: 8px 20px 12px; border-bottom: 0; }
  .admin-menu-toggle { display: block; width: 100%; border-color: var(--md-divider); border-radius: 12px; min-height: 48px; background: white; font-size: 14px; text-align: left; }
  .admin-sidebar nav { display: none; }
  .admin-sidebar.menu-expanded nav { display: flex; flex-direction: column; gap: 18px; padding: 12px 0; }
  .admin-sidebar .admin-nav-group a { justify-content: flex-start; white-space: normal; width: 100%; }
  .admin-main { padding: 20px 20px 40px; }
  .admin-main .panel { padding: 20px; }
  .admin-menu-copy small { display: block; }
  .detail-page #detail-content { padding: 24px; }
}
@media screen and (max-width:600px) {
  .hero { padding: 28px 24px; }
  .hero h1 { font-size: 30px; line-height: 1.5; }
  .management-view>header,.login-view>header,.management-view>header.with-dashboard-account { padding: 16px 20px 12px; gap: 12px; }
  .brand-area { font-size: 13px; }
  .brand-name { font-size: 18px; }
  .management-view>header #mode,.login-view>header #mode { font-size: 12px; padding: 8px 12px; max-width: 104px; white-space: normal; }
  .dashboard-header-account { gap: 8px; }
  .dashboard-header-account #session-remaining { font-size: 12px; }
  .admin-main h1,.admin-main>.section-head h1,.dashboard-overview-heading h1 { font-size: 25px; }
  .dashboard-overview-tools { margin-top: 4px; }
  .dashboard-work-grid { gap: 12px; }
  .dashboard-widget { min-height: 148px; }
  .dashboard-work-grid .dashboard-widget .dashboard-card { padding: 4px 16px 16px; }
  .dashboard-widget-tools button { min-height: 36px; }
  .admin-main .panel { padding: 18px 16px; }
  .admin-main td { padding: 8px 0; }
  .admin-main td:before { font-size: 14px; }
  .admin-main .reservation-tabs { gap: 0; }
  .reservation-tabs a,.reservation-tabs button { padding: 12px 10px; font-size: 14px; }
  .detail-page { padding: 0 16px; margin-top: 16px; }
  .detail-page #detail-content { padding: 24px 18px; }
  .detail-page #detail-content>h2 { font-size: 22px; }
  .login-panel { padding: 32px 24px; }
  .form-actions { gap: 8px; }
  .timeline-item { padding-left: 18px; padding-right: 18px; }
}
@media screen and (max-width:360px) {
  .hero h1 { font-size: 28px; }
  .management-view>header,.management-view>header.with-dashboard-account,.login-view>header { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .brand-name { font-size: 16px; }
  .admin-main,.admin-sidebar { padding-left: 16px; padding-right: 16px; }
}
@media screen and (prefers-reduced-motion:reduce) {
  button,.dashboard-widget,.quick a { transition: none; }
}
@media screen {
  .activity-filter {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}
  .activity-filter label {margin:0;min-width:0}
  .activity-filter input[type=date] {max-width:none}
  .activity-filter .form-actions {grid-column:1/-1}
  .activity-table {white-space:normal}
  .activity-table th,.activity-table td {vertical-align:top;overflow-wrap:anywhere}
  .activity-table td:first-child {min-width:160px;font-variant-numeric:tabular-nums}
  .activity-table small {display:block;color:var(--md-secondary);font-size:12px;margin-top:4px}
}
@media screen and (max-width:1000px) {.activity-filter {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:600px) {.activity-filter {grid-template-columns:minmax(0,1fr)}.activity-table td:first-child {min-width:0}}

/* City RSS: readable dated links, compact source management. */
.city-news-list{list-style:none;padding:0;margin:12px 0}.city-news-list li{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:12px;padding:17px 0;border-bottom:1px solid var(--md-outline-variant,#e4e7eb);align-items:baseline}.city-news-list time{color:#5f6368;font-size:.9rem;font-variant-numeric:tabular-nums}.city-news-list a{overflow-wrap:anywhere;line-height:1.65}.city-news-page{max-width:1000px;margin-inline:auto}.rss-feeds{display:grid;gap:0}.rss-feed{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:18px 0;border-top:1px solid #e4e7eb}.rss-feed>div:first-child{min-width:0;flex:1}.rss-feed h3{margin:0 0 6px}.rss-url{overflow-wrap:anywhere;color:#5f6368;font-size:.85rem;margin:4px 0}.rss-error{color:#b3261e;font-size:.9rem}.rss-editor{display:grid;gap:16px;background:#f6f8fc;padding:20px;border-radius:16px;margin:12px 0 24px}.rss-editor label{display:grid;gap:6px}.rss-editor .check{display:flex;align-items:center;gap:8px}.rss-settings{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.rss-settings label{display:grid;gap:6px}.rss-settings input{width:130px}.rss-feed .form-actions{flex-wrap:wrap;flex-shrink:0}.city-news-list a:focus-visible{outline:2px solid #1a73e8;outline-offset:4px}
@media(max-width:600px){.city-news-list li{grid-template-columns:1fr;gap:4px;padding:14px 0}.rss-feed{align-items:start;flex-direction:column}.rss-editor{padding:16px}.city-news-page .report-pagination{gap:8px;flex-wrap:wrap;font-size:.9rem}#home-city-news>.section-head{align-items:start;gap:10px;flex-wrap:wrap}}

.city-news-list a{color:#1967d2}.city-news-list a:hover{text-decoration:underline}.city-news-page .report-pagination a{padding:10px 16px}
.rss-editor .check input{width:auto;min-width:0;flex:0 0 auto;margin:0}.rss-editor .check{justify-content:flex-start}

/* City articles use the same category badge as ordinary notices. */
.city-news-list li{grid-template-columns:216px minmax(0,1fr);gap:16px}
.city-news-meta{display:grid;grid-template-columns:100px 100px;align-items:center;gap:16px;min-width:0}
.city-news-category.badge{padding:3px 10px;white-space:nowrap}
@media(max-width:600px){.city-news-list li{grid-template-columns:minmax(0,1fr);gap:4px}.city-news-meta{gap:12px}}

/* Source tabs share the same unread records as the header and article rows. */
.news-source-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.news-source-tabs a{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:24px;color:var(--md-on-surface,#202124);text-decoration:none;border:1px solid var(--md-outline,#dadce0)}
.news-source-tabs a.active{background:var(--md-primary-container,#d3e3fd);color:var(--md-on-primary-container,#041e49);border-color:transparent}
.news-feed-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;color:#5f6368;font-size:14px}
.news-feed-tools label{display:flex;align-items:center;gap:10px}
.news-feed-tools select{width:auto;max-width:220px}
.news-feed-category{display:block;margin-top:5px;color:#5f6368;font-size:12px;font-weight:400}
.news-external-label{font-size:11px;display:block;white-space:nowrap}
.unified-news-row strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.news-source-tabs a{padding:9px 12px}.unified-news-row .chevron{display:none}.news-feed-tools select{max-width:190px}}

/* Public refresh: compact inline feedback; no page reload or dialog. */
html.pull-refresh-enabled{overscroll-behavior-y:contain}
.public-refresh{max-width:1120px;margin:0 auto;padding:8px 24px;display:flex;justify-content:flex-end;align-items:center;gap:12px;min-height:48px;font-size:13px;color:#5f6368}
.public-refresh[hidden]{display:none}
.public-refresh button{min-height:36px;padding:6px 14px;font-size:13px;white-space:nowrap}
.refresh-hint{display:none}
.public-refresh[data-state="ready"] .refresh-status,.public-refresh[data-state="loading"] .refresh-status{color:#1967d2}
.public-refresh[data-state="error"] .refresh-status{color:#b3261e}
@media(pointer:coarse){.refresh-hint{display:inline}.public-refresh:not([data-state="idle"]):has(.refresh-status:not(:empty)) .refresh-hint{display:none}}
@media(max-width:600px){.public-refresh{padding:8px 20px;gap:8px}.refresh-status{line-height:1.5}}

/* Keep the council identity ahead of the mobile navigation, with full tap areas. */
@media screen and (max-width:600px) {
  body:not(.management-view):not(.login-view)>header { padding: 16px 20px; }
  body:not(.management-view):not(.login-view)>header .brand-area { font-size: 15px; line-height: 1.4; letter-spacing: .025em; }
  body:not(.management-view):not(.login-view)>header .brand-name { font-size: 20px; line-height: 1.4; letter-spacing: .015em; }
  body:not(.management-view):not(.login-view)>header #main-navigation a { font-size: 14px; line-height: 1.5; font-weight: 500; min-height: 48px; }
}
@media screen and (max-width:360px) {
  body:not(.management-view):not(.login-view)>header { padding-left: 16px; padding-right: 16px; column-gap: 12px; }
  body:not(.management-view):not(.login-view)>header .brand-area { font-size: 14px; }
  body:not(.management-view):not(.login-view)>header .brand-name { font-size: 18px; }
}

.notice-pdf{display:flex;align-items:flex-start;gap:16px;padding:16px;border:1px solid var(--line);border-radius:12px;margin:16px 0;background:#f8fafd}
.notice-pdf>div{min-width:0}.notice-pdf h3{margin:0;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.notice-pdf-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:48px;height:56px;border-radius:8px;background:#fce8e6;color:#a50e0e;font-size:13px;font-weight:700}
.notice-pdf-actions{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:6px}.notice-pdf-actions a{display:inline-flex;align-items:center;min-height:44px;color:#1967d2;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.notice-pdf-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-size:13px;color:#1967d2;min-height:110px}
@media(max-width:600px){.notice-pdf{padding:14px;gap:12px}.notice-pdf-actions{gap:0 12px}.notice-pdf-actions .news-external-label{display:none}}

.notification-settings{flex-basis:100%;width:100%;padding-top:16px;border-top:1px solid var(--line)}
.notification-settings p{margin:0 0 10px;font-size:14px;line-height:1.7;max-width:640px}
.notification-settings button{min-height:44px}

/* A focused opt-in invitation for unregistered iPhone Home Screen apps. */
.notification-prompt{border:0;border-radius:24px;padding:28px 24px;width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 32px);overflow:auto;color:#1f1f1f;background:#fff;box-shadow:0 12px 48px #0003;text-align:center;overscroll-behavior:contain}
.notification-prompt::backdrop{background:#15223899}
.notification-prompt-symbol{display:grid;place-items:center;margin:0 auto 12px;width:48px;height:48px;border-radius:50%;background:#e8f0fe;color:#0b57d0;font-size:28px;font-weight:700}
.notification-prompt-eyebrow{font-size:13px;color:#444746;margin:0 0 8px}
.notification-prompt h2{font-size:24px;line-height:1.5;margin:0 0 16px;font-weight:700}
.notification-prompt h2:focus{outline:none}
.notification-prompt p{line-height:1.7;font-size:15px}
.notification-prompt-instruction{background:#eef4ff;border-radius:12px;padding:14px 10px}
.notification-prompt-status:empty{display:none}.notification-prompt-status{color:#b3261e}
.notification-prompt-actions{display:grid;gap:10px;margin-top:20px}.notification-prompt-actions button{min-height:48px;width:100%;font-size:16px}
.notification-prompt .notification-prompt-note{font-size:12px;color:#5f6368;margin:16px 0 0}
@media(max-width:360px){.notification-prompt{padding:22px 18px}.notification-prompt h2{font-size:21px}.notification-prompt p{font-size:14px}}
/* Keep destructive notice actions distinct from editing. */
[data-delete-notice]{color:#b3261e}
#notice-delete-confirm{background:#b3261e;color:#fff}

/* A separate header row keeps the notification action visible beside a closed mobile menu. */
.header-notification{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;width:100%;flex-wrap:wrap}
.header-notification button{min-height:44px;font-size:14px;padding:10px 18px;line-height:1.5;white-space:normal}
.header-notification button:disabled{background:#f1f3f4;color:#5f6368;opacity:1;cursor:default}
.header-notification p{flex-basis:100%;margin:0;font-size:14px;line-height:1.6;color:#5f6368;text-align:right;overflow-wrap:anywhere}
.management-view .header-notification,.login-view .header-notification{display:none}
@media(min-width:601px) and (max-width:1000px){.header-notification{grid-row:3}}
@media(max-width:600px){.header-notification{grid-row:2;justify-content:stretch}.header-notification button{width:100%}.header-notification p{text-align:left}}
@media(max-width:600px){.header-notification{padding-top:10px}header.menu-open .header-notification{grid-row:3}}

.news-feed-date{display:inline-flex;align-items:center;white-space:nowrap}
.news-feed-date .notice-unread-dot[hidden]{display:inline-block!important;visibility:hidden}

/* Use the same text color for office/contact labels and values. */
.footer-details dt,.footer-details dd,.community-profile dt,.community-profile dd{color:var(--md-secondary,#444746)}

/* Keep the combined unread count visible while the mobile menu is closed. */
.mobile-header-news{display:none}
@media screen and (max-width:600px){
 body:not(.management-view):not(.login-view) .header-notification{gap:10px;align-items:center}
 .header-notification .mobile-header-news:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 4px;color:#3c4043;font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap;flex:0 0 auto;border-radius:8px}
 .mobile-header-news:hover{background:#f8fafd}
 .mobile-header-unread:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fce8e6;color:#b3261e;font-size:13px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
 .header-notification:has(.mobile-header-news:not([hidden])) button{width:auto;flex:1 1 0;min-width:0;font-size:12px;padding:10px 12px}
}
