* {
    box-sizing: border-box;
}

:root {
    --bg: #e7e9ef;
    --bg-accent: radial-gradient(circle at top left, rgba(62, 121, 214, 0.12), transparent 32%), radial-gradient(circle at top right, rgba(22, 154, 255, 0.08), transparent 26%), linear-gradient(180deg, #eef1f6 0%, #dde3eb 100%);
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(108, 121, 146, 0.28);
    --border-strong: rgba(70, 116, 190, 0.42);
    --text: #121821;
    --text-muted: #5f6c81;
    --heading: #0f1726;
    --primary: #2f80ed;
    --primary-strong: #3d96ff;
    --primary-soft: rgba(47, 128, 237, 0.12);
    --hover: rgba(47, 128, 237, 0.18);
    --success: #2ca56f;
    --danger: #d95a5a;
    --shadow: 0 22px 60px rgba(15, 23, 38, 0.12);
    --card-shadow: 0 18px 40px rgba(15, 23, 38, 0.08);
    --glow: 0 0 0 1px rgba(61, 150, 255, 0.12), 0 18px 40px rgba(20, 46, 88, 0.24);
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    background-image: var(--bg-accent);
    color: var(--text);
}

body.dark-mode {
    --bg: #07101d;
    --bg-accent: radial-gradient(circle at top left, rgba(44, 132, 255, 0.14), transparent 28%), radial-gradient(circle at top right, rgba(22, 154, 255, 0.12), transparent 20%), linear-gradient(180deg, #07101d 0%, #0a1321 45%, #08111d 100%);
    --surface: rgba(11, 20, 34, 0.92);
    --surface-strong: #0d1727;
    --surface-muted: rgba(255, 255, 255, 0.04);
    --border: rgba(112, 139, 185, 0.18);
    --border-strong: rgba(61, 150, 255, 0.42);
    --text: #ebeff7;
    --text-muted: #9ca9bf;
    --heading: #f7faff;
    --primary: #2f80ed;
    --primary-strong: #58a8ff;
    --primary-soft: rgba(47, 128, 237, 0.12);
    --hover: rgba(47, 128, 237, 0.22);
    --success: #39b97d;
    --danger: #ff7b7b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --card-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    --glow: 0 0 0 1px rgba(61, 150, 255, 0.18), 0 20px 48px rgba(10, 30, 61, 0.46);
}

.app-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(14px);
}

.top-bar,
.button-row,
.option-group,
.field-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-bar {
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 18px 22px;
}

.top-bar-main {
    flex: 1 1 auto;
    min-width: 0;
}

.app-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    display: block;
    width: 84px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
    transform: scale(1.14);
    transform-origin: left center;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 14px rgba(88, 168, 255, 0.16));
}

