:root {
	--red:             #c0392b;
	--red-light:       #fdecea;
	--red-mid:         #e74c3c;
	--orange:          #e67e22;
	--orange-light:    #fef9ec;
	--teal:            #1a99a6;
	--teal-light:      #eaf6f8;
	--teal-mid:        #9ed5e1;
	--teal-dark:       #147a85;
	--navy:            #0d5c63;
	--navy-mid:        #1a7a82;
	--slate:           #4a5568;
	--muted:           #718096;
	--border:          #e2e8f0;
	--surface:         #f2fafc;
	--surface2:        #e4f4f7;
	--white:           #ffffff;
	--text:            #0d3d42;
	--text-sm:         #4a5568;
	--internal-bg:     #fff8e7;
	--internal-border: #f39c12;
	--green:           #1a9958;
	--green-dark:      #126d3e;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin:     0;
	padding:    0;
}

body {
	font-family: 'Sora', sans-serif;
	background:  #f0f8fa;
	color:       var(--text);
	font-size:   14px;
	line-height: 1.6;
}

/* HEADER */
.header {
	background: var(--navy);
	padding:    0;
	position:   relative;
	overflow:   hidden;
}

.header::before {
	content:       '';
	position:      absolute;
	top:           -60px;
	right:         -60px;
	width:         300px;
	height:        300px;
	border-radius: 50%;
	background:    rgba(255, 255, 255, 0.03);
}

.header::after {
	content:       '';
	position:      absolute;
	bottom:        -40px;
	left:          40%;
	width:         200px;
	height:        200px;
	border-radius: 50%;
	background:    rgba(255, 255, 255, 0.02);
}

.header-inner {
	max-width: 960px;
	margin:    0 auto;
	padding:   40px 32px 32px;
	position:  relative;
	z-index:   1;
}

.header-top {
	display:         flex;
	align-items:     flex-start;
	justify-content: space-between;
	gap:             24px;
	flex-wrap:       wrap;
	margin-bottom:   28px;
}


.org-badge {
	display:     flex;
	align-items: center;
	gap:         12px;
}

.org-logo {
	width:         60px;
	height:        auto;
	aspect-ratio:  161 / 142;
	background:    white;
	border-radius: 5px;
	display:       flex;
	overflow:      hidden;
	position:      relative;
}

