/* ==========================================================================
   components.css — shared by Design 1 and Design 2.
   Uses only semantic tokens (--primary, --accent, --surface, --line …),
   so each theme file decides the colours.
   ========================================================================== */

/* ---------- Page heading extras: underline swash + eye-catching subtitle ---------- */
.page-title-swash {
  display: block; height: 18px; width: 168px; margin-top: .5rem;
  background: no-repeat left center / contain;
  background-image: var(--swash-brush);
  animation: swashIn .9s .1s cubic-bezier(.65, 0, .35, 1) both;
}
@keyframes swashIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
:root {
  /* tapered brush stroke (default) */
  --swash-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23f5a524'/%3E%3Cstop offset='1' stop-color='%23ff7a3d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 11.6C30 6.2 74 2.6 164 3.9c1.6 0 1.7 2.2.1 2.4C112 9.6 58 11.9 8 16.4c-3.6.3-7.4-3.9-5-4.8Z' fill='url(%23g)'/%3E%3Cpath d='M44 15.6c34-2.6 72-4 112-4.1' fill='none' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  --swash-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cpath d='M3 7c13-5 25-5 38 0s25 5 38 0 25-5 38 0 25 5 38 0' fill='none' stroke='%23f5a524' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M3 13.5c13-5 25-5 38 0s25 5 38 0 25-5 38 0' fill='none' stroke='%235b3df5' stroke-width='2' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
  --swash-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Crect x='2' y='6.5' width='86' height='5' rx='2.5' fill='%23f5a524'/%3E%3Ccircle cx='100' cy='9' r='3.2' fill='%235b3df5'/%3E%3Ccircle cx='112' cy='9' r='3.2' fill='%230fa47a'/%3E%3Ccircle cx='124' cy='9' r='3.2' fill='%23f5a524' opacity='.5'/%3E%3C/svg%3E");
  --swash-scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cpath d='M4 10.5C40 4.5 92 3.4 150 5.6M14 14.6c40-5.2 86-6.6 144-4.6' fill='none' stroke='%23f5a524' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-swash="wave"] .page-title-swash { background-image: var(--swash-wave); }
html[data-swash="dots"] .page-title-swash { background-image: var(--swash-dots); }
html[data-swash="scribble"] .page-title-swash { background-image: var(--swash-scribble); }

.page-lede {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem;
  margin: .95rem 0 0; max-width: 72ch;
  font-size: 1.1rem; font-weight: 500; line-height: 1.45;
  color: var(--text-2, var(--muted));
}
.page-lede strong { color: var(--text); font-weight: 700; }
.lede-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .32rem .8rem .32rem .38rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px -8px rgba(0, 0, 0, .25);
  font-size: .8rem; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.lede-tag .ico {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-size: .72rem;
}
.lede-tag .live {
  width: 22px; height: 22px; display: grid; place-items: center;
}
.lede-tag .live::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent);
  animation: ledePulse 2s ease-out infinite;
}
@keyframes ledePulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ==========================================================================
   Checkboxes, radios, switches — restyles Bootstrap's .form-check-input,
   so existing markup in your app picks this up automatically.
   ========================================================================== */
.form-check { min-height: 1.6rem; display: flex; align-items: flex-start; gap: .6rem; padding-left: 0; }
.form-check .form-check-input { float: none; margin: .12rem 0 0; flex: 0 0 auto; }
.form-check-label { cursor: pointer; line-height: 1.45; }
.form-check-label small { display: block; color: var(--muted); font-size: .82rem; }
.form-check-inline { display: inline-flex; margin-right: 1.25rem; }