.app-kicker {
    margin-bottom: 4px;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.app-title {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.session-note {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.header-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    font-size: 0.98rem;
    line-height: 1.5;
}

.header-meta-separator {
    color: rgba(156, 169, 191, 0.72);
    font-weight: 600;
}

.agency-alert-link,
.agency-selected-link {
    word-break: break-word;
    text-decoration: none;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.agency-alert-link {
    color: #ff5d5d;
    font-weight: 700;
}

.agency-alert-link:hover,
.agency-alert-link:focus-visible {
    color: #ff8686;
    text-decoration: underline;
}

.agency-selected-link {
    color: #7db4ff;
    font-weight: 600;
}

.agency-selected-link:hover,
.agency-selected-link:focus-visible {
    color: #a8ccff;
    text-decoration: underline;
}

.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.dashboard-shell {
    display: grid;
    gap: 22px;
}

.tool-page-shell {
    display: grid;
    gap: 18px;
}

.tool-page-shell .card,
.tool-page-shell .patrol-brief-screen {
    margin-bottom: 0;
}

.tool-agency-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(61, 150, 255, 0.22);
    background: rgba(15, 30, 50, 0.74);
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tool-agency-context-label {
    color: var(--primary-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tool-agency-context-value {
    color: var(--text);
}

.tool-agency-context-value a {
    color: var(--primary-strong);
    font-weight: 600;
    text-decoration: none;
}

.tool-agency-context-value a:hover,
.tool-agency-context-value a:focus-visible {
    color: #8bc0ff;
    text-decoration: underline;
}

.tool-agency-context-warning {
    border-color: rgba(255, 120, 120, 0.32);
    background: rgba(46, 20, 24, 0.48);
}

.tool-agency-context-warning .tool-agency-context-label {
    color: #ff8f8f;
}

.pwid-page-shell {
    display: grid;
    gap: 18px;
}

.pwid-hero-card {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(8, 20, 34, 0.98), rgba(8, 20, 34, 0.94));
}

.pwid-hero-header {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.pwid-page-title {
    margin: 8px 0 0;
    color: var(--heading);
    font-size: clamp(1.8rem, 1.45rem + 1vw, 2.4rem);
    line-height: 1.08;
}

.pwid-page-subtitle {
    margin: 14px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 66ch;
}

.pwid-reference-chip {
    padding: 18px;
    border: 1px solid rgba(61, 150, 255, 0.24);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 31, 52, 0.88), rgba(9, 19, 33, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pwid-reference-label {
    color: var(--primary-strong);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pwid-reference-chip p {
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.6;
}

.pwid-caution-box,
.pwid-disclaimer {
    padding: 14px 16px;
    border-radius: 16px;
    line-height: 1.65;
}

.pwid-caution-box {
    margin-top: 18px;
    border: 1px solid rgba(125, 180, 255, 0.26);
    background: rgba(15, 32, 53, 0.74);
    color: var(--text);
}

.pwid-disclaimer {
    margin-top: 16px;
    border: 1px solid rgba(125, 180, 255, 0.18);
    background: rgba(47, 128, 237, 0.08);
    color: var(--text-muted);
    font-size: 0.94rem;
}

.pwid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
    gap: 18px;
    align-items: start;
}

.pwid-form-column {
    display: grid;
    gap: 18px;
}

.pwid-output-column {
    display: grid;
}

.pwid-output-card {
    position: sticky;
    top: 22px;
}

.pwid-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.pwid-section-title {
    margin: 0;
    color: var(--heading);
    font-size: 1.18rem;
}

.pwid-field-label {
    color: var(--heading);
    font-weight: 600;
}

.pwid-select-row {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.pwid-indicator-section-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.pwid-workflow[hidden] {
    display: none;
}

.pwid-indicator-card {
    margin-top: 0;
}

.pwid-indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 14px;
    margin-top: 14px;
}

.pwid-indicator-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    overflow: visible;
}

.pwid-indicator-option:hover,
.pwid-indicator-option:focus-within {
    border-color: rgba(88, 168, 255, 0.34);
    background: rgba(47, 128, 237, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(9, 18, 31, 0.22);
}

.pwid-indicator-option > input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.pwid-indicator-option span {
    color: var(--text);
    line-height: 1.55;
}

.pwid-indicator-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.pwid-indicator-main-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.pwid-indicator-found {
    color: var(--heading);
    cursor: pointer;
    font-weight: 650;
    line-height: 1.4;
}

.pwid-info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pwid-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(125, 180, 255, 0.42);
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.12);
    color: var(--primary-strong);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.pwid-info-tooltip {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(320px, 72vw);
    padding: 10px 12px;
    border: 1px solid rgba(125, 180, 255, 0.36);
    border-radius: 12px;
    background: #071525;
    color: var(--text);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.pwid-info-wrap:hover .pwid-info-tooltip,
.pwid-info-wrap:focus-within .pwid-info-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.pwid-inline-detail {
    display: grid;
    grid-template-columns: auto minmax(72px, 130px);
    gap: 8px;
    align-items: center;
}

.pwid-inline-detail-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.pwid-indicator-detail-input {
    margin-top: 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.92rem;
}

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

.pwid-detail-field {
    display: grid;
    gap: 8px;
}

.pwid-detail-field label {
    color: var(--heading);
    font-weight: 600;
}

.pwid-detail-field-wide {
    grid-column: 1 / -1;
}

.pwid-output-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.pwid-action-row {
    margin-top: 16px;
    flex-wrap: wrap;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    position: relative;
    overflow: hidden;
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(7, 18, 31, 0.98), rgba(7, 18, 31, 0.96));
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(61, 150, 255, 0.26), transparent);
    pointer-events: none;
}

.dashboard-hero-main {
    position: relative;
    z-index: 1;
}

.dashboard-hero-main {
    display: grid;
    gap: 18px;
    padding-right: 12px;
}

.dashboard-hero-mark {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dashboard-hero-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 18px;
    border: 1px solid rgba(61, 150, 255, 0.3);
    background: linear-gradient(180deg, rgba(18, 32, 54, 0.96), rgba(10, 19, 33, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-hero-symbol svg {
    width: 46px;
    height: 46px;
    stroke: var(--primary-strong);
    fill: none;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-hero-copy {
    min-width: 0;
}

.dashboard-eyebrow,
.dashboard-card-kicker {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 14px 0 10px;
    color: var(--heading);
    font-size: clamp(2rem, 1.6rem + 1.6vw, 3.5rem);
    line-height: 1.02;
}

.dashboard-subtitle {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.07rem;
    line-height: 1.68;
}

.dashboard-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dashboard-pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(88, 168, 255, 0.2);
    background: rgba(17, 29, 49, 0.86);
    color: #b6c7e5;
    font-weight: 500;
}

.dashboard-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.82fr) minmax(280px, 0.82fr);
    gap: 22px;
    align-items: stretch;
}

.dashboard-card {
    margin: 0;
}

.dashboard-card-feature {
    display: grid;
    gap: 24px;
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(8, 20, 34, 0.98), rgba(8, 20, 34, 0.96));
    min-height: 100%;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: start;
}

.dashboard-card-lead {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.dashboard-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    border: 1px solid rgba(88, 168, 255, 0.24);
    background: rgba(17, 29, 49, 0.92);
    color: var(--primary-strong);
}

.dashboard-panel-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-card-title {
    margin: 8px 0 0;
    color: var(--heading);
    font-size: 1.58rem;
    line-height: 1.15;
}

.dashboard-card-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.dashboard-card-meta {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dashboard-card-link,
.report-tool-card {
    width: 100%;
    text-align: left;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(8, 20, 34, 0.98), rgba(8, 20, 34, 0.96));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-card-link {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard-card-link::after,
.report-tool-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(61, 150, 255, 0.75), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.dashboard-card-link:hover,
.dashboard-card-link:focus-visible,
.report-tool-card:hover,
.report-tool-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--primary-strong);
    box-shadow: var(--glow);
    background: linear-gradient(180deg, rgba(11, 24, 41, 1), rgba(9, 20, 34, 0.98));
}

.dashboard-card-link:hover::after,
.dashboard-card-link:focus-visible::after,
.report-tool-card:hover::after,
.report-tool-card:focus-visible::after {
    opacity: 1;
}

.report-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.report-tool-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 18px 20px;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.report-tool-code {
    display: block;
    color: var(--heading);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.report-tool-name {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.report-tool-content {
    min-width: 0;
}

.report-tool-arrow,
.dashboard-link-label {
    color: var(--primary-strong);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.report-tool-arrow {
    align-self: center;
    font-size: 1.15rem;
}

.dashboard-link-label {
    margin-top: auto;
    font-size: 0.92rem;
}

.report-tool-icon,
.dashboard-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-strong);
    border: 1px solid rgba(88, 168, 255, 0.28);
    background: linear-gradient(180deg, rgba(47, 128, 237, 0.16), rgba(47, 128, 237, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.report-tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
}

.dashboard-tool-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.report-tool-icon svg,
.dashboard-tool-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px 14px;
    margin-top: 14px;
}

.form-grid label {
    align-self: center;
    font-weight: 600;
    color: var(--heading);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-strong);
    box-shadow: 0 0 0 3px rgba(61, 150, 255, 0.14);
    background: var(--surface-strong);
}

textarea {
    resize: vertical;
}

.formatted-output {
    min-height: 240px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-muted);
    color: var(--text);
    line-height: 1.55;
}

button,
.logout-link,
.dashboard-action-link,
.about-us-nav-btn,
.return-home-nav-btn {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--text);
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
button:focus-visible,
.logout-link:hover,
.logout-link:focus-visible,
.dashboard-action-link:hover,
.dashboard-action-link:focus-visible,
.about-us-nav-btn:hover,
.about-us-nav-btn:focus-visible,
.return-home-nav-btn:hover,
.return-home-nav-btn:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: var(--primary-strong);
    background: var(--hover);
    color: var(--heading);
    box-shadow: 0 12px 22px rgba(17, 33, 60, 0.16);
}

.about-us-nav-btn {
    border-color: rgba(125, 180, 255, 0.45);
    background: linear-gradient(135deg, #2f80ff 0%, #1f5fd1 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(47, 128, 255, 0.35), 0 10px 24px rgba(9, 33, 72, 0.28);
}

.about-us-nav-btn:hover,
.about-us-nav-btn:focus-visible {
    border-color: rgba(157, 201, 255, 0.7);
    background: linear-gradient(135deg, #3a8dff 0%, #266de3 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(47, 128, 255, 0.55), 0 14px 28px rgba(9, 33, 72, 0.34);
}

.about-us-nav-btn[aria-current="page"] {
    box-shadow: 0 0 20px rgba(47, 128, 255, 0.48), 0 14px 28px rgba(9, 33, 72, 0.3);
}

.return-home-nav-btn {
    border-color: rgba(125, 180, 255, 0.35);
    background: rgba(47, 128, 255, 0.08);
    color: #a8ccff;
    font-weight: 600;
    border-radius: 999px;
}

.return-home-nav-btn:hover,
.return-home-nav-btn:focus-visible {
    border-color: rgba(125, 180, 255, 0.65);
    background: rgba(47, 128, 255, 0.18);
    color: #ffffff;
}

.primary-button,
.dashboard-action-link.primary-button {
    border-color: rgba(74, 158, 255, 0.7);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #f7fbff;
    font-weight: 700;
}

.primary-button:hover,
.primary-button:focus-visible,
.dashboard-action-link.primary-button:hover,
.dashboard-action-link.primary-button:focus-visible {
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(29, 87, 165, 0.34);
}

.icon-toggle {
    min-width: 44px;
    padding: 11px 0;
    font-size: 18px;
    line-height: 1;
}

.status-line,
.output-label,
.subtle,
.credit-line,
.login-note {
    color: var(--text-muted);
}

.field-hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: -2px;
}

.output-label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 700;
    color: var(--heading);
}

.branch-card {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(47, 128, 237, 0.08), rgba(47, 128, 237, 0.02));
}

.branch-title {
    margin: 0 0 12px;
    color: var(--primary-strong);
    font-size: 1.05rem;
    font-weight: 700;
}

.branch-divider {
    height: 0;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

.stacked-options {
    display: grid;
    gap: 8px;
    align-items: flex-start;
}

.tab-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 18px;
}

.tab-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, text-shadow 0.18s ease;
}

.tab-nav-link:hover,
.tab-nav-link:focus-visible {
    outline: none;
    color: var(--heading);
    border-color: rgba(61, 150, 255, 0.42);
}

.tab-nav-link.active {
    color: var(--primary-strong);
    border-color: var(--primary-strong);
    text-shadow: 0 0 22px rgba(61, 150, 255, 0.24);
}

.footer-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 18px;
}

