.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 12px 20px; background: var(--signal); color: var(--ink); transform: translateY(-150%); font-weight: 700; }
.skip-link:focus { transform: none; }
.app-header { position: sticky; z-index: 40; top: 0; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; margin: auto; display: flex; align-items: center; gap: 18px; min-height: 79px; padding: 10px 32px; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; line-height: 1.1; }
.brand-symbol { width: 50px; height: 52px; display: grid; flex: none; place-items: center; }
.brand-symbol img { display: block; width: 50px; height: 50px; filter: drop-shadow(0 7px 14px rgba(2,16,25,.3)); transition: transform 220ms cubic-bezier(.23,1,.32,1), filter 220ms ease; }
.brand:hover .brand-symbol img { filter: drop-shadow(0 9px 18px rgba(66,198,208,.28)); transform: translateY(-2px) scale(1.045); }
.brand-lockup { display: block; }
.brand-name { font-size: 1.78rem; font-weight: 820; letter-spacing: -.052em; }
.brand-i { color: var(--signal); }
.brand-m { color: #70e1dd; }
.brand-version { display: inline-flex; align-items: baseline; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(112,225,221,.42); border-radius: 0; color: #a0ece8; background: transparent; font-family: var(--body-font); font-size: .68rem; font-weight: 800; letter-spacing: .045em; line-height: 1; text-transform: none; vertical-align: .3em; }
.brand-version > span { margin-right: 1px; color: var(--signal); font-size: .84em; }
.brand small { display: block; margin-top: 4px; font-size: .75rem; font-weight: 550; letter-spacing: .015em; color: var(--muted); }
.app-header #primary-navigation { margin-left: auto; display: flex; align-items: center; gap: 17px; }
.app-header #primary-navigation > a { position: relative; padding: 10px 0; color: #354c56; font-size: 1rem; line-height: 1.4; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 44px; transition: color 180ms ease, transform 180ms cubic-bezier(.23,1,.32,1); }
.app-header #primary-navigation > a::after { content: ''; position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; border-radius: 2px; background: currentColor; opacity: 0; transform: scaleX(0); transform-origin: right center; transition: transform 220ms cubic-bezier(.23,1,.32,1), opacity 160ms ease; }
.app-header #primary-navigation > a:hover, .app-header #primary-navigation > a:focus-visible { color: var(--teal); transform: translateY(-1px); }
.app-header #primary-navigation > a:hover::after, .app-header #primary-navigation > a:focus-visible::after, .app-header #primary-navigation > a[aria-current=page]::after { opacity: 1; transform: scaleX(1); transform-origin: left center; }
.app-header #primary-navigation > a[aria-current=page] { color: var(--teal); }
.app-header #primary-navigation > a:active { transform: translateY(0) scale(.98); }
.account-menu { position: relative; flex: none; min-width: 0; }
.account-menu summary { display: flex; align-items: center; gap: 8px; min-height: 48px; max-width: 210px; padding: 7px 12px; color: #192c34; background: var(--signal); border: 1px solid #e39337; border-radius: 8px; box-shadow: 0 5px 18px #c86f1724; cursor: pointer; list-style: none; font-size: .9375rem; font-weight: 750; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.account-avatar { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; }
.account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu summary svg { flex: 0 0 16px; width: 16px; transition: transform 180ms cubic-bezier(.23,1,.32,1); }
.account-menu[open] summary svg { transform: rotate(180deg); }
.account-popover { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: max-content; min-width: 220px; max-width: min(300px, calc(100vw - 32px)); padding: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px #0617222e; }
.account-popover strong, .account-popover > span { display: block; overflow-wrap: anywhere; }
.account-popover strong { font-size: 1rem; }
.account-popover > span { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.account-workspace { display: block; min-height: 44px; margin-top: 12px; padding: 10px 12px; border-radius: 6px; color: var(--teal); background: var(--teal-soft); font-size: .9375rem; font-weight: 700; text-decoration: none; }
.account-workspace:hover { text-decoration: underline; }
.account-popover form { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.account-popover button { width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 6px; color: #9a2b24; background: #fff2f0; font: 700 1rem/1.3 var(--body-font); cursor: pointer; text-align: left; }
.account-popover button:hover { background: #ffe3df; }
.header-account-login { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 11px 16px; border: 1px solid #e39337; border-radius: 8px; background: var(--signal); box-shadow: 0 5px 18px #c86f1724; color: #192c34; font-size: .9375rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-account-login span { font-size: 1.1rem; transition: transform 180ms cubic-bezier(.23,1,.32,1); }
.header-account-login:hover { background: #ffc16c; color: #192c34; }
.header-account-login:hover span { transform: translateX(3px); }
.header-account-login:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.header-account-login:active, .account-menu summary:active { transform: scale(.98); }
.menu-toggle { display: none; gap: 8px; align-items: center; padding: 10px 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; min-height: 44px; font-size: 1rem; }
.site-footer { flex-shrink: 0; margin-top: auto; background: var(--navy); color: #c6d5d9; padding: 48px max(32px, calc((100vw - 1216px) / 2)) 24px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 36px; }
.footer-brand > a { color: #fff; font-size: 2.5rem; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.footer-brand > a.footer-logo { display: inline-flex; align-items: center; gap: 13px; font-size: initial; }
.footer-logo img { width: 60px; height: 60px; filter: drop-shadow(0 9px 18px rgba(0,0,0,.3)); }
.footer-logo > span { color: #fff; font-size: 2.65rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.footer-logo small { display: inline-flex; align-items: baseline; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(112,225,221,.4); border-radius: 0; color: #a0ece8; background: transparent; font-family: var(--body-font); font-size: .72rem; font-weight: 800; letter-spacing: .045em; line-height: 1; text-transform: none; vertical-align: .38em; }
.footer-logo small > span { margin-right: 1px; color: var(--signal); font-size: .84em; }
.footer-brand p { margin: 12px 0 0; line-height: 1.6; }
.footer-main h2 { margin: 8px 0 18px; color: #fff; font: 600 1rem/1.4 var(--body-font); }
.footer-main > div:not(.footer-brand) a { display: block; width: fit-content; min-height: 44px; padding: 5px 0; color: #d8e3e6; font-size: 1rem; text-decoration: none; }
.footer-main a:hover { color: #fff; text-decoration: underline; }
.footer-main p { font-size: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #3b515b; padding-top: 24px; font-size: .875rem; }
@media (max-width: 1320px) { .header-inner { gap: 14px; padding-inline: 24px; } .app-header #primary-navigation { gap: 13px; } .brand small { max-width: 160px; } }
@media (max-width: 1120px) {
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 84px; }
  .brand { margin-right: auto; }
  .menu-toggle { display: flex; order: 2; }
  .account-menu { order: 1; }
  .header-account-login { order: 1; }
  .app-header #primary-navigation { order: 3; flex: 0 0 100%; margin: 0; padding: 16px 0 8px; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); }
  .nav-enhanced .app-header #primary-navigation:not(.is-open) { display: none; }
  .nav-enhanced .app-header #primary-navigation.is-open { display: flex; }
}
@media (max-width: 600px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; gap: 10px; }
  .brand { grid-column: 1; grid-row: 1; gap: 7px; }
  .brand-symbol { width: 42px; height: 44px; }
  .brand-symbol img { width: 42px; height: 42px; }
  .brand-name { font-size: 1.55rem; }
  .brand-version { font-size: .62rem; }
  .brand small { display: none; }
  .account-menu { grid-column: 1; grid-row: 2; justify-self: start; max-width: 100%; order: initial; }
  .account-menu summary { max-width: min(190px, calc(100vw - 180px)); }
  .account-popover { right: auto; left: 0; }
  .header-account-login { grid-column: 1; grid-row: 2; justify-self: start; min-height: 44px; padding: 9px 13px; font-size: .875rem; order: initial; }
  .menu-toggle { grid-column: 2; grid-row: 1; padding: 10px; order: initial; }
  .menu-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .app-header #primary-navigation { grid-column: 1 / -1; grid-row: 3; flex-direction: column; align-items: stretch; max-height: calc(100dvh - 100px); overflow-y: auto; gap: 4px; }
  .app-header #primary-navigation > a { display: block; width: 100%; text-align: left; padding: 12px; font-size: 1rem; }
  .app-header #primary-navigation > a::after { right: auto; bottom: 7px; left: 12px; width: 32px; }
  .site-footer { padding: 36px 20px 24px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main h2 { margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* Authenticated application shell */
:root { --workspace-sidebar-width: 282px; }
.workspace-sidebar {
  position: fixed;
  z-index: 80;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--workspace-sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #294653;
  background: #0a202d;
  color: #d9e7e9;
  box-shadow: 14px 0 40px rgba(4, 18, 27, .12);
}
.workspace-sidebar-head { display: flex; align-items: center; gap: 10px; min-height: 92px; padding: 16px 18px; border-bottom: 1px solid #294653; }
.workspace-sidebar .brand { min-width: 0; color: #fff; }
.workspace-sidebar .brand-symbol { width: 46px; height: 48px; }
.workspace-sidebar .brand-symbol img { width: 46px; height: 46px; }
.workspace-sidebar .brand-name { font-size: 1.58rem; }
.workspace-sidebar .brand small { color: #9fb6bd; font-size: .68rem; }
.workspace-sidebar-close {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid #41606c;
  border-radius: 8px;
  background: #133240;
  color: #fff;
  font: 400 1.7rem/1 var(--body-font);
}
.workspace-role-label {
  margin: 18px 18px 4px;
  padding: 10px 12px;
  border: 1px solid #31515d;
  border-radius: 8px;
  color: #8fe2de;
  background: #102f3b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.workspace-nav { display: grid; gap: 15px; padding: 15px 12px 24px; }
.workspace-nav-group { display: grid; gap: 4px; }
.workspace-nav-label { display: flex; align-items: center; gap: 9px; padding: 0 9px 7px; color: #8ca4ac; font-size: .69rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.workspace-nav-label::after { content: ''; height: 1px; flex: 1; background: #294653; }
.workspace-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d9e7e9;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.workspace-nav a::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 3px; width: 3px; border-radius: 2px; background: #69d5d0; opacity: 0; transform: scaleY(.45); transition: opacity 160ms ease, transform 160ms ease; }
.workspace-nav-copy { min-width: 0; }
.workspace-nav a strong, .workspace-nav a small { display: block; }
.workspace-nav a strong { overflow: hidden; font-size: .91rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.workspace-nav a small { overflow: hidden; margin-top: 2px; color: #91aab2; font-size: .71rem; line-height: 1.28; text-overflow: ellipsis; white-space: nowrap; }
.workspace-nav-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #31515d; border-radius: 8px; background: #12313d; color: #84deda; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.workspace-nav-icon::before { content: ''; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat; }
.nav-icon-dashboard { --nav-icon: url('icons/tabler/layout-dashboard.svg'); }
.nav-icon-live { --nav-icon: url('icons/tabler/activity-heartbeat.svg'); }
.nav-icon-map { --nav-icon: url('icons/tabler/map-2.svg'); }
.nav-icon-shelter { --nav-icon: url('icons/tabler/home.svg'); }
.nav-icon-duplicate { --nav-icon: url('icons/tabler/copy-check.svg'); }
.nav-icon-queue { --nav-icon: url('icons/tabler/list-check.svg'); }
.nav-icon-users { --nav-icon: url('icons/tabler/users.svg'); }
.nav-icon-reports { --nav-icon: url('icons/tabler/clipboard-list.svg'); }
.nav-icon-emergency { --nav-icon: url('icons/tabler/alert-triangle.svg'); }
.nav-icon-track { --nav-icon: url('icons/tabler/file-search.svg'); }
.nav-icon-announcements { --nav-icon: url('icons/tabler/speakerphone.svg'); }
.nav-icon-home { --nav-icon: url('icons/tabler/home.svg'); }
.workspace-nav a[aria-current]::before { background: #7a420e; opacity: 1; transform: scaleY(1); }
.workspace-nav a[aria-current] { border-color: #a9631f; background: #f6a43b; color: #182d36; }
.workspace-nav a[aria-current] small { color: #59401f; }
.workspace-nav a[aria-current] .workspace-nav-icon { border-color: rgba(24, 45, 54, .28); background: rgba(24, 45, 54, .11); color: #18313b; }
.workspace-nav a:focus-visible:not([aria-current]) { border-color: #51808b; background: #123340; color: #fff; transform: translateX(2px); }
.workspace-nav a:focus-visible:not([aria-current]) small { color: #b8d0d5; }
.workspace-nav a:focus-visible:not([aria-current]) .workspace-nav-icon { border-color: #51808b; background: #194451; color: #a3f1ed; transform: scale(1.04); }
.workspace-nav a:focus-visible:not([aria-current])::before { opacity: 1; transform: scaleY(1); }
.workspace-nav a:hover { border-color: #a9631f; background: #f6a43b; color: #182d36; transform: translateX(2px); }
.workspace-nav a:hover small { color: #59401f; }
.workspace-nav a:hover .workspace-nav-icon { border-color: rgba(24, 45, 54, .28); background: rgba(24, 45, 54, .11); color: #18313b; transform: scale(1.04); }
.workspace-nav a:hover::before { background: #7a420e; opacity: 1; transform: scaleY(1); }
.workspace-nav a:focus-visible { outline: 2px solid #ffc878; outline-offset: 2px; }
.workspace-account-menu { width: auto; margin: auto 14px 16px; }
.workspace-sidebar .workspace-account-menu > summary {
  width: 100%;
  max-width: none;
  min-height: 62px;
  padding: 9px 10px;
  border-color: #3a5c68;
  background: #123340;
  color: #fff;
  box-shadow: none;
}
.workspace-sidebar .account-avatar { background: #71dcd8; color: #0a2833; font-weight: 850; }
.workspace-account-copy { min-width: 0; flex: 1; }
.workspace-account-copy strong, .workspace-account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-account-copy strong { font-size: .9rem; }
.workspace-account-copy small { margin-top: 1px; color: #9eb7be; font-size: .7rem; font-weight: 550; }
.workspace-sidebar .account-popover { top: auto; right: auto; bottom: calc(100% + 9px); left: 0; width: 100%; min-width: 0; max-width: none; }
.workspace-topbar { display: none; }
.workspace-sidebar-backdrop { display: none; }
.workspace-sidebar ~ main {
  width: calc(100% - var(--workspace-sidebar-width));
  max-width: none;
  margin-right: 0;
  margin-left: var(--workspace-sidebar-width);
}
.workspace-sidebar ~ .site-footer,
.workspace-sidebar ~ .workspace-footer {
  width: calc(100% - var(--workspace-sidebar-width));
  margin-left: var(--workspace-sidebar-width);
}
.workspace-footer {
  position: relative;
  display: block;
  padding: 0 max(128px, 28px) 0 28px;
  border-top: 1px solid #ced8da;
  background: #edf3f3;
  color: #50656d;
  font-size: .82rem;
}
.workspace-footer::before { content: ''; position: absolute; top: -1px; left: 0; width: min(300px, 38%); height: 3px; background: linear-gradient(90deg, #14948b, #f6a43b, transparent); }
.workspace-footer-main { display: grid; grid-template-columns: minmax(230px, 1fr) auto auto; gap: 28px; align-items: center; min-height: 88px; }
.workspace-footer-brand { display: flex; min-width: 0; align-items: center; gap: 11px; }
.workspace-footer-brand img { width: 42px; height: 42px; }
.workspace-footer-brand span, .workspace-footer-brand b, .workspace-footer-brand small { display: block; }
.workspace-footer-brand b { color: #173542; font-size: .92rem; }
.workspace-footer-brand small { margin-top: 3px; color: #65787f; font-size: .7rem; }
.workspace-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.workspace-footer a { color: #086960; font-weight: 750; text-decoration: none; }
.workspace-footer nav a { min-height: 36px; padding: 8px 0; }
.workspace-footer a:hover { color: #064f4a; text-decoration: underline; }
.workspace-public-link { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #a9c2c1; border-radius: 6px; background: #fff; white-space: nowrap; }
.workspace-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0 17px; border-top: 1px solid #d3dfe1; color: #687b82; font-size: .7rem; }

@media (max-width: 980px) {
  .workspace-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    border-right: 0;
    box-shadow: none;
  }
  .workspace-sidebar ~ main,
  .workspace-sidebar ~ .site-footer,
  .workspace-sidebar ~ .workspace-footer { width: 100%; margin-left: 0; }
  .nav-enhanced .workspace-sidebar {
    position: fixed;
    width: min(320px, 88vw);
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: 18px 0 56px rgba(2, 15, 24, .35);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 220ms cubic-bezier(.23, 1, .32, 1), visibility 220ms;
  }
  .nav-enhanced .workspace-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .nav-enhanced .workspace-topbar {
    position: sticky;
    z-index: 65;
    top: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 68px;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    border-bottom: 1px solid #31505c;
    background: #0a202df5;
    backdrop-filter: blur(14px);
  }
  .workspace-sidebar-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #496673;
    border-radius: 8px;
    background: #133440;
    color: #fff;
  }
  .workspace-sidebar-toggle:hover { border-color: #73dcd8; background: #194350; }
  .workspace-mobile-brand { display: flex; min-width: 0; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
  .workspace-mobile-brand img { flex: none; width: 36px; height: 36px; }
  .workspace-mobile-brand > span { min-width: 0; }
  .workspace-mobile-brand b, .workspace-mobile-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace-mobile-brand b { font-size: 1.15rem; line-height: 1.1; }
  .workspace-mobile-brand small { margin-top: 2px; color: #9fb7be; font-size: .67rem; line-height: 1.2; }
  .workspace-mobile-report { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 7px; background: #f6a43b; color: #172c35; font-size: .84rem; font-weight: 800; text-decoration: none; }
  .workspace-sidebar-close { display: grid; place-items: center; }
  .nav-enhanced .workspace-sidebar-backdrop:not([hidden]) {
    position: fixed;
    z-index: 75;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 18, 28, .58);
    backdrop-filter: blur(2px);
  }
  html.workspace-menu-open { overflow: hidden; }
  .workspace-footer { padding: 0 104px 0 20px; }
  .workspace-footer-main { grid-template-columns: 1fr auto; gap: 16px; }
  .workspace-footer nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; padding-bottom: 14px; }
  .workspace-footer-bottom { flex-wrap: wrap; justify-content: start; }
}

@media (max-width: 520px) {
  .nav-enhanced .workspace-topbar { padding-inline: 12px; }
  .workspace-mobile-brand img { display: none; }
  .workspace-mobile-report { padding-inline: 10px; }
  .workspace-footer { padding: 0 18px 98px; }
  .workspace-footer-main { grid-template-columns: 1fr; padding-top: 20px; }
  .workspace-footer nav { grid-column: auto; grid-row: auto; justify-content: start; }
  .workspace-public-link { width: fit-content; }
  .workspace-footer-bottom { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-sidebar, .workspace-nav a, .workspace-nav a::before { transition: none; }
}

/* Shared confirmations and completed-action feedback */
.action-confirm-dialog {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #c8d7dc;
  border-radius: 14px;
  background: #f8fbfb;
  color: #0a2634;
  box-shadow: 0 28px 80px rgba(2, 23, 34, .34);
}

.action-confirm-dialog::backdrop {
  background: rgba(3, 21, 31, .66);
  backdrop-filter: blur(4px);
}

.action-dialog-card { padding: 30px; }
.action-dialog-heading { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.action-confirm-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #f2c787;
  border-radius: 12px;
  background: #fff2dc;
  color: #8b5100;
}
.action-confirm-icon::before {
  width: 25px;
  height: 25px;
  background: currentColor;
  content: "";
  mask: url("icons/tabler/alert-triangle.svg") center / contain no-repeat;
  -webkit-mask: url("icons/tabler/alert-triangle.svg") center / contain no-repeat;
}
.action-confirm-dialog.is-success .action-confirm-icon { border-color: #9bd4c2; background: #e4f6ef; color: #08705a; }
.action-confirm-dialog.is-success .action-confirm-icon::before {
  mask-image: url("icons/tabler/copy-check.svg");
  -webkit-mask-image: url("icons/tabler/copy-check.svg");
}
.action-confirm-eyebrow { margin: 1px 0 5px; color: #a35a00; font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.action-confirm-dialog.is-success .action-confirm-eyebrow { color: #08705a; }
.action-dialog-heading h2 { margin: 0; color: #092534; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.15; }
.action-dialog-heading p:last-child { margin: 9px 0 0; color: #4b626c; font-size: .96rem; line-height: 1.55; }
.action-confirm-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid #d3dfe2;
  border-radius: 10px;
  background: #d3dfe2;
}
.action-confirm-details[hidden] { display: none; }
.action-confirm-details > div { min-width: 0; padding: 13px 15px; background: #fff; }
.action-confirm-details > div:only-child { grid-column: 1 / -1; }
.action-confirm-details > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.action-confirm-details dt { margin: 0 0 3px; color: #60747d; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.action-confirm-details dd { margin: 0; overflow-wrap: anywhere; color: #0a2634; font-size: .92rem; font-weight: 800; line-height: 1.35; }
.action-confirm-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #e18a17; background: #fff6e8; color: #5f4a2a; font-size: .84rem; line-height: 1.5; }
.action-confirm-dialog.is-success .action-confirm-note { border-color: #15906f; background: #eaf7f2; color: #285d50; }
.action-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.action-dialog-actions button, .action-dialog-link {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 8px;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.action-dialog-cancel { border: 1px solid #b9c9ce; background: #fff; color: #173b48; }
.action-dialog-accept { border: 1px solid #dc850f; background: #f6a43b; color: #142d38; box-shadow: 0 5px 14px rgba(197, 111, 0, .16); }
.action-dialog-link { display: inline-flex; align-items: center; justify-content: center; margin-right: auto; border: 1px solid #087763; background: #0a7967; color: #fff; }
.action-dialog-link[hidden], .action-dialog-actions button[hidden] { display: none; }
.action-dialog-actions button:hover, .action-dialog-link:hover { filter: brightness(.96); transform: translateY(-1px); }
.action-dialog-actions button:focus-visible, .action-dialog-link:focus-visible { outline: 3px solid #65d4d2; outline-offset: 3px; }

.action-toast-region {
  position: fixed;
  z-index: 1000;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(420px, calc(100% - 36px));
  gap: 12px;
  pointer-events: none;
}
.public-body .action-toast-region,
.announcement-body .action-toast-region { top: 96px; }
.action-toast {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  gap: 13px;
  align-items: center;
  min-height: 82px;
  padding: 14px 13px 15px 14px;
  overflow: hidden;
  border: 1px solid #b9d8cf;
  border-radius: 14px;
  background: rgba(251, 255, 253, .98);
  color: #12313b;
  box-shadow: 0 18px 48px rgba(3, 31, 39, .2), 0 4px 12px rgba(3, 31, 39, .08);
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(18px, -6px, 0) scale(.98);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(.2, .9, .25, 1);
}
.action-toast.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.action-toast.is-leaving { opacity: 0; transform: translate3d(14px, 0, 0) scale(.985); transition-duration: 180ms; }
.action-toast-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #abdccc;
  border-radius: 11px;
  background: #e7f6f1;
  color: #087763;
}
.action-toast-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-toast-copy { min-width: 0; }
.action-toast strong, .action-toast span { display: block; }
.action-toast strong { margin: 0 0 3px; color: #075f50; font-size: .9rem; line-height: 1.25; }
.action-toast div > span { color: #465f68; font-size: .84rem; line-height: 1.45; }
.action-toast button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #688087;
  font: 400 1.25rem/1 var(--body-font);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.action-toast button:hover { background: #e4f2ee; color: #075f50; transform: scale(1.05); }
.action-toast button:focus-visible { outline: 3px solid #e39a2e; outline-offset: 2px; }

@media (max-width: 560px) {
  .action-dialog-card { padding: 22px 18px 18px; }
  .action-dialog-heading { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .action-confirm-icon { width: 44px; height: 44px; }
  .action-confirm-details { grid-template-columns: 1fr; }
  .action-dialog-actions { flex-wrap: wrap; }
  .action-dialog-link { width: 100%; margin-right: 0; }
  .action-dialog-cancel, .action-dialog-accept { flex: 1; }
  .action-toast-region,
  .public-body .action-toast-region,
  .announcement-body .action-toast-region { top: auto; right: 12px; bottom: 92px; left: 12px; width: auto; align-items: end; }
  .action-toast { grid-template-columns: 38px minmax(0, 1fr) 32px; min-height: 76px; gap: 11px; padding: 12px 10px 13px 12px; }
  .action-toast-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .action-dialog-actions button, .action-dialog-link, .action-toast, .action-toast button { transition: none; }
}
