/* AMMG Staff Portal — standalone app UI. */
:root {
	--g: #004E24;
	--g-800: #003A1B;
	--g-900: #00240F;
	--g-50: #EEF5F0;
	--g-100: #DCEBE0;
	--lime: #C6F36B;
	--ink: #10201A;
	--ink-2: #33433B;
	--muted: #66756D;
	--line: #E3E7E4;
	--bg: #F5F4EF;
	--card: #FFFFFF;
	--danger: #B42318;
	--r: 14px;
	--side: 260px;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Fraunces", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body.portal { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.portal a { color: var(--g); }
.portal img { max-width: 100%; height: auto; display: block; }
.portal h1, .portal h2, .portal h3 { margin: 0; line-height: 1.2; }
.portal :focus-visible { outline: 3px solid #B4E853; outline-offset: 2px; border-radius: 6px; }
.portal .dashicons { width: 20px; height: 20px; font-size: 20px; line-height: 1; flex: none; }

/* Layout */
.p-app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.p-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--g-900); color: #CFE0D5; padding: 20px 14px; overflow-y: auto; }
.p-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; text-decoration: none; color: #fff !important; }
.p-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.p-brand strong { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.p-brand small { font-size: 10.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--lime); margin-top: 3px; }
.p-brand--dark { color: var(--g) !important; }
.p-brand--dark small { color: #137A41; }
.p-nav { display: grid; gap: 2px; }
.p-nav__label { margin: 18px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7FA08B; }
.p-nav__item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #D5E5DA !important; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s; }
.p-nav__item .dashicons { color: #8FB39B; }
.p-nav__item:hover { background: rgba(255, 255, 255, .06); }
.p-nav__item.is-active { background: var(--g); color: #fff !important; }
.p-nav__item.is-active .dashicons { color: var(--lime); }
.p-badge { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--lime); color: var(--g-900); border-radius: 999px; padding: 1px 8px; }
.p-side__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }

.p-main { min-width: 0; display: flex; flex-direction: column; }
.p-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(245, 244, 239, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.p-title { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-top__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.p-top .p-menu { display: none; }
.p-body { padding: 28px 32px 60px; max-width: 1320px; width: 100%; }

.p-user { position: relative; }
.p-user summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; }
.p-user summary::-webkit-details-marker { display: none; }
.p-user summary:hover { background: #fff; }
.p-user__name { display: flex; flex-direction: column; font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.p-user__name small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.p-user__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 36, 15, .35); padding: 6px; display: grid; }
.p-user__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.p-user__menu a:hover { background: var(--g-50); }
.p-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--g); color: var(--lime); font-weight: 800; font-family: var(--serif); flex: none; }
.p-scrim { position: fixed; inset: 0; background: rgba(0, 36, 15, .45); z-index: 40; }

/* Buttons */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--g); background: var(--g); color: #fff !important; font: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.p-btn:hover { background: var(--g-800); border-color: var(--g-800); }
.p-btn--ghost { background: #fff; color: var(--g) !important; border-color: var(--line); }
.p-btn--ghost:hover { background: var(--g-50); border-color: var(--g-100); }
.p-btn--light { background: #fff; border-color: #fff; color: var(--g) !important; }
.p-btn--light:hover { background: var(--lime); border-color: var(--lime); }
.p-btn--text { background: transparent; border-color: transparent; color: var(--g) !important; padding-inline: 8px; }
.p-btn--text:hover { background: var(--g-50); border-color: transparent; }
.p-btn--danger-text { background: transparent; border-color: transparent; color: var(--danger) !important; }
.p-btn--danger-text:hover { background: #FEF3F2; border-color: transparent; }
.p-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.p-btn--lg { min-height: 50px; font-size: 15.5px; }
.p-btn--block { width: 100%; }
.p-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted) !important; cursor: pointer; text-decoration: none; }
.p-iconbtn:hover { background: var(--g-50); color: var(--g) !important; }
.p-iconbtn--danger:hover { background: #FEF3F2; color: var(--danger) !important; }

/* Forms */
.p-input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.p-input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px rgba(0, 78, 36, .1); }
.p-input--lg { padding: 13px 15px; font-size: 16px; }
.p-input--sm { padding: 6px 10px; font-size: 13.5px; }
.p-input--auto { width: auto; }
.p-input--sub { margin-top: 8px; }
.p-input:disabled { background: #F6F7F6; color: var(--muted); }
textarea.p-input { resize: vertical; }
.p-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-field > label { font-weight: 700; font-size: 13.5px; }
.p-help { margin: 0; font-size: 12.5px; color: var(--muted); }
.p-check { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; }
.p-check input { width: 18px; height: 18px; accent-color: var(--g); margin: 2px 0 0; }
.p-stack { display: grid; gap: 16px; }
.p-row { display: flex; gap: 12px; align-items: center; }
.p-row > .p-field { flex: 1; }
.p-row--between { justify-content: space-between; }
.p-inline { display: inline; margin: 0; }
.p-center { text-align: center; }
.p-muted { color: var(--muted); }
.p-nowrap { white-space: nowrap; }
.p-strong { font-weight: 700; color: var(--ink) !important; text-decoration: none; }
.p-strong:hover { color: var(--g) !important; }
.p-plain { color: var(--ink-2) !important; text-decoration: none; }
.p-sub { display: block; color: var(--muted); font-size: 12.5px; }
.p-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--g-50); color: var(--ink-2); font-size: 13.5px; }
.p-note .dashicons { color: var(--g); }