.credit-line {
    text-align: right;
    font-size: 12px;
}

.feature-request-button {
    background: linear-gradient(135deg, #2e9c69, #248455);
    border-color: rgba(61, 199, 136, 0.45);
    color: #f7fff8;
}

.feature-request-button:hover,
.feature-request-button:focus-visible {
    color: #ffffff;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 8, 15, 0.68);
    z-index: 1000;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    width: min(560px, 94vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

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

.modal-header h2 {
    margin: 0;
    color: var(--heading);
}

.feature-request-form {
    display: grid;
    gap: 8px;
}

.mdu-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.mdu-location-button {
    min-height: 88px;
    padding: 20px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
}

.mdu-viewer {
    display: grid;
    gap: 12px;
}

.mdu-image-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-muted);
    overflow: auto;
}

.mdu-image {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    border-radius: 12px;
}

.patrol-brief-screen {
    display: grid;
    gap: 24px;
    color: #f3f7ff;
}

.patrol-brief-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.patrol-brief-hero-main,
.patrol-brief-progress-card,
.patrol-brief-detail-card,
.patrol-brief-quiz-card {
    background: linear-gradient(180deg, #071525 0%, #091728 100%);
    border: 1px solid #1e3550;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(1, 6, 14, 0.34);
}

.patrol-brief-hero-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
}

.patrol-brief-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    border: 1px solid #345273;
    background: linear-gradient(180deg, #0b1524 0%, #09111d 100%);
}

.patrol-brief-hero-icon svg,
.patrol-brief-detail-icon svg,
.patrol-brief-quiz-kicker-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #2f80ff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.patrol-brief-kicker,
.patrol-brief-quiz-kicker {
    color: #2f80ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.patrol-brief-title {
    margin: 8px 0 16px;
    color: #f8fbff;
    font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.7rem);
    line-height: 1.18;
}

