/* Professional Hypnotherapy, LLC - shared stylesheet.
   One file for the public site, the client portal and the admin panel
   (admin adds a handful of dashboard-specific rules at the bottom) so a
   colour or spacing change is made once, not three times. */

:root {
  --ink: #2c2a26;
  --ink-soft: #6b6459;
  --paper: #faf8f4;
  --card: #ffffff;
  --line: #e4ded3;
  --line-soft: #f0ece3;
  --accent: #5b6650;
  --accent-dark: #454e3c;
  --accent-soft: #e9ede4;
  --gold: #a8823d;
  --danger: #b23b3b;
  --danger-soft: #fdecec;
  --ok: #3a7d3a;
  --ok-soft: #eaf5ea;
  --warn: #8a6a1f;
  --warn-soft: #fbf1dc;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(30, 28, 22, .06), 0 1px 2px rgba(30, 28, 22, .08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2.1rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.small { font-size: .875rem; }
.stack > * + * { margin-top: 1rem; }

/* Header / nav */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; max-width: var(--maxw); margin: 0 auto; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; flex-shrink: 0; }
.brand-name { font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.brand-tagline { display: block; font-size: .72rem; color: var(--ink-soft); font-family: -apple-system, sans-serif; font-weight: 400; }
/* Professional Hypnotherapy's real logo, in place of the letter-mark - same
   height-constrained treatment as Crinklr's own logo (assets/css/crinklr.css's
   .cr-brand img) so both brands' headers feel consistent. .brand-logo-admin
   overrides that for the narrow (220px) admin sidebar, where a fixed height
   would as easily overflow the column as it would look right. */
.brand-logo { height: 44px; width: auto; max-width: 60vw; }
.brand-logo-admin { height: auto; width: 100%; max-width: 180px; }
nav.main-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
nav.main-nav a { text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; }
nav.main-nav a:hover { color: var(--accent-dark); }
.nav-cta { background: var(--accent); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--paper)); padding: 3.5rem 1.25rem; text-align: center; }
.hero h1 { max-width: 34rem; margin: 0 auto .5rem; }
.hero p.lead { max-width: 32rem; margin: 0 auto 1.5rem; color: var(--ink-soft); font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: 8px; border: 1px solid transparent; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem; line-height: 1.2; }
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8f2d2d; }
.btn.small { padding: .45rem .9rem; font-size: .85rem; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }

/* Cards / sections */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.section { padding: 3rem 1.25rem; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Forms */
form label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .3rem; }
form label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid #cfc8ba; border-radius: 7px;
  font: inherit; font-size: .96rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 6rem; resize: vertical; }