/* Flash */
.p-flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 20px; border: 1px solid; }
.p-flash--ok { background: var(--g-50); border-color: var(--g-100); color: var(--g); }
.p-flash--err { background: #FEF3F2; border-color: #FECDCA; color: var(--danger); }

/* Cards & grids */
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 1px 2px rgba(0, 36, 15, .04); }
.p-card--flush { padding: 0; overflow: hidden; }
.p-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.p-card__head h2 { font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-card__head a { font-weight: 700; font-size: 13.5px; text-decoration: none; }
.p-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.p-grid--users { grid-template-columns: 1.5fr 1fr; }
.p-sticky { position: sticky; top: 90px; }
.p-h3 { font-size: 14px; margin: 22px 0 10px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Dashboard */
.p-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 30px; border-radius: 18px; color: #fff; margin-bottom: 20px; background: radial-gradient(120% 160% at 100% 0%, #0B6B36 0%, var(--g) 45%, var(--g-900) 100%); }
.p-hero h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 4px 0 6px; }
.p-hero p { margin: 0; color: #CFE3D6; }
.p-eyebrow { font-size: 11.5px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime) !important; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.p-stat { display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink) !important; transition: border-color .15s, transform .15s; }
.p-stat:hover { border-color: var(--g); transform: translateY(-2px); }
.p-stat .dashicons { width: 38px; height: 38px; line-height: 38px; text-align: center; border-radius: 10px; background: var(--g-50); color: var(--g); }
.p-stat strong { font-size: 30px; font-family: var(--serif); font-weight: 500; margin-top: 8px; line-height: 1.1; }
.p-stat span:last-child { color: var(--muted); font-size: 13px; }
.p-feed { list-style: none; margin: 0; padding: 0; }
.p-feed a { display: grid; grid-template-columns: 1fr auto auto 70px; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
.p-feed a:hover { background: #FAFBFA; }
.p-feed__who { display: flex; flex-direction: column; min-width: 0; }
.p-feed__who small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-feed time { color: var(--muted); font-size: 12.5px; text-align: right; }
.p-feed .is-new strong::before, .p-table tr.is-new .p-strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0B7A3B; margin-right: 7px; vertical-align: middle; }
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-actions a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink) !important; font-weight: 700; font-size: 13.5px; }
.p-actions a:hover { border-color: var(--g); background: var(--g-50); }
.p-actions .dashicons { color: var(--g); }
.p-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.p-counts a { text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.p-counts strong { font-family: var(--serif); font-size: 20px; color: var(--g); margin-right: 8px; }
.p-counts small { color: var(--muted); margin-left: 6px; }
.p-checklist { list-style: none; margin: 0; padding: 0; }
.p-checklist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.p-checklist .is-ok .dashicons { color: #0B7A3B; }
.p-checklist .is-todo .dashicons { color: #DC6803; }

/* Tags & statuses */
.p-tag, .p-status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F0F2F1; color: #3B4A43; white-space: nowrap; }
.p-tag--contact { background: #E6F0FF; color: #1849A9; }
.p-tag--appointment { background: var(--g-50); color: var(--g); }
.p-tag--career { background: #FFF4E5; color: #93370D; }
.p-tag--newsletter { background: #F4EBFF; color: #6941C6; }
.p-status--new { background: var(--lime); color: var(--g-900); }
.p-status--in_progress { background: #FEF0C7; color: #93370D; }
.p-status--replied { background: var(--g-50); color: var(--g); }
.p-status--spam { background: #FEE4E2; color: var(--danger); }

/* Tabs, toolbar, tables */
.p-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.p-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted) !important; font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p-tabs a em { font-style: normal; font-size: 12px; background: #ECEFED; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.p-tabs a.is-active { color: var(--g) !important; border-bottom-color: var(--g); }
.p-tabs a.is-active em { background: var(--g); color: #fff; }
.p-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.p-search { position: relative; flex: 1; min-width: 220px; max-width: 460px; }
.p-search .dashicons { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.p-search .p-input { padding-left: 40px; }
.p-bulk { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #FAFBFA; flex-wrap: wrap; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #FAFBFA; }
.p-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table tbody tr:hover { background: #FAFBFA; }
.p-table__cb { width: 40px; padding-right: 0 !important; }
.p-table__cb input { width: 17px; height: 17px; accent-color: var(--g); }
.p-table__actions { text-align: right; white-space: nowrap; width: 1%; }
.p-titlecell { display: flex; align-items: center; gap: 12px; }
.p-titlecell > span:last-child { min-width: 0; }
.p-thumb { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--g-50); color: var(--g); flex: none; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-pages { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.p-pages a { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink) !important; }
.p-pages a.is-active { background: var(--g); border-color: var(--g); color: #fff !important; }
.p-empty { text-align: center; padding: 56px 20px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.p-empty .dashicons { width: 40px; height: 40px; font-size: 40px; color: var(--g); }
.p-empty h2 { color: var(--ink); font-size: 18px; }

/* Submission detail */
.p-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.p-detail aside { display: grid; gap: 10px; }
.p-dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
.p-dl dt { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.p-dl dd { margin: 0; overflow-wrap: anywhere; }
.p-message { background: #F7F9F8; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; line-height: 1.65; }

/* Edit screen */
.p-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.p-edit__main { display: grid; gap: 20px; }
.p-edit__side .p-card { display: grid; gap: 18px; }
.p-image { display: grid; gap: 10px; }
.p-image__preview { display: grid; place-items: center; min-height: 140px; border: 1.5px dashed var(--line); border-radius: 12px; background: #FAFBFA; color: var(--muted); font-size: 13px; overflow: hidden; }
.p-image__preview img { width: 100%; max-height: 220px; object-fit: cover; }
.p-image__actions { display: flex; gap: 6px; }
.p-delete { margin-top: 14px; }
.p-edit .wp-editor-wrap { border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); }
.p-edit .wp-editor-container { border: 0 !important; }
.p-edit .wp-editor-tools { background: #FAFBFA; padding: 8px 8px 0; }
.p-edit .wp-switch-editor { border-radius: 8px 8px 0 0; font-family: var(--sans); }
.p-edit .wp-media-buttons .button { border-radius: 8px; font-family: var(--sans); border-color: var(--line); color: var(--g); }
.p-edit .mce-container, .p-edit .quicktags-toolbar { font-family: var(--sans); }
.p-edit textarea.wp-editor-area { border: 0; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }

/* Settings & account */
.p-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.p-formgrid .is-wide { grid-column: 1 / -1; }
.p-formgrid__heading { grid-column: 1 / -1; font-size: 12px !important; text-transform: uppercase; letter-spacing: .12em; color: var(--g); padding-top: 12px; border-top: 1px solid var(--line); }
.p-formgrid__heading:first-child { padding-top: 0; border-top: 0; }
.p-formfoot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.p-account { max-width: 760px; }
.p-roles { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; }
.p-roles dt { font-weight: 800; margin-top: 8px; }
.p-roles dd { margin: 0; color: var(--muted); }

/* Media */
.p-upload { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.p-drop { flex: 1; position: relative; display: grid; justify-items: center; gap: 4px; padding: 24px; border: 2px dashed var(--g-100); border-radius: 14px; background: #FAFCFA; text-align: center; cursor: pointer; color: var(--muted); }
.p-drop:hover, .p-drop.is-over { border-color: var(--g); background: var(--g-50); }
.p-drop .dashicons { width: 32px; height: 32px; font-size: 32px; color: var(--g); }
.p-drop strong { color: var(--ink); }
.p-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.p-media { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.p-media li { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.p-media__thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--g-50); color: var(--g); }
.p-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-media__thumb .dashicons { width: 44px; height: 44px; font-size: 44px; }
.p-media__meta { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.p-media__meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-media__btns { display: flex; flex: none; }
.p-media__btns form { margin: 0; }

/* Auth */
.portal--auth { background: #fff; }
.p-auth { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; min-height: 100vh; }
.p-auth__panel { display: flex; flex-direction: column; padding: 36px clamp(24px, 5vw, 64px); }
.p-auth__form { margin: auto 0; padding: 40px 0; width: 100%; max-width: 400px; }
.p-auth__form h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -.02em; margin-bottom: 8px; }
.p-auth__form .p-muted { margin: 0 0 22px; }
.p-auth__foot { color: var(--muted); font-size: 12.5px; margin: 0; }
.p-auth__art { position: relative; overflow: hidden; background: var(--g); margin: 14px; border-radius: 28px; }
.p-auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.p-auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 36, 15, 0) 40%, rgba(0, 36, 15, .85)); }
.p-auth__quote { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 1; color: #fff; }
.p-auth__quote p { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; }
.p-auth__quote span { color: var(--lime); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* WordPress media modal sits above the portal */
.media-modal { z-index: 160000 !important; }
.media-modal-backdrop { z-index: 159900 !important; }

/* Responsive */
@media (max-width: 1100px) {
	.p-stats { grid-template-columns: repeat(2, 1fr); }
	.p-grid, .p-grid--users, .p-detail, .p-edit { grid-template-columns: minmax(0, 1fr); }
	.p-sticky { position: static; }
}
@media (max-width: 860px) {
	.p-app { grid-template-columns: minmax(0, 1fr); }
	.p-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; }
	.p-side.is-open { transform: none; }
	.p-top .p-menu { display: inline-grid; }
	.p-top { padding: 12px 16px; }
	.p-body { padding: 20px 16px 48px; }
	.p-user__name { display: none; }
	.p-auth { grid-template-columns: 1fr; }
	.p-auth__art { display: none; }
	.p-formgrid { grid-template-columns: 1fr; }
	.p-table thead { display: none; }
	.p-table, .p-table tbody, .p-table tr, .p-table td { display: block; width: 100%; }
	.p-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
	.p-table td { border: 0; padding: 4px 0; }
	.p-table__cb { float: left; width: 30px !important; }
	.p-table__actions { text-align: left; }
	.p-feed a { grid-template-columns: 1fr auto; }
	.p-feed .p-status, .p-feed time { display: none; }
	.p-dl { grid-template-columns: 1fr; gap: 2px; }
	.p-dl dd { margin-bottom: 10px; }
	.p-upload { flex-direction: column; align-items: stretch; }
	.p-top__actions .p-btn span:not(.dashicons) { display: none; }
}
@media (max-width: 520px) {
	.p-stats { grid-template-columns: 1fr 1fr; }
	.p-actions, .p-counts { grid-template-columns: 1fr; }
	.p-hero { flex-direction: column; align-items: flex-start; }
}

/* Inbox reply */
.p-reply { display: grid; gap: 14px; margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.p-reply__to { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.p-reply__to span { color: var(--muted); font-weight: 700; font-size: 13px; }
.p-reply__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-reply-alt { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.p-reply-alt a { font-weight: 600; }
.p-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--g); cursor: pointer; text-decoration: underline; }
.p-testmail { margin-top: 20px; }
.p-testmail .p-row .p-input { max-width: 360px; }

/* Installable app */
[hidden] { display: none !important; }
.install-btn { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 18px 12px 14px; border-radius: 16px; border: 1px solid rgba(198, 243, 107, .35); background: rgba(198, 243, 107, .1); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.install-btn:hover { background: rgba(198, 243, 107, .2); border-color: var(--lime, #C6F36B); }
.install-btn .icon { color: var(--lime, #C6F36B); }
.install-btn span { display: flex; flex-direction: column; line-height: 1.3; }
.install-btn small { color: #B9D2C2; font-size: 12.5px; }
.install-tip { position: fixed; z-index: 400; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); background: #fff; color: #0F1C15; border: 1px solid #E2DDD0; border-radius: 18px; padding: 20px 22px; box-shadow: 0 30px 60px -24px rgba(0, 36, 15, .45); font-size: 14.5px; line-height: 1.6; }
.install-tip strong { display: block; font-size: 16px; margin-bottom: 6px; }
.install-tip p { margin: 0; color: #2A3A31; }
.install-tip__close { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #EEF5F0; color: #004E24; font-size: 20px; line-height: 1; cursor: pointer; }
.p-install { width: 100%; border: 0; background: rgba(198, 243, 107, .12); font: inherit; text-align: left; cursor: pointer; margin-bottom: 4px; }
.p-install .dashicons { color: var(--lime) !important; }

/* Homepage editor */
.p-intro { margin: -6px 0 18px; max-width: 760px; }
.p-home { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.p-home__nav { position: sticky; top: 86px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; }
.p-home__nav a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2) !important; font-weight: 600; font-size: 14px; }
.p-home__nav a:hover { background: #fff; }
.p-home__nav a em { font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-home__nav a.is-off { color: var(--muted) !important; text-decoration: line-through; opacity: .7; }
.p-home__sections { display: grid; gap: 18px; padding-bottom: 90px; }
.p-home__card { scroll-margin-top: 90px; transition: opacity .2s; }
.p-home__card.is-off .p-formgrid { opacity: .45; }
.p-home__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.p-home__head h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.p-home__head h2 em { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 800; color: var(--g); background: var(--g-50); border-radius: 999px; padding: 3px 9px; vertical-align: middle; margin-right: 6px; }
.p-formgrid__sub { grid-column: 1 / -1; margin: 10px 0 -4px; font-size: 13px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.p-formgrid__sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.p-formgrid .p-note { grid-column: 1 / -1; }
.p-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.p-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-switch__track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #CBD3CE; transition: background .2s; flex: none; }
.p-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.p-switch input:checked + .p-switch__track { background: var(--g); }
.p-switch input:checked + .p-switch__track::after { transform: translateX(18px); }
.p-switch input:focus-visible + .p-switch__track { outline: 3px solid #B4E853; outline-offset: 2px; }
.p-savebar { position: fixed; right: 24px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 20px 40px -18px rgba(0, 36, 15, .4); }
@media (max-width: 1100px) {
	.p-home { grid-template-columns: minmax(0, 1fr); }
	.p-home__nav { position: static; display: flex; flex-wrap: wrap; max-height: none; }
	.p-home__nav a { background: #fff; border: 1px solid var(--line); }
}
@media (max-width: 860px) {
	.p-savebar { left: 16px; right: 16px; justify-content: space-between; }
	.p-savebar .p-muted { display: none; }
}
.p-image__preview { position: relative; }
.p-image__preview img { max-height: 240px; }
.p-image__badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 36, 15, .75); color: #fff; font-size: 11.5px; font-weight: 700; }

/* Page sections list */
.p-pagecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.p-pagecard { display: grid; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink) !important; transition: border-color .15s, transform .15s; }
.p-pagecard:hover { border-color: var(--g); transform: translateY(-2px); }
.p-pagecard__icon .dashicons { width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 10px; background: var(--g-50); color: var(--g); margin-bottom: 10px; }
.p-pagecard strong { font-size: 15.5px; }
.p-pagecard small { color: var(--muted); }
.p-pagecard--home { background: var(--g); border-color: var(--g); color: #fff !important; }
.p-pagecard--home small { color: #CFE0D5; }
.p-pagecard--home .p-pagecard__icon .dashicons { background: rgba(255,255,255,.12); color: var(--lime); }

/* SEO */
.p-seo { display: grid; gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.p-seo__title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.p-seo__title .dashicons { color: var(--g); }
.p-serp { display: grid; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-family: Arial, sans-serif; }
.p-serp__url { color: #202124; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-serp__title { color: #1a0dab; font-size: 19px; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-serp__desc { color: #4d5156; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-count { float: right; font-weight: 600; font-size: 12px; color: var(--muted); }
.p-count.is-over, .p-warn { color: #B54708 !important; font-weight: 700; }
.p-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.p-seo-desc { max-width: 420px; font-size: 13.5px; }

/* Providers roster on the Providers page editor */
.p-roster { margin-bottom: 22px; }
.p-roster__list { list-style: none; margin: 14px 0 0; padding: 0; }
.p-roster__list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.p-roster__photo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--g-50); color: var(--g); font-weight: 800; }
.p-roster__photo img { width: 100%; height: 100%; object-fit: cover; }
.p-roster__who { flex: 1; min-width: 0; }
.p-roster__who strong { display: block; }
.p-roster__who small { display: block; color: var(--muted); font-size: 12.5px; }
.p-roster__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.p-tag--off { background: #FEF3F2; color: #B42318; }
@media (max-width: 640px) {
	.p-roster__list li { flex-wrap: wrap; }
	.p-roster__tags { order: 3; width: 100%; justify-content: flex-start; padding-left: 58px; }
}
.p-auth__install { margin-top: 14px; }