.patrol-brief-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.patrol-brief-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #29486b;
    background: rgba(16, 30, 50, 0.94);
    color: #c8d7f1;
    font-weight: 500;
}

.patrol-brief-progress-card {
    padding: 18px 20px;
}

.patrol-brief-progress-label {
    color: #e8eef9;
    font-size: 1rem;
    font-weight: 500;
}

.patrol-brief-progress-track {
    height: 14px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(54, 75, 104, 0.58);
    overflow: hidden;
}

.patrol-brief-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f80ff 0%, #3f9dff 100%);
}

.patrol-brief-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 18px;
    align-items: start;
}

.patrol-brief-detail-card,
.patrol-brief-quiz-card {
    padding: 22px 26px 24px;
}

.patrol-brief-detail-list {
    display: grid;
}

.patrol-brief-detail-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 0;
}

.patrol-brief-detail-row:first-child {
    padding-top: 2px;
}

.patrol-brief-detail-row-divider {
    border-bottom: 1px solid rgba(53, 82, 116, 0.62);
}

.patrol-brief-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #2f80ff;
}

.patrol-brief-detail-icon svg {
    width: 28px;
    height: 28px;
}

.patrol-brief-detail-copy {
    color: #d8e0ef;
    line-height: 1.7;
    font-size: 1.03rem;
}

