:root {
  --navy: #0c1a30;
  --navy-2: #172d4c;
  --gold: #d9a53c;
  --cream: #f7f0e4;
  --paper: #fffdf9;
  --text: #1e2b42;
  --muted: #737d8d;
  --line: rgba(20, 38, 68, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(500px, 1.1fr); }
.login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 46px clamp(38px, 6vw, 88px); color: #fff; background: radial-gradient(circle at 75% 20%, rgba(218, 166, 61, .19), transparent 31%), linear-gradient(150deg, #172d4c, #081528 72%); }
.login-story::after { content: "✦"; position: absolute; right: -65px; bottom: 50px; color: rgba(255,255,255,.035); font-size: 360px; line-height: 1; }
.admin-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; width: max-content; }
.admin-brand > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: var(--navy); background: linear-gradient(145deg, #f1c768, var(--gold)); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.admin-brand div { display: grid; gap: 4px; }
.admin-brand strong { font-size: 15px; }
.admin-brand small { color: #9fabc0; font-size: 10px; }
.story-copy { position: relative; z-index: 2; max-width: 610px; margin: 90px 0; }
.eyebrow { color: #e8bd5b; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.story-copy h1 { margin: 21px 0; font-family: var(--serif); font-size: clamp(47px, 5vw, 72px); line-height: 1.01; letter-spacing: -.045em; }
.story-copy h1 em { color: #edc46a; font-weight: 400; }
.story-copy > p { max-width: 565px; margin: 0; color: #aeb9ca; font-size: 16px; line-height: 1.75; }
.story-points { display: flex; flex-wrap: wrap; gap: 11px 21px; margin-top: 33px; color: #d5ddeb; font-size: 11px; font-weight: 700; }
.story-points span { display: flex; align-items: center; gap: 7px; }
.story-points i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #10213a; background: #dcb04f; font-size: 9px; font-style: normal; }
.story-quote { position: relative; z-index: 2; padding-left: 22px; border-left: 2px solid rgba(224, 178, 75, .65); }
.story-quote > span { position: absolute; top: -22px; left: 15px; color: rgba(232, 190, 94, .3); font-family: var(--serif); font-size: 57px; }
.story-quote p { margin: 0 0 7px; color: #d4dce9; font-family: var(--serif); font-size: 15px; }
.story-quote small { color: #74839a; font-size: 9px; }
.login-panel { display: grid; place-items: center; padding: 50px; background: radial-gradient(circle at 90% 12%, rgba(229, 184, 80, .15), transparent 25%), var(--cream); }
.login-box { width: min(100%, 475px); }
.back-link { display: inline-flex; margin-bottom: 54px; color: #758092; font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--text); }
.login-heading { margin-bottom: 31px; }
.login-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #e3c988; border-radius: 17px; color: #926a1b; background: #f6e7bf; font-size: 24px; }
.login-heading h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 44px; letter-spacing: -.035em; }
.login-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #e6ce8e; border-radius: 13px; color: #745615; background: #fff4d8; font-size: 11px; line-height: 1.55; }
.login-notice.error { border-color: rgba(185, 28, 28, .2); color: #8f1d1d; background: #fff0f0; }
.field { display: grid; gap: 9px; margin-bottom: 19px; }
.field > span:first-child { color: #465269; font-size: 11px; font-weight: 800; }
.input-wrap { min-height: 55px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.85); transition: border-color .2s ease, box-shadow .2s ease; }
.input-wrap:focus-within { border-color: #c99a38; box-shadow: 0 0 0 4px rgba(207, 159, 59, .11); }
.input-wrap i { color: #9c7b37; font-style: normal; font-weight: 900; }
.input-wrap input { min-width: 0; height: 51px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.input-wrap input::placeholder { color: #a1a7b0; }
.input-wrap button { padding: 7px 0 7px 10px; border: 0; color: #8a6a27; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.form-options { display: flex; justify-content: space-between; gap: 20px; margin: 3px 0 23px; color: #7c8491; font-size: 10px; }
.form-options label { display: flex; align-items: center; gap: 7px; }
.form-options input { accent-color: #be8d2a; }
.form-options > span { color: #9b771e; font-weight: 800; }
.login-submit { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 15px; color: #fff; background: var(--navy); box-shadow: 0 15px 30px rgba(13, 27, 50, .2); font-size: 13px; font-weight: 900; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(13, 27, 50, .27); }
.login-submit span { color: #efc568; font-size: 18px; }
.public-reader-note { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 11px; margin-top: 33px; padding-top: 26px; border-top: 1px solid var(--line); }
.public-reader-note > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #1d8a4b; background: #dff2e6; font-size: 10px; }
.public-reader-note div { display: grid; gap: 4px; }
.public-reader-note strong { font-size: 11px; }
.public-reader-note p { margin: 0; color: #8b929d; font-size: 9px; }
.public-reader-note a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); font-size: 9px; font-weight: 900; }
.dashboard-page { min-height: 100vh; background: linear-gradient(120deg, #f7f0e4 0%, #fbf7ef 52%, #f0e4cf 100%); }
.dashboard-page > .dashboard-placeholder { margin: min(12vh, 80px) auto; }
.dashboard-placeholder { width: min(600px, 100%); padding: 55px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 28px 70px rgba(18, 32, 56, .12); text-align: center; }
.dashboard-placeholder .login-icon { margin-inline: auto; }
.dashboard-placeholder h1 { font-family: var(--serif); font-size: 40px; }
.dashboard-placeholder p { color: var(--muted); }
.dashboard-placeholder div { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.dashboard-placeholder a { padding: 12px 17px; border-radius: 12px; color: #fff; background: var(--navy); font-size: 11px; font-weight: 800; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 290px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px; color: #d9e3f4; background: linear-gradient(180deg, #142847, #071222); box-shadow: 16px 0 44px rgba(8, 18, 34, .13); }
.admin-brand.compact { width: 100%; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand.compact small { color: #8fa0ba; }
.admin-nav { display: grid; gap: 8px; margin-top: 28px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid transparent; border-radius: 15px; color: #adbad0; font-size: 12px; font-weight: 800; transition: background .2s ease, color .2s ease, transform .2s ease; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08); transform: translateX(2px); }
.admin-nav span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 11px; color: #12213a; background: #d8a33c; }
.admin-sidebar-note { margin-top: auto; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.05); }
.admin-sidebar-note strong { font-size: 12px; }
.admin-sidebar-note p { margin: 8px 0 0; color: #9ba9bf; font-size: 10px; line-height: 1.6; }
.admin-sidebar-note code, .admin-status-grid code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.admin-content { padding: clamp(28px, 5vw, 58px); }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 28px; }
.admin-topbar h1 { margin: 10px 0 10px; color: #31291f; font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); line-height: .98; letter-spacing: -.04em; }
.admin-topbar p { margin: 0; color: #7d7165; font-size: 13px; line-height: 1.7; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-actions a { padding: 12px 15px; border: 1px solid rgba(37, 48, 67, .1); border-radius: 13px; color: #253043; background: rgba(255,255,255,.66); font-size: 11px; font-weight: 900; box-shadow: 0 12px 28px rgba(49, 41, 31, .06); }
.admin-actions a.danger { color: #fff; background: #142847; }
.admin-flash { margin: -8px 0 24px; padding: 15px 18px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 16px; background: rgba(255,253,249,.82); box-shadow: 0 16px 34px rgba(49, 41, 31, .06); font-size: 12px; font-weight: 800; }
.admin-flash.info { border-color: rgba(34, 197, 94, .2); color: #14532d; background: #eefcf4; }
.admin-flash.success { border-color: rgba(22, 163, 74, .18); color: #166534; background: #edfdf3; }
.admin-flash.error { border-color: rgba(220, 38, 38, .18); color: #991b1b; background: #fff1f1; }
.admin-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; }
.admin-status-grid article { padding: 22px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 22px; background: rgba(255,253,249,.72); box-shadow: 0 18px 40px rgba(49, 41, 31, .07); }
.admin-status-grid span { display: block; color: #99866c; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-status-grid strong { display: block; margin-top: 10px; color: #30281f; font-size: 24px; letter-spacing: -.035em; }
.admin-status-grid small { display: block; margin-top: 5px; color: #8f8378; font-size: 10px; }
.module-section { padding: 28px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 30px; background: rgba(255,253,249,.68); box-shadow: 0 28px 70px rgba(49, 41, 31, .08); }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 7px 0 0; color: #322a22; font-family: var(--serif); font-size: 35px; letter-spacing: -.035em; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module-card { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 22px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 24px; background: #fffdf9; box-shadow: 0 16px 34px rgba(49, 41, 31, .06); }
.module-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--module-accent, var(--gold)); }
.module-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: var(--module-accent, var(--gold)); font-size: 20px; box-shadow: 0 12px 28px rgba(20, 38, 68, .16); }
.module-card h3 { margin: 0 0 8px; color: #30281f; font-size: 18px; letter-spacing: -.02em; }
.module-card p { margin: 0; color: #7e7469; font-size: 12px; line-height: 1.65; }
.permission-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.permission-list li { padding: 7px 9px; border-radius: 999px; color: #9a8d7c; background: #f2eadc; font-size: 9px; font-weight: 900; }
.permission-list li.allowed { color: #14532d; background: #dcfce7; }
.module-card > a { justify-self: start; padding: 11px 13px; border-radius: 12px; color: #fff; background: #142847; font-size: 10px; font-weight: 900; }
.module-card > a span { color: #efc568; }
.module-card.empty { grid-column: 1 / -1; }
.crud-grid { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.45fr); gap: 18px; align-items: start; }
.messages-crud-grid { gap: clamp(34px, 3.2vw, 58px); grid-template-columns: minmax(360px, .82fr) minmax(0, 1.55fr); }
.validation-crud-grid { grid-template-columns: 1fr; }
.validation-crud-grid .admin-panel.wide { width: 100%; }
.crud-grid.roles-grid { grid-template-columns: minmax(280px, .55fr) minmax(0, 1.45fr); }
.admin-panel { padding: 25px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 28px; background: rgba(255,253,249,.74); box-shadow: 0 24px 58px rgba(49, 41, 31, .08); }
.admin-panel + .admin-panel { margin-top: 20px; }
.admin-panel.wide { min-width: 0; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading.compact h2 { font-size: 28px; }
.admin-form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .search-form input, .filter-form input, .filter-form select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid rgba(67, 55, 41, .14); border-radius: 13px; outline: 0; color: #2f281f; background: rgba(255,253,249,.92); box-shadow: inset 0 1px 0 rgba(255,255,255,.65); font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 108px !important; }
.password-visibility-toggle { position: absolute; top: 50%; right: 8px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(196, 142, 31, .18); border-radius: 10px; color: #7a5613; background: rgba(218, 165, 45, .13); font-size: 10px; font-weight: 950; cursor: pointer; transform: translateY(-50%); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.password-visibility-toggle:hover { color: #4a330b; background: rgba(218, 165, 45, .22); box-shadow: 0 8px 18px rgba(88, 60, 14, .08); }
.password-visibility-toggle:focus-visible { outline: 3px solid rgba(212, 163, 62, .28); outline-offset: 2px; }
.field textarea { min-height: 120px; padding-top: 12px; resize: vertical; }
.field input[readonly] { color: #85796c; background: #f4ecde; cursor: not-allowed; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus, .filter-form input:focus, .filter-form select:focus { border-color: #d4a33e; box-shadow: 0 0 0 4px rgba(212, 163, 62, .11); }
.switch-line { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 13px 14px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 14px; background: rgba(255,253,249,.72); color: #4c4034; font-size: 12px; font-weight: 850; }
.switch-line input, .checkbox-grid input { accent-color: #142847; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.checkbox-grid label { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 13px; background: rgba(255,253,249,.7); color: #4b4035; font-size: 11px; font-weight: 800; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.form-help { margin: -8px 0 0; color: #6d5f51; font-size: 12px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 13px; color: #293344; background: rgba(255,255,255,.72); box-shadow: 0 12px 28px rgba(49, 41, 31, .06); font-size: 11px; font-weight: 950; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(49, 41, 31, .1); }
.button.primary { color: #fff; background: #142847; }
.button.ghost { border-color: rgba(67, 55, 41, .12); background: rgba(255,253,249,.82); }
.button.danger, .button.mini.danger { color: #fff; background: #b91c1c; }
.button.mini { min-height: 33px; padding: 0 10px; border-radius: 10px; font-size: 9px; }
.button.full { width: 100%; margin-top: 16px; }
.panel-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; align-items: center; min-width: min(420px, 100%); }
.table-wrap { overflow: auto; border: 1px solid rgba(67, 55, 41, .08); border-radius: 20px; background: rgba(255,253,249,.76); }
.crud-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.crud-table th { position: sticky; top: 0; z-index: 1; padding: 14px 15px; color: #776754; background: #f4ead9; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.crud-table td { padding: 15px; border-top: 1px solid rgba(67, 55, 41, .08); color: #443a31; font-size: 12px; vertical-align: top; }
.crud-table td > strong { display: block; color: #2f281f; font-size: 13px; }
.crud-table td small { display: block; margin-top: 5px; color: #8d8071; font-size: 10px; line-height: 1.45; }
.crud-table tbody tr:hover { background: rgba(252, 246, 235, .75); }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.row-actions form { margin: 0; }
.empty-cell { padding: 26px !important; color: #928678 !important; text-align: center; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; margin: 2px 4px 2px 0; padding: 0 10px; border-radius: 999px; font-size: 9px; font-weight: 950; white-space: nowrap; }
.status-badge.good { color: #14532d; background: #dcfce7; }
.status-badge.warn { color: #6e4b00; background: #fbe7a8; }
.status-badge.danger { color: #991b1b; background: #fee2e2; }
.status-badge.muted { color: #6f6358; background: #f1e8da; }
.status-badge.lock { color: #7f1d1d; background: #ffe4e6; }
.status-badge.self-lock { color: #0f3b2e; background: #d8f8e7; }
.lock-banner {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid rgba(217, 165, 60, .28);
  border-radius: 16px;
  color: #43341f;
  background: linear-gradient(135deg, rgba(255, 246, 222, .94), rgba(232, 247, 237, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 14px 28px rgba(63, 49, 28, .06);
}
.lock-banner strong { font-size: 12px; font-weight: 950; }
.lock-banner span { color: #6d5f51; font-size: 11px; line-height: 1.55; }
.message-row-locked {
  background: linear-gradient(90deg, rgba(255, 228, 230, .48), rgba(255, 253, 249, .74));
  opacity: .82;
}
.message-row-locked td:first-child {
  border-left: 4px solid #dc2626;
}
.message-row-own-lock {
  background: linear-gradient(90deg, rgba(220, 252, 231, .48), rgba(255, 253, 249, .74));
}
.message-row-own-lock td:first-child {
  border-left: 4px solid #16a34a;
}
.button.disabled {
  cursor: not-allowed;
  opacity: .58;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.lock-note {
  flex-basis: 100%;
  color: #8f4b4b !important;
  font-size: 9.5px !important;
  font-weight: 850;
  line-height: 1.45;
}
.role-list { display: grid; gap: 10px; }
.role-list a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 14px; border: 1px solid rgba(67, 55, 41, .1); border-radius: 17px; background: rgba(255,253,249,.7); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.role-list a:hover, .role-list a.active { border-color: rgba(20, 40, 71, .22); background: #fffdf9; transform: translateX(2px); }
.role-list span { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #142847; font-size: 11px; font-weight: 950; }
.role-list strong { color: #30281f; font-size: 13px; }
.role-list small { color: #8a7e70; font-size: 10px; }
.permission-matrix th:not(:first-child), .permission-matrix td:not(:first-child) { text-align: center; }
.permission-matrix td:first-child { min-width: 270px; }
.matrix-check { display: inline-grid; place-items: center; cursor: pointer; }
.matrix-check input { position: absolute; opacity: 0; pointer-events: none; }
.matrix-check span { width: 26px; height: 26px; border: 1px solid rgba(67, 55, 41, .16); border-radius: 9px; background: #f7f0e4; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.matrix-check input:checked + span { border-color: #142847; background: #142847; box-shadow: inset 0 0 0 6px #f0c35b; }
.matrix-check:hover span { transform: scale(1.05); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 16px; border: 1px solid rgba(185, 28, 28, .16); border-radius: 18px; background: #fff1f1; }
.danger-zone strong { color: #8f1d1d; font-size: 12px; }
.danger-zone p { margin: 4px 0 0; color: #9a5c5c; font-size: 10px; line-height: 1.55; }
.filter-form { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; align-items: end; }
.filter-form .wide-field { grid-column: span 2; }
.filter-actions { display: flex; gap: 9px; align-items: center; }
.bulk-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(240, 253, 244, .9), rgba(255, 253, 249, .9));
}
.bulk-selection-bar strong {
  display: block;
  color: #173625;
  font-size: 12px;
  font-weight: 950;
}
.bulk-selection-bar span {
  display: block;
  margin-top: 3px;
  color: #6f776f;
  font-size: 10.5px;
  font-weight: 850;
}
.selection-col,
.selection-cell {
  width: 64px;
  text-align: center !important;
}
.selection-col small {
  display: block;
  margin-top: 4px;
  color: #7a5515;
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.selection-check {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.selection-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.selection-check span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(20, 40, 71, .18);
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.selection-check span::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s ease, transform .18s ease;
}
.selection-check input:checked + span {
  border-color: #16a34a;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  transform: scale(1.03);
}
.selection-check input:checked + span::after {
  opacity: 1;
  transform: scale(1);
}
.selection-check input:disabled + span {
  cursor: not-allowed;
  opacity: .38;
  background: #eadfce;
}
.bulk-edit-panel {
  margin-bottom: 24px;
}
.bulk-edit-list {
  display: grid;
  gap: 16px;
}
.bulk-edit-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(67, 55, 41, .1);
  border-radius: 20px;
  background: rgba(255,253,249,.76);
}
.bulk-edit-card legend {
  padding: 0 8px;
  color: #7a5515;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.field textarea.message-textarea.compact {
  min-height: 120px;
}
.audit-table { min-width: 1040px; }
.details-box { margin-top: 8px; }
.details-box summary { color: #9a7424; font-size: 10px; font-weight: 950; cursor: pointer; }
.details-box pre { max-width: 420px; max-height: 220px; overflow: auto; margin: 8px 0 0; padding: 12px; border-radius: 12px; color: #d9e3f4; background: #111d31; font-size: 10px; line-height: 1.55; }
.messages-table-wrap {
  max-height: min(68vh, 760px);
  overflow-y: auto;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.messages-table-wrap .crud-table th {
  position: sticky;
  top: 0;
  z-index: 5;
}
.messages-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.messages-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255,253,249,.85);
  border-radius: 999px;
  background: linear-gradient(180deg, #d9a53c, #8d621d);
}
.messages-table-wrap::-webkit-scrollbar-track {
  background: rgba(244, 232, 211, .75);
}

/* =========================
   Thème dégradé lisible
   Objectif : esthétique premium + contraste fort
   ========================= */
:root {
  --readable-ink: #16110d;
  --readable-ink-2: #2b241d;
  --readable-muted: #5f554b;
  --gradient-gold: linear-gradient(135deg, #f7d77c 0%, #d9a53c 45%, #b87919 100%);
  --gradient-navy: linear-gradient(135deg, #071425 0%, #142847 48%, #24466f 100%);
  --gradient-paper: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,248,236,.82));
  --gradient-soft: linear-gradient(135deg, rgba(255,253,249,.94), rgba(246,232,207,.72));
}
body {
  color: var(--readable-ink-2);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
.dashboard-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 213, 122, .34), transparent 25%),
    radial-gradient(circle at 94% 8%, rgba(36, 70, 111, .20), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(217, 165, 60, .18), transparent 30%),
    linear-gradient(135deg, #efe2cf 0%, #fbf7ed 45%, #ead8bb 100%);
}
.login-story,
.admin-sidebar,
.admin-actions a.danger,
.button.primary,
.module-card > a {
  background: var(--gradient-navy);
}
.admin-brand > span,
.admin-nav span,
.admin-profile-mini > span,
.login-icon,
.module-icon {
  background: var(--gradient-gold);
}
.admin-topbar,
.admin-panel,
.module-section,
.admin-status-grid article,
.login-box {
  background: var(--gradient-paper);
  border-color: rgba(55, 42, 28, .14);
}
.admin-topbar h1,
.section-heading h2,
.section-heading.compact h2,
.module-card h3,
.admin-status-grid strong,
.crud-table td > strong,
.role-list strong,
.login-heading h2 {
  color: var(--readable-ink);
  letter-spacing: -.025em;
}
.admin-topbar h1 {
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.02;
}
.admin-topbar p {
  color: var(--readable-muted);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 650;
}
.eyebrow,
.field > span:first-child,
.admin-status-grid span,
.crud-table th {
  color: #7a5515;
}
.module-card p,
.admin-panel p,
.crud-table td,
.crud-table td small,
.role-list small,
.admin-status-grid small,
.public-reader-note p,
.login-heading p {
  color: var(--readable-muted);
}
.module-card p,
.crud-table td,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.search-form input,
.filter-form input,
.filter-form select {
  font-size: 13.5px;
  line-height: 1.65;
}
.module-card h3 { font-size: 20px; }
.section-heading h2 { font-size: 38px; }
.section-heading.compact h2 { font-size: 30px; }
.admin-status-grid strong { font-size: 31px; }
.admin-nav a {
  color: #d6dfed;
  font-size: 12.5px;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
}
.admin-sidebar-note p,
.admin-profile-mini small,
.admin-brand.compact small {
  color: #c4d0df;
}
.admin-profile-mini strong,
.admin-brand.compact strong {
  color: #ffffff;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.search-form input,
.filter-form input,
.filter-form select,
.input-wrap {
  color: var(--readable-ink);
  background: rgba(255,255,255,.88);
  border-color: rgba(61, 49, 36, .18);
}
.field input::placeholder,
.search-form input::placeholder,
.filter-form input::placeholder,
.input-wrap input::placeholder {
  color: #8f8376;
}
.crud-table th {
  background: linear-gradient(180deg, #fff3d8, #f2dfbb);
  font-size: 11px;
}
.crud-table td {
  color: #2e271f;
  font-size: 13px;
}
.status-badge {
  font-size: 10px;
}
.module-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 215, 124, .22), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,248,236,.86));
}
.admin-flash,
.switch-line,
.checkbox-grid label,
.role-list a,
.table-wrap,
.public-reader-note {
  background: var(--gradient-soft);
}
.button,
.admin-actions a {
  color: #1d2738;
  font-size: 12px;
}
.button.primary,
.button.danger,
.button.mini.danger,
.admin-actions a.danger,
.module-card > a {
  color: #ffffff;
}
.button.ghost {
  color: #2c241d;
}
.danger-zone {
  background: linear-gradient(135deg, #fff4f0, #ffe6e6);
}

/* =========================
   Admin premium refresh
   ========================= */
:root {
  --admin-bg: #f2eadb;
  --admin-bg-2: #fbf7ee;
  --surface: rgba(255, 253, 248, .78);
  --surface-strong: rgba(255, 253, 248, .94);
  --surface-soft: rgba(255, 249, 238, .68);
  --ink: #241d18;
  --ink-2: #3d332b;
  --muted-warm: #897c6c;
  --line-warm: rgba(62, 48, 34, .105);
  --line-warm-2: rgba(62, 48, 34, .16);
  --shadow-soft: 0 18px 50px rgba(46, 35, 24, .09);
  --shadow-lift: 0 28px 76px rgba(46, 35, 24, .14);
  --shadow-navy: 0 28px 80px rgba(4, 12, 25, .34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
}
body { color: var(--ink-2); background: var(--admin-bg); }
.dashboard-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(217, 165, 60, .20), transparent 27%),
    radial-gradient(circle at 88% 12%, rgba(20, 40, 71, .12), transparent 30%),
    linear-gradient(135deg, #f0e5d4 0%, #fbf8f1 45%, #efe2cd 100%);
}
.dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 40, 71, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 71, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.login-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(217, 165, 60, .22), transparent 28%),
    linear-gradient(135deg, #f2e7d6, #fbf8f1 54%, #eee0ca);
}
.login-story {
  background:
    radial-gradient(circle at 78% 15%, rgba(241, 199, 104, .22), transparent 31%),
    radial-gradient(circle at 20% 86%, rgba(43, 80, 131, .23), transparent 29%),
    linear-gradient(155deg, #1b3559, #081426 72%);
}
.login-story::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  pointer-events: none;
}
.login-panel { background: transparent; }
.login-box {
  padding: 32px;
  border: 1px solid var(--line-warm);
  border-radius: 30px;
  background: rgba(255,253,249,.72);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(18px);
}
.back-link { margin-bottom: 34px; }
.login-icon { box-shadow: 0 16px 32px rgba(217, 165, 60, .23); }
.input-wrap {
  border-color: rgba(62, 48, 34, .11);
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.login-submit {
  background: linear-gradient(135deg, #0c1a30, #1d3558);
  box-shadow: 0 20px 44px rgba(12, 26, 48, .24);
}
.public-reader-note {
  padding: 16px;
  border: 1px solid var(--line-warm);
  border-radius: 20px;
  background: rgba(255,253,249,.66);
}
.admin-shell { grid-template-columns: 310px minmax(0, 1fr); }
.admin-sidebar {
  overflow: hidden;
  padding: 26px 20px;
  background:
    radial-gradient(circle at 24% 12%, rgba(217, 165, 60, .22), transparent 26%),
    radial-gradient(circle at 105% 88%, rgba(73, 105, 154, .18), transparent 34%),
    linear-gradient(180deg, #172d4c 0%, #081526 76%);
  box-shadow: var(--shadow-navy);
}
.admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 28px;
  pointer-events: none;
}
.admin-sidebar > * { position: relative; z-index: 1; }
.admin-brand.compact {
  padding: 10px 10px 24px;
  border-bottom-color: rgba(255,255,255,.09);
}
.admin-brand.compact > span {
  width: 50px;
  height: 50px;
  border-radius: 18px;
}
.admin-brand.compact strong { color: #fff; font-size: 14px; letter-spacing: -.01em; }
.admin-brand.compact small { color: #a9b8cd; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.admin-nav {
  gap: 7px;
  margin-top: 22px;
  padding: 4px;
}
.admin-nav a {
  position: relative;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 17px;
  color: #aebbd0;
  font-size: 11px;
  letter-spacing: -.01em;
}
.admin-nav a::after {
  content: "";
  position: absolute;
  inset: 9px 9px 9px auto;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.095);
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.admin-nav a.active::after { background: #f3c965; }
.admin-nav span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f1c768, #d9a53c);
  box-shadow: 0 10px 22px rgba(217, 165, 60, .22);
}
.admin-sidebar-note {
  padding: 14px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
}
.admin-profile-mini {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
}
.admin-profile-mini > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #13233b;
  background: linear-gradient(145deg, #f4ce73, #d9a53c);
  font-size: 12px;
  font-weight: 950;
}
.admin-profile-mini strong { display: block; color: #fff; font-size: 12px; }
.admin-profile-mini small { display: block; margin-top: 3px; color: #93a2ba; font-size: 9px; font-weight: 850; }
.admin-sidebar-note p { color: #9fadc1; }
.admin-content {
  width: min(100%, 1540px);
  padding: clamp(26px, 4vw, 54px);
}
.admin-topbar {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-warm);
  border-radius: 34px;
  background:
    radial-gradient(circle at 94% 10%, rgba(217, 165, 60, .17), transparent 26%),
    linear-gradient(135deg, rgba(255,253,249,.86), rgba(255,249,239,.62));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}
.admin-topbar::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,165,60,.8), transparent);
}
.admin-topbar h1 {
  color: var(--ink);
  text-wrap: balance;
}
.admin-topbar p { max-width: 740px; color: var(--muted-warm); }
.admin-actions a,
.button {
  border-color: rgba(62, 48, 34, .1);
  background: rgba(255,253,249,.78);
  box-shadow: 0 12px 28px rgba(46, 35, 24, .075);
}
.admin-actions a:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(46, 35, 24, .12);
}
.admin-actions a.danger,
.button.primary {
  background: linear-gradient(135deg, #0c1a30, #203b61);
}
.button.danger, .button.mini.danger {
  background: linear-gradient(135deg, #991b1b, #dc2626);
}
.admin-flash {
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}
.admin-status-grid { gap: 16px; }
.admin-status-grid article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: var(--line-warm);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.admin-status-grid article::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(217, 165, 60, .13);
}
.admin-status-grid strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 27px;
}
.module-section,
.admin-panel {
  border-color: var(--line-warm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.module-section { border-radius: 34px; }
.module-card {
  min-height: 245px;
  border-color: var(--line-warm);
  border-radius: 28px;
  background:
    radial-gradient(circle at 95% 0%, rgba(217, 165, 60, .13), transparent 30%),
    var(--surface-strong);
  box-shadow: 0 16px 38px rgba(46, 35, 24, .075);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.module-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 165, 60, .38);
  box-shadow: var(--shadow-lift);
}
.module-card::before { width: 7px; }
.module-icon {
  width: 54px;
  height: 54px;
  border-radius: 19px;
}
.module-card h3 { color: var(--ink); font-size: 19px; }
.module-card p { color: #766a5d; }
.permission-list li {
  background: #f3eadb;
  color: #7d7062;
}
.permission-list li.allowed {
  color: #14532d;
  background: #dff7e8;
}
.module-card > a { background: linear-gradient(135deg, #0c1a30, #203b61); }
.crud-grid { gap: 22px; }
.admin-panel { border-radius: 30px; }
.admin-panel + .admin-panel { margin-top: 24px; }
.section-heading h2,
.section-heading.compact h2 { color: var(--ink); }
.field > span:first-child {
  color: #6f6255;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.search-form input,
.filter-form input,
.filter-form select {
  min-height: 48px;
  border-color: rgba(62, 48, 34, .12);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--ink-2);
}
.switch-line,
.checkbox-grid label {
  border-color: var(--line-warm);
  background: rgba(255,253,249,.68);
}
.switch-line:hover,
.checkbox-grid label:hover {
  border-color: rgba(217,165,60,.35);
  background: rgba(255,253,249,.92);
}
.table-wrap {
  border-color: var(--line-warm);
  border-radius: 24px;
  background: rgba(255,253,249,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.crud-table th {
  padding: 16px;
  color: #7c6b57;
  background: linear-gradient(180deg, #f8eedf, #f2e6d4);
}
.crud-table td {
  padding: 17px 16px;
  border-top-color: rgba(62, 48, 34, .08);
}
.crud-table tbody tr {
  transition: background .16s ease;
}
.crud-table tbody tr:hover { background: rgba(255, 247, 232, .82); }
.status-badge {
  min-height: 30px;
  padding-inline: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}
.role-list a {
  border-color: var(--line-warm);
  background: rgba(255,253,249,.68);
}
.role-list a:hover,
.role-list a.active {
  border-color: rgba(217, 165, 60, .34);
  background: rgba(255,253,249,.96);
  box-shadow: 0 14px 32px rgba(46,35,24,.08);
}
.role-list span {
  background: linear-gradient(135deg, #0c1a30, #203b61);
}
.matrix-check span {
  border-color: rgba(62,48,34,.16);
  background: rgba(255,255,255,.8);
}
.matrix-check input:checked + span {
  border-color: #162b49;
  background: linear-gradient(135deg, #0c1a30, #203b61);
  box-shadow: inset 0 0 0 6px #f0c35b, 0 6px 18px rgba(12,26,48,.18);
}
.danger-zone {
  border-color: rgba(185, 28, 28, .18);
  background: linear-gradient(135deg, #fff3f3, #fff8f0);
}
.details-box pre { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* Couche finale : dégradés + texte très lisible */
.dashboard-page {
  color: var(--readable-ink-2);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 213, 122, .36), transparent 26%),
    radial-gradient(circle at 94% 10%, rgba(25, 56, 94, .23), transparent 31%),
    radial-gradient(circle at 76% 92%, rgba(217, 165, 60, .20), transparent 30%),
    linear-gradient(135deg, #efe1cc 0%, #fbf7ee 43%, #ead6b8 100%);
}
.login-story,
.admin-sidebar {
  background:
    radial-gradient(circle at 22% 10%, rgba(247, 215, 124, .24), transparent 27%),
    radial-gradient(circle at 95% 92%, rgba(66, 106, 160, .20), transparent 35%),
    var(--gradient-navy);
}
.admin-topbar,
.admin-panel,
.module-section,
.admin-status-grid article,
.module-card,
.login-box {
  background: var(--gradient-paper);
  border-color: rgba(52, 39, 25, .16);
}
.module-card {
  background:
    radial-gradient(circle at 95% 0%, rgba(247, 215, 124, .24), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,247,232,.88));
}
.admin-actions a.danger,
.button.primary,
.module-card > a,
.login-submit {
  background: var(--gradient-navy);
}
.admin-brand > span,
.admin-nav span,
.admin-profile-mini > span,
.login-icon,
.module-icon {
  background: var(--gradient-gold);
}
.admin-topbar h1,
.section-heading h2,
.section-heading.compact h2,
.module-card h3,
.admin-status-grid strong,
.crud-table td > strong,
.role-list strong,
.login-heading h2 {
  color: var(--readable-ink);
}
.admin-topbar h1 {
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.02;
}
.section-heading h2 { font-size: 38px; }
.section-heading.compact h2 { font-size: 30px; }
.module-card h3 { font-size: 20px; line-height: 1.25; }
.admin-status-grid strong { font-size: 31px; }
.admin-topbar p,
.module-card p,
.admin-status-grid small,
.crud-table td,
.crud-table td small,
.role-list small,
.login-heading p,
.public-reader-note p {
  color: var(--readable-muted);
}
.admin-topbar p,
.module-card p {
  font-size: 15px;
  line-height: 1.75;
}
.crud-table td {
  color: #2e271f;
  font-size: 13.5px;
  line-height: 1.65;
}
.crud-table td small {
  font-size: 11px;
  line-height: 1.55;
}
.form-help {
  color: var(--readable-muted);
  font-size: 12.5px;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.search-form input,
.filter-form input,
.filter-form select,
.input-wrap {
  color: var(--readable-ink);
  background: rgba(255,255,255,.90);
  border-color: rgba(52, 39, 25, .18);
  font-size: 13.5px;
}
.field textarea.message-textarea {
  min-height: 190px;
  line-height: 1.7;
}
.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}
.field > span:first-child,
.admin-status-grid span,
.crud-table th,
.eyebrow {
  color: #7a5515;
}
.crud-table th {
  background: linear-gradient(180deg, #fff3d8, #f0ddb7);
  font-size: 11px;
}
.admin-nav a {
  color: #d9e2ef;
  font-size: 12.5px;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
}
.admin-nav {
  flex: 1;
  min-height: 0;
  gap: 16px;
  align-content: start;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 4px;
}
.admin-nav::-webkit-scrollbar { width: 5px; }
.admin-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.admin-nav-section {
  display: grid;
  gap: 7px;
}
.admin-nav-title {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  color: #f3c965;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: background .24s ease, border-color .24s ease, transform .24s ease, color .24s ease;
}
.admin-nav-title:hover,
.admin-nav-section.open > .admin-nav-title {
  color: #ffffff;
  border-color: rgba(243,201,101,.28);
  background: linear-gradient(135deg, rgba(243,201,101,.22), rgba(255,255,255,.07));
  transform: translateX(2px);
}
.admin-nav-title span {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}
.admin-nav-title span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7d77c, #d9a53c);
  box-shadow: 0 0 0 4px rgba(217,165,60,.12);
}
.admin-nav-title i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #152944;
  background: linear-gradient(135deg, #f7d77c, #d9a53c);
  font-size: 13px;
  font-style: normal;
  transition: transform .28s ease;
}
.admin-nav-section.open > .admin-nav-title i {
  transform: rotate(180deg);
}
.admin-nav-section + .admin-nav-section {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.admin-subnav {
  display: grid;
  gap: 7px;
  overflow: hidden;
  max-height: 0;
  padding-left: 10px;
  opacity: .65;
  transform: translateY(-4px);
  transition: max-height .34s ease, opacity .24s ease, transform .24s ease, padding .24s ease;
}
.admin-nav-section.open > .admin-subnav {
  opacity: 1;
  transform: translateY(0);
  padding-top: 8px;
}
.admin-subnav a {
  min-height: 46px;
  position: relative;
  overflow: hidden;
}
.admin-subnav a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, #f7d77c, #d9a53c);
  transition: width .22s ease;
}
.admin-subnav a:hover::before,
.admin-subnav a.active::before {
  width: 4px;
}
.admin-subnav a span {
  position: relative;
  z-index: 1;
}
.admin-sidebar-note p,
.admin-profile-mini small,
.admin-brand.compact small {
  color: #c7d2e2;
}
.admin-profile-mini strong,
.admin-brand.compact strong {
  color: #ffffff;
}

/* Lisibilité renforcée — Messages des croyants + Validation */
.messages-crud-grid .admin-panel,
.bulk-edit-panel {
  color: #1f1a14;
}
.messages-crud-grid .section-heading.compact h2,
.bulk-edit-panel .section-heading.compact h2 {
  color: #15110d;
  font-size: clamp(32px, 2.5vw, 42px);
  line-height: 1.05;
}
.messages-crud-grid .eyebrow,
.bulk-edit-panel .eyebrow,
.messages-crud-grid .field > span:first-child,
.bulk-edit-panel .field > span:first-child,
.messages-table th {
  color: #5a3d10;
}
.messages-crud-grid .field > span:first-child,
.bulk-edit-panel .field > span:first-child {
  font-size: 12.5px;
  letter-spacing: .11em;
}
.messages-crud-grid .field input:not([type="checkbox"]):not([type="radio"]),
.messages-crud-grid .field select,
.messages-crud-grid .field textarea,
.messages-crud-grid .filter-form input,
.messages-crud-grid .filter-form select,
.bulk-edit-panel .field input:not([type="checkbox"]):not([type="radio"]),
.bulk-edit-panel .field select,
.bulk-edit-panel .field textarea {
  min-height: 54px;
  color: #17120d;
  background: rgba(255,255,255,.94);
  font-size: 15.5px;
  font-weight: 650;
}
.messages-crud-grid .field input::placeholder,
.messages-crud-grid .field textarea::placeholder,
.messages-crud-grid .filter-form input::placeholder,
.bulk-edit-panel .field input::placeholder,
.bulk-edit-panel .field textarea::placeholder {
  color: #756a5d;
}
.messages-crud-grid .message-textarea,
.bulk-edit-panel .message-textarea {
  color: #17120d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
}
.messages-table {
  min-width: 1120px;
}
.messages-table th {
  padding: 18px 17px;
  font-size: 12px;
  letter-spacing: .095em;
}
.messages-table td {
  padding: 19px 17px;
  color: #241d16;
  font-size: 15px;
  line-height: 1.62;
}
.messages-table td > strong {
  color: #111827;
  font-size: 16.5px;
  line-height: 1.35;
}
.messages-table td small {
  color: #44382d;
  font-size: 13px;
  line-height: 1.62;
}
.messages-crud-grid .status-badge,
.bulk-edit-panel .status-badge {
  min-height: 33px;
  font-size: 11px;
}
.messages-crud-grid .button,
.bulk-edit-panel .button {
  min-height: 45px;
  color: #162033;
  font-size: 12.5px;
}
.messages-crud-grid .button.primary,
.bulk-edit-panel .button.primary,
.messages-crud-grid .button.danger,
.bulk-edit-panel .button.danger {
  color: #ffffff;
}
.messages-crud-grid .button.mini {
  min-height: 37px;
  padding-inline: 12px;
  font-size: 11px;
}
.messages-crud-grid .switch-line,
.bulk-edit-panel .switch-line {
  color: #241d16;
  font-size: 13.5px;
}
.messages-crud-grid .form-help,
.bulk-edit-panel .form-help {
  color: #44382d;
  font-size: 13.5px;
}
.messages-crud-grid .bulk-selection-bar strong {
  color: #17231b;
  font-size: 14px;
}
.messages-crud-grid .bulk-selection-bar span {
  color: #4a584d;
  font-size: 12.5px;
}
.messages-crud-grid .selection-col small {
  color: #5a3d10;
  font-size: 9.5px;
}
.messages-crud-grid .lock-banner strong,
.bulk-edit-panel .lock-banner strong {
  color: #231a10;
  font-size: 13.5px;
}
.messages-crud-grid .lock-banner span,
.bulk-edit-panel .lock-banner span {
  color: #44382d;
  font-size: 12.5px;
}
.admin-topbar p {
  color: #4b4035;
  font-size: 15.5px;
  font-weight: 750;
}

/* Correctif fort demandé : texte vraiment plus grand dans Validation + Messages */
.messages-table {
  min-width: 1450px !important;
}
.messages-table th {
  color: #4b2f08 !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
  letter-spacing: .13em !important;
}
.messages-table td {
  color: #17120d !important;
  font-size: 18px !important;
}
.messages-table .message-col,
.messages-table .message-main-cell {
  min-width: 430px;
  width: 34%;
}
.messages-table .type-col,
.messages-table .message-type-cell {
  min-width: 210px;
}
.messages-table .programming-col,
.messages-table .message-programming-cell {
  min-width: 240px;
}
.messages-table .status-col,
.messages-table .message-status-cell {
  min-width: 190px;
}
.messages-table .date-col,
.messages-table .message-date-cell {
  min-width: 210px;
}
.messages-table .actions-col,
.messages-table .row-actions {
  min-width: 210px;
}
.messages-table .message-author {
  color: #0b0f19 !important;
  font-size: 23px !important;
  font-weight: 1000 !important;
  line-height: 1.28 !important;
  letter-spacing: -.02em;
}
.messages-table .message-preview {
  display: block;
  max-width: 680px;
  margin-top: 14px !important;
  color: #241b13 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.72 !important;
}
.messages-table .message-type-cell {
  color: #18120d !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}
.messages-table .message-programming-cell strong,
.messages-table .message-date-cell strong {
  color: #090d16 !important;
  font-size: 21px !important;
  font-weight: 1000 !important;
  line-height: 1.35 !important;
}
.messages-table .message-programming-cell small,
.messages-table .message-date-cell small {
  color: #31261c !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
}
.messages-table .status-badge {
  min-height: 40px !important;
  padding-inline: 18px !important;
  font-size: 15px !important;
  font-weight: 1000 !important;
}
.messages-table .button.mini {
  min-height: 44px !important;
  padding-inline: 16px !important;
  font-size: 14px !important;
  font-weight: 1000 !important;
}
.messages-table .button.mini.danger {
  min-height: 50px !important;
}
.messages-table .selection-col,
.messages-table .selection-cell {
  width: 92px !important;
  min-width: 92px !important;
}
.messages-table .selection-check span {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}
.messages-table .selection-col small {
  color: #4b2f08 !important;
  font-size: 12px !important;
}

/* Tableau de bord — rapport avancé dynamique des messages */
.dashboard-report {
  margin-bottom: 34px;
}
.report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.report-heading .section-heading {
  margin-bottom: 0;
}
.report-heading .section-heading p {
  max-width: 780px;
  margin: 10px 0 0;
  color: #3f352b;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 650;
}
.report-period-form {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(67, 55, 41, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 30px rgba(46, 35, 24, .08);
}
.report-period-form label {
  display: grid;
  gap: 7px;
}
.report-period-form span {
  color: #5a3d10;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.report-period-form select {
  min-width: 150px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(62, 48, 34, .14);
  border-radius: 14px;
  color: #15110d;
  background: #fffdf9;
  font-size: 14px;
  font-weight: 800;
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.report-kpi-grid article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(67, 55, 41, .1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 165, 60, .18), transparent 34%),
    rgba(255,253,249,.86);
  box-shadow: 0 18px 42px rgba(46, 35, 24, .08);
}
.report-kpi-grid span {
  display: block;
  color: #6b4c16;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.report-kpi-grid strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -.045em;
}
.report-kpi-grid small {
  display: block;
  margin-top: 9px;
  color: #42372d;
  font-size: 13.5px;
  font-weight: 700;
}
.report-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 16px;
}
.report-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(67, 55, 41, .1);
  border-radius: 26px;
  background: rgba(255,253,249,.88);
  box-shadow: 0 18px 42px rgba(46, 35, 24, .08);
}
.report-card-wide {
  grid-row: span 2;
}
.report-card h3 {
  margin: 5px 0 18px;
  color: #15110d;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.report-card canvas {
  width: 100%;
  display: block;
}
.report-donut-wrap {
  min-height: 260px;
  display: grid;
  place-items: center;
  position: relative;
}
.report-donut-wrap > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  pointer-events: none;
}
.report-donut-wrap strong {
  color: #111827;
  font-size: 38px;
  line-height: 1;
}
.report-donut-wrap span {
  margin-top: 7px;
  color: #4c4034;
  font-size: 13px;
  font-weight: 800;
}
.report-ranking,
.report-waiting-list {
  display: grid;
  gap: 10px;
}
.report-ranking div,.report-waiting-list a,.report-waiting-list p,.report-ranking p{padding:13px 14px;border:1px solid rgba(67,55,41,.09);border-radius:16px;background:rgba(255,255,255,.72)}.report-ranking div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}.report-ranking span,.report-waiting-list span{color:#4a3e33;font-size:13.5px;line-height:1.45;font-weight:650}.report-ranking strong{min-width:38px;min-height:38px;display:grid;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(135deg,#0c1a30,#203b61);font-size:16px}.report-waiting-list a{display:grid;gap:4px;transition:.18s ease}.report-waiting-list a:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(46,35,24,.1)}.report-waiting-list strong{color:#111827;font-size:15.5px}.appointments-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.appointment-role-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px;padding:18px 22px;border:1px solid rgba(15,118,110,.14);border-radius:24px;background:linear-gradient(135deg,rgba(236,253,245,.82),rgba(255,251,235,.72));box-shadow:0 18px 42px rgba(41,34,24,.07)}.appointment-role-strip strong{display:block;color:#103d3a;font-size:22px;font-weight:950}.appointment-role-strip small{display:block;margin-top:4px;color:#5f6f66;font-size:13px;font-weight:800}.appointment-sync-pill{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border:1px solid rgba(16,185,129,.18);border-radius:999px;color:#0f513c;background:rgba(209,250,229,.76);font-size:12px;font-weight:950}.appointment-sync-pill span{width:9px;height:9px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.14)}.appointment-sync-pill.changed{color:#7c4a03;background:#fff7d6}.appointment-sync-pill.changed span{background:#f59e0b;box-shadow:0 0 0 6px rgba(245,158,11,.16)}.appointment-sync-pill.offline{color:#842029;background:#fee2e2}.appointment-sync-pill.offline span{background:#ef4444;box-shadow:0 0 0 6px rgba(239,68,68,.14)}.appointment-layout{display:grid;grid-template-columns:minmax(340px,.78fr) minmax(0,1.22fr);gap:26px;align-items:start}.appointment-layout-focused{grid-template-columns:minmax(320px,.62fr) minmax(0,1.38fr)}.appointment-layout-usher{grid-template-columns:minmax(430px,.96fr) minmax(340px,.74fr);gap:22px}.appointment-layout-usher .appointment-form-panel{display:flex;flex-direction:column;gap:18px}.appointment-layout-usher .section-heading{order:0;margin-bottom:0}.appointment-layout-usher .admin-form{order:1;padding:18px;border:1px solid rgba(14,165,233,.14);border-radius:24px;background:linear-gradient(135deg,rgba(240,249,255,.76),rgba(255,251,235,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.appointment-layout-usher .appointment-mission-card{order:2}.appointment-mission-card{display:grid;grid-template-columns:58px 1fr;gap:16px;padding:18px;border:1px solid rgba(15,118,110,.14);border-radius:22px;background:linear-gradient(135deg,rgba(240,253,250,.86),rgba(255,247,237,.88))}.appointment-mission-card>span{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(135deg,#0f766e,#0f172a);box-shadow:0 16px 30px rgba(15,23,42,.16);font-size:26px}.appointment-mission-card strong{display:block;color:#0f172a;font-size:18px;font-weight:950}.appointment-mission-card p{margin:6px 0 12px;color:#4b4036;font-size:13.5px;line-height:1.55;font-weight:700}.appointment-mission-card ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.appointment-mission-card li{color:#34534e;font-size:12.5px;font-weight:900}.appointment-mission-card li:before{content:'✓';margin-right:7px;color:#0f766e}.appointment-layout-usher .appointment-mission-card{grid-template-columns:48px 1fr;padding:15px;background:linear-gradient(135deg,rgba(239,246,255,.84),rgba(240,253,250,.78))}.appointment-layout-usher .appointment-mission-card>span{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#0ea5e9,#0f172a);font-size:22px}.appointment-layout-usher .appointment-mission-card p{margin-bottom:10px}.appointment-readonly-pill{min-height:46px;display:inline-flex;align-items:center;width:100%;padding:0 14px;border:1px solid rgba(16,185,129,.18);border-radius:13px;color:#047857;background:rgba(209,250,229,.74);font-size:12px;font-weight:950}.appointment-list{display:grid;gap:12px;max-height:650px;overflow:auto;padding-right:4px;scrollbar-gutter:stable}.appointment-list-item{display:grid;gap:8px;padding:16px;border:1px solid rgba(67,55,41,.1);border-radius:18px;color:inherit;text-decoration:none;background:rgba(255,253,249,.78);transition:.2s ease}.appointment-list-item:hover,.appointment-list-item.active{border-color:rgba(15,118,110,.28);transform:translateY(-2px);box-shadow:0 18px 34px rgba(38,29,20,.09)}.appointment-list-item.active{background:linear-gradient(135deg,rgba(240,253,250,.9),rgba(255,251,235,.82))}.appointment-list-item strong{color:#111827;font-size:17px;font-weight:950}.appointment-list-item small{color:#62564a;font-size:12.5px;line-height:1.45;font-weight:750}.appointment-status{width:fit-content}.appointment-status-draft{background:#ede9fe;color:#5b21b6}.appointment-status-active{background:#d1fae5;color:#047857}.appointment-status-in_progress{background:#dbeafe;color:#1d4ed8}.appointment-status-completed{background:#e5e7eb;color:#374151}.appointment-status-cancelled{background:#fee2e2;color:#991b1b}.appointment-queue-panel{margin-top:26px}.appointment-queue-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.appointment-queue-header h2{margin:4px 0 6px;color:#111827;font-family:Georgia,Times New Roman,serif;font-size:clamp(28px,3vw,44px);line-height:1}.appointment-queue-header p{margin:0;color:#6c5f52;font-size:14px;font-weight:800}.visitor-create-form{display:grid;grid-template-columns:minmax(210px,1.1fr) 170px minmax(220px,1fr) auto;gap:12px;align-items:end;margin-bottom:22px;padding:16px;border:1px solid rgba(15,118,110,.12);border-radius:22px;background:rgba(240,253,250,.58)}.visitor-create-shell{margin-bottom:22px}.visitor-create-shell .visitor-create-form{margin-bottom:0}.usher-registration{display:grid;grid-template-columns:minmax(235px,.42fr) minmax(0,1fr);gap:16px;align-items:stretch;padding:16px;border:1px solid rgba(14,165,233,.14);border-radius:24px;background:linear-gradient(135deg,rgba(239,246,255,.78),rgba(240,253,250,.7))}.visitor-create-copy{display:grid;align-content:center;gap:6px;padding:16px;border-radius:20px;background:rgba(255,255,255,.62)}.visitor-create-copy h3{margin:0;color:#0f172a;font-family:Georgia,Times New Roman,serif;font-size:clamp(24px,2.3vw,34px);line-height:1}.visitor-create-copy p{margin:0;color:#526070;font-size:13px;line-height:1.55;font-weight:750}.usher-registration .visitor-create-form{padding:0;border:0;background:transparent;grid-template-columns:minmax(220px,1.05fr) 150px minmax(210px,1fr) auto}.appointment-kanban{display:grid;grid-template-columns:repeat(7,minmax(250px,1fr));gap:14px;overflow-x:auto;padding:4px 3px 14px}.appointment-queue-usher .appointment-kanban{grid-template-columns:repeat(6,minmax(255px,1fr));align-items:stretch;height:clamp(520px,62vh,790px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-gutter:stable;padding:8px 4px 16px}.appointment-column{min-height:420px;border:1px solid rgba(67,55,41,.1);border-radius:22px;background:rgba(255,253,249,.74);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.appointment-queue-usher .appointment-column{min-height:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden;scroll-snap-align:start}.appointment-column header{position:sticky;top:0;z-index:1;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:14px;border-bottom:1px solid rgba(67,55,41,.09);border-radius:22px 22px 0 0;background:linear-gradient(135deg,rgba(255,247,237,.95),rgba(240,253,250,.9))}.appointment-column header strong{color:#1f2937;font-size:13px;font-weight:950}.appointment-column header span{min-width:30px;min-height:30px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#0f766e;font-size:12px;font-weight:950}.appointment-card-stack{display:grid;gap:12px;padding:12px}.appointment-queue-usher .appointment-card-stack{flex:1 1 auto;min-height:0;align-content:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px 10px 14px}.appointment-queue-usher .appointment-card-stack::-webkit-scrollbar,.appointment-queue-usher .appointment-kanban::-webkit-scrollbar,.appointment-list::-webkit-scrollbar{width:10px;height:10px}.appointment-queue-usher .appointment-card-stack::-webkit-scrollbar-track,.appointment-queue-usher .appointment-kanban::-webkit-scrollbar-track,.appointment-list::-webkit-scrollbar-track{background:rgba(245,239,229,.72);border-radius:999px}.appointment-queue-usher .appointment-card-stack::-webkit-scrollbar-thumb,.appointment-queue-usher .appointment-kanban::-webkit-scrollbar-thumb,.appointment-list::-webkit-scrollbar-thumb{border:2px solid rgba(245,239,229,.72);border-radius:999px;background:linear-gradient(180deg,#d4a33e,#9a6a16)}.appointment-visitor-card{display:grid;gap:10px;padding:14px;border:1px solid rgba(67,55,41,.1);border-left:5px solid #14b8a6;border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 14px 30px rgba(39,31,22,.08)}.appointment-queue-usher .appointment-visitor-card{gap:8px;padding:12px;border-radius:16px;box-shadow:0 10px 22px rgba(39,31,22,.07)}.appointment-visitor-card.priority-1{border-left-color:#dc2626}.appointment-visitor-card.priority-2{border-left-color:#f59e0b}.appointment-visitor-card.priority-3{border-left-color:#14b8a6}.appointment-visitor-card.priority-4{border-left-color:#64748b}.visitor-card-top,.visitor-card-meta,.visitor-rank-actions,.visitor-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ticket-badge,.priority-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:950}.ticket-badge{color:#082f49;background:#e0f2fe}.priority-badge{color:#633d04;background:#fef3c7}.appointment-visitor-card h3{margin:0;color:#111827;font-size:19px;line-height:1.15;font-weight:950}.appointment-queue-usher .appointment-visitor-card h3{font-size:16.5px}.appointment-visitor-card p{margin:0;color:#4b4036;font-size:13.5px;line-height:1.55;font-weight:650}.appointment-queue-usher .appointment-visitor-card p{display:-webkit-box;overflow:hidden;color:#51463b;font-size:12.5px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.appointment-queue-usher .appointment-visitor-card:hover p,.appointment-queue-usher .appointment-visitor-card:focus-within p{display:block;overflow:visible}.visitor-card-meta span{color:#5f544a;background:rgba(245,239,229,.82);border-radius:999px;padding:6px 9px;font-size:10.5px;font-weight:900}.appointment-queue-usher .visitor-card-meta{gap:6px}.appointment-queue-usher .visitor-card-meta span{padding:5px 8px;font-size:10px}.priority-inline-form select{min-height:33px;padding:0 9px;border:1px solid rgba(67,55,41,.12);border-radius:10px;color:#2f281f;background:rgba(255,253,249,.92);font-size:11px;font-weight:850}.appointment-empty-column{display:grid;place-items:center;min-height:115px;border:1px dashed rgba(67,55,41,.16);border-radius:16px;color:#8a7d70;font-size:12px;font-weight:850;background:rgba(255,255,255,.45)}

.appointment-launch-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px;margin:0 0 22px}.appointment-launch-card{cursor:pointer;display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center;min-height:96px;padding:18px;border:1px solid rgba(14,165,233,.16);border-radius:24px;color:#0f172a;text-align:left;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(239,246,255,.78));box-shadow:0 20px 46px rgba(36,28,18,.08);transition:.18s ease}.appointment-launch-card:hover{transform:translateY(-2px);border-color:rgba(14,165,233,.34);box-shadow:0 26px 58px rgba(36,28,18,.12)}.appointment-launch-card span{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#0f172a);font-size:24px;font-weight:950}.appointment-launch-card small{display:block;margin-top:4px;color:#64748b;font-size:12.5px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.appointment-launch-card strong{display:block;font-size:18px;font-weight:950}.appointment-layout-usher{display:block}.appointment-layout-usher>dialog{margin:auto}.appointment-modal{width:min(980px,calc(100vw - 38px));max-height:min(86vh,860px);padding:0;border:0;border-radius:30px;color:inherit;background:transparent;box-shadow:0 34px 90px rgba(15,23,42,.28)}.appointment-modal-wide{width:min(1180px,calc(100vw - 38px))}.appointment-modal::backdrop{background:rgba(8,13,23,.54);backdrop-filter:blur(7px)}.appointment-modal-shell{max-height:min(86vh,860px);display:grid;gap:18px;overflow:auto;padding:22px;border:1px solid rgba(255,255,255,.6);border-radius:30px;background:linear-gradient(135deg,rgba(255,253,249,.98),rgba(239,246,255,.95))}.appointment-modal-header{position:sticky;top:-22px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0 16px;background:linear-gradient(135deg,rgba(255,253,249,.98),rgba(239,246,255,.95))}.appointment-modal-header h2{margin:2px 0 0;color:#0f172a;font-family:Georgia,Times New Roman,serif;font-size:clamp(30px,3vw,46px);line-height:1}.appointment-modal-close{cursor:pointer;width:48px;height:48px;border:0;border-radius:16px;color:#0f172a;background:rgba(255,255,255,.86);box-shadow:0 12px 28px rgba(15,23,42,.12);font-size:28px;font-weight:900}.appointment-modal .admin-panel{box-shadow:none}.appointment-modal .appointment-form-panel>.section-heading,.appointment-modal .appointment-list-panel>.section-heading{display:none}.visitor-note-update{display:grid;gap:8px}.visitor-note-update textarea{width:100%;min-height:64px;padding:10px 11px;border:1px solid rgba(67,55,41,.13);border-radius:14px;color:#2f281f;background:rgba(255,253,249,.9);font-size:12.5px;line-height:1.45;resize:vertical}

                                                                                                                                                                                                                                                                                                                 @media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 32px 25px 45px; }
  .story-copy { margin: 75px 0 50px; }
  .story-quote { display: none; }
  .login-panel { padding: 60px 25px; }
  .back-link { margin-bottom: 45px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-topbar { flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .admin-status-grid, .module-grid { grid-template-columns: 1fr; }
  .report-heading { flex-direction: column; }
  .report-kpi-grid,
  .report-chart-grid { grid-template-columns: 1fr; }
  .report-card-wide { grid-row: auto; }
  .crud-grid, .crud-grid.roles-grid { grid-template-columns: 1fr; }
  .appointment-layout-usher,
  .usher-registration { grid-template-columns: 1fr; }
  .appointment-layout,
  .visitor-create-form,
  .appointments-stats { grid-template-columns: 1fr; }
  .appointment-role-strip,
  .appointment-queue-header { flex-direction: column; }
  .messages-crud-grid { gap: 24px; grid-template-columns: 1fr; }
  .form-grid.two, .checkbox-grid, .filter-form { grid-template-columns: 1fr; }
  .filter-form .wide-field { grid-column: auto; }
  .panel-toolbar, .search-form, .danger-zone { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .story-copy h1 { font-size: 45px; }
  .story-points { display: grid; }
  .login-panel { padding-inline: 20px; }
  .login-heading h2 { font-size: 39px; }
}