.org-logo::before {
	content:           "";
	display:           block;
	position:          absolute;
	width:             90%;
	height:            auto;
	aspect-ratio:      161 / 142;
	inset:             0;
	place-self:        center;
	background-image:  url(https://www.abaadmena.org/wp-content/uploads/2021/12/logo-dark.svg);
	background-size:   contain;
	background-repeat: no-repeat;
}

.org-name {
	color:          white;
	font-size:      13px;
	font-weight:    500;
	opacity:        0.9;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.org-sub {
	color:      rgba(255, 255, 255, 0.5);
	font-size:  11px;
	margin-top: 2px;
}

.doc-meta {
	text-align: right;
}

.doc-meta .version-pill {
	display:       inline-block;
	background:    rgba(255, 255, 255, 0.1);
	border:        1px solid rgba(255, 255, 255, 0.15);
	color:         rgba(255, 255, 255, 0.8);
	font-size:     11px;
	font-family:   'IBM Plex Mono', monospace;
	padding:       4px 10px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.doc-meta .update-date {
	color:     rgba(255, 255, 255, 0.4);
	font-size: 11px;
	display:   block;
}

.header-title {
	color:         white;
	font-size:     28px;
	font-weight:   600;
	line-height:   1.2;
	margin-bottom: 6px;
}

.header-subtitle {
	color:          rgba(255, 255, 255, 0.5);
	font-size:      13px;
	font-weight:    400;
	letter-spacing: 0.3px;
}

.escalation-bar {
	margin-top:    24px;
	background:    rgba(255, 255, 255, 0.12);
	border:        1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding:       10px 16px;
	display:       flex;
	align-items:   center;
	gap:           10px;
}

.pulse-dot {
	width:         8px;
	height:        8px;
	border-radius: 50%;
	background:    #e74c3c;
	flex-shrink:   0;
	animation:     pulse 1.5s infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity:   1;
		transform: scale(1);
	}

	50% {
		opacity:   0.5;
		transform: scale(1.3);
	}
}

.escalation-text {
	color:     rgba(255, 255, 255, 0.85);
	font-size: 12px;
}

.escalation-text strong {
	color:       white;
	font-weight: 600;
}

/* NAV */
.nav-bar {
	background:    white;
	border-bottom: 1px solid var(--border);
	position:      -webkit-sticky;
	position:      sticky;
	top:           0;
	z-index:       9999;
	box-shadow:    0 2px 6px rgba(0, 0, 0, 0.06);
	overflow:      visible;
}

.nav-inner {
	max-width:                  960px;
	margin:                     0 auto;
	padding:                    0 32px;
	display:                    flex;
	gap:                        0;
	overflow-x:                 auto;
	overflow-y:                 visible;
	-webkit-overflow-scrolling: touch;
	scrollbar-width:            none;
}

.nav-btn {
	padding:       14px 18px;
	font-size:     12px;
	font-weight:   500;
	font-family:   'Sora', sans-serif;
	color:         var(--muted);
	background:    none;
	border:        none;
	border-bottom: 2px solid transparent;
	cursor:        pointer;
	white-space:   nowrap;
	transition:   
		color 0.2s,
		border-color 0.2s;
}

.nav-btn:hover {
	color: var(--navy);
}

.nav-btn.active {
	color:               var(--navy);
	border-bottom-color: #1a99a6;
	font-weight:         600;
}

/* MAIN */
.main {
	max-width: 960px;
	margin:    0 auto;
	padding:   0 32px 64px;
}

/* SECTIONS */
.section {
	display:     none;
	padding-top: 36px;
}

.section.active {
	display: block;
}

.section-label {
	font-size:      10px;
	font-weight:    600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color:          #1a99a6;
	margin-bottom:  6px;
}

.section-title {
	font-size:     22px;
	font-weight:   600;
	color:         var(--navy);
	margin-bottom: 4px;
}

.section-desc {
	color:         var(--muted);
	font-size:     13px;
	margin-bottom: 28px;
	max-width:     600px;
}

/* STAT CARDS */
.stat-grid {
	display:               grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap:                   12px;
	margin-bottom:         28px;
}

.stat-card {
	background:    white;
	border:        1px solid var(--border);
	border-radius: 10px;
	padding:       16px;
	position:      relative;
	overflow:      hidden;
}

.stat-card::before {
	content:  '';
	position: absolute;
	top:      0;
	left:     0;
	right:    0;
	height:   3px;
}

.stat-card.red::before {
	background: var(--red);
}

.stat-card.orange::before {
	background: var(--orange);
}

.stat-card.teal::before {
	background: #1a99a6;
}

.stat-card.navy::before {
	background: var(--navy);
}

.stat-label {
	font-size:      10px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color:          var(--muted);
	margin-bottom:  6px;
	font-weight:    500;
}

.stat-value {
	font-size:   26px;
	font-weight: 700;
	color:       var(--navy);
	line-height: 1;
	font-family: 'IBM Plex Mono', monospace;
}

.stat-value.red {
	color: var(--red);
}

.stat-value.orange {
	color: var(--orange);
}

.stat-value.teal {
	color: var(--teal);
}

.stat-sub {
	font-size:  10px;
	color:      var(--muted);
	margin-top: 4px;
}

.stat-badge {
	display:       inline-block;
	background:    var(--red-light);
	color:         var(--red);
	font-size:     10px;
	font-weight:   600;
	padding:       2px 7px;
	border-radius: 4px;
	margin-top:    4px;
}

/* SITUATION CARD */
.situation-card {
	background:    white;
	border:        1px solid var(--border);
	border-radius: 12px;
	overflow:      hidden;
	margin-bottom: 20px;
}

.situation-header {
	background:      #1a99a6;
	padding:         14px 20px;
	display:         flex;
	align-items:     center;
	justify-content: space-between;
}

.situation-header h3 {
	color:          white;
	font-size:      13px;
	font-weight:    600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.situation-header .src-tag {
	font-size:   10px;
	color:       rgba(255, 255, 255, 0.5);
	font-family: 'IBM Plex Mono', monospace;
}

.situation-body {
	padding: 20px;
}

.key-dev {
	display:       flex;
	gap:           12px;
	padding:       10px 0;
	border-bottom: 1px solid var(--surface2);
}

.key-dev:last-child {
	border-bottom: none;
}

.key-dev-dot {
	width:         6px;
	height:        6px;
	border-radius: 50%;
	background:    var(--red);
	margin-top:    6px;
	flex-shrink:   0;
}

.key-dev-dot.orange {
	background: var(--orange);
}

.key-dev-dot.teal {
	background: var(--teal);
}

.key-dev p {
	font-size:   13px;
	color:       var(--slate);
	line-height: 1.55;
}

.key-dev p strong {
	color:       var(--navy);
	font-weight: 600;
}

/* HUMANITARIAN SNAPSHOT */
.snapshot-grid {
	display:               grid;
	grid-template-columns: 1fr 1fr;
	gap:                   10px;
	margin-top:            16px;
}

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

.snapshot-item {
	background:    var(--surface);
	border-radius: 8px;
	padding:       12px 14px;
	border-left:   3px solid var(--border);
}

.snapshot-item.food {
	border-left-color: var(--orange);
}

.snapshot-item.shelter {
	border-left-color: var(--teal);
}

.snapshot-item.health {
	border-left-color: var(--red);
}

.snapshot-item.protection {
	border-left-color: #8e44ad;
}

.snapshot-item.wash {
	border-left-color: #2980b9;
}

.snapshot-item.funding {
	border-left-color: #27ae60;
}

.snapshot-sector {
	font-size:      10px;
	font-weight:    700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	margin-bottom:  4px;
	color:          var(--slate);
}

.snapshot-detail {
	font-size: 12px;
	color:     var(--slate);
}

/* PROJECT TABS */
.project-tabs {
	display:       flex;
	gap:           8px;
	flex-wrap:     wrap;
	margin-bottom: 20px;
}

.ptab {
	padding:       7px 14px;
	border:        1px solid var(--border);
	border-radius: 20px;
	background:    white;
	font-size:     12px;
	font-family:   'Sora', sans-serif;
	color:         var(--muted);
	cursor:        pointer;
	transition:    all 0.15s;
}

.ptab:hover {
	border-color: var(--navy);
	color:        var(--navy);
}

.ptab.active {
	background:   var(--navy);
	border-color: var(--navy);
	color:        white;
	font-weight:  500;
}

/* PROJECT TABLE */
.project-table-wrap {
	display: none;
}

.project-table-wrap.active {
	display: block;
}

.funding-summary {
	display:       flex;
	gap:           10px;
	margin-bottom: 16px;
	flex-wrap:     wrap;
}

.fund-chip {
	background:    var(--teal-light);
	color:         var(--teal);
	border:        1px solid rgba(29, 122, 106, 0.2);
	border-radius: 6px;
	padding:       6px 12px;
	font-size:     12px;
	font-weight:   600;
}

.fund-chip span {
	font-weight: 400;
	color:       var(--slate);
}

table.proj-table {
	width:           100%;
	border-collapse: collapse;
	font-size:       12px;
}

table.proj-table th {
	background:     #1a99a6;
	color:          rgba(255, 255, 255, 0.92);
	font-weight:    500;
	font-size:      10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding:        10px 12px;
	text-align:     left;
}

table.proj-table td {
	padding:        10px 12px;
	border-bottom:  1px solid var(--border);
	vertical-align: top;
	color:          var(--slate);
	line-height:    1.45;
}

table.proj-table tr:last-child td {
	border-bottom: none;
}

table.proj-table tr:hover td {
	background: var(--surface);
}

.status-pill {
	display:       inline-block;
	padding:       2px 9px;
	border-radius: 10px;
	font-size:     10px;
	font-weight:   600;
}

.status-pill.confirmed {
	background: #e8f8f0;
	color:      #1d7a6a;
}

.status-pill.tbc {
	background: #fef9ec;
	color:      #e67e22;
}

.status-pill.active {
	background: #e8f0fe;
	color:      #1a6bc0;
}

.donor-name {
	font-weight: 600;
	color:       var(--navy);
}

/* SHELTER */
.shelter-notice {
	background:    var(--orange-light);
	border:        1px solid rgba(230, 126, 34, 0.3);
	border-radius: 10px;
	padding:       16px 20px;
	display:       flex;
	gap:           12px;
	align-items:   flex-start;
	margin-bottom: 20px;
}

.shelter-notice-icon {
	width:           28px;
	height:          28px;
	border-radius:   6px;
	background:      var(--orange);
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       14px;
	flex-shrink:     0;
}

.shelter-notice p {
	font-size: 13px;
	color:     var(--slate);
}

.shelter-notice p strong {
	color: var(--navy);
}

/* SAFEGUARDING */
.commitment-box {
	background:    #1a99a6;
	border-radius: 12px;
	padding:       24px;
	margin-bottom: 20px;
	position:      relative;
	overflow:      hidden;
}

.commitment-box::before {
	content:       '';
	position:      absolute;
	top:           -30px;
	right:         -30px;
	width:         120px;
	height:        120px;
	border-radius: 50%;
	background:    rgba(255, 255, 255, 0.04);
}

.commitment-box h3 {
	color:         white;
	font-size:     16px;
	font-weight:   600;
	margin-bottom: 10px;
}

.commitment-box p {
	color:       rgba(255, 255, 255, 0.65);
	font-size:   13px;
	line-height: 1.65;
	max-width:   640px;
}

.safeguard-grid {
	display:               grid;
	grid-template-columns: 1fr 1fr;
	gap:                   12px;
	margin-bottom:         20px;
}

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

.sg-card {
	background:    white;
	border:        1px solid var(--border);
	border-radius: 10px;
	padding:       16px;
}

.sg-icon {
	font-size:     18px;
	margin-bottom: 8px;
}

.sg-title {
	font-size:      12px;
	font-weight:    600;
	color:          var(--navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom:  6px;
}

.sg-text {
	font-size:   12px;
	color:       var(--slate);
	line-height: 1.5;
}

.cfm-card {
	background:    var(--teal-light);
	border:        1px solid rgba(29, 122, 106, 0.2);
	border-radius: 10px;
	padding:       16px 20px;
	margin-bottom: 12px;
}

.cfm-title {
	font-size:      12px;
	font-weight:    700;
	color:          var(--teal);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom:  10px;
}

.cfm-channels {
	display:   flex;
	gap:       8px;
	flex-wrap: wrap;
}

.cfm-ch {
	background:    white;
	border:        1px solid rgba(29, 122, 106, 0.25);
	border-radius: 6px;
	padding:       5px 12px;
	font-size:     11px;
	color:         var(--teal);
	font-weight:   500;
}

/* INTERNAL WARNING */
.internal-banner {
	background:    var(--internal-bg);
	border:        2px solid var(--internal-border);
	border-radius: 10px;
	padding:       14px 20px;
	margin-bottom: 24px;
	display:       flex;
	align-items:   center;
	gap:           12px;
}

.internal-banner-icon {
	font-size:   18px;
	flex-shrink: 0;
}

.internal-banner-text {
	font-size:   12px;
	color:       #8b6914;
	font-weight: 500;
}

.internal-banner-text strong {
	color: #6b5010;
}

/* EDITABLE LINK FIELDS */
.link-field-wrap {
	display:     flex;
	align-items: center;
	gap:         6px;
}

.link-display {
	display:         inline-flex;
	align-items:     center;
	gap:             5px;
	color:           var(--teal);
	font-size:       11px;
	font-family:     'IBM Plex Mono', monospace;
	background:      var(--teal-light);
	padding:         4px 10px;
	border-radius:   4px;
	cursor:          pointer;
	border:          1px solid rgba(29, 122, 106, 0.2);
	text-decoration: none;
	white-space:     nowrap;
	transition:      background 0.15s;
}

.link-display:hover {
	background: #d0ede7;
}

.link-display.empty {
	color:        var(--muted);
	background:   var(--surface2);
	border-color: var(--border);
	font-style:   italic;
}

.link-display.empty:hover {
	background: var(--border);
}

.link-edit-btn {
	width:           22px;
	height:          22px;
	border-radius:   4px;
	background:      none;
	border:          1px solid var(--border);
	color:           var(--muted);
	font-size:       11px;
	cursor:          pointer;
	display:         none;
	align-items:     center;
	justify-content: center;
	flex-shrink:     0;
	transition:      all 0.15s;
}

.link-edit-btn:hover {
	border-color: var(--navy);
	color:        var(--navy);
}

.link-editor-row {
	display:     none;
	align-items: center;
	gap:         6px;
	margin-top:  6px;
}

.link-editor-row.open {
	display: flex;
}

.link-editor-input {
	flex:          1;
	padding:       6px 10px;
	font-size:     12px;
	font-family:   'IBM Plex Mono', monospace;
	border:        1px solid var(--border);
	border-radius: 6px;
	color:         var(--navy);
	background:    white;
	outline:       none;
	min-width:     0;
}

.link-editor-input:focus {
	border-color: var(--teal);
}

.link-save-btn {
	padding:       5px 12px;
	background:    #1a99a6;
	color:         white;
	border:        none;
	border-radius: 5px;
	font-size:     11px;
	font-family:   'Sora', sans-serif;
	font-weight:   500;
	cursor:        pointer;
	white-space:   nowrap;
}

.link-cancel-btn {
	padding:       5px 10px;
	background:    none;
	color:         var(--muted);
	border:        1px solid var(--border);
	border-radius: 5px;
	font-size:     11px;
	font-family:   'Sora', sans-serif;
	cursor:        pointer;
}

/* DIVIDER */
.divider {
	height:     1px;
	background: var(--border);
	margin:     24px 0;
}

/* SOURCE TAG */
.source-tag {
	display:       inline-block;
	font-size:     10px;
	font-family:   'IBM Plex Mono', monospace;
	color:         var(--muted);
	background:    var(--surface);
	border:        1px solid var(--border);
	border-radius: 4px;
	padding:       3px 8px;
	margin:        4px 4px 4px 0;
}

/* FOOTER */
.footer {
	max-width:       960px;
	margin:          0 auto;
	padding:         20px 32px;
	border-top:      1px solid var(--border);
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	flex-wrap:       wrap;
	gap:             8px;
}

.footer-left {
	font-size: 11px;
	color:     var(--muted);
}

.footer-right {
	font-size:   11px;
	font-family: 'IBM Plex Mono', monospace;
	color:       var(--muted);
}

.nav-btn.internal-nav {
	color:      #a0aec0;
	font-style: italic;
}

.nav-btn.internal-nav:hover {
	color: var(--teal);
}

.nav-btn.internal-nav.unlocked {
	color:      var(--muted);
	font-style: normal;
}

/* INTERNAL DROPDOWN */
.internal-dropdown-wrap {
	position:    relative;
	display:     flex;
	align-items: center;
}

.internal-menu {
	display:       none;
	position:      absolute;
	top:           100%;
	left:          0;
	background:    white;
	border:        1px solid var(--border);
	border-radius: 8px;
	box-shadow:    0 8px 24px rgba(0, 0, 0, 0.12);
	min-width:     200px;
	z-index:       99999;
	overflow:      visible;
	margin-top:    2px;
}

.internal-menu.open {
	display: block;
}

.internal-menu button {
	display:       block;
	width:         100%;
	padding:       11px 16px;
	text-align:    left;
	background:    none;
	border:        none;
	border-bottom: 1px solid var(--border);
	font-family:   'Sora', sans-serif;
	font-size:     12px;
	font-weight:   500;
	color:         var(--navy);
	cursor:        pointer;
	transition:    background 0.12s;
	white-space:   nowrap;
}

.internal-menu button:last-child {
	border-bottom: none;
}

.internal-menu button:hover {
	background: var(--surface);
	color:      var(--teal);
}

.nav-btn.internal-nav.unlocked::before {
	content: '';
}

/* PASSWORD GATE */
.password-gate {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	justify-content: center;
	padding:         64px 24px;
	text-align:      center;
}

.gate-icon {
	width:           56px;
	height:          56px;
	border-radius:   14px;
	background:      var(--internal-bg);
	border:          1px solid var(--internal-border);
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       24px;
	margin-bottom:   20px;
}

.gate-title {
	font-size:     18px;
	font-weight:   600;
	color:         var(--navy);
	margin-bottom: 8px;
}

.gate-desc {
	font-size:     13px;
	color:         var(--muted);
	max-width:     340px;
	margin-bottom: 24px;
	line-height:   1.6;
}

.gate-input-row {
	display:     flex;
	gap:         8px;
	align-items: center;
}

.gate-input {
	padding:       10px 14px;
	border:        1px solid var(--border);
	border-radius: 8px;
	font-family:   'IBM Plex Mono', monospace;
	font-size:     13px;
	color:         var(--navy);
	background:    white;
	width:         220px;
	outline:       none;
	transition:    border-color 0.2s;
}

.gate-input:focus {
	border-color: var(--navy);
}

.gate-input.error {
	border-color: var(--red);
	animation:    shake 0.3s;
}

@keyframes shake {

	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-6px);
	}

	75% {
		transform: translateX(6px);
	}
}

.gate-btn {
	padding:       10px 18px;
	background:    var(--navy);
	color:         white;
	border:        none;
	border-radius: 8px;
	font-family:   'Sora', sans-serif;
	font-size:     13px;
	font-weight:   500;
	cursor:        pointer;
	transition:    background 0.15s;
}

.gate-btn:hover {
	background: var(--navy-mid);
}

.gate-error {
	color:      var(--red);
	font-size:  12px;
	margin-top: 10px;
	display:    none;
}

/* INTERNAL SECTION STYLES */
.internal-badge {
	display:       inline-flex;
	align-items:   center;
	gap:           6px;
	background:    var(--internal-bg);
	border:        1px solid var(--internal-border);
	border-radius: 6px;
	padding:       4px 10px;
	font-size:     11px;
	font-weight:   600;
	color:         #8b6914;
	margin-bottom: 20px;
}

.tracker-table {
	width:           100%;
	border-collapse: collapse;
	font-size:       12px;
}

.tracker-table th {
	background:     var(--surface2);
	color:          var(--slate);
	font-weight:    600;
	font-size:      10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding:        9px 12px;
	text-align:     left;
	border-bottom:  1px solid var(--border);
}

.tracker-table td {
	padding:        10px 12px;
	border-bottom:  1px solid var(--border);
	vertical-align: top;
	color:          var(--slate);
	font-size:      12px;
}

.tracker-table tr:last-child td {
	border-bottom: none;
}

.check-yes {
	color:       #1d7a6a;
	font-weight: 600;
}

.check-pending {
	color:       var(--orange);
	font-weight: 600;
}

.internal-card {
	background:    white;
	border:        1px solid var(--border);
	border-radius: 12px;
	overflow:      hidden;
	margin-bottom: 16px;
	flex:          1 1 max(200px, calc(50% - 14px));
}

.internal-card-header {
	background:      #eaf6f8;
	padding:         12px 18px;
	border-bottom:   1px solid #c5e8ed;
	display:         flex;
	align-items:     center;
	justify-content: space-between;
}

.internal-card-header h4 {
	font-size:      12px;
	font-weight:    600;
	color:          #0d5c63;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.internal-card-body {
	padding: 16px 18px;
}

.annex-row {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	padding:         9px 0;
	border-bottom:   1px solid var(--surface2);
	font-size:       12px;
}

.annex-row:last-child {
	border-bottom: none;
}

.annex-label {
	color:       var(--navy);
	font-weight: 500;
}

.annex-meta {
	color:     var(--muted);
	font-size: 11px;
}

.annex-link {
	color:           var(--teal);
	font-size:       11px;
	text-decoration: none;
	font-family:     'IBM Plex Mono', monospace;
	background:      var(--teal-light);
	padding:         3px 9px;
	border-radius:   4px;
}

.annex-link.pending {
	color:      var(--muted);
	background: var(--surface2);
}

.field-reminder {
	background:    #fff0f0;
	border:        1px solid rgba(192, 57, 43, 0.2);
	border-radius: 8px;
	padding:       12px 16px;
	font-size:     12px;
	color:         var(--slate);
	line-height:   1.6;
}

.field-reminder strong {
	color: var(--red);
}

.red-flag {
	display:       inline-block;
	background:    var(--red-light);
	color:         var(--red);
	font-size:     10px;
	font-weight:   600;
	padding:       2px 7px;
	border-radius: 4px;
	margin-right:  4px;
}

@media print {

	.nav-bar,
	.edit-indicator,
	#password-gate-overlay,
	#edit-gate-overlay,
	.internal-menu {
		display: none !important;
	}

	.section {
		display: block !important;
	}

	.header {
		-webkit-print-color-adjust: exact;
		print-color-adjust:         exact;
	}

	body {
		background: white;
	}

	.stat-card,
	.situation-card,
	.internal-card,
	.sg-card {
		break-inside: avoid;
	}

	.main {
		padding: 0 16px;
	}
}

.m-nav {
	display: none;
}

@media (max-width: 640px) {

	.header-inner,
	.main {
		padding-left:  16px;
		padding-right: 16px;
	}

	.nav-inner {
		padding: 0 16px;
	}

	.nav-btn {
		flex-shrink: 0;
		padding:     12px 14px;
		white-space: nowrap;
	}

	.header-title {
		font-size: 20px;
	}

	/* .nav-bar { display: none; } */

	/* ── BOTTOM NAV ── */
	.m-nav {
		position:       fixed;
		bottom:         0;
		left:           0;
		right:          0;
		background:     white;
		border-top:     1px solid var(--border);
		display:        flex;
		z-index:        100;
		padding-bottom: env(safe-area-inset-bottom);
		box-shadow:     0 -4px 20px rgba(0, 0, 0, 0.08);
	}

	.m-nav-btn {
		flex:            1;
		display:         flex;
		flex-direction:  column;
		align-items:     center;
		justify-content: center;
		padding:         8px 2px;
		gap:             2px;
		background:      none;
		border:          none;
		cursor:          pointer;
		font-family:     'Sora', sans-serif;
		color:           var(--muted);
		font-size:       9px;
		font-weight:     500;
		transition:      color 0.2s;
		position:        relative;
		min-width:       0;
	}

	.m-nav-btn.active {
		color: var(--teal);
	}

	.m-nav-btn .nav-icon {
		font-size:   17px;
		line-height: 1;
	}

	.m-nav-btn .nav-label {
		white-space:   nowrap;
		overflow:      hidden;
		text-overflow: ellipsis;
		max-width:     100%;
	}

	.m-nav-btn.active::after {
		content:       '';
		position:      absolute;
		top:           0;
		left:          20%;
		right:         20%;
		height:        2px;
		background:    var(--teal);
		border-radius: 0 0 2px 2px;
	}

	.m-nav-btn.locked {
		opacity: 0.4;
	}
}

/* EDIT MODE */
.edit-mode-btn {
	padding:       7px 12px;
	background:    none;
	border:        1px solid var(--border);
	border-radius: 6px;
	font-family:   'Sora', sans-serif;
	font-size:     11px;
	font-weight:   600;
	color:         var(--muted);
	cursor:        pointer;
	white-space:   nowrap;
	margin:        auto 8px auto 0;
	transition:    all 0.15s;
	flex-shrink:   0;
}

.edit-mode-btn:hover {
	border-color: var(--orange);
	color:        var(--orange);
}

.edit-mode-btn.active {
	background:   #fff3cd;
	border-color: #f39c12;
	color:        #8b6914;
}

.edit-mode-btn#export-btn {
	background:   var(--green);
	color:        white;
	margin-left:  6px;
	border-color: var(--green-dark);
}

.edit-mode-btn#export-btn:hover {
	border-color:     var(--green);
	background-color: var(--green-dark);
}