.patrol-brief-detail-label {
    color: #f7fbff;
    font-weight: 700;
}

.patrol-brief-detail-text {
    color: #d8e0ef;
}

.patrol-brief-quiz-card {
    display: grid;
    gap: 18px;
}

.patrol-brief-quiz-kicker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patrol-brief-quiz-kicker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #2f80ff;
}

.patrol-brief-quiz-kicker-icon svg {
    width: 22px;
    height: 22px;
}

.patrol-brief-quiz-question {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(1.4rem, 1.15rem + 0.45vw, 2rem);
    line-height: 1.35;
}

.patrol-brief-quiz-choices {
    display: grid;
    gap: 12px;
}

.patrol-brief-choice-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: center;
    min-height: 84px;
    padding: 18px 18px;
    border-radius: 14px;
    border: 1px solid rgba(56, 79, 109, 0.9);
    background: rgba(8, 18, 31, 0.92);
    color: #eef4ff;
    text-align: left;
    box-shadow: none;
}

.patrol-brief-choice-card:hover,
.patrol-brief-choice-card:focus-visible {
    transform: translateY(-2px);
    border-color: #2f80ff;
    background: rgba(11, 24, 42, 0.98);
    box-shadow: 0 14px 28px rgba(2, 8, 17, 0.28);
    color: #ffffff;
}

.patrol-brief-choice-indicator {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #38516f;
}

.patrol-brief-choice-card.selected .patrol-brief-choice-indicator {
    border-color: #2f80ff;
}

.patrol-brief-choice-card.selected .patrol-brief-choice-indicator::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: #2f80ff;
}

.patrol-brief-choice-text {
    font-size: 1.02rem;
    line-height: 1.6;
}

.patrol-brief-choice-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #4fd96b;
    color: #06220e;
    font-size: 1rem;
    font-weight: 900;
    opacity: 0;
}

.patrol-brief-choice-card.correct {
    border-color: #2f80ff;
    background: rgba(14, 37, 65, 0.98);
}

.patrol-brief-choice-card.correct .patrol-brief-choice-check {
    opacity: 1;
}

.patrol-brief-choice-card.incorrect {
    border-color: rgba(233, 93, 93, 0.72);
    background: rgba(45, 19, 27, 0.98);
}

.patrol-brief-choice-card.correct .patrol-brief-choice-indicator,
.patrol-brief-choice-card.incorrect .patrol-brief-choice-indicator {
    border-color: currentColor;
}

.patrol-brief-choice-card.correct .patrol-brief-choice-indicator {
    color: #2f80ff;
}