.form-check-input {
  --check-color: var(--primary);
  width: 1.3em; height: 1.3em;
  border: 1.75px solid var(--check-border);
  background-color: var(--surface);
  background-size: 0 0; background-position: center; background-repeat: no-repeat;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, background-size .18s cubic-bezier(.3, 1.6, .5, 1);
}
.form-check-input[type="checkbox"] { border-radius: 7px; }
.form-check-input:hover:not(:disabled) { border-color: var(--check-color); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-check-input:focus { border-color: var(--check-color); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--check-color); border-color: var(--check-color);
  background-size: 76% 76%;
}
.form-check-input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.6 7.6-8.2' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: checkPop .28s cubic-bezier(.3, 1.6, .5, 1);
}
.form-check-input[type="checkbox"]:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
@keyframes checkPop { 0% { transform: scale(.82); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }

.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input[type="radio"]:checked {
  background-color: var(--surface);
  background-image: none;
  box-shadow: inset 0 0 0 .3em var(--check-color);
  border-color: var(--check-color);
}
.form-check-input[type="radio"]:checked:focus { box-shadow: inset 0 0 0 .3em var(--check-color), 0 0 0 4px var(--primary-soft); }

/* switches */
.form-switch { padding-left: 0; }
.form-switch .form-check-input {
  width: 2.6em; height: 1.5em; margin: 0; border-radius: 99px;
  background-color: var(--line); border-color: transparent;
  background-image: none !important;
  position: relative;
}
.form-switch .form-check-input::after {
  content: ""; position: absolute; top: 50%; left: .18em;
  width: 1.12em; height: 1.12em; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transform: translateY(-50%);
  transition: left .2s cubic-bezier(.3, 1.4, .5, 1), width .15s;
}
.form-switch .form-check-input:active::after { width: 1.4em; }
.form-switch .form-check-input:checked { background-color: var(--check-color); }
.form-switch .form-check-input:checked::after { left: calc(100% - 1.3em); }
.form-switch .form-check-input:checked:active::after { left: calc(100% - 1.58em); }
.form-switch .form-check-input:focus { box-shadow: 0 0 0 4px var(--primary-soft); }

/* colour + size variants: add to .form-check */
.check-accent .form-check-input { --check-color: var(--accent); }
.check-success .form-check-input { --check-color: var(--success); }
.check-danger .form-check-input { --check-color: var(--danger); }
.check-info .form-check-input { --check-color: var(--info); }
.form-check-lg .form-check-input { font-size: 1.25rem; }
.form-check-lg .form-check-label { font-size: 1.02rem; padding-top: .1rem; }
.form-check-input:disabled { opacity: .45; cursor: not-allowed; }
.form-check-input:disabled ~ .form-check-label { opacity: .55; cursor: not-allowed; }
.was-validated .form-check-input:invalid { border-color: var(--danger); }
.was-validated .form-check-input:invalid ~ .form-check-label { color: var(--danger); }
.was-validated .form-check-input:valid ~ .form-check-label { color: inherit; }
.was-validated .form-check-input:valid:checked { background-color: var(--check-color); border-color: var(--check-color); }

/* selected table rows */
.table tbody tr:has(> td > .form-check-input:checked) > * { background: var(--primary-soft); }

/* check cards: <label class="check-card"><input class="form-check-input" type="checkbox">…</label> */
.check-card {
  position: relative; display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.check-card:hover { border-color: var(--check-border); }
.check-card .form-check-input { margin-top: .15rem; }
.check-card .cc-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--surface-2); color: var(--muted);
  transition: background .15s, color .15s;
}
.check-card .cc-body { flex: 1; min-width: 0; }
.check-card .cc-title { font-weight: 700; display: block; line-height: 1.3; }
.check-card small { color: var(--muted); display: block; margin-top: .15rem; }
.check-card:has(.form-check-input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.check-card:has(.form-check-input:checked) .cc-icon { background: var(--primary); color: #fff; }
.check-card:has(.form-check-input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.check-card.cc-right .form-check-input { order: 3; margin-left: auto; }

/* chip toggles: <label class="check-chip"><input type="checkbox"><span>Label</span></label> */
.check-chip { position: relative; display: inline-flex; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .86rem; color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.check-chip span::before {
  content: ""; width: 0; height: 14px; overflow: hidden;
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.6 7.6-8.2' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: width .18s;
}
.check-chip:hover span { border-color: var(--check-border); }
.check-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.check-chip input:checked + span::before { width: 14px; }
.check-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ==========================================================================
   Date picker (datepicker.js)
   ========================================================================== */
.dp-field { position: relative; }
.dp-field .form-control { padding-right: 2.8rem; cursor: pointer; }
.dp-field .dp-btn {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 10px; border: 0;
  background: transparent; color: var(--muted); display: grid; place-items: center;
}
.dp-field .dp-btn:hover, .dp-field.open .dp-btn { background: var(--primary-soft); color: var(--primary); }
.dp-field.open .form-control { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

.dp-pop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 1065;
  width: 316px; padding: 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-pop);
  display: none;
  user-select: none;
}
.dp-field.open .dp-pop { display: block; animation: comboIn .14s ease-out; }
.dp-field.up .dp-pop { top: auto; bottom: calc(100% + 8px); }
.dp-field.right .dp-pop { left: auto; right: 0; }
.dp-pop.inline { position: static; display: block; width: 100%; box-shadow: none; border: 0; padding: 0; background: transparent; }

.dp-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.dp-title {
  flex: 1; text-align: left; border: 0; background: transparent; color: var(--text);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em;
  padding: .3rem .5rem; border-radius: 10px;
}
.dp-title:hover { background: var(--surface-2); }
.dp-title .yr { color: var(--muted); font-weight: 500; margin-left: .3rem; }
.dp-nav {
  width: 34px; height: 34px; border-radius: 10px; border: 0;
  background: transparent; color: var(--text); display: grid; place-items: center;
}
.dp-nav:hover { background: var(--surface-2); }
.dp-nav:disabled { opacity: .3; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-week span { text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); padding: .2rem 0 .35rem; }
.dp-day {
  position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font-weight: 600; font-size: .9rem;
  display: grid; place-items: center; padding: 0;
  transition: background .12s;
}
.dp-day:hover:not(:disabled) { background: var(--surface-2); }
.dp-day.out { color: var(--muted); opacity: .5; font-weight: 500; }
.dp-day.weekend:not(.selected):not(.out) { color: var(--danger); }
.dp-day.today::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.dp-day.focus { box-shadow: inset 0 0 0 2px var(--primary); }
.dp-day.in-range { background: var(--primary-soft); border-radius: 0; color: var(--text); }
.dp-day.selected, .dp-day.range-start, .dp-day.range-end {
  background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px var(--primary);
}
.dp-day.range-start:not(.range-end) { border-radius: 12px 0 0 12px; }
.dp-day.range-end:not(.range-start) { border-radius: 0 12px 12px 0; }
.dp-day.selected.today::after, .dp-day.range-start.today::after, .dp-day.range-end.today::after { background: #fff; }
.dp-day:disabled { opacity: .25; cursor: not-allowed; text-decoration: line-through; }
.dp-day.has-dot::before {
  content: ""; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}

.dp-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.dp-cell {
  border: 0; background: transparent; color: var(--text); border-radius: 12px;
  padding: .85rem 0; font-weight: 600; font-size: .92rem;
}
.dp-cell:hover:not(:disabled) { background: var(--surface-2); }
.dp-cell.current { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dp-cell.selected { background: var(--primary); color: #fff; }
.dp-cell:disabled { opacity: .3; }

.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-foot button {
  border: 0; background: transparent; color: var(--primary); font-weight: 700; font-size: .85rem;
  padding: .4rem .7rem; border-radius: 9px;
}
.dp-foot button:hover { background: var(--primary-soft); }
.dp-foot .dp-clear { color: var(--muted); }
.dp-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dp-presets button {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font-size: .78rem; font-weight: 600; padding: .28rem .65rem; border-radius: 99px;
}
.dp-presets button:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Data tables (datatable.js) + skin for DataTables.net 1.x / 2.x
   ========================================================================== */
.dt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1.15rem 1.5rem;
}
.dt-length { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.dt-length .combo { width: 86px; }
.dt-length select.form-select { width: 86px; }
.dt-extra { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.dt-extra .combo { width: 180px; }
.dt-search { position: relative; margin-left: auto; width: 300px; max-width: 100%; }
.dt-search > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.dt-search input {
  width: 100%; min-height: 40px; padding: .45rem 2.3rem .45rem 2.4rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .9rem; outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dt-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
.dt-search input::-webkit-search-cancel-button { display: none; }
.dt-search .dt-clear {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: 7px;
  display: none; place-items: center;
}
.dt-search.has-q .dt-clear { display: grid; }
.dt-search .dt-clear:hover { background: var(--surface-2); color: var(--text); }
.dt-bulk {
  display: none; align-items: center; gap: .6rem;
  padding: .35rem .5rem .35rem .85rem; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .86rem;
}
.dt-bulk.show { display: inline-flex; }
.dt-bulk button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 8px; padding: .25rem .6rem; font-size: .8rem; font-weight: 600; }
.dt-bulk button:hover { background: rgba(255, 255, 255, .22); }
.dt-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--line);
}
.dt-info { color: var(--muted); font-size: .86rem; }
.dt-info strong { color: var(--text); }
.dt-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.dt-pages button {
  min-width: 36px; height: 36px; padding: 0 .55rem;
  border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font-weight: 700; font-size: .86rem;
}
.dt-pages button:hover:not(:disabled):not(.active) { background: var(--surface-2); color: var(--primary); }
.dt-pages button.active { background: var(--ink); color: #fff; }
.dt-pages button:disabled { opacity: .35; }
.dt-pages .gap { min-width: 24px; display: grid; place-items: center; color: var(--muted); }
.dt-empty td { text-align: center; padding: 3rem 1rem !important; color: var(--muted); }
.dt-empty i { display: block; font-size: 2rem; margin-bottom: .4rem; opacity: .5; }
.dt-empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: .2rem; }
mark.dt-hit { background: var(--accent-soft); color: inherit; padding: 0 1px; border-radius: 3px; }
@media (max-width: 575.98px) { .dt-search { width: 100%; margin-left: 0; } .dt-footer { justify-content: center; } }

/* DataTables.net (jQuery) skin — if your app already uses it */
.dataTables_wrapper, .dt-container { font-size: .92rem; }
.dataTables_wrapper .row:first-child, .dt-container .dt-layout-row:first-child { padding: 1.15rem 1.5rem; margin: 0; }
.dataTables_length label, .dataTables_filter label, .dt-length label, .dt-search label { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-weight: 500; }
.dataTables_length select, .dt-container .dt-length select {
  min-height: 38px; border: 1.5px solid var(--line) !important; border-radius: 10px !important;
  background-color: var(--surface) !important; color: var(--text); padding: .3rem 2rem .3rem .75rem !important;
}
.dataTables_filter input, .dt-container .dt-search input {
  min-height: 40px; border: 1.5px solid var(--line) !important; border-radius: 12px !important;
  background: var(--surface-2) !important; color: var(--text); padding: .45rem .9rem !important; margin-left: 0 !important;
}
.dataTables_filter input:focus, .dt-container .dt-search input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-soft) !important; outline: 0; }
.dataTables_info, .dt-container .dt-info { color: var(--muted); padding: 1rem 1.5rem !important; }
.dataTables_paginate, .dt-container .dt-paging { padding: .75rem 1.5rem !important; }
.dataTables_paginate .pagination, .dt-container .dt-paging .pagination { margin: 0; }
.dataTables_paginate .paginate_button, .dt-container .dt-paging .dt-paging-button {
  border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--text) !important;
  font-weight: 700; min-width: 36px; margin: 0 2px !important;
}
.dataTables_paginate .paginate_button.current, .dt-container .dt-paging .dt-paging-button.current { background: var(--ink) !important; color: #fff !important; }
table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order::before,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order::after { opacity: .3; }
table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_desc::after { opacity: 1; color: var(--primary); }

/* ==========================================================================
   Passwords: strength meter, rules, ring, OTP boxes, stepper
   ========================================================================== */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .6rem; }
.pw-meter span { height: 6px; border-radius: 99px; background: var(--line); transition: background .25s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--accent); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: var(--info); }
.pw-meter[data-score="4"] span { background: var(--success); }
.pw-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.pw-label b { color: var(--text); }

.pw-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pw-rules li { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; transition: color .2s; }
.pw-rules li::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  border: 1.75px solid var(--check-border);
  background: no-repeat center / 0 0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2 6.8-7.4' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-color .2s, border-color .2s, background-size .25s cubic-bezier(.3, 1.6, .5, 1);
}
.pw-rules li.ok { color: var(--text); }
.pw-rules li.ok::before { background-color: var(--success); border-color: var(--success); background-size: 14px 14px; }

