/* ═══════════════════════════════════════════════════════════════
   Honeydew · components — card hues, buttons, ornaments,
   modals, toasts, menus, forms
   ═══════════════════════════════════════════════════════════════ */

/* ── card colorways (set face gradient + glow + ink) ──────────── */
.c-green  { --face: linear-gradient(168deg, rgba(139, 205, 163, .94) 0%, rgba(95, 174, 128, .95) 46%, rgba(63, 143, 102, .96) 100%);
            --glow: rgba(110, 190, 140, .5); --card-ink: #ffffff; --card-ink-soft: rgba(255,255,255,.85); }
.c-gold   { --face: linear-gradient(168deg, rgba(250, 224, 156, .95), rgba(242, 195, 96, .95) 55%, rgba(233, 172, 62, .96));
            --glow: rgba(240, 190, 90, .55); --card-ink: #6d4d14; --card-ink-soft: #8a6524; }
.c-orange { --face: linear-gradient(168deg, rgba(248, 195, 100, .95), rgba(240, 168, 62, .96) 55%, rgba(230, 145, 40, .96));
            --glow: rgba(240, 170, 70, .55); --card-ink: #ffffff; --card-ink-soft: rgba(255,255,255,.88); }
.c-purple { --face: linear-gradient(168deg, rgba(216, 190, 240, .95), rgba(190, 152, 226, .95) 55%, rgba(163, 119, 205, .96));
            --glow: rgba(185, 145, 225, .5); --card-ink: #ffffff; --card-ink-soft: rgba(255,255,255,.88); }
.c-lav    { --face: linear-gradient(168deg, rgba(233, 219, 248, .95), rgba(212, 186, 240, .94));
            --glow: rgba(190, 155, 228, .45); --card-ink: #5d3f83; --card-ink-soft: #7e63a3; }
.c-blue   { --face: linear-gradient(168deg, rgba(190, 214, 246, .95), rgba(148, 182, 235, .95) 55%, rgba(116, 154, 222, .96));
            --glow: rgba(140, 175, 230, .5); --card-ink: #23406e; --card-ink-soft: #3d5c8c; }
.c-sky    { --face: linear-gradient(168deg, rgba(206, 226, 249, .95), rgba(164, 197, 240, .94));
            --glow: rgba(150, 185, 235, .45); --card-ink: #2c4a77; --card-ink-soft: #4c6a97; }
.c-mint   { --face: linear-gradient(168deg, rgba(232, 243, 224, .93), rgba(212, 232, 200, .9));
            --glow: rgba(160, 200, 130, .4); --card-ink: #40613f; --card-ink-soft: #64815d; }
.c-pink   { --face: linear-gradient(168deg, rgba(250, 224, 216, .94), rgba(244, 197, 185, .93));
            --glow: rgba(235, 165, 145, .45); --card-ink: #8c4438; --card-ink-soft: #a8695c; }
.c-peach  { --face: linear-gradient(168deg, rgba(250, 222, 202, .94), rgba(246, 196, 164, .93));
            --glow: rgba(238, 168, 120, .45); --card-ink: #a34a33; --card-ink-soft: #ba6f56; }
.c-paper  { --face: linear-gradient(168deg, rgba(255, 253, 246, .93), rgba(250, 241, 219, .88));
            --glow: var(--rim-glow); --card-ink: var(--ink); --card-ink-soft: var(--ink-soft); }

.glass-inner { color: var(--card-ink, var(--ink)); }

/* ── kicker / heading inside cards ────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--card-ink, var(--ink));
}
.kicker svg { width: 15px; height: 15px; }
.card-title {
  font-size: 17px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--card-ink); white-space: nowrap;
}
.card-body { font-size: 14px; line-height: 1.55; color: var(--card-ink-soft, var(--ink-soft)); }

/* ── circular icon medallion (overlapping card tops) ──────────── */
.medallion {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto;
  color: var(--card-ink);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 58%),
    var(--med-face, rgba(255, 255, 255, .16));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .65),
    inset 0 2px 6px rgba(255, 255, 255, .6),
    inset 0 -4px 10px rgba(120, 84, 20, .18),
    0 6px 16px -6px rgba(120, 84, 20, .35);
  position: relative;
}
.medallion svg { width: 38px; height: 38px; }
.medallion-sm { width: 52px; height: 52px; }
.medallion-sm svg { width: 24px; height: 24px; }

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .03em;
  white-space: nowrap;
  color: var(--card-ink, var(--ink));
  background: linear-gradient(165deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .14));
  box-shadow:
    inset 0 0 0 1.4px rgba(255, 255, 255, .75),
    inset 0 1px 2px rgba(255, 255, 255, .8),
    inset 0 -2px 5px rgba(120, 84, 20, .14),
    0 4px 12px -5px rgba(120, 84, 20, .35);
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.btn::after { /* sheen that slides across on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.5) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover { transform: translateY(-1px);
  box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.9), inset 0 1px 2px rgba(255,255,255,.9),
              inset 0 -2px 5px rgba(120,84,20,.12), 0 8px 18px -6px rgba(120,84,20,.45); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 15px; height: 15px; }

.btn-solid {
  background: linear-gradient(165deg, rgba(255, 255, 255, .96), rgba(255, 248, 230, .9));
  color: var(--ink);
}
.btn-ghost { box-shadow: inset 0 0 0 1.3px rgba(255,255,255,.55); background: rgba(255,255,255,.1); }
.btn-sm { padding: 7px 16px; font-size: 12.5px; }
.btn-xs { padding: 5px 12px; font-size: 11.5px; gap: 5px; }
.btn-xs svg { width: 12px; height: 12px; }

/* round icon-only button */
.btn-orb {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--card-ink, var(--ink));
  background: linear-gradient(160deg, rgba(255,255,255,.42), rgba(255,255,255,.12));
  box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.7), 0 3px 8px -3px rgba(120,84,20,.4);
  transition: transform .18s ease, box-shadow .2s ease;
}
.btn-orb:hover { transform: translateY(-1px) scale(1.06); }
.btn-orb:active { transform: scale(.94); }
.btn-orb svg { width: 14px; height: 14px; }

/* ── ornamental line-work (crisp, minimal, naturalistic) ──────── */
.orna-divider {
  display: flex; align-items: center; gap: 10px;
  color: currentColor; opacity: .7;
  margin: 12px auto;
  width: min(300px, 80%);
}
.orna-divider::before, .orna-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.orna-divider::after { background: linear-gradient(90deg, currentColor, transparent); }
.orna-divider svg { width: 11px; height: 11px; flex: none; }

/* sprig — small leaf flourish for card corners */
.sprig {
  position: absolute; width: 44px; height: 44px;
  color: var(--card-ink, var(--ink));
  opacity: .4; pointer-events: none;
}
.sprig svg { width: 100%; height: 100%; }
.sprig.tl { top: 12px; left: 14px; }
.sprig.tr { top: 12px; right: 14px; transform: scaleX(-1); }
.sprig.bl { bottom: 12px; left: 14px; transform: scaleY(-1); }
.sprig.br { bottom: 12px; right: 14px; transform: scale(-1); }

/* corner ticks — fine right-angle line marks */
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1px solid currentColor; opacity: .35; pointer-events: none;
}
.ticks::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; border-top-left-radius: 6px; }
.ticks::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; border-bottom-right-radius: 6px; }

/* tiny sparkle accents */
.spark-dot { position: absolute; color: var(--card-ink, #c9ad72); opacity: .55; pointer-events: none; }
.spark-dot svg { width: 12px; height: 12px; }

/* ── pills, stats, rows ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.pill svg { width: 12px; height: 12px; }

.row-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 2px 8px -4px rgba(120, 84, 20, .25);
  transition: background .2s ease, transform .18s ease;
  text-align: left; width: 100%;
}
.row-item:hover { background: rgba(255, 255, 255, .65); transform: translateY(-1px); }
.row-item .row-icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.row-item .row-icon svg { width: 17px; height: 17px; }
.row-item .row-text { flex: 1; min-width: 0; }
.row-item .row-text strong { display: block; font-size: 13.5px; font-weight: 600; }
.row-item .row-text small { display: block; font-size: 11.5px; color: var(--card-ink-soft, var(--ink-soft)); margin-top: 1px; }
.row-item > svg.chev { width: 14px; height: 14px; flex: none; opacity: .6; }

/* ── forms ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; text-align: left; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  border: 0; border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px rgba(201, 173, 114, .45), inset 0 2px 4px rgba(120, 84, 20, .08);
  outline: none;
  transition: box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  box-shadow: inset 0 0 0 1.6px rgba(226, 166, 61, .8), 0 0 0 4px rgba(240, 196, 110, .25);
}
.field textarea { resize: vertical; min-height: 84px; }

/* toggle switch */
.toggle { position: relative; width: 44px; height: 25px; flex: none; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle .knob {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(160, 150, 120, .35);
  box-shadow: inset 0 1px 3px rgba(90, 70, 30, .3);
  transition: background .25s ease;
}
.toggle .knob::after {
  content: ""; position: absolute; top: 2.5px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f2e7cd);
  box-shadow: 0 2px 5px rgba(90, 70, 30, .4), inset 0 0 0 1px rgba(255,255,255,.8);
  transition: transform .28s cubic-bezier(.34, 1.5, .6, 1);
}
.toggle input:checked + .knob { background: linear-gradient(160deg, #7cc094, #4a9a6e); }
.toggle input:checked + .knob::after { transform: translateX(18px); }

/* ── modal ────────────────────────────────────────────────────── */
#modal-root:empty { display: none; }
.modal-veil {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(62, 48, 20, .32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: veil-in .3s ease;
}
@keyframes veil-in { from { opacity: 0; } }
.modal { width: min(480px, 100%); max-height: 88vh; display: flex; --r: 30px; animation: modal-in .38s cubic-bezier(.3, 1.4, .6, 1); }
.modal.wide { width: min(620px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.modal .glass-inner { display: flex; flex-direction: column; width: 100%; padding: 26px 28px 24px; overflow-y: auto; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head .medallion-sm { margin: 0; }
.modal-head h3 { flex: 1; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.modal-close { margin-left: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ── toasts ───────────────────────────────────────────────────── */
#toast-root {
  position: fixed; right: 22px; bottom: 22px; z-index: 140;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255, 253, 245, .95), rgba(250, 240, 216, .92));
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8), 0 0 16px -2px var(--rim-glow), 0 10px 26px -10px rgba(120, 84, 20, .5);
  animation: toast-in .4s cubic-bezier(.3, 1.4, .6, 1);
}
.toast.out { animation: toast-out .35s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.94); } }
.toast .t-ico {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #8bcda3, #4a9a6e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.toast .t-ico svg { width: 14px; height: 14px; }

/* ── popover menu (user chip) ─────────────────────────────────── */
.menu {
  position: fixed; z-index: 120;
  min-width: 220px;
  --r: 22px; --bw: 4px;
  animation: modal-in .3s cubic-bezier(.3, 1.4, .6, 1);
}
.menu .glass-inner { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.menu button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 13px;
  font-size: 13px; font-weight: 500; text-align: left;
  transition: background .18s ease;
}
.menu button:hover { background: rgba(255, 251, 240, .85); }
.menu button svg { width: 16px; height: 16px; opacity: .75; }
.menu .menu-sep { height: 1px; margin: 4px 8px; background: rgba(201, 173, 114, .4); }

/* progress bar */
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 2px rgba(120,84,20,.18); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,.25)), var(--meter, linear-gradient(90deg, #8bcda3, #4a9a6e));
  background-blend-mode: overlay; transition: width .6s cubic-bezier(.3, 1, .4, 1);
  box-shadow: 0 0 8px -1px var(--glow, rgba(110,190,140,.6)); }

/* checkbox orb (agenda) */
.check-orb {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1.4px rgba(201,173,114,.6);
  transition: all .25s ease; color: transparent;
}
.check-orb svg { width: 14px; height: 14px; }
.check-orb.on { background: linear-gradient(160deg, #8bcda3, #4a9a6e); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 10px -2px rgba(110,190,140,.8); }

@media (max-width: 640px) {
  #toast-root { left: 16px; right: 16px; align-items: stretch; }
}
