:root {
  --ink: #152033;
  --muted: #667085;
  --line: #d8e0ea;
  --panel: #ffffff;
  --soft: #f3f7fb;
  --brand: rgb(70, 99, 70);
  --brand-dark: rgb(45, 72, 45);
  --brand-soft: rgb(232, 241, 232);
  --green: #2f9d62;
  --amber: #e7a536;
  --red: #d94a42;
  --cyan: rgb(104, 142, 104);
  --shadow: 0 12px 30px rgba(20, 42, 70, 0.08);
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  margin: 0;
  background: #eef3f8;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  max-width: 100%;
  overflow-x: hidden;
}

body.public-mode .protected-tab,
body.public-mode .protected-tab-menu {
  display: none;
}

body.public-mode .tabs {
  display: none !important;
}

body.public-mode #authBtn {
  display: none !important;
}

body.login-open {
  overflow: hidden;
}

body.language-welcome-open { overflow:hidden; }
.language-welcome[hidden] { display:none; }
.language-welcome { position:fixed; inset:0; z-index:140; display:grid; place-items:center; padding:22px; background:rgba(19,43,26,.76); backdrop-filter:blur(12px); }
.language-welcome-card { width:min(620px,100%); padding:34px; border:1px solid rgba(255,255,255,.55); border-radius:26px; text-align:center; background:linear-gradient(155deg,#fff,#eef5ec); box-shadow:0 30px 90px rgba(11,34,18,.34); }
.language-welcome-card > img { width:74px; height:74px; object-fit:contain; }
.language-welcome-kicker { margin:12px 0 5px; color:#58705d; font-size:.72rem; font-weight:900; letter-spacing:.16em; }
.language-welcome-card h2 { margin:0; color:#24452d; font-size:clamp(1.8rem,5vw,2.6rem); }
.language-welcome-card > p:not(.language-welcome-kicker) { margin:8px 0 24px; color:#607166; }
.language-welcome-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.language-welcome-option { display:flex; align-items:center; gap:13px; min-height:72px; padding:12px 16px; border:1px solid #ccdbce; border-radius:15px; color:#294b32; background:#fff; text-align:left; box-shadow:0 7px 18px rgba(40,70,47,.06); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.language-welcome-option:hover,.language-welcome-option:focus-visible { outline:none; transform:translateY(-2px); border-color:#779b7a; box-shadow:0 10px 24px rgba(40,70,47,.13); }
.language-welcome-option img { width:40px; height:40px; flex:0 0 40px; border:1px solid #e0e7e1; border-radius:50%; object-fit:cover; }
.language-welcome-option span,.language-welcome-option strong,.language-welcome-option small { display:block; }
.language-welcome-option strong { font-size:1rem; }
.language-welcome-option small { margin-top:2px; color:#77837a; font-size:.76rem; }
.language-welcome-note { display:block; margin-top:20px; color:#738079; line-height:1.5; }
@media (max-width:560px) {
  .language-welcome { padding:14px; }
  .language-welcome-card { padding:26px 18px; border-radius:22px; }
  .language-welcome-card > img { width:62px; height:62px; }
  .language-welcome-options { grid-template-columns:1fr; gap:8px; }
  .language-welcome-option { min-height:62px; }
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(14, 40, 66, 0.74), rgba(14, 40, 66, 0.82)),
    radial-gradient(circle at top left, #d9f0ff 0, #2f7d99 32%, #15334c 100%);
}

body.login-open .login-screen {
  display: grid;
}

.login-card {
  position: relative;
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(5, 18, 32, 0.36);
}

.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.login-emblem {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: contain;
}

.login-kicker,
.login-title {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-kicker {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.login-card h2 {
  margin: 6px 0 8px;
  color: var(--brand-dark);
  font-size: 28px;
}

.login-card label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #32465d;
  font-weight: 800;
}

.login-card input {
  width: 100%;
}

.login-submit {
  width: 100%;
  margin-top: 14px;
}

.login-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--red);
  font-weight: 800;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(176, 211, 164, 0.32), transparent 28%),
    linear-gradient(120deg, rgb(35, 60, 35) 0%, rgb(70, 99, 70) 48%, rgb(105, 140, 96) 100%);
  box-shadow: var(--shadow);
  overflow: visible;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: translateX(-55%);
  opacity: 0.75;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1440px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 10px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  object-fit: contain;
}

.brand p,
.brand h1 {
  margin: 0;
}

.brand p {
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: 4px;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 800;
  opacity: 0.94;
}

.brand h1 {
  max-width: 960px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 900;
}

.userbar {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.language-picker {
  position: relative;
  display: inline-block;
}

.language-current {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transition: transform .18s ease, filter .18s ease;
}

.language-current:hover,
.language-current:focus-visible,
.language-current[aria-expanded="true"] {
  outline: none;
  background: transparent;
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.06);
}

.language-current img,
.language-option img {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(16,35,21,.28);
}

.language-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  gap: 3px;
  width: 174px;
  padding: 7px;
  border: 1px solid #d6e3da;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 38px rgba(18,48,29,.23);
  animation: language-menu-in .16s ease-out;
}

.profile-trigger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .18s ease, background .18s ease;
}
.profile-trigger:hover,
.profile-trigger:focus-visible { outline: none; background: rgba(255,255,255,.26); transform: translateY(-1px); }
.profile-trigger svg,
.profile-avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.profile-dialog { width: min(440px, calc(100vw - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 22px; }
.profile-dialog-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 22px; color: #fff; background: linear-gradient(135deg, #214f33, #4c8058); }
.profile-dialog-head p { margin: 0 0 3px; color: #dcecdf; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.profile-dialog-head h2 { margin: 0; color: #fff; font-size: 21px; }
.profile-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #28583a; background: #fff; box-shadow: 0 5px 16px rgba(12,35,21,.25); }
.profile-avatar svg { width: 28px; height: 28px; }
.profile-dialog-head .icon-btn { align-self: start; color: #fff; background: rgba(255,255,255,.13); }
.profile-information { display: grid; gap: 0; padding: 10px 22px; }
.profile-information > div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #e4ece6; }
.profile-information > div:last-child { border-bottom: 0; }
.profile-information span { color: #718078; font-size: 13px; }
.profile-information strong { color: #244b33; text-align: right; }
.profile-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 16px 22px 20px; background: #f6f9f7; }
.profile-logout-btn { min-height: 40px; padding: 9px 16px; border: 0; border-radius: 10px; color: #fff; background: #a83d3d; font-weight: 800; }

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 5px 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #234c34;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.language-option img { width: 30px; height: 30px; border-color: #eef3ef; box-shadow: 0 2px 7px rgba(16,35,21,.2); }
.language-option:hover,
.language-option:focus-visible { outline: none; background: #edf6ef; }
.language-option.active { color: #164d2b; background: #e1f1e5; box-shadow: inset 0 0 0 1px #c8dfce; }
.language-option.active::after { content: "✓"; margin-left: auto; color: #247042; font-weight: 900; }

@keyframes language-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.translation-origin-note {
  margin: 12px 0 18px;
  padding: 10px 14px;
  border: 1px solid #d6e5dc;
  border-radius: 10px;
  background: #f4faf6;
  color: #365c48;
  font-size: .88rem;
}

.tabs {
  width: 100%;
  max-width: 100vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.tabs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: min(1440px, 100%);
  max-width: 100vw;
  margin: 0 auto;
  overflow: visible;
  padding: 10px 28px;
}

.tab-menu {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #405166;
  font-weight: 700;
  white-space: nowrap;
}

.tab-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: 0.86;
}

.tab-caret {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.78;
  transition: transform 0.18s ease;
}

.tab.active,
.tab:hover {
  color: var(--brand-dark);
  border-color: rgb(182, 202, 182);
  background: var(--brand-soft);
}

.tab-menu:hover .tab-caret,
.tab-menu:focus-within .tab-caret,
.tab-menu.menu-open .tab-caret {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgb(182, 202, 182);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 42, 70, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tab-menu:hover .submenu,
.tab-menu:focus-within .submenu,
.tab-menu.menu-open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgb(182, 202, 182);
  border-top: 1px solid rgb(182, 202, 182);
  background: #fff;
  transform: rotate(45deg);
}

.submenu-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #405166;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.submenu-item:hover,
.submenu-item:focus-visible {
  background: linear-gradient(90deg, var(--brand-soft), rgb(238, 246, 238));
  color: var(--brand-dark);
  transform: translateX(2px);
  outline: none;
}

.submenu-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px 28px 42px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}


.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title p,
.page-title h2 {
  margin: 0;
}

.page-title p {
  color: #0b4ca4;
  font-size: 18px;
  font-weight: 800;
}

.page-title h2 {
  margin-top: 4px;
  font-size: 22px;
}

.page-title .page-subtitle {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.button-row,
.dialog-actions,
.schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn,
.soft-btn,
.ghost-btn,
.icon-btn,
.mini-btn {
  border: 0;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: var(--brand);
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.primary-btn:disabled,
.soft-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-btn.green {
  background: var(--green);
}

.primary-btn.yellow,
.mini-btn.approve-btn {
  color: #3f2d00;
  background: #f4c542;
}

.primary-btn.danger {
  background: var(--red);
}

.soft-btn.danger {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffccc7;
}

.soft-btn.danger:hover {
  color: #fff;
  background: #d92d20;
}

.primary-btn.danger-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
}

.primary-btn.danger-state:hover {
  background: #b93832;
}

.btn-warning-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.soft-btn {
  color: var(--brand-dark);
  background: rgb(226, 238, 226);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.icon-btn {
  width: 34px;
  padding: 0;
  color: var(--ink);
  background: #edf2f7;
  font-size: 22px;
}

.mini-btn {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
}

.mini-btn.view-btn {
  background: var(--cyan);
}

.mini-btn.renew-btn {
  background: var(--amber);
  color: #3f2d00;
}

.mini-btn.edit-btn {
  background: var(--brand);
}

.mini-btn.delete-btn {
  background: var(--red);
}

.link-btn {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
}

.metric-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metric-title {
  padding: 10px 12px;
  color: #38627f;
  background: #d9eff8;
  font-weight: 800;
}

.metric-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.metric {
  min-height: 86px;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 26px;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.metric.ok strong {
  color: var(--brand);
}

.metric.warn strong {
  color: var(--amber);
}

.metric.bad strong {
  color: var(--red);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.panel,
.print-sheet,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel h3 {
  margin: 0;
  font-size: 16px;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 2px;
}

.blue-dot {
  background: var(--brand);
}

.green-dot {
  background: var(--green);
}

.flight-dot { background: #39795a; }
.passenger-dot { background: #2d91c2; }
.cargo-dot { background: #e0a12b; }
.incident-dot { background: #d65555; }
.non-aviation-dot { background: #8667c7; }

.dashboard-chart-block { min-width: 0; }
.dashboard-block-title {
  margin: 0 0 10px 2px;
  color: var(--ink);
  font-size: 16px;
}
.flight-chart-panel { padding-top: 13px; }
.dashboard-chart-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}
.dashboard-chart-tab {
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.dashboard-chart-tab[data-dashboard-metric="flights"].active { color: #fff; border-color: #39795a; background: #39795a; box-shadow: 0 4px 12px rgba(57, 121, 90, .22); }
.dashboard-chart-tab[data-dashboard-metric="passengers"].active { color: #fff; border-color: #2d91c2; background: #2d91c2; box-shadow: 0 4px 12px rgba(45, 145, 194, .22); }
.dashboard-chart-tab[data-dashboard-metric="cargoKg"].active { color: #fff; border-color: #d88e17; background: #d88e17; box-shadow: 0 4px 12px rgba(216, 142, 23, .22); }
.dashboard-chart-tab[data-dashboard-metric="incidents"].active { color: #fff; border-color: #c54242; background: #c54242; box-shadow: 0 4px 12px rgba(197, 66, 66, .22); }
.dashboard-chart-tab[data-dashboard-metric="nonAviationKg"].active { color: #fff; border-color: #7253b3; background: #7253b3; box-shadow: 0 4px 12px rgba(114, 83, 179, .22); }
.dashboard-chart-caption { margin: 0 0 2px; color: var(--muted); font-size: 12px; text-align: center; }
.dashboard-percent-section { margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--line); }
.dashboard-percent-section h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; text-align: center; }
.dashboard-percent-layout { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
.dashboard-percent-layout .periodic-pie { width: min(100%, 280px); }

.chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  min-height: 260px;
  gap: 18px;
  padding: 18px 62px 0 8px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chart-y-axis {
  position: absolute;
  top: auto;
  right: 4px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 52px;
  height: 174px;
  border-left: 1px solid #d6e0e5;
  color: #647883;
  font-size: 10px;
  pointer-events: none;
}
.chart-y-axis span {
  position: relative;
  padding-left: 7px;
  line-height: 1;
  transform: translateY(-50%);
  white-space: nowrap;
}
.chart-y-axis span::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 5px;
  border-top: 1px solid #aebdc5;
  content: "";
}

.bar-pair {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 220px;
  position: relative;
}

.bar {
  width: 22px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
}

.bar.card {
  background: rgb(126, 160, 126);
}

.bar.permit {
  background: #83d7c7;
}

.flight-activity-group { gap: 3px; }
.flight-activity-group .bar { position: relative; width: clamp(7px, 1.05vw, 13px); transition: height .35s ease, filter .2s ease; }
.dashboard-bar-svg {
  position: absolute;
  bottom: 0;
  width: clamp(28px, 4vw, 48px);
  height: 174px;
  overflow: visible;
}
.dashboard-bar-svg .flight-bar { fill: #39795a; }
.dashboard-bar-svg .passenger-bar { fill: #2d91c2; }
.dashboard-bar-svg .cargo-bar { fill: #d88e17; }
.dashboard-bar-svg .incident-bar { fill: #c54242; }
.dashboard-bar-svg .non-aviation-bar { fill: #7253b3; }
.dashboard-bar-svg text { fill: #536873; font-size: 10px; font-weight: 700; }
.flight-activity-group .bar:hover { filter: brightness(1.1); }
.flight-bar { background: linear-gradient(180deg, #55a97d, #39795a); }
.passenger-bar { background: linear-gradient(180deg, #62bee6, #2d91c2); }
.cargo-bar { background: linear-gradient(180deg, #f1c25c, #d88e17); }
.incident-bar { background: linear-gradient(180deg, #ef8585, #c54242); }
.non-aviation-bar { background: linear-gradient(180deg, #ad91e4, #7253b3); }
.flight-activity-group .bar > span {
  position: absolute;
  left: 50%;
  top: -19px;
  transform: translateX(-50%) rotate(-35deg);
  transform-origin: center;
  color: #536873;
  font-size: 9px;
  white-space: nowrap;
}
.flight-activity-group.single-series .bar > span { top: -20px; transform: translateX(-50%); font-size: 10px; font-weight: 700; }

.bar-label {
  position: absolute;
  bottom: -24px;
  color: var(--muted);
  font-size: 12px;
}

.report-summary {
  display: grid;
  gap: 10px;
}

.summary-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 6px;
  background: var(--soft);
}

.summary-tile strong {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.summary-label i {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@media (max-width: 760px) {
  .dashboard-chart-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 36px;
  border: 1px solid #cbd6e2;
  border-radius: 5px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
}

input[type="search"] {
  min-width: min(380px, 100%);
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf3;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f9fc;
  color: #31445d;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fbfe;
}

.row-warning {
  background: #fff8b5;
}

.row-danger {
  background: #ffd7dc;
}

.row-long-term {
  background: linear-gradient(90deg, rgba(70, 99, 70, 0.12), rgba(244, 249, 244, 0.92));
  box-shadow: inset 4px 0 0 rgba(70, 99, 70, 0.42);
}

.row-long-term.row-warning {
  background: linear-gradient(90deg, rgba(244, 197, 66, 0.26), rgba(255, 250, 214, 0.94));
}

.row-long-term.row-danger {
  background: linear-gradient(90deg, rgba(215, 68, 59, 0.22), rgba(255, 238, 240, 0.96));
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.ok {
  background: var(--green);
}

.status.warn {
  background: var(--amber);
}

.status.bad {
  background: var(--red);
}

.status.info {
  background: var(--brand);
}

.qualification-status {
  min-width: 112px;
  font-variant-numeric: tabular-nums;
}

.public-hero {
  position: relative;
  margin-bottom: 22px;
  border-radius: 14px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 47, 27, 0.9) 0%, rgba(32, 62, 36, 0.55) 28%, rgba(21, 47, 27, 0.05) 58%, transparent 100%);
}

.public-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

.public-hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  bottom: clamp(24px, 5vw, 58px);
  z-index: 2;
  width: min(540px, 46%);
}

.public-hero p,
.public-hero h2 {
  margin: 0;
}

.public-hero p {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.84;
}

.public-hero h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.public-hero span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.92;
}

.declaration-hero::after {
  background: linear-gradient(90deg, rgba(28, 60, 39, 0.92) 0%, rgba(42, 78, 50, 0.7) 30%, rgba(34, 67, 42, 0.14) 53%, transparent 69%);
}

.public-page-heading {
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(125deg, var(--brand-dark), #3e754b);
  box-shadow: var(--shadow);
}

.public-page-heading p,
.public-page-heading h2,
.public-page-heading span { margin: 0; }
.public-page-heading p { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 900; opacity: .8; }
.public-page-heading h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.public-page-heading span { display: block; max-width: 760px; margin-top: 12px; line-height: 1.65; opacity: .9; }

.public-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.transfer-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.transfer-choice { min-height:180px; text-align:left; cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; gap:10px; color:var(--brand-dark); transition:transform .18s ease, border-color .18s ease; }
.transfer-choice:hover,.transfer-choice:focus-visible { transform:translateY(-3px); border-color:var(--brand); outline:0; }
.transfer-choice b { font-size:34px; }.transfer-choice span { font-size:20px; font-weight:800; }.transfer-choice small,.transfer-note { color:var(--muted); line-height:1.6; }
.transfer-wizard { max-width:920px; margin:0 auto 22px; }.transfer-wizard-head,.transfer-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.transfer-wizard-head { margin-bottom:18px; }.transfer-wizard h3 { font-size:22px; }.transfer-note { margin:14px 0 0; font-size:13px; }
.transfer-toggle { display:flex; gap:12px; margin:10px 0 18px; }.transfer-toggle label { padding:10px 14px; border:1px solid var(--line); border-radius:6px; font-weight:700; }
.transfer-location-btn { width:100%; }.transfer-result { display:grid; gap:14px; }.transfer-result-callout { padding:18px; color:#fff; background:linear-gradient(125deg,var(--brand-dark),#3e754b); border-radius:8px; }.transfer-result-callout strong { display:block; font-size:25px; margin-top:6px; }
.transfer-plan-grid,.transfer-provider-grid,.transfer-public-data { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.transfer-plan-grid div { padding:12px; border:1px solid var(--line); border-radius:6px; }.transfer-plan-grid span { display:block; color:var(--muted); font-size:12px; }.transfer-provider-card { padding:16px; border:1px solid var(--line); border-radius:8px; background:#fff; }.transfer-provider-card h4 { margin:0 0 8px; color:var(--brand-dark); }.transfer-provider-card p { color:var(--muted); margin:6px 0; }.verified-badge { display:inline-block; padding:3px 8px; border-radius:99px; color:#126d3a; background:#e9f7ee; font-size:12px; font-weight:800; }
.transfer-public-data { margin:20px 0; }.transfer-public-data .panel { min-height:130px; }.transfer-public-data h3,.transfer-safety h3 { color:var(--brand-dark); }.transfer-safety { margin-top:20px; }.transfer-safety li { margin:8px 0; line-height:1.55; }.transfer-admin-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }.transfer-admin-tabs .active { background:var(--brand); color:#fff; }.transfer-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.transfer-admin-list { margin-top:18px; display:grid; gap:10px; }.transfer-admin-item { padding:12px; border:1px solid var(--line); border-radius:6px; }.transfer-admin-item p { margin:4px 0; color:var(--muted); }
@media (max-width:720px) { .transfer-choice-grid,.transfer-plan-grid,.transfer-provider-grid,.transfer-public-data,.transfer-admin-grid { grid-template-columns:1fr; }.transfer-choice { min-height:140px; }.transfer-wizard { padding:14px; }.transfer-actions { position:sticky; bottom:0; padding-top:12px; background:var(--panel); }.transfer-actions .primary-btn { flex:1; min-height:46px; }.transfer-toggle { display:grid; grid-template-columns:1fr 1fr; } }
.public-info-card { position: relative; padding: 26px; border: 1px solid #dce8df; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.public-info-card h3 { margin: 10px 0 14px; color: var(--brand-dark); font-size: 21px; }
.public-info-card p, .public-info-card li { color: var(--muted); line-height: 1.7; }
.public-info-card p { margin: 0; }
.public-info-card ul, .contact-note-card ul { margin: 0; padding-left: 20px; }
.public-info-card li + li, .contact-note-card li + li { margin-top: 8px; }
.public-card-number { color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.public-info-card-accent { color: #fff; border-color: transparent; background: linear-gradient(140deg, #244b2d, #4d855b); }
.public-info-card-accent h3, .public-info-card-accent p, .public-info-card-accent .public-card-number { color: #fff; }
.passenger-journey { display: grid; gap: 24px; }
.journey-step { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); min-height: 340px; overflow: hidden; border: 1px solid #d8e5db; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.journey-step-reverse .journey-image { order: 2; }
.journey-image { position: relative; min-height: 320px; overflow: hidden; }
.journey-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(16, 45, 25, .42)); pointer-events: none; }
.journey-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.journey-step:hover .journey-image img { transform: scale(1.025); }
.journey-image > span { position: absolute; left: 18px; top: 18px; z-index: 1; padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(27, 76, 39, .92); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.journey-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 46px); }
.journey-content h3 { margin: 5px 0 14px; color: var(--brand-dark); font-size: clamp(25px, 3vw, 34px); line-height: 1.18; }
.journey-content > p:not(.journey-kicker) { margin: 16px 0 0; color: var(--muted); line-height: 1.7; }
.journey-kicker { margin: 0; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.journey-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.journey-checks span { padding: 7px 10px; border-radius: 999px; color: #285c36; background: #e8f5eb; font-size: 12px; font-weight: 800; }
.journey-warning { margin-top: 18px; padding: 12px 14px; border-left: 4px solid #d4a72c; border-radius: 8px; color: #6c5720; background: #fff8e3; line-height: 1.5; }
.journey-warning strong { margin-right: 5px; }
.public-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 22px 26px; border: 1px solid #cfe0d3; border-radius: 14px; background: #edf7ef; }
.public-callout strong, .public-callout span { display: block; }
.public-callout span { margin-top: 5px; color: var(--muted); }
.notices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notice-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--brand-dark); background: #e2f2e5; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; font-weight: 900; }
.document-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: clamp(30px, 5vw, 58px); overflow: hidden; border-radius: 18px; color: #fff; background: radial-gradient(circle at 88% 12%, rgba(122, 192, 134, .34), transparent 27%), linear-gradient(125deg, #183d25, #39754a); box-shadow: var(--shadow); }
.document-hero p, .document-hero h2, .document-hero span { margin: 0; }
.document-hero p { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 900; opacity: .78; }
.document-hero h2 { max-width: 760px; font-size: clamp(31px, 4.4vw, 50px); line-height: 1.1; }
.document-hero > div:first-child > span { display: block; max-width: 720px; margin-top: 14px; line-height: 1.65; opacity: .88; }
.document-hero-mark { display: grid; flex: 0 0 135px; width: 135px; height: 135px; place-content: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; text-align: center; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.document-hero-mark strong { font-size: 36px; line-height: 1; }
.document-hero-mark span { margin-top: 7px; font-size: 11px; opacity: .8; }
.document-featured { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 18px; padding: 22px 24px; border: 1px solid #e8d79e; border-radius: 15px; background: linear-gradient(120deg, #fff9e5, #fffdf5); }
.featured-notice-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; background: #c4911b; font-size: 25px; font-weight: 900; }
.document-featured h3 { margin: 8px 0 5px; color: #473b1d; font-size: 20px; }
.document-featured p { margin: 0; color: #73643f; line-height: 1.6; }
.document-featured > a, .document-detail-button { color: #755812; font-weight: 900; white-space: nowrap; text-decoration: none; }
.document-detail-button { padding: 10px 13px; border: 1px solid #dfc56f; border-radius: 10px; background: #fff; cursor: pointer; }
.document-toolbar { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 14px; margin: 22px 0; }
.document-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #cedbd1; border-radius: 12px; background: #fff; }
.document-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 113, 62, .12); }
.document-search svg { flex: 0 0 20px; width: 20px; fill: var(--muted); }
.document-search input { width: 100%; min-height: 46px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.document-filters { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.document-filters button { padding: 10px 13px; border: 1px solid #d4e0d7; border-radius: 999px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; }
.document-filters button:hover, .document-filters button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.document-list-heading { display: flex; align-items: end; justify-content: space-between; margin: 25px 2px 14px; }
.document-list-heading p, .document-list-heading h3 { margin: 0; }
.document-list-heading p { color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 900; }
.document-list-heading h3 { margin-top: 3px; color: var(--brand-dark); font-size: 25px; }
.document-list-heading > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.document-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.document-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px; border: 1px solid #dce6de; border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(24, 61, 37, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.document-card:hover { transform: translateY(-3px); border-color: #b9d0be; box-shadow: 0 16px 36px rgba(24, 61, 37, .11); }
.document-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; color: #fff; background: #39754a; font-size: 11px; font-weight: 900; }
.document-icon-danger { background: #a4473f; }
.document-icon-battery { background: #b68119; }
.document-icon-id { background: #356b91; }
.document-icon-awareness { background: #72529a; }
.document-icon-law { background: #4d5969; }
.document-card-content > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.document-card time { color: #7d897f; font-size: 10px; font-weight: 800; }
.document-card h4 { margin: 12px 0 8px; color: var(--brand-dark); font-size: 18px; line-height: 1.35; }
.document-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.document-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf1ee; }
.document-card footer span { color: #829087; font-size: 10px; font-weight: 800; }
.document-card footer a, .document-card footer button { padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 900; text-decoration: none; cursor: pointer; }
.document-card footer a:hover, .document-card footer button:hover { text-decoration: underline; }
.document-reader { width: min(820px, calc(100vw - 28px)); max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(8, 27, 13, .32); }
.document-reader::backdrop { background: rgba(8, 25, 13, .65); backdrop-filter: blur(4px); }
.document-reader-close { position: sticky; float: right; right: 18px; top: 16px; z-index: 2; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(15, 48, 24, .72); font-size: 25px; cursor: pointer; }
.document-reader-head { padding: 46px clamp(26px, 6vw, 58px) 34px; color: #fff; background: linear-gradient(130deg, #173e25, #417b50); }
.document-reader-head > p, .document-reader-head h2 { margin: 0; }
.document-reader-head > p:first-of-type { margin-top: 13px; color: #cae2cf; font-size: 12px; font-weight: 800; }
.document-reader-head h2 { max-width: 670px; margin-top: 7px; font-size: clamp(27px, 4vw, 40px); line-height: 1.15; }
.document-reader-head > p:last-child { max-width: 680px; margin-top: 15px; color: #e0eee3; line-height: 1.65; }
.document-reader-body { display: grid; gap: 22px; padding: 34px clamp(26px, 6vw, 58px); }
.document-reader-article { padding-bottom: 8px; color: #455248; font-size: 15px; line-height: 1.85; }
.document-reader-article p { margin: 0 0 17px; }
.document-reader-article p:first-child::first-letter { float: left; margin: 8px 8px 0 0; color: var(--brand); font-size: 44px; font-weight: 900; line-height: .72; }
.document-reader-body section { padding-bottom: 22px; border-bottom: 1px solid #e6ede8; }
.document-reader-body section:last-child { padding-bottom: 0; border-bottom: 0; }
.document-reader-body h3 { margin: 0 0 13px; color: var(--brand-dark); font-size: 20px; }
.document-reader-body ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.document-reader-body li { position: relative; padding-left: 25px; color: var(--muted); line-height: 1.7; }
.document-reader-body li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 900; }
.document-reader > footer { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 22px clamp(26px, 6vw, 58px); border-top: 1px solid #dae5dc; background: #f4f8f5; }
.document-reader > footer p { margin: 0; color: var(--muted); font-size: 12px; }
.document-no-results { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px; border: 1px dashed #c6d3c8; border-radius: 14px; color: var(--muted); text-align: center; }
.document-no-results strong { color: var(--brand-dark); }
.document-source-note { margin: 18px 4px 0; color: #78857b; font-size: 11px; line-height: 1.6; text-align: center; }
.public-files-section { margin-top: 38px; padding-top: 32px; border-top: 2px solid #dce8df; }
.public-files-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.public-files-heading p, .public-files-heading h3, .public-files-heading span { margin: 0; }
.public-files-heading p { color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 900; }
.public-files-heading h3 { margin-top: 4px; color: var(--brand-dark); font-size: clamp(24px, 3vw, 31px); }
.public-files-heading div > span { display: block; margin-top: 7px; color: var(--muted); }
.public-files-count { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: var(--brand-dark); background: #e6f2e8; font-size: 12px; font-weight: 900; }
.circular-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.circular-card { padding: 20px; border: 1px solid #d8e5db; border-radius: 15px; background: linear-gradient(145deg, #fff, #f8fbf9); box-shadow: 0 8px 24px rgba(24,61,37,.06); }
.circular-card-top { display: flex; align-items: center; gap: 13px; }
.circular-number { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); font-size: 15px; font-weight: 900; }
.circular-card-top p, .circular-card-top h4 { margin: 0; }
.circular-card-top p { color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 900; }
.circular-card-top h4 { margin-top: 3px; color: var(--brand-dark); font-size: 18px; }
.circular-description { min-height: 38px; margin: 13px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.circular-primary-actions { display: flex; gap: 8px; }
.circular-primary-actions a { flex: 1; padding: 9px 10px; border: 1px solid #cbd9ce; border-radius: 9px; color: var(--brand); background: #fff; font-size: 11px; font-weight: 900; text-align: center; text-decoration: none; }
.circular-primary-actions a:first-child { color: #fff; border-color: var(--brand); background: var(--brand); }
.circular-attachments { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e4ece6; flex-wrap: wrap; }
.circular-attachments span { margin-right: auto; color: #859188; font-size: 9px; font-weight: 800; }
.circular-attachments a { padding: 5px 8px; border-radius: 7px; color: #53665a; background: #eaf2ec; font-size: 9px; font-weight: 800; text-decoration: none; }
.public-template-drawer { margin-top: 14px; border: 1px solid #d8e5db; border-radius: 13px; background: #fff; }
.public-template-drawer summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; cursor: pointer; list-style: none; }
.public-template-drawer summary::-webkit-details-marker { display: none; }
.public-template-drawer summary strong, .public-template-drawer summary small { display: block; }
.public-template-drawer summary strong { color: var(--brand-dark); font-size: 13px; }
.public-template-drawer summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.public-template-drawer summary > b { color: var(--brand); font-size: 20px; transition: transform .2s ease; }
.public-template-drawer[open] summary > b { transform: rotate(180deg); }
.public-template-drawer .public-template-grid { padding: 0 14px 14px; }
.public-file-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.public-file-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 21px; border: 1px solid #dce6de; border-radius: 14px; background: #fff; }
.public-file-card:last-child { grid-column: 1 / -1; }
.public-file-featured { border-top: 4px solid var(--brand); }
.public-file-type { display: grid; width: 48px; height: 58px; place-items: center; border-radius: 7px 7px 12px 7px; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.public-file-type.pdf { background: linear-gradient(145deg, #ad4139, #7d2520); }
.public-file-content > span { color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 900; }
.public-file-content h4 { margin: 5px 0 8px; color: var(--brand-dark); font-size: 18px; line-height: 1.35; }
.public-file-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.public-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.public-file-actions a { padding: 8px 11px; border: 1px solid #c8d8cc; border-radius: 8px; color: var(--brand); background: #f8fbf9; font-size: 11px; font-weight: 900; text-decoration: none; }
.public-file-actions a:first-child { color: #fff; border-color: var(--brand); background: var(--brand); }
.public-template-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 28px 2px 13px; }
.public-template-heading h4 { margin: 0; color: var(--brand-dark); font-size: 20px; }
.public-template-heading span { color: var(--muted); font-size: 11px; }
.public-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.public-template-grid > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid #dce6de; border-radius: 11px; color: inherit; background: #fff; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.public-template-grid > a:hover { transform: translateY(-2px); border-color: #9fbea6; }
.public-template-grid > a > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--brand-dark); background: #e6f2e8; font-size: 11px; font-weight: 900; }
.public-template-grid strong, .public-template-grid small { display: block; }
.public-template-grid strong { color: #33423a; font-size: 12px; line-height: 1.4; }
.public-template-grid small { margin-top: 4px; color: #849087; font-size: 9px; }
.public-template-grid b { color: var(--brand); font-size: 18px; }
.public-empty-note { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 20px; padding: 24px; border: 1px dashed #bdcec1; border-radius: 14px; color: var(--muted); text-align: center; background: #f8fbf9; }
.public-empty-note strong { color: var(--brand-dark); }
.contact-public-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }
.contact-main-card, .contact-note-card { padding: 28px; }
.contact-main-card h3, .contact-note-card h3 { margin: 12px 0; color: var(--brand-dark); font-size: 24px; }
.contact-main-card > p, .contact-note-card li, .contact-detail span { color: var(--muted); line-height: 1.7; }
.contact-detail { display: grid; grid-template-columns: 150px 1fr; gap: 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e0e8e2; }
.contact-detail strong { color: var(--ink); }

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.news-featured,
.news-card {
  padding: 24px;
}

.news-featured {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 340px;
  border-top: 5px solid var(--brand);
}

.news-featured h3 {
  max-width: 720px;
  margin: 12px 0;
  color: var(--brand-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.news-featured p,
.news-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.7;
}

.news-featured time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-card h3 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 18px;
}

.news-card p {
  margin: 0;
}

.news-category {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
}

.news-feed-status {
  min-height: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.news-public-feed {
  display: block;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.public-news-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-news-card:hover,
.public-news-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(20, 42, 70, 0.15);
  outline: none;
}

.public-news-card.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  border-top: 5px solid var(--brand);
}

.pinned-news-shell {
  position: relative;
  margin-bottom: 24px;
}

.pinned-news-controls {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(26, 52, 31, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pinned-news-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}

.pinned-news-controls button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pinned-news-controls span {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.public-news-cover {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-dark), var(--cyan));
}

.public-news-cover > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.public-news-card:hover .public-news-cover > img {
  transform: scale(1.025);
}

.news-cover-placeholder {
  display: grid;
  min-height: 210px;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, var(--brand-dark), rgb(104, 142, 104));
}

.news-cover-placeholder span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.news-video-mark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 48, 30, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.public-news-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
}

.public-news-card.featured .public-news-card-body {
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
}

.public-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-meta-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-pin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #6d3d00;
  background: #ffe9a8;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.public-news-meta time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-news-card h3 {
  margin: 10px 0;
  color: var(--brand-dark);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.public-news-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.public-news-summary {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 10px 0 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 900;
}

.news-read-more span {
  font-size: 18px;
  transition: transform 0.18s ease;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}

.news-pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-pagination strong {
  color: var(--ink);
  white-space: nowrap;
}

.public-news-card:hover .news-read-more span {
  transform: translateX(4px);
}

.public-news-content {
  margin-top: 16px;
  color: #344054;
  line-height: 1.75;
}

.rich-editor img,
.public-news-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 8px;
  object-fit: contain;
}

.rich-editor figure,
.public-news-content figure {
  max-width: 100%;
  margin: 20px 0;
}

.rich-editor figcaption,
.public-news-content figcaption {
  margin-top: 7px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-style: italic;
}

.news-video {
  display: block;
  width: 100%;
  max-height: 560px;
  margin-top: 18px;
  border-radius: 10px;
  background: #101828;
}

.news-detail-dialog {
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(12, 30, 50, 0.35);
}

.news-detail-dialog::backdrop {
  background: rgba(12, 25, 38, 0.7);
  backdrop-filter: blur(3px);
}

.news-detail-article {
  background: #fff;
}

.news-detail-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e3ebe6;
  backdrop-filter: blur(10px);
}

.news-detail-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.news-detail-head time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.news-detail-body {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) clamp(24px, 6vw, 64px) clamp(42px, 7vw, 76px);
}

.news-detail-body > h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.news-detail-body > h2::after {
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #d6a322);
  content: "";
}

.news-detail-summary {
  margin: 24px 0 30px;
  color: #52665a;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 650;
  line-height: 1.75;
}

.news-editor-layout {
  display: block;
}

.news-editor-form,
.news-manage-panel {
  min-width: 0;
  padding: 22px;
}

.news-editor-form { width: min(1080px, 100%); margin: 0 auto; }
.news-manage-panel { width: 100%; }
.news-add-button { min-height: 42px; padding-inline: 18px; }
.news-list-hint { color: var(--muted); font-size: 13px; }
.news-compose-head { align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.news-compose-kicker { display: block; margin-bottom: 4px; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-compose-head h3 { margin: 0; }

.manage-news-pagination {
  margin-top: 18px;
  padding: 12px 14px;
}

.news-editor-actions {
  margin: 0;
  padding: 6px 0 0;
}

.news-translation-workspace { margin-top: 8px; padding: 20px; border: 1px solid #d6e4da; border-radius: 16px; background: linear-gradient(145deg, #f7fbf8, #eef6f0); }
.news-translation-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.news-translation-heading h4 { margin: 0; color: var(--brand-dark); font-size: 19px; }
.news-translation-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.translation-generate-btn { flex: 0 0 auto; min-height: 42px; }
.translation-progress { min-height: 20px; margin: 12px 0 4px; color: #28613d; font-size: 13px; font-weight: 750; }
.news-translation-list { display: grid; gap: 9px; }
.news-translation-card { overflow: hidden; border: 1px solid #d8e4dc; border-radius: 13px; background: #fff; }
.news-translation-card[open] { border-color: #a9c9b2; box-shadow: 0 8px 22px rgba(33,76,47,.09); }
.news-translation-card summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 58px; padding: 9px 14px; cursor: pointer; list-style: none; }
.news-translation-card summary::-webkit-details-marker { display: none; }
.news-translation-card summary img { width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 7px rgba(22,51,31,.2); }
.news-translation-card summary strong,
.news-translation-card summary small { display: block; }
.news-translation-card summary strong { color: #244c32; }
.news-translation-card summary small { margin-top: 2px; color: #87938b; font-size: 11px; font-weight: 650; }
.news-translation-card.translated summary small { color: #287142; }
.news-translation-card summary > span:last-child { color: #477458; font-size: 20px; transition: transform .18s ease; }
.news-translation-card[open] summary > span:last-child { transform: rotate(45deg); }
.news-translation-fields { display: grid; gap: 13px; padding: 16px; border-top: 1px solid #e2ebe5; background: #fbfdfb; }
.news-translation-fields label { display: grid; gap: 6px; color: #345842; font-size: 12px; font-weight: 800; }
.translation-rich-editor { min-height: 190px; background: #fff; }
.news-translation-count { display: block; margin-top: 5px; color: #668071; font-weight: 700; }

@media (max-width: 720px) {
  .news-translation-workspace { padding: 14px; }
  .news-translation-heading { align-items: stretch; flex-direction: column; }
  .translation-generate-btn { width: 100%; }
  .news-translation-card summary { padding-inline: 10px; }
  .news-translation-fields { padding: 12px; }
}

.news-banner-editor {
  gap: 10px;
}

.news-banner-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #aebccc;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 750;
}

.news-banner-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-video-preview {
  display: block;
  width: min(100%, 680px);
  margin-top: 12px;
  border-radius: 14px;
  background: #071914;
  box-shadow: 0 10px 28px rgba(7, 25, 20, .16);
}

.file-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.news-banner-editor small {
  color: var(--muted);
  line-height: 1.5;
}

.news-content-field {
  gap: 0;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--soft);
}

.editor-toolbar button {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.editor-toolbar button:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.rich-editor {
  min-height: 280px;
  max-height: 560px;
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.65;
  outline: none;
}

.rich-editor:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(70, 99, 70, 0.12);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #98a2b3;
  pointer-events: none;
}

.rich-editor h2,
.rich-editor h3,
.public-news-content h2,
.public-news-content h3 {
  color: var(--brand-dark);
}

.rich-editor blockquote,
.public-news-content blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 4px solid var(--brand);
  color: var(--muted);
}

.public-page-title {
  padding: 8px 0 2px;
}

.qa-hero { position: relative; min-height: clamp(260px, 32vw, 410px); margin-bottom: 18px; overflow: hidden; border: 1px solid rgba(29, 91, 56, 0.18); border-radius: 24px; background: #eaf5fb; box-shadow: 0 22px 52px rgba(21, 55, 75, 0.14); }
.qa-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.8s ease; }
.qa-hero:hover > img { transform: scale(1.018); }
.qa-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 252, 255, 0.98) 2%, rgba(240, 249, 252, 0.86) 29%, rgba(240, 249, 252, 0.18) 58%, transparent 78%); }
.qa-hero-content { position: relative; z-index: 1; display: flex; width: min(48%, 620px); min-height: clamp(260px, 32vw, 410px); padding: clamp(26px, 5vw, 66px); flex-direction: column; justify-content: center; }
.qa-hero-content p { margin: 20px 0 5px; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.qa-hero-content h2 { margin: 0; color: #123a2a; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.05; letter-spacing: -0.035em; }
.qa-hero-content strong { max-width: 520px; margin-top: 15px; color: #466170; font-size: clamp(13px, 1.25vw, 17px); font-weight: 600; line-height: 1.6; }

.qa-guide-marquee { position: relative; margin: 0 0 24px; padding: 5px 0 9px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.qa-guide-track { display: flex; width: max-content; animation: qaGuideScroll 165s linear infinite; will-change: transform; }
.qa-guide-group { display: flex; flex-shrink: 0; gap: 10px; padding-right: 10px; }
.qa-guide-marquee:hover .qa-guide-track, .qa-guide-marquee:focus-within .qa-guide-track { animation-play-state: paused; }
@keyframes qaGuideScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.qa-guide-card { position: relative; display: flex; width: 210px; min-width: 210px; min-height: 82px; padding: 13px 34px 13px 12px; align-items: center; gap: 10px; overflow: hidden; border: 1px solid #dbe7e0; border-radius: 16px; outline: none; background: rgba(255, 255, 255, 0.95); box-shadow: 0 8px 24px rgba(20, 51, 63, 0.07); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.qa-guide-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(20, 51, 63, 0.12); }
.qa-guide-card::after { content: attr(data-tooltip); position: absolute; z-index: 3; inset: 5px; display: flex; padding: 8px 10px; align-items: center; border-radius: 12px; color: #fff; background: rgba(20, 45, 35, 0.96); font-size: 9px; font-weight: 650; line-height: 1.38; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.qa-guide-card:hover::after, .qa-guide-card:focus-visible::after { opacity: 1; transform: translateY(0); }
.qa-guide-card:focus-visible { box-shadow: 0 0 0 3px rgba(35, 132, 78, 0.22), 0 13px 28px rgba(20, 51, 63, 0.12); }
.qa-guide-icon { font-size: 26px; filter: saturate(0.88); }
.qa-guide-card div { min-width: 0; }
.qa-guide-card strong, .qa-guide-card small { display: block; }
.qa-guide-card strong { color: #253c32; font-size: 12px; line-height: 1.3; }
.qa-guide-card small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.qa-guide-card > b { position: absolute; top: 8px; right: 8px; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; font-size: 15px; }
.qa-guide-card.allowed > b { background: #1c9b57; }
.qa-guide-card.prohibited > b { background: #d94141; }
.qa-guide-card.restricted > b { background: #e49a20; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: none;
  margin: 0;
}

.qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.assistant-panel {
  position: sticky;
  top: 166px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: min(720px, calc(100vh - 190px));
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
}

.assistant-header > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.assistant-header h3,
.assistant-header p {
  margin: 0;
}

.assistant-header h3 {
  font-size: 16px;
}

.assistant-header p {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.82;
}

.assistant-avatar,
.assistant-message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 950;
  overflow: hidden;
}

.assistant-avatar img,
.assistant-message-avatar img,
.assistant-launcher span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.assistant-avatar {
  width: 42px;
  height: 42px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.assistant-clear {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.assistant-scope-note {
  padding: 9px 15px;
  color: #725300;
  background: #fff8d8;
  border-bottom: 1px solid #f3df88;
  font-size: 11px;
  line-height: 1.45;
}

.assistant-messages {
  flex: 1;
  min-height: 0;
  padding: 17px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: linear-gradient(#f8fafc, #f2f6f3);
}

.assistant-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.assistant-message.user {
  justify-content: flex-end;
}

.assistant-message-avatar {
  width: 29px;
  height: 29px;
  color: #fff;
  background: var(--brand);
  font-size: 9px;
}

.assistant-message-content {
  max-width: min(82%, 620px);
}

.assistant-message-content > p {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #dce5df;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #263649;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(20, 42, 70, 0.05);
}

.assistant-message.user .assistant-message-content > p {
  border-color: var(--brand);
  border-radius: 14px 4px 14px 14px;
  color: #fff;
  background: var(--brand);
}

.assistant-sources {
  margin: 7px 3px 0;
  padding: 8px 10px;
  border-left: 3px solid #2f7d55;
  border-radius: 4px;
  background: #eef7f1;
  color: #40564a;
  font-size: 11px;
  line-height: 1.45;
}

.assistant-sources strong { display: block; margin-bottom: 3px; color: #245f41; }
.assistant-sources span { display: block; }
.assistant-sources ul { margin: 0; padding-left: 17px; }
.assistant-sources a { color: #17633e; text-decoration: underline; overflow-wrap: anywhere; }

.assistant-feedback {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0 4px;
  color: var(--muted);
  font-size: 10px;
}

.assistant-feedback button {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
}

.assistant-feedback button.selected {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.assistant-typing {
  display: flex;
  gap: 4px;
  padding: 13px 15px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
}

.assistant-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: assistantTyping 1s infinite alternate;
}

.assistant-typing i:nth-child(2) { animation-delay: 0.2s; }
.assistant-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes assistantTyping {
  from { opacity: 0.25; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

.assistant-suggestions {
  display: flex;
  gap: 7px;
  padding: 9px 13px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #fff;
}

.assistant-suggestions:empty {
  display: none;
}

.assistant-suggestions button {
  flex: 0 0 auto;
  max-width: 230px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid #bad0bd;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.assistant-composer {
  padding: 12px 13px 8px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.assistant-composer textarea {
  width: 100%;
  min-height: 62px;
  max-height: 140px;
  resize: vertical;
}

.assistant-compose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.assistant-compose-row > span {
  color: var(--muted);
  font-size: 10px;
}

.assistant-disclaimer {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  line-height: 1.45;
}

.faq-column-heading {
  display: flex;
  margin: 3px 0 12px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.faq-column-heading > span { padding: 7px 10px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 900; }

.faq-column-heading p,
.faq-column-heading h3 {
  margin: 0;
}

.faq-column-heading p {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 900;
}

.faq-column-heading h3 {
  margin-top: 5px;
  color: var(--brand-dark);
  font-size: 24px;
}

.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  box-shadow: 0 14px 38px rgba(27, 55, 33, 0.35);
}

.assistant-launcher span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 950;
  overflow: hidden;
}

.assistant-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 46;
  display: flex;
  width: min(410px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(70, 99, 70, 0.35);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(12, 30, 50, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transform-origin: right bottom;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.assistant-floating.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.assistant-floating .icon-btn {
  color: var(--ink);
  background: #fff;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  border-color: #e0e9e3;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(20, 55, 42, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover { transform: translateY(-1px); border-color: #b8d2c0; box-shadow: 0 11px 28px rgba(20, 55, 42, 0.09); }
.faq-item[open] { border-color: rgba(28, 126, 76, 0.34); }

.faq-item summary {
  display: flex;
  padding: 17px 20px;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.faq-item summary::marker { color: var(--brand); }
.faq-item summary span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 950; }

.faq-item p {
  margin: 0;
  padding: 0 20px 19px 63px;
  color: #53645b;
  font-size: 13px;
  line-height: 1.65;
}

.faq-toolbar { display: grid; grid-template-columns: 36px 1fr auto 36px; gap: 9px; margin-bottom: 12px; align-items: center; }
.faq-toolbar button { min-height: 34px; padding: 0 10px; border: 1px solid #ccdcd1; border-radius: 10px; color: var(--brand-dark); background: #fff; font-size: 12px; font-weight: 800; }
.faq-toolbar button:first-child, .faq-toolbar button:last-child { padding: 0; font-size: 22px; }
.faq-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #e3ece6; }
.faq-progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #65bb7b); transform-origin: left; }
@keyframes faqProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.faq-list.is-entering { animation: faqPageIn 0.42s ease both; }
@keyframes faqPageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.faq-auto-note { margin: 10px 2px 0; color: var(--muted); font-size: 10px; text-align: center; }

@media (max-width: 820px) {
  .qa-hero { min-height: 470px; }
  .qa-hero > img { object-position: 67% center; }
  .qa-hero-overlay { background: linear-gradient(0deg, rgba(242, 250, 253, 0.98) 0%, rgba(242, 250, 253, 0.92) 39%, rgba(242, 250, 253, 0.05) 72%); }
  .qa-hero-content { width: 100%; min-height: 470px; padding: 24px; justify-content: flex-end; }
  .qa-hero-content strong { max-width: 580px; }
  .qa-guide-track { animation-duration: 135s; }
  .qa-layout {
    grid-template-columns: 1fr;
  }

  .assistant-panel {
    position: static;
    height: 680px;
    min-height: 540px;
  }

  .assistant-floating {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .assistant-launcher {
    right: 14px;
    bottom: 14px;
  }

  .public-hero-image {
    aspect-ratio: 3 / 1;
    object-position: center;
  }

  .public-hero::after {
    display: none;
  }

  .public-hero-content {
    position: static;
    width: auto;
    padding: 18px 20px;
    background: linear-gradient(120deg, rgb(35, 60, 35), rgb(70, 99, 70));
  }

  .public-hero-content h2 {
    font-size: 26px;
  }

  .public-hero-content span {
    margin-top: 8px;
    font-size: 14px;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .news-editor-layout {
    grid-template-columns: 1fr;
  }

  .public-info-grid,
  .notices-grid,
  .contact-public-layout,
  .document-toolbar,
  .document-library,
  .circular-library,
  .public-file-groups,
  .public-template-grid { grid-template-columns: 1fr; }

  .document-hero-mark { display: none; }
  .document-featured { grid-template-columns: auto 1fr; }
  .document-featured > a, .document-featured > button { grid-column: 1 / -1; justify-self: start; }
  .document-filters { justify-content: flex-start; }
  .document-reader > footer { align-items: flex-start; flex-direction: column; }
  .public-file-card:last-child { grid-column: auto; }
  .public-files-heading, .public-template-heading { align-items: flex-start; flex-direction: column; }

  .journey-step { grid-template-columns: 1fr; min-height: 0; }
  .journey-step-reverse .journey-image { order: 0; }
  .journey-image { min-height: 240px; aspect-ratio: 3 / 2; }

  .public-callout { align-items: stretch; flex-direction: column; }
  .contact-detail { grid-template-columns: 1fr; gap: 6px; }

  .public-news-card.featured {
    display: block;
  }

  .public-news-card.featured .public-news-card-body {
    padding: 22px;
  }

  .pinned-news-controls {
    right: 12px;
    bottom: auto;
    top: 12px;
  }

  .news-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .news-pagination > div {
    justify-content: space-between;
  }

  .news-editor-form {
    position: static;
  }

  .news-featured {
    min-height: 280px;
  }
}

.tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.declaration-tab-menu .submenu {
  min-width: 340px;
}

.anonymous-toggle {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: start;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #b7c9dc;
  border-radius: 8px;
  background: #f3f7fb;
  color: #243b53;
  font-weight: 800;
}

.anonymous-toggle input {
  width: 18px;
  height: 18px;
}

.anonymous-toggle small {
  color: var(--muted);
  font-weight: 600;
}

.security-declaration-layout,
.incident-report-layout {
  display: grid;
  gap: 18px;
}

.security-declaration-form {
  padding: 20px;
}

.access-check-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.access-check-dialog form {
  display: grid;
  gap: 18px;
  padding-bottom: 4px;
}

.access-check-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--soft);
  margin-inline: 24px;
}

.access-check-summary span {
  display: grid;
  gap: 3px;
}

.access-check-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-inline: 24px;
}

.access-check-group {
  align-content: start;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 42, 70, 0.05);
}

.access-check-group h3 {
  margin: -14px -14px 4px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 15px;
}

.access-check-note-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.access-check-note-row textarea {
  width: 100%;
  min-height: 64px;
  background: #fff;
}

.access-check-dialog .access-check-fields {
  padding-inline: 24px;
}

.access-check-dialog #accessCheckMessage {
  margin: -5px 24px 0;
}

.access-check-dialog .dialog-actions {
  padding-inline: 24px;
}

.access-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.access-time-cell {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
}

.access-time-cell small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.access-time-cell:nth-child(3n) {
  border-right: 0;
}

.access-time-cell:nth-child(n + 4) {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.access-request-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
}

.access-request-card {
  position: relative;
  overflow: hidden;
  border-left: 7px solid var(--line);
}

.access-request-card.access-status-pending {
  border-left-color: var(--amber);
}

.access-request-card.access-status-active,
.access-request-card.access-status-approved {
  border-left-color: var(--green);
}

.access-request-card.access-status-approved { border-left-color: #3979b8; }

.alert-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.alert-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px 20px;
  border-left: 6px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.alert-summary.warn { border-left-color: var(--amber); }
.alert-summary.info { border-left-color: #3979b8; }
.alert-summary.bad { border-left-color: var(--red); }
.alert-summary span { font-weight: 800; }
.alert-summary strong { font-size: 34px; }

.alert-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.alert-panel { padding: 0; overflow: hidden; }
.alert-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.alert-panel-head p, .alert-panel-head h3 { margin: 0; }
.alert-panel-head p { color: var(--muted); font-size: 12px; }
.alert-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.alert-row:hover { background: var(--soft); }
.alert-row span { display: grid; gap: 4px; min-width: 0; }
.alert-row small { color: var(--muted); }
.alert-row i { flex: 0 0 auto; color: var(--red); font-size: 11px; font-style: normal; font-weight: 800; }

.access-qr-dialog { width: min(520px, calc(100% - 28px)); }
.access-qr-body { display: grid; justify-items: center; gap: 14px; padding: 22px; text-align: center; }
.access-qr-body img { width: min(360px, 100%); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; }
.access-qr-body p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.55; }
.access-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.access-camera-btn { align-self: center; }
.access-scanner-dialog { width: min(620px, calc(100% - 24px)); }
.access-scanner-body { display: grid; gap: 14px; padding: 20px; }
#accessQrReader { min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #111; }
#accessQrReader video { border-radius: 10px; }
.access-scanner-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.access-photo-picker { cursor: pointer; }
.access-photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qr-gate-panel { width: min(760px, 100%); margin-inline: auto; padding: 20px; }
.qr-gate-heading h3 { margin: 10px 0 4px; font-size: 24px; }
.qr-gate-heading p { margin: 0 0 16px; color: var(--muted); }
.qr-gate-details { margin-top: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; }
.qr-gate-details summary { color: var(--brand-dark); font-weight: 800; cursor: pointer; }
.qr-gate-form { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .alert-center-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .alert-summary-grid { grid-template-columns: 1fr; }
}

.access-request-card.access-status-completed {
  border-left-color: #3979b8;
}

.access-request-card.access-status-rejected {
  border-left-color: var(--red);
}

@media (max-width: 720px) {
  .access-check-summary,
  .access-check-note-row {
    grid-template-columns: 1fr;
  }

  .access-time-grid {
    grid-template-columns: 1fr;
  }

  .access-time-cell,
  .access-time-cell:nth-child(3n),
  .access-time-cell:nth-child(n + 4) {
    border: 0;
    border-top: 1px solid var(--line);
  }

  .access-time-cell:first-child {
    border-top: 0;
  }

  .access-check-summary,
  .access-check-groups {
    margin-inline: 14px;
  }

  .access-check-groups {
    grid-template-columns: 1fr;
  }

  .access-check-dialog .access-check-fields,
  .access-check-dialog .dialog-actions {
    padding-inline: 14px;
  }

  .access-check-dialog #accessCheckMessage {
    margin-inline: 14px;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .access-check-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.security-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.security-declaration-form .field > span,
.security-repeat-row label > span {
  color: #43566e;
  font-size: 13px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.repeatable-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.repeatable-header,
.approval-panel-heading,
.security-request-heading,
.security-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repeatable-header h3,
.approval-panel-heading h3 {
  margin: 0;
}

.security-repeat-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.security-repeat-row.item-row {
  grid-template-columns: 1.7fr .6fr 1.7fr auto;
}

.security-repeat-row.vehicle-row {
  grid-template-columns: 1.4fr 1.2fr 1.6fr auto;
}

.security-repeat-row label {
  display: grid;
  gap: 6px;
}

.security-submit-actions {
  padding-right: 0;
  padding-bottom: 0;
}

.form-message {
  min-height: 22px;
  margin: 16px 0 0;
  font-weight: 700;
}

.form-message.success { color: #137333; }
.form-message.error { color: #b42318; }
.form-message.warn { color: #9a6700; }

.spam-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.declaration-attachments {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.declaration-attachments h3,
.declaration-attachments p {
  margin: 0;
}

.declaration-attachments p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.attachment-picker {
  cursor: pointer;
}

.attachment-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-previews,
.declaration-image-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
}

.attachment-preview {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.attachment-preview img,
.declaration-image-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.attachment-preview figcaption {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview .remove-attachment {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 26px;
  min-height: 26px;
  background: rgba(255, 255, 255, .92);
  color: #b42318;
}

.declaration-image-gallery {
  margin-top: 12px;
}

.declaration-image-gallery a {
  border-radius: 6px;
  outline-offset: 2px;
}

.required-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.required-mark {
  color: #c5221f;
  font-weight: 900;
}

.incident-content-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

#incidentDescription:invalid:not(:focus) {
  border-color: #c5221f;
}

.security-declaration-form [aria-invalid="true"] {
  border-color: #c5221f;
  box-shadow: 0 0 0 2px rgba(197, 34, 31, .12);
}

.security-approval-panel {
  padding: 20px;
}

.approval-panel-heading {
  margin-bottom: 14px;
}

.approval-panel-heading p {
  margin: 0 0 4px;
  color: var(--muted);
}

.security-request-list {
  display: grid;
  gap: 12px;
}

.security-request-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #1d4ed8;
  border-radius: 8px;
  background: #fff;
}

.incident-request-card {
  border-left-color: #c54242;
}

.incident-description {
  margin: 12px 0;
  white-space: pre-wrap;
}

.security-request-heading > div {
  display: grid;
  gap: 3px;
}

.security-request-heading span:not(.status),
.review-meta {
  color: var(--muted);
  font-size: 12px;
}

.security-request-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 14px 0;
}

.security-request-card details {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.security-request-card summary {
  cursor: pointer;
  font-weight: 800;
}

.security-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.security-detail-columns.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-detail-columns ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.security-review-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .security-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .security-repeat-row,
  .security-repeat-row.item-row,
  .security-repeat-row.vehicle-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .security-detail-columns.three-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .security-form-grid,
  .security-repeat-row,
  .security-repeat-row.item-row,
  .security-repeat-row.vehicle-row,
  .security-request-summary,
  .security-detail-columns,
  .security-detail-columns.three-columns {
    grid-template-columns: 1fr;
  }
  .declaration-attachments {
    grid-template-columns: 1fr;
  }
  .attachment-previews,
  .declaration-image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-subject {
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.card-subject strong {
  color: var(--ink);
  font-weight: 900;
}

.card-subject span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 120px;
}

.card-area-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(70, 99, 70, 0.22);
  border-radius: 999px;
  background: rgb(239, 247, 239);
  color: var(--brand-dark);
  font-weight: 900;
}

.card-area-badge.special-flight {
  border-color: rgba(215, 68, 59, 0.35);
  background: #fff0ef;
  color: var(--red);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-buttons strong {
  color: var(--brand-dark);
}

.actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.approval-note {
  display: grid;
  gap: 3px;
  min-width: 150px;
  color: #344054;
  line-height: 1.35;
}

.approval-note strong {
  color: var(--brand-dark);
}

.approval-note span {
  display: block;
}

.print-sheet {
  padding: 20px;
}

.print-sheet h3 {
  margin: 0 0 16px;
  text-align: center;
  text-transform: uppercase;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.print-cell {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #f8fbfe;
}

.print-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.print-cell strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(14px, 1.3vw, 17px);
  white-space: nowrap;
}

.periodic-section-title {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 15px;
}

.periodic-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #edf3f6;
}
.periodic-tab {
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.periodic-tab.active { color: #fff; background: var(--brand); box-shadow: 0 4px 12px rgba(31, 103, 74, .2); }
.periodic-tab-panel { display: none; }
.periodic-tab-panel.active { display: block; }
.periodic-chart-panel { min-width: 0; }
.periodic-metric-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}
.periodic-metric-tab {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 7px;
  background: #f5f8fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.periodic-metric-tab.active { color: #fff; }
.periodic-metric-tab[data-periodic-metric="flights"].active { border-color: #39795a; background: #39795a; }
.periodic-metric-tab[data-periodic-metric="passengers"].active { border-color: #2d91c2; background: #2d91c2; }
.periodic-metric-tab[data-periodic-metric="cargoKg"].active { border-color: #d88e17; background: #d88e17; }
.periodic-metric-tab[data-periodic-metric="incidents"].active { border-color: #c54242; background: #c54242; }
.periodic-metric-tab[data-periodic-metric="nonAviationKg"].active { border-color: #7253b3; background: #7253b3; }
.periodic-chart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.periodic-chart-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfe; }
.periodic-chart-card h3 { margin: 0 0 14px; font-size: 14px; }
.periodic-line-scroll { overflow-x: auto; padding-bottom: 4px; }
.periodic-line-chart { display: block; min-height: 280px; }
.periodic-line-grid { stroke: #dce5ea; stroke-width: 1; }
.periodic-line-path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.periodic-line-area { fill: rgba(52, 130, 91, .1); }
.periodic-line-point { fill: #fff; stroke: var(--brand); stroke-width: 3; }
.periodic-metric-flights .periodic-line-path, .periodic-metric-flights .periodic-line-point { stroke: #39795a; }
.periodic-metric-flights .periodic-line-area { fill: rgba(57, 121, 90, .12); }
.periodic-metric-passengers .periodic-line-path, .periodic-metric-passengers .periodic-line-point { stroke: #2d91c2; }
.periodic-metric-passengers .periodic-line-area { fill: rgba(45, 145, 194, .12); }
.periodic-metric-cargoKg .periodic-line-path, .periodic-metric-cargoKg .periodic-line-point { stroke: #d88e17; }
.periodic-metric-cargoKg .periodic-line-area { fill: rgba(216, 142, 23, .12); }
.periodic-metric-incidents .periodic-line-path, .periodic-metric-incidents .periodic-line-point { stroke: #c54242; }
.periodic-metric-incidents .periodic-line-area { fill: rgba(197, 66, 66, .12); }
.periodic-metric-nonAviationKg .periodic-line-path, .periodic-metric-nonAviationKg .periodic-line-point { stroke: #7253b3; }
.periodic-metric-nonAviationKg .periodic-line-area { fill: rgba(114, 83, 179, .12); }
.periodic-line-label { fill: #667984; font-size: 10px; }
.periodic-line-value { fill: #314954; font-size: 10px; font-weight: 700; }
.periodic-percent-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; align-items: center; }
.periodic-pie { display: block; width: min(100%, 442px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 12px rgba(38, 65, 76, .15)); }
.periodic-pie-label {
  fill: #fff;
  stroke: rgba(19, 42, 47, .72);
  stroke-width: 2.5px;
  paint-order: stroke fill;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}
.periodic-pie-label.small { font-size: 7px; stroke-width: 2px; }
.periodic-percent-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 16px; width: 100%; }
.periodic-percent-row { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 11px; white-space: nowrap; }
.periodic-percent-row i { width: 10px; height: 10px; border-radius: 50%; }
.periodic-color-0 { background: #39795a; }
.periodic-color-1 { background: #2d91c2; }
.periodic-color-2 { background: #e0a12b; }
.periodic-color-3 { background: #d65555; }
.periodic-color-4 { background: #8667c7; }
.periodic-color-5 { background: #26a69a; }
.periodic-color-6 { background: #e07a5f; }
.periodic-color-7 { background: #577590; }
.periodic-color-8 { background: #90be6d; }
.periodic-color-9 { background: #f3722c; }
.periodic-chart-empty { padding: 40px 12px; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .periodic-chart-grid { grid-template-columns: 1fr; }
  .periodic-percent-layout { grid-template-columns: 1fr; justify-items: center; }
  .periodic-percent-legend { width: 100%; }
}
@media (max-width: 720px) {
  .periodic-metric-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .periodic-percent-layout { grid-template-columns: 1fr; justify-items: center; }
  .periodic-percent-legend { width: 100%; }
}

.notice {
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #675212;
  background: #fff6d9;
}

.schedule-section {
  margin-top: 16px;
}

.schedule-section h3 {
  margin: 0 0 8px;
  color: #1e6f3f;
  font-size: 16px;
  text-transform: uppercase;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.day-card {
  min-height: 170px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.day-card strong {
  display: block;
  margin-bottom: 8px;
}

.shift {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 6px;
  padding: 5px;
  margin-top: 5px;
  border-radius: 4px;
  background: #eef6fb;
  font-size: 12px;
}

.shift span:first-child {
  color: var(--brand-dark);
  font-weight: 800;
}

.command-schedule-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.command-schedule-table {
  min-width: 980px;
  width: 100%;
  border-collapse: collapse;
}

.command-schedule-table th,
.command-schedule-table td {
  height: 72px;
  padding: 12px;
  border: 1px solid #d9e3dc;
  text-align: center;
  vertical-align: middle;
}

.command-schedule-table th {
  position: static;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: none;
}

.command-schedule-table tr:first-child th {
  height: 54px;
  background: linear-gradient(90deg, rgb(226, 238, 226), rgb(238, 246, 238));
}

.command-schedule-table tr:first-child th span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.command-schedule-table tr th:first-child {
  width: 160px;
  background: rgb(238, 246, 238);
  text-align: left;
}

.command-schedule-table td {
  background: #fff;
}

.schedule-select {
  width: 100%;
  min-width: 130px;
  border-color: rgb(182, 202, 182);
  background: rgb(250, 253, 250);
  color: var(--ink);
  font-weight: 700;
}

.schedule-select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(70, 99, 70, 0.18);
}

.schedule-text {
  display: inline-block;
  min-height: 20px;
  color: var(--ink);
  font-weight: 700;
}

.schedule-mode.active {
  color: #fff;
  background: var(--brand);
}

.screening-week-grid,
.screening-month-grid {
  display: grid;
  gap: 12px;
}

.screening-week-grid {
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  overflow-x: auto;
}

.screening-month-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.screening-day-card {
  min-height: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.screening-day-card.compact {
  min-height: 180px;
}

.screening-day-card:hover,
.screening-day-card:focus-visible {
  border-color: rgb(120, 150, 120);
  box-shadow: 0 14px 34px rgba(20, 42, 70, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.screening-day-card h4 {
  margin: -12px -12px 10px;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  font-size: 14px;
}

.screening-list {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  margin-top: 8px;
  border: 1px solid #edf2ee;
  border-radius: 7px;
}

.screening-list.work {
  background: rgb(236, 245, 236);
  border-color: rgb(195, 216, 195);
}

.screening-list.tc {
  background: rgb(255, 248, 224);
  border-color: rgb(236, 213, 142);
}

.screening-list.rotate {
  background: rgb(232, 241, 246);
  border-color: rgb(181, 205, 217);
}

.control-day-card .screening-list.rotate .screening-list-content,
.control-day-card .screening-list.off .screening-list-content {
  display: grid;
  grid-template-columns: 1fr;
}

.screening-list.off {
  background: rgb(244, 246, 248);
  border-color: rgb(216, 224, 234);
}

.screening-list strong {
  color: var(--brand-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.screening-list span {
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.screening-list-content {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.screening-person {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.screening-person b {
  font-size: 10px;
  line-height: 1;
}

.screening-person.sc1 {
  color: #fff;
  background: #d92d20;
  font-weight: 800;
}

.screening-person.sc2 {
  color: #422006;
  background: #ffd666;
  font-weight: 800;
}

.screening-stats {
  margin-top: 18px;
}

.screening-stats h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
}

.screening-stats table th {
  background: linear-gradient(90deg, rgb(226, 238, 226), rgb(238, 246, 238));
  color: var(--brand-dark);
}

.screening-stats table tbody tr:nth-child(even) {
  background: rgb(248, 251, 248);
}

.screening-stats table tbody tr:hover {
  background: rgb(232, 241, 232);
}

.screening-detail {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.screening-detail-section h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 15px;
  text-transform: uppercase;
}

.screening-position-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.screening-position {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid #dce8dd;
  border-radius: 8px;
  background: rgb(248, 251, 248);
  overflow: hidden;
}

.screening-position span {
  display: block;
  margin: -9px -10px 8px;
  padding: 7px 9px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, rgb(226, 238, 226), rgb(238, 246, 238));
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.screening-position strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.screening-position.screening-role-screen {
  border-color: #f3aaa3;
  background: #fff8f7;
}

.screening-position.screening-role-screen span {
  color: #fff;
  background: linear-gradient(90deg, #b42318, #d92d20);
}

.screening-position.screening-role-bag {
  border-color: #b7d7c0;
  background: #f3fbf5;
}

.screening-position.screening-role-bag span {
  color: #123d24;
  background: linear-gradient(90deg, #bfe7c8, #ddf5e3);
}

.screening-position.screening-role-guide {
  border-color: #b9d1ee;
  background: #f4f8fd;
}

.screening-position.screening-role-guide span {
  color: #173b68;
  background: linear-gradient(90deg, #bfd8f4, #e3f0ff);
}

.screening-position.screening-role-body {
  border-color: #e8cf91;
  background: #fffaf0;
}

.screening-position.screening-role-body span {
  color: #5f3b00;
  background: linear-gradient(90deg, #f6d77f, #fff0bd);
}

.screening-position.screening-role-machine {
  border-color: #c9c4e6;
  background: #f8f6ff;
}

.screening-position.screening-role-machine span {
  color: #35236c;
  background: linear-gradient(90deg, #d5cdf7, #eee9ff);
}

.screening-position.screening-role-visual {
  border-color: #d4c3a2;
  background: #fffaf4;
}

.screening-position.screening-role-visual span {
  color: #4e3514;
  background: linear-gradient(90deg, #e7d1a9, #f8ead1);
}

dialog {
  width: min(760px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(14, 31, 53, 0.26);
}

dialog::backdrop {
  background: rgba(12, 24, 38, 0.45);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #43566e;
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.check-option input {
  min-height: auto;
}

.card-area-editor {
  gap: 8px;
}

.card-area-grid {
  display: grid;
  grid-template-columns: 72px repeat(2, minmax(86px, 120px));
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgb(198, 214, 198);
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(248, 252, 248), rgb(238, 247, 238));
}

.card-area-head {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-area-head:nth-child(3) {
  color: var(--red);
}

.card-area-label {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.card-area-check {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(70, 99, 70, 0.24);
  border-radius: 7px;
  background: #fff;
}

.card-area-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

.card-area-check.special-flight {
  border-color: rgba(215, 68, 59, 0.35);
  background: #fff6f5;
}

.card-area-check.special-flight input {
  accent-color: var(--red);
}

.card-validity-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(130px, 170px) minmax(130px, 170px);
  gap: 12px;
  align-items: end;
}

.card-validity-row label {
  display: grid;
  gap: 6px;
}

.card-validity-row input,
.card-validity-row select {
  width: 100%;
}

.staff-permit-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(135px, 170px) minmax(135px, 170px);
  gap: 12px;
  align-items: end;
}

.staff-permit-row label {
  display: grid;
  gap: 6px;
}

.staff-permit-row input {
  width: 100%;
}

.qualification-editor {
  display: grid;
  gap: 10px;
}

.qualification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qualification-header label {
  margin: 0;
}

.qualification-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbf8;
}

.qualification-row label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.qualification-row input,
.qualification-row select {
  width: 100%;
}

.dialog-actions {
  justify-content: flex-end;
  padding: 14px 18px 18px;
  margin: 0;
}

@media (max-width: 1050px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid,
  .split-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .tabs-inner,
  .shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-grid,
  .split-layout,
  .print-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .card-validity-row {
    grid-template-columns: 1fr;
  }

  .staff-permit-row {
    grid-template-columns: 1fr;
  }

  .card-area-grid {
    width: 100%;
    grid-template-columns: 64px repeat(2, minmax(0, 1fr));
  }

  .qualification-row {
    grid-template-columns: 1fr;
  }

  .button-row,
  .userbar {
    flex-wrap: wrap;
  }

  .chart {
    gap: 10px;
  }
}

/* Public mobile shell: compact header and thumb-friendly bottom navigation. */
@media (max-width: 720px) {
  body.public-mode { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  body.public-mode .topbar { overflow: visible; }

  body.public-mode .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 68px;
    padding: 8px 12px;
  }

  body.public-mode .brand { gap: 9px; }
  body.public-mode .brand-logo { width: 43px; height: 43px; box-shadow: 0 0 0 2px rgba(255,255,255,.24); }
  body.public-mode .brand h1 { font-size: 14px; line-height: 1.15; }
  body.public-mode .brand p {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.public-mode .userbar {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }

  body.public-mode #todayText,
  body.public-mode #currentUserText { display: none; }

  body.public-mode .language-current { width: 34px; height: 34px; padding: 0; }
  body.public-mode .language-current img { width: 30px; height: 30px; }
  body.public-mode .language-menu { position: fixed; top: 72px; right: 10px; width: 168px; }
  body.public-mode .profile-trigger { width: 34px; height: 34px; }

  body.public-mode .tabs {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid #d7e2da;
    border-bottom: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 26px rgba(26,57,39,.13);
    backdrop-filter: blur(14px);
  }

  body.public-mode .tabs-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  body.public-mode .tabs-inner > .public-tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 57px;
    padding: 5px 2px;
    border: 0;
    border-radius: 12px;
    font-size: 9px;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  body.public-mode .tabs-inner > .public-tab .tab-icon { width: 21px; height: 21px; }
  body.public-mode .tabs-inner > .public-tab.active {
    color: #285b3b;
    background: linear-gradient(180deg, #eaf5ed, #dceee1);
    box-shadow: inset 0 0 0 1px #c8dfce;
  }

  body.public-mode .shell { padding-right: 10px; padding-left: 10px; }

  body.public-mode .assistant-launcher {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.public-mode .assistant-floating {
    z-index: 80;
    bottom: calc(76px + env(safe-area-inset-bottom));
    height: min(650px, calc(100svh - 88px - env(safe-area-inset-bottom)));
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .tabs,
  .filters,
  .page-title,
  dialog {
    display: none !important;
  }

  .shell {
    padding: 0;
  }

  .view {
    display: none !important;
  }

  #periodic {
    display: block !important;
  }

  .print-sheet {
    border: 0;
    box-shadow: none;
  }
}
.cargo-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#cargoRequestDialog {
  width: min(920px, calc(100% - 28px));
}

.cargo-items-field {
  grid-column: 1 / -1;
}

.cargo-items-head,
.cargo-item-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.cargo-screening-result {
  display: none;
}

.cargo-screening-mode .cargo-screening-result {
  display: grid;
}

.cargo-items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cargo-item-row + .cargo-item-row {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .cargo-form-grid {
    grid-template-columns: 1fr;
  }

  .cargo-item-row {
    grid-template-columns: 1fr;
  }
}