.edit-indicator {
	display:       none;
	position:      fixed;
	bottom:        20px;
	right:         20px;
	background:    #e67e22;
	color:         white;
	padding:       8px 16px;
	border-radius: 20px;
	font-size:     11px;
	font-weight:   600;
	font-family:   'Sora', sans-serif;
	z-index:       9998;
	align-items:   center;
	gap:           8px;
	box-shadow:    0 4px 14px rgba(230, 126, 34, 0.35);
}

.edit-indicator.visible {
	display: flex;
}

.edit-pulse {
	width:         7px;
	height:        7px;
	border-radius: 50%;
	background:    white;
	animation:     pulse 1.2s infinite;
	flex-shrink:   0;
}

body.author-unlocked .link-edit-btn {
	display: flex;
}

body.edit-mode [data-editable] {
	outline:       1px dashed rgba(230, 126, 34, 0.45);
	border-radius: 2px;
	cursor:        text;
	transition:   
		outline 0.12s,
		background 0.12s;
}

body.edit-mode [data-editable]:hover {
	outline:    1.5px dashed #e67e22;
	background: rgba(230, 126, 34, 0.04);
}

body.edit-mode [data-editable]:focus {
	outline:       2px solid #e67e22 !important;
	background:    rgba(255, 248, 225, 0.7);
	border-radius: 3px;
}

body.edit-mode [data-editable]:has([data-editable]) {
	outline-color:  orangered !important;
	outline-offset: 5px;
	transition:     all 0.12s !important;
}

body.edit-mode [data-editable]:has([data-editable]):hover {
	outline-offset: 10px;
}

body.edit-mode [data-editable]:has([data-editable]):focus {
	outline-offset: 10px;
}