.patrol-brief-choice-card.incorrect .patrol-brief-choice-indicator {
    color: #e95d5d;
}

.patrol-brief-choice-card.correct .patrol-brief-choice-indicator::after,
.patrol-brief-choice-card.incorrect .patrol-brief-choice-indicator::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: currentColor;
}

.patrol-brief-feedback {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.patrol-brief-feedback[hidden] {
    display: none;
}

.patrol-brief-feedback.correct {
    border-color: rgba(76, 201, 100, 0.62);
    background: rgba(15, 54, 33, 0.96);
}

.patrol-brief-feedback.incorrect {
    border-color: rgba(233, 93, 93, 0.58);
    background: rgba(62, 20, 28, 0.96);
}

.patrol-brief-feedback.info {
    border-color: rgba(47, 128, 255, 0.48);
    background: rgba(16, 35, 60, 0.96);
}

.patrol-brief-feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
}

.patrol-brief-feedback.correct .patrol-brief-feedback-icon {
    background: #5add73;
    color: #06240d;
}

.patrol-brief-feedback.incorrect .patrol-brief-feedback-icon {
    background: #f26c6c;
    color: #2b0810;
}

.patrol-brief-feedback.info .patrol-brief-feedback-icon {
    background: #2f80ff;
    color: #ffffff;
}

.patrol-brief-feedback-title {
    color: #f7fbff;
    font-size: 1.05rem;
    font-weight: 700;
}

.patrol-brief-feedback-text {
    margin-top: 6px;
    color: #e6edf9;
    line-height: 1.65;
}

.patrol-brief-quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.patrol-brief-secondary-button,
.patrol-brief-primary-button {
    min-height: 54px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.patrol-brief-secondary-button {
    border: 1px solid rgba(63, 86, 115, 0.92);
    background: rgba(16, 29, 46, 0.98);
    color: #e8eef9;
}

.patrol-brief-secondary-button:hover,
.patrol-brief-secondary-button:focus-visible {
    background: rgba(19, 34, 54, 1);
    color: #ffffff;
}

.patrol-brief-primary-button {
    border: 1px solid rgba(72, 144, 255, 0.86);
    background: linear-gradient(135deg, #2f80ff 0%, #347cff 100%);
    color: #ffffff;
}

.patrol-brief-primary-button:hover,
.patrol-brief-primary-button:focus-visible {
    color: #ffffff;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-shell {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 24px;
}

.login-logo {
    display: block;
    width: min(360px, 70vw);
    height: auto;
}

.login-card {
    width: min(420px, 92vw);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.login-form {
    display: grid;
    gap: 8px;
}

.login-notice {
    margin-top: 10px;
    color: var(--danger);
    font-size: 13px;
    line-height: 1.5;
}

.error-box {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(217, 90, 90, 0.18);
    color: var(--heading);
    border: 1px solid rgba(217, 90, 90, 0.38);
}

.success-box,
.warning-box {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--heading);
    line-height: 1.5;
}

.success-box {
    background: rgba(57, 185, 125, 0.16);
    border: 1px solid rgba(57, 185, 125, 0.38);
}

.warning-box {
    background: rgba(255, 184, 77, 0.16);
    border: 1px solid rgba(255, 184, 77, 0.42);
}

.auth-card-wide {
    width: min(620px, 94vw);
}

.auth-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--border);
}

.auth-link-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 0.94rem;
}

.auth-link-row a {
    color: var(--primary-strong);
    font-weight: 700;
    text-decoration: none;
}

.auth-link-row a:hover,
.auth-link-row a:focus-visible {
    color: var(--heading);
    outline: none;
    text-decoration: underline;
}

.registration-link {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.admin-shell {
    max-width: 1480px;
}

.admin-card h2 {
    margin: 0;
    color: var(--heading);
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-count,
.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: capitalize;
}

.admin-badge.success {
    border-color: rgba(57, 185, 125, 0.42);
    background: rgba(57, 185, 125, 0.16);
    color: #85e7b7;
}

.admin-badge.danger {
    border-color: rgba(255, 123, 123, 0.42);
    background: rgba(255, 123, 123, 0.14);
    color: #ffb1b1;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.profile-shell {
    display: grid;
    gap: 20px;
}

.profile-card {
    width: min(760px, 100%);
    margin: 0 auto 20px;
    padding: 30px;
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(9, 20, 34, 0.96), rgba(8, 17, 29, 0.98));
}