.field-hint { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; }
.field-error { font-size: .82rem; color: var(--danger); margin-top: .25rem; }
.row { display: flex; gap: .9rem; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
.checkbox-row { display: flex; align-items: flex-start; gap: .55rem; margin: .9rem 0; }
.checkbox-row input { width: auto; margin-top: .2rem; }
.checkbox-row label { margin: 0; font-weight: 500; }

/* Yes/No sliding toggle - a real checkbox restyled as a track+thumb, with
   "No"/"Yes" printed on the track itself so the current state reads at a
   glance without hovering or clicking. */
.yn-field { display: flex; flex-direction: column; gap: .4rem; margin: .9rem 0; }
.yn-field > span { font-weight: 500; }
.yn-toggle { display: inline-block; }
.yn-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yn-track {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: 84px; height: 30px; border-radius: 999px; background: var(--line-soft);
  border: 1px solid var(--line); cursor: pointer; overflow: hidden; user-select: none;
}
.yn-half {
  display: grid; place-items: center; position: relative; z-index: 1;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink-soft); transition: color .15s ease;
}
.yn-thumb {
  position: absolute; top: 2px; left: 2px; z-index: 0;
  width: calc(50% - 3px); height: calc(100% - 4px); border-radius: 999px;
  background: var(--danger); transition: transform .15s ease, background .15s ease;
}
.yn-toggle input:checked ~ .yn-track .yn-thumb { transform: translateX(100%); background: var(--ok); }
.yn-toggle input:checked ~ .yn-track .yn-yes { color: #fff; }
.yn-toggle input:not(:checked) ~ .yn-track .yn-no { color: #fff; }
.yn-toggle input:focus-visible ~ .yn-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.yn-toggle input:disabled ~ .yn-track { opacity: .45; cursor: not-allowed; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
legend { font-weight: 700; padding: 0 .4rem; font-family: Georgia, serif; }

/* Flash / alerts */
.flash { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #c9e5c9; }
.flash-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f0b7b7; }
.flash-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #ecd79a; }

/* Badges / status pills */
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pill-confirmed { background: var(--ok-soft); color: var(--ok); }
.pill-pending_deposit { background: var(--warn-soft); color: var(--warn); }
.pill-completed { background: var(--accent-soft); color: var(--accent-dark); }
.pill-cancelled, .pill-no_show { background: var(--danger-soft); color: var(--danger); }
.pill-open { background: var(--warn-soft); color: var(--warn); }
.pill-paid { background: var(--ok-soft); color: var(--ok); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Hypnotherapist / service cards */
.hypnotherapist-card, .service-card, .package-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.hypnotherapist-photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: var(--accent-soft); margin-bottom: .9rem; }
.avatar-fallback { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; margin-bottom: .9rem; }
.price-tag { font-weight: 700; color: var(--accent-dark); }

/* Booking flow */
.booking-steps { display: flex; gap: .5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.booking-steps span { font-size: .8rem; color: var(--ink-soft); padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; }
.booking-steps span.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.booking-steps span.done { color: var(--accent-dark); border-color: var(--accent-soft); background: var(--accent-soft); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
.slot-btn { padding: .6rem .3rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: center; cursor: pointer; font-size: .88rem; font-weight: 600; }
.slot-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; }
.date-chip { flex: 0 0 auto; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 8px; text-align: center; cursor: pointer; background: #fff; text-decoration: none; color: var(--ink); font-size: .85rem; }
.date-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-chip .dow { display: block; font-size: .7rem; text-transform: uppercase; opacity: .75; }
.date-chip .num { display: block; font-weight: 700; font-size: 1.05rem; }
.hold-timer { font-size: .85rem; color: var(--warn); font-weight: 600; }

/* Admin month calendar (appointment workload picker) */
.calendar th { text-align: center; }
.calendar td { border: 1px solid var(--line-soft); padding: 0; vertical-align: top; height: 4.2rem; }
.calendar td a { display: block; height: 100%; padding: .4rem; text-decoration: none; color: var(--ink); }
.calendar td a:hover { background: var(--accent-soft); }
.cal-day-outside a { color: var(--ink-soft); opacity: .5; }
/* Soft fill on today's cell itself, not just the day number - a selected
   day's own solid background (below) sits on the <a> that fills the whole
   cell, so it naturally paints over this when a day is both today AND
   selected, no special-casing needed. */
.cal-day.cal-day-today { background: var(--accent-soft); }
.cal-day-today .cal-daynum { color: var(--accent-dark); text-decoration: underline; }
.cal-day-selected a { background: var(--accent); }
.cal-day-selected a:hover { background: var(--accent); }
.cal-day-selected .cal-daynum, .cal-day-selected .cal-tag { color: #fff; }
.cal-daynum { display: block; font-weight: 700; font-size: .88rem; }
.cal-tag { display: inline-block; margin-top: .3rem; font-size: .72rem; font-weight: 600; padding: .1rem .4rem; border-radius: 999px; }
.cal-tag-open { background: var(--ok-soft); color: var(--ok); }
.cal-tag-busy { background: var(--accent-soft); color: var(--accent-dark); }
.cal-tag-off { color: var(--ink-soft); font-weight: 400; }
/* A date exception marked "Closed" (vacation/holiday/day off, Admin >
   Availability) - distinct from cal-tag-off (this admin calendar's
   "no scheduled hours" tag, used elsewhere): --danger rather than a muted
   gray, since a closed day is a deliberate exception worth calling out, not
   just an ordinary non-working day. */
.cal-tag-closed { background: var(--danger-soft); color: var(--danger); }

/* Public booking flow: month calendar (left) + that day's open times
   (right) - reuses the .calendar, .cal-day- and .cal-tag- classes above so a
   "day cell in a month calendar" looks and behaves the same whether an
   admin or a client is looking at it. */
.booking-calendar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1rem; }
.booking-calendar .calendar td { height: 3.4rem; }
/* Prev/Next month buttons flanking the month label - deliberately NOT
   .row (that class forces flex:1 + min-width:180px per child, which is
   what stretched these into full-width buttons that wrapped onto their own
   line in the narrower calendar column). */
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.cal-nav .btn { flex: 0 0 auto; }
.times-panel { position: sticky; top: 1rem; }
@media (max-width: 780px) {
  .booking-calendar { grid-template-columns: 1fr; }
  .times-panel { position: static; }
}

/* Admin appointments calendar (Month/Week/Day tabs) */
.cal-month td { border: 1px solid var(--line-soft); padding: .3rem; vertical-align: top; height: auto; min-height: 6rem; }
.cal-month { table-layout: fixed; }
.cal-month .cal-day-link { display: block; text-decoration: none; color: var(--ink); }
.cal-chip { display: block; font-size: .72rem; line-height: 1.3; padding: .12rem .35rem; margin-top: .25rem; border-radius: 5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip-confirmed { background: var(--ok-soft); color: var(--ok); }
.cal-chip-pending_deposit { background: var(--warn-soft); color: var(--warn); }
.cal-chip-completed { background: var(--accent-soft); color: var(--accent-dark); }
.cal-chip-no_show { background: var(--danger-soft); color: var(--danger); }
.cal-chip-more { display: block; font-size: .7rem; color: var(--ink-soft); margin-top: .2rem; text-decoration: none; }
.cal-chip-more:hover { text-decoration: underline; }

.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; align-items: start; }
.cal-week-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-week-day.cal-day-today { border-color: var(--accent); background: var(--accent-soft); }
.cal-week-head { display: block; padding: .5rem .4rem; border-bottom: 1px solid var(--line-soft); text-align: center; text-decoration: none; color: var(--ink); }
.cal-week-head:hover { background: var(--accent-soft); }
.cal-week-head .dow { display: block; font-size: .68rem; text-transform: uppercase; color: var(--ink-soft); }
.cal-week-head .num { display: block; font-weight: 700; font-size: 1.05rem; }
.cal-day-today .cal-week-head .num { color: var(--accent-dark); text-decoration: underline; }
.cal-week-body { padding: .4rem; min-height: 5rem; }
.cal-week-empty { font-size: .78rem; color: var(--ink-soft); margin: 0; text-align: center; }

.cal-day-col-head { font-weight: 700; text-align: center; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.cal-daygrid {
  position: relative; display: grid; grid-template-columns: 3.4rem 1fr;
  border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--card);
  background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 4.4rem);
}
.cal-daygrid-hour { grid-column: 1; font-size: .7rem; color: var(--ink-soft); text-align: right; padding-right: .4rem; transform: translateY(-.5em); }
.cal-block {
  grid-column: 2; margin: 1px .3rem; padding: .15rem .4rem; border-radius: 6px; font-size: .74rem; line-height: 1.25;
  overflow: hidden; text-decoration: none; display: block; border: 1px solid rgba(0, 0, 0, .08);
}
.cal-block strong { display: block; font-size: .76rem; }
.cal-block-confirmed { background: var(--ok-soft); color: var(--ok); }
.cal-block-pending_deposit { background: var(--warn-soft); color: var(--warn); }
.cal-block-completed { background: var(--accent-soft); color: var(--accent-dark); }
.cal-block-no_show { background: var(--danger-soft); color: var(--danger); }

/* Portal dashboard */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.stat-tile .num { font-size: 1.7rem; font-weight: 700; font-family: Georgia, serif; color: var(--accent-dark); }
.stat-tile .label { font-size: .8rem; color: var(--ink-soft); }
a.stat-tile { display: block; text-decoration: none; color: inherit; }
a.stat-tile:hover { border-color: var(--accent); }
.recording-player { border: 1px solid var(--accent-soft); background: var(--accent-soft); border-radius: var(--radius); padding: 1rem; }
.recording-player .rec-label { font-weight: 700; margin-bottom: .5rem; color: var(--accent-dark); }
.recording-player audio { width: 100%; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.file-row .meta { font-size: .8rem; color: var(--ink-soft); }
.file-row-actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.file-row:target { background: var(--accent-soft); border-radius: var(--radius); padding-left: .5rem; padding-right: .5rem; margin: 0 -.5rem; }

.doc-preview-dialog { width: min(900px, 95vw); height: min(85vh, 900px); padding: 0; border: none; border-radius: var(--radius); box-shadow: var(--shadow); flex-direction: column; }
.doc-preview-dialog[open] { display: flex; }
.doc-preview-dialog::backdrop { background: rgba(20, 18, 14, .55); }
.doc-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.doc-preview-head strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#doc-preview-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

.message-thread { display: flex; flex-direction: column; gap: .6rem; max-height: 50vh; overflow-y: auto; padding: .25rem; }
.message-bubble { max-width: 75%; padding: .55rem .8rem; border-radius: var(--radius); }
.message-bubble.theirs { align-self: flex-start; background: var(--line-soft); }
.message-bubble.mine { align-self: flex-end; background: var(--accent-soft); }
.message-bubble .message-body { white-space: pre-wrap; word-break: break-word; }
.message-bubble .message-body img { max-width: 100%; height: auto; border-radius: 4px; margin: .35rem 0; display: block; }
.message-bubble .message-body p { margin: 0 0 .5rem; }
.message-bubble .message-body p:last-child { margin-bottom: 0; }
.message-bubble .meta { font-size: .72rem; color: var(--ink-soft); margin-top: .3rem; }

/* Portal / admin shell layout */
.shell { display: flex; min-height: 100vh; }
.shell-nav { width: 220px; flex-shrink: 0; background: var(--accent-dark); color: #fff; padding: 1.5rem 1rem; }
.shell-nav a { display: block; color: #e8e6df; text-decoration: none; padding: .55rem .7rem; border-radius: 7px; font-size: .92rem; margin-bottom: .15rem; }
.shell-nav a:hover, .shell-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.shell-nav .brand-name { color: #fff; }
.shell-main { flex: 1; min-width: 0; padding: 2rem; }
.shell-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 780px) {
  .shell { flex-direction: column; }
  .shell-nav { width: 100%; display: flex; overflow-x: auto; gap: .25rem; padding: .75rem; }
  .shell-nav .brand, .shell-nav .nav-section-title { display: none; }
  .shell-nav a { white-space: nowrap; margin-bottom: 0; }
  nav.main-nav { display: none; }
}

/* Footer */
.site-footer { background: var(--accent-dark); color: #d9dcd2; padding: 2.5rem 1.25rem 1.5rem; margin-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; max-width: var(--maxw); margin: 0 auto 1.5rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer .fine { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .8rem; color: #b7bcac; }

/* Signature pad */
.sig-pad-wrap { border: 1px solid var(--line); border-radius: 8px; background: #fff; touch-action: none; }
.sig-pad-wrap canvas { display: block; width: 100%; height: 160px; }

/* Hand-rolled rich-text (WYSIWYG) editor - contenteditable + document.execCommand,
   no third-party editor package. See inc/view.php's render_richtext_editor()
   (used by admin/crinklr_faq.php and admin/clinical_notes.php) and
   inc/faq.php's html_sanitize_richtext(), which is what makes trusting the
   HTML this produces safe to store/render. No max-height/overflow is set on
   purpose - the box has no scrollbar, ever, it just grows with its content. */
.richtext-toolbar { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper); }
.richtext-toolbar button { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: .85rem; line-height: 1.2; color: var(--ink); }
.richtext-toolbar button:hover { border-color: var(--accent); color: var(--accent-dark); }
.richtext-toolbar input[type="color"] { width: 2.2rem; height: 2.15rem; padding: 0; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; }
.richtext-editor { min-height: 10rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: #fff; font-size: .96rem; line-height: 1.5; }
.richtext-editor-lg { min-height: 22rem; }
.richtext-editor:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.richtext-editor p { margin: 0 0 .8em; }
.richtext-editor ul, .richtext-editor ol { margin: 0 0 .8em; padding-left: 1.4em; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.badge-count { background: var(--danger); color: #fff; border-radius: 999px; font-size: .68rem; padding: .05rem .4rem; margin-left: .3rem; }