.pw-ring {
  --p: 0; --ring: var(--line);
  width: 168px; height: 168px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid; place-items: center; margin: 0 auto;
  transition: --p .4s;
}
.pw-ring > div {
  width: 132px; height: 132px; border-radius: 50%; background: var(--surface);
  display: grid; place-content: center; text-align: center;
}
.pw-ring .score { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pw-ring small { color: var(--muted); font-weight: 600; margin-top: .25rem; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

.pw-match { font-size: .82rem; font-weight: 600; margin-top: .4rem; display: none; align-items: center; gap: .35rem; }
.pw-match.show { display: flex; }
.pw-match.ok { color: var(--success); }
.pw-match.bad { color: var(--danger); }

.pw-suggest {
  border: 1.5px dashed var(--check-border); background: transparent; color: var(--primary);
  border-radius: 10px; padding: .35rem .7rem; font-size: .82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .35rem;
}
.pw-suggest:hover { border-color: var(--primary); background: var(--primary-soft); }

.otp { display: flex; gap: .6rem; justify-content: space-between; }
.otp input {
  width: 100%; max-width: 58px; aspect-ratio: 1 / 1.15;
  text-align: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  border: 1.75px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
  outline: 0; caret-color: var(--primary);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.otp input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); transform: translateY(-2px); }
.otp input.filled { border-color: var(--primary); background: var(--primary-soft); }
.otp.error input { border-color: var(--danger); animation: otpShake .35s; }
@keyframes otpShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.stepper { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.stepper .st { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.stepper .st b {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font-size: .82rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .2s, color .2s;
}
.stepper .bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; min-width: 18px; }
.stepper .bar::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.stepper .st.active { color: var(--text); }
.stepper .st.active b { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.stepper .st.done b { background: var(--success); color: #fff; box-shadow: none; }
.stepper .st.done + .bar::after { transform: scaleX(1); }
@media (max-width: 480px) { .stepper .st span { display: none; } }

.step-pane { display: none; }
.step-pane.active { display: block; animation: paneIn .35s ease-out; }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.success-burst {
  width: 92px; height: 92px; border-radius: 50%; margin-bottom: 1.4rem;
  background: var(--success-soft); display: grid; place-items: center; position: relative;
}
.success-burst::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--success) 45%, transparent);
  animation: burstSpin 12s linear infinite;
}
.success-burst svg { width: 46px; height: 46px; }
.success-burst path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .6s .2s ease-out forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes burstSpin { to { transform: rotate(360deg); } }

.resend { font-size: .88rem; color: var(--muted); }
.resend button { border: 0; background: none; color: var(--primary); font-weight: 700; padding: 0; }
.resend button:disabled { color: var(--muted); font-weight: 500; }

/* ==========================================================================
   Month calendar (calendar.html)
   ========================================================================== */
.cal-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 1199.98px) { .cal-shell { grid-template-columns: 1fr; } }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem; }
.cal-month { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; margin: 0; line-height: 1; }
.cal-month span { color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .85rem; padding: .4rem .85rem; border-radius: 9px; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.cal-week span { padding: .6rem .75rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(118px, auto); border-top: 1px solid var(--line); }
.cal-cell {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .5rem .5rem .6rem; min-width: 0; cursor: pointer; position: relative;
  transition: background .12s;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.out { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.cal-cell.out .num { opacity: .4; }
.cal-cell .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  font-weight: 700; font-size: .9rem; margin-bottom: .3rem;
}
.cal-cell.today .num { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px var(--primary); }
.cal-cell.selected { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-ev {
  display: block; width: 100%; text-align: left; border: 0;
  padding: .22rem .5rem; margin-bottom: 3px; border-radius: 7px;
  font-size: .76rem; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--primary-soft); color: var(--primary);
  border-left: 3px solid currentColor;
}
.cal-ev.t-meeting { background: var(--primary-soft); color: var(--primary); }
.cal-ev.t-delivery { background: var(--success-soft); color: var(--success); }
.cal-ev.t-payment { background: var(--accent-soft); color: var(--accent-ink); }
.cal-ev.t-holiday { background: var(--danger-soft); color: var(--danger); }
.cal-more { font-size: .74rem; font-weight: 700; color: var(--muted); padding-left: .4rem; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.agenda { list-style: none; margin: 0; padding: 0 1.5rem 1.25rem; }
.agenda .day { font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; margin: 1.1rem 0 .5rem; letter-spacing: -.02em; }
.agenda .day small { color: var(--muted); font-family: var(--font-text); font-weight: 500; font-size: .85rem; margin-left: .4rem; }
.agenda .item { display: flex; gap: .9rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); margin-bottom: .45rem; }
.agenda .item time { font-weight: 700; font-size: .85rem; min-width: 70px; color: var(--muted); }
.agenda .item .bar { width: 4px; align-self: stretch; border-radius: 4px; }
@media (max-width: 767.98px) {
  .cal-grid { grid-auto-rows: minmax(64px, auto); }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left: 0; background: currentColor; }
  .cal-more { display: none; }
}

/* ---------- misc shared ---------- */
.demo-label { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 0 .75rem; }
.font-card { cursor: pointer; transition: box-shadow .15s, transform .15s; border: 2px solid transparent !important; }
.font-card:hover { transform: translateY(-2px); }
.font-card.chosen { border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-soft); }
.font-card .sample { font-size: 3rem; line-height: 1; margin: .2rem 0 .6rem; color: var(--text); }
.font-card .meta-line { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; }
.swash-pick { display: flex; flex-wrap: wrap; gap: .75rem; }
.swash-pick button {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px;
  padding: .8rem 1rem .6rem; min-width: 170px; text-align: left; color: var(--text); font-weight: 700; font-size: .85rem;
}
.swash-pick button.chosen { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.swash-pick i.sw { display: block; height: 18px; width: 150px; margin-top: .5rem; background: no-repeat left center / contain; }
/* ==========================================================================
   Autocomplete combo (see combo.js)
   ========================================================================== */
.combo-native {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none; margin: 0 !important; padding: 0 !important;
}
.combo { position: relative; width: 100%; }
.combo-control {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  min-height: 46px;
  padding: 5px 2.6rem 5px .9rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.combo.sm .combo-control { min-height: 38px; padding: 3px 2.3rem 3px .75rem; border-radius: 10px; font-size: .85rem; }
.combo-control:hover { border-color: var(--check-border); }
.combo.open .combo-control, .combo.focus .combo-control { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.combo.multi .combo-control { padding-left: 6px; }
.combo-input {
  flex: 1 1 60px; min-width: 60px;
  border: 0; outline: 0; background: transparent; color: var(--text);
  padding: 4px 0; font: inherit;
}
.combo.multi .combo-input { padding-left: 6px; }
.combo-input::placeholder { color: var(--muted); opacity: .8; }
.combo.has-value:not(.multi):not(.open) .combo-input::placeholder { color: var(--text); opacity: 1; }
.combo-lead { display: inline-flex; flex: 0 0 auto; }
.combo-lead .avatar { width: 26px; height: 26px; flex-basis: 26px; border-radius: 8px; font-size: .65rem; }
.combo-caret, .combo-clear {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; padding: 0;
}
.combo-caret { right: .8rem; pointer-events: none; font-size: .8rem; transition: transform .2s; }
.combo.open .combo-caret { transform: translateY(-50%) rotate(180deg); color: var(--primary); }
.combo-clear { right: 2.1rem; width: 22px; height: 22px; border-radius: 6px; font-size: 1rem; visibility: hidden; }
.combo-clear:hover { background: var(--surface-2); color: var(--text); }
.combo.has-value .combo-clear { visibility: visible; }
.combo.has-value .combo-control { padding-right: 3.6rem; }
.combo[data-required] .combo-clear { display: none; }

.combo-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--r-sm); padding: .2rem .25rem .2rem .55rem;
  font-size: .82rem; font-weight: 600; max-width: 100%;
}
.combo-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-chip button {
  border: 0; background: transparent; color: inherit; opacity: .7;
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; padding: 0; font-size: .9rem;
}
.combo-chip button:hover { opacity: 1; background: var(--primary-soft); }

.combo-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  z-index: 1060;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 6px;
  max-height: 290px; overflow-y: auto;
  display: none;
  min-width: 220px;
}
.combo.open .combo-menu { display: block; animation: comboIn .14s ease-out; }
.combo.up .combo-menu { top: auto; bottom: calc(100% + 8px); }
@keyframes comboIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.combo-group { font-size: .76rem; font-weight: 700; color: var(--muted); padding: .55rem .7rem .25rem; }
.combo-option {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .7rem; border-radius: 10px;
  cursor: pointer; color: var(--text);
}
.combo-option .t { flex: 1; min-width: 0; line-height: 1.3; }
.combo-option .t > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-option small { color: var(--muted); display: block; font-size: .78rem; }
.combo-option mark { background: var(--accent-soft); color: inherit; padding: 0 1px; border-radius: 3px; font-weight: 700; }
.combo-option.active { background: var(--surface-2); }
.combo-option.selected { color: var(--primary); font-weight: 600; }
.combo-option .tick { color: var(--primary); visibility: hidden; font-size: 1rem; }
.combo-option.selected .tick { visibility: visible; }
.combo-option.create { color: var(--primary); font-weight: 600; }
.combo-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.combo-empty { padding: 1rem .8rem; text-align: center; color: var(--muted); font-size: .88rem; }
.combo-empty i { display: block; font-size: 1.4rem; margin-bottom: .2rem; opacity: .6; }
.combo-loading { padding: .9rem .8rem; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .5rem; }
.combo-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--primary);
  animation: comboSpin .7s linear infinite;
}
@keyframes comboSpin { to { transform: rotate(360deg); } }
.combo.disabled .combo-control { background: var(--surface-2); cursor: not-allowed; opacity: .7; }