.profile-card-copy {
    margin-bottom: 18px;
}

.profile-title {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2.35rem);
}

.profile-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.profile-current-agency {
    margin: 18px 0 22px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-current-label {
    margin-bottom: 8px;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-current-value {
    color: var(--heading);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.5;
}

.profile-form {
    display: grid;
    gap: 14px;
}

.profile-form label {
    color: var(--heading);
    font-weight: 600;
}

.profile-actions {
    margin-top: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

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

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--primary-strong);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table td {
    color: var(--text);
}

.admin-actions-cell {
    min-width: 320px;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
}

.deny-form,
.role-form {
    flex-wrap: wrap;
}

.inline-form input[type="text"],
.inline-form select {
    min-width: 150px;
    padding: 10px 12px;
}

.button-success {
    border-color: rgba(57, 185, 125, 0.56);
    background: linear-gradient(135deg, #268d5e, #39b97d);
    color: #f7fff8;
}

.button-danger {
    border-color: rgba(255, 123, 123, 0.56);
    background: linear-gradient(135deg, #a93d3d, #d95a5a);
    color: #fff8f8;
}

.button-success:hover,
.button-success:focus-visible {
    background: linear-gradient(135deg, #2fa86f, #42ce8d);
    color: #ffffff;
}

.button-danger:hover,
.button-danger:focus-visible {
    background: linear-gradient(135deg, #b94747, #ef6a6a);
    color: #ffffff;
}

.compact-mode {
    font-size: 14px;
}

.compact-mode .app-shell {
    max-width: 1120px;
    padding: 14px;
}

.compact-mode .card,
.compact-mode .modal-card,
.compact-mode .login-card {
    padding: 16px;
}

.compact-mode .dashboard-title {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.5rem);
}

.compact-mode .dashboard-grid,
.compact-mode .dashboard-shell,
.compact-mode .report-tools-grid {
    gap: 14px;
}

.compact-mode .form-grid {
    grid-template-columns: 170px 1fr;
    gap: 8px 12px;
}

.compact-mode button,
.compact-mode .logout-link,
.compact-mode .dashboard-action-link,
.compact-mode input[type="text"],
.compact-mode input[type="email"],
.compact-mode input[type="password"],
.compact-mode select,
.compact-mode textarea,
.compact-mode .formatted-output {
    padding: 9px 12px;
}

.compact-mode .icon-toggle {
    min-width: 38px;
    padding: 9px 0;
}

.compact-mode .report-tool-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
}

.compact-mode .report-tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.compact-mode .dashboard-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.compact-mode .mdu-location-button {
    min-height: 68px;
}

@media (max-width: 1080px) {
    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pwid-hero-header,
    .pwid-layout {
        grid-template-columns: 1fr;
    }

    .pwid-output-card {
        position: static;
    }

    .dashboard-card-header {
        align-items: start;
        flex-direction: column;
    }

    .patrol-brief-hero,
    .patrol-brief-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        padding: 14px;
    }

    .top-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .top-actions,
    .button-row,
    .option-group,
    .field-with-button,
    .footer-bar,
    .dashboard-hero-actions {
        flex-wrap: wrap;
    }

    .dashboard-hero-mark {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-hero-symbol {
        width: 74px;
        height: 74px;
    }

    .dashboard-hero-symbol svg {
        width: 38px;
        height: 38px;
    }

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

    .report-tools-grid,
    .mdu-button-grid,
    .pwid-indicator-grid,
    .pwid-detail-grid {
        grid-template-columns: 1fr;
    }

    .pwid-detail-field-wide {
        grid-column: auto;
    }

    .pwid-inline-detail {
        grid-template-columns: 1fr;
    }

    .pwid-info-tooltip {
        right: auto;
        left: 50%;
        transform: translate(-50%, 4px);
    }

    .pwid-info-wrap:hover .pwid-info-tooltip,
    .pwid-info-wrap:focus-within .pwid-info-tooltip {
        transform: translate(-50%, 0);
    }

    .patrol-brief-hero-main {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .patrol-brief-hero-icon {
        width: 72px;
        height: 72px;
    }

    .patrol-brief-hero-icon svg {
        width: 34px;
        height: 34px;
    }

    .patrol-brief-progress-card,
    .patrol-brief-detail-card,
    .patrol-brief-quiz-card {
        padding: 18px;
    }

    .patrol-brief-detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .patrol-brief-detail-icon {
        width: 42px;
        height: 42px;
    }

    .patrol-brief-choice-card {
        grid-template-columns: 24px minmax(0, 1fr) 24px;
        gap: 12px;
        padding: 16px 14px;
        min-height: 76px;
    }

    .patrol-brief-feedback {
        grid-template-columns: 1fr;
    }

    .patrol-brief-quiz-actions {
        grid-template-columns: 1fr;
    }

    .report-tool-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .report-tool-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .dashboard-card-link,
    .report-tool-card {
        min-height: auto;
    }

    .footer-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .credit-line {
        text-align: left;
    }
}

.about-footer-actions {
    display: flex;
    justify-content: flex-start;
    margin: 6px 0 18px;
}

.about-hero,
.about-section-card,
.about-message,
.about-responsible,
.about-mission {
    position: relative;
    overflow: hidden;
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(7, 18, 31, 0.98), rgba(7, 18, 31, 0.94));
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 180px;
    gap: 24px;
    align-items: center;
    min-height: 280px;
}

.about-kicker,
.about-section-kicker,
.about-callout-label {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-title {
    margin: 8px 0 12px;
    color: #f8fbff;
    font-size: clamp(2.2rem, 1.9rem + 1.2vw, 3.7rem);
    line-height: 1.05;
}

.about-subtitle {
    margin: 0 0 14px;
    color: #f5f8ff;
    font-size: clamp(1.1rem, 1rem + 0.3vw, 1.4rem);
    font-weight: 600;
    line-height: 1.5;
}

.about-lead,
.about-copy {
    margin: 0;
    color: #c8d4e7;
    line-height: 1.75;
    font-size: 1rem;
}

.about-copy + .about-copy {
    margin-top: 14px;
}

.about-hero-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 28px;
    border: 1px solid rgba(61, 150, 255, 0.28);
    background: linear-gradient(180deg, rgba(15, 28, 47, 0.98), rgba(8, 17, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px rgba(5, 14, 28, 0.34);
}

.about-hero-mark svg,
.about-section-icon svg {
    width: 82px;
    height: 82px;
    fill: none;
    stroke: var(--primary-strong);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-section-header {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.about-section-header h2 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(1.4rem, 1.2rem + 0.4vw, 2rem);
    line-height: 1.2;
}

.about-callout {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(61, 150, 255, 0.32);
    background: linear-gradient(180deg, rgba(13, 29, 49, 0.94), rgba(10, 22, 37, 0.98));
}

.about-callout p {
    margin: 8px 0 0;
    color: #d8e4f6;
    line-height: 1.7;
}

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

.about-section-card {
    display: grid;
    gap: 14px;
}

.about-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(61, 150, 255, 0.26);
    background: rgba(11, 24, 41, 0.92);
}

.about-section-icon svg {
    width: 28px;
    height: 28px;
}

.about-tool-line {
    margin: 0;
    color: #f3f7ff;
    line-height: 1.6;
}

.about-mini-grid,
.about-checklist {
    display: grid;
    gap: 12px;
}

.about-mini-card,
.about-check-item {
    position: relative;
    padding: 14px 16px 14px 44px;
    border-radius: 16px;
    border: 1px solid rgba(55, 82, 117, 0.7);
    background: rgba(10, 21, 35, 0.92);
    color: #dce6f7;
    line-height: 1.6;
}

.about-mini-card::before,
.about-check-item::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.14);
}

.about-closing {
    margin: 18px 0 0;
    color: #f7fbff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-hero-mark {
        width: 132px;
        height: 132px;
    }

    .about-hero-mark svg {
        width: 62px;
        height: 62px;
    }
}

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

    .about-footer-actions {
        justify-content: stretch;
    }

    .about-footer-actions .dashboard-action-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .about-hero,
    .about-section-card,
    .about-message,
    .about-responsible,
    .about-mission {
        padding: 18px;
    }

    .about-mini-card,
    .about-check-item {
        padding-left: 40px;
    }
}

@media (max-width: 760px) {
    .profile-card {
        padding: 22px;
    }

    .profile-actions .dashboard-action-link,
    .profile-actions .primary-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