/* validation hook: native select sits right before the widget */
.was-validated .combo-native:invalid + .combo .combo-control,
.combo-native.is-invalid + .combo .combo-control,
.combo-native.input-validation-error + .combo .combo-control { border-color: var(--danger); }
.was-validated .combo-native:invalid ~ .invalid-feedback { display: block; }


/* ---------- small shared helpers ---------- */
.pw-input { position: relative; }
.pw-input .form-control { padding-right: 3rem; }
.pw-eye {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
}
.pw-eye:hover { background: var(--surface-2); color: var(--text); }
.pw-rules-2 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .45rem .75rem; }
.pw-rules-2 li { font-size: .84rem; }
.session { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }
.lede-tag.warn .ico { background: var(--danger); color: #fff; }
.caps-warning { display: none; font-size: .8rem; color: var(--accent-ink); margin: .4rem 0 0 .25rem; }
.caps-warning.show { display: block; }
.sso { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sso .btn { height: 50px; border-radius: 14px; }
.sso .bi-microsoft { color: #00a4ef; }
.sso .bi-google { color: #ea4335; }
.auth-seg { display: flex; width: 100%; margin-bottom: 1.4rem; }
.auth-seg button { flex: 1; padding: .6rem; }
.hero-copy { position: relative; max-width: 52%; }
@media (max-width: 575.98px) { .hero-copy { max-width: 100%; } }
.font-card .sample { font-size: 2.5rem; white-space: nowrap; overflow: hidden; }
.font-card .sample + div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.1rem !important; }
[hidden] { display: none !important; }
/* sign-in subtitles: keep the sentence flowing; tag sits inline */
.auth-card .lede, .auth2-form .lede { display: block !important; line-height: 1.7; }
.auth-card .lede .lede-tag, .auth2-form .lede .lede-tag { margin-right: .45rem; vertical-align: middle; }

/* ---------- more underline styles (fonts.html) ---------- */
html:root {
  --swash-marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cpath d='M4 6.5c30-2.4 80-3.6 158-2.2 2.6 0 3 8.6.4 8.9C110 15.6 58 16 6 14.6c-3.2-.1-5-7.8-2-8.1Z' fill='%23f5a524' opacity='.55'/%3E%3Cpath d='M10 9.5c40-1.6 90-2 150-1' stroke='%23f5a524' stroke-width='2' stroke-linecap='round' fill='none' opacity='.8'/%3E%3C/svg%3E");
  --swash-zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cpath d='M3 12l10-7 10 7 10-7 10 7 10-7 10 7 10-7 10 7 10-7 10 7 10-7 10 7 10-7 10 7 10-7' fill='none' stroke='%23f5a524' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --swash-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cpath d='M3 12.5C40 4 98 3 150 8.5' fill='none' stroke='%23f5a524' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M141 2.8l10.5 5.9-9.4 7' fill='none' stroke='%23f5a524' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --swash-double: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Crect x='2' y='4' width='150' height='4' rx='2' fill='%23f5a524'/%3E%3Crect x='2' y='11' width='96' height='3' rx='1.5' fill='%235b3df5'/%3E%3C/svg%3E");
  --swash-dashes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Crect x='2' y='6.5' width='70' height='5' rx='2.5' fill='%23f5a524'/%3E%3Crect x='80' y='6.5' width='38' height='5' rx='2.5' fill='%23ff7a3d'/%3E%3Crect x='126' y='6.5' width='18' height='5' rx='2.5' fill='%235b3df5'/%3E%3Crect x='152' y='6.5' width='8' height='5' rx='2.5' fill='%230fa47a'/%3E%3C/svg%3E");
  --swash-loop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cpath d='M3 11c22-5 44-6 62-3 9 1.5 10 7.5 4 8.2-6 .6-6-6.6 3-8.6 22-4.6 58-4 92-1.6' fill='none' stroke='%23f5a524' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --swash-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Crect x='2' y='7' width='118' height='5' rx='2.5' fill='%23f5a524'/%3E%3Cpath d='M140 1.5l2.3 5.4 5.6 2.1-5.6 2.1-2.3 5.4-2.3-5.4-5.6-2.1 5.6-2.1Z' fill='%235b3df5'/%3E%3Ccircle cx='157' cy='5' r='2.2' fill='%23f5a524'/%3E%3Ccircle cx='155' cy='14' r='1.6' fill='%230fa47a'/%3E%3C/svg%3E");
  --swash-pill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 18'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%235b3df5'/%3E%3Cstop offset='.55' stop-color='%23ff7a3d'/%3E%3Cstop offset='1' stop-color='%23f5a524'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='2' y='4' width='120' height='10' rx='5' fill='url(%23p)'/%3E%3C/svg%3E");
}
html[data-swash="marker"] .page-title-swash { background-image: var(--swash-marker); }
html[data-swash="zigzag"] .page-title-swash { background-image: var(--swash-zigzag); }
html[data-swash="arrow"] .page-title-swash { background-image: var(--swash-arrow); }
html[data-swash="double"] .page-title-swash { background-image: var(--swash-double); }
html[data-swash="dashes"] .page-title-swash { background-image: var(--swash-dashes); }
html[data-swash="loop"] .page-title-swash { background-image: var(--swash-loop); }
html[data-swash="sparkle"] .page-title-swash { background-image: var(--swash-sparkle); }
html[data-swash="pill"] .page-title-swash { background-image: var(--swash-pill); }
html[data-swash="zigzag"] .page-title-swash, html[data-swash="dashes"] .page-title-swash { width: 150px; }
html[data-swash="none"] .page-title-swash { display: none; }
.swash-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.swash-pick button { min-width: 0; }

/* ASP.NET Core: hide the validation summary box until there is an error */
.validation-summary-valid { display: none !important; }
