@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  img { display: block; max-width: 100%; }
}

@layer base {
  :root {
    --petal: #e22b7c;
    --petal-deep: #bc155e;
    --petal-pale: #fff0f6;
    --ink: #32241f;
    --ink-soft: #6f5b54;
    --ink-faint: #9b8b84;
    --paper: #fffdf9;
    --paper-deep: #f8f1e8;
    --paper-darker: #ede0d2;
    --peach: #f7c8b3;
    --sage: #afc1a5;
    --sky: #bcd7da;
    --success: #2f7d5c;
    --warning: #9b641a;
    --danger: #b44442;
    --line: rgba(50, 36, 31, .12);
    --line-soft: rgba(50, 36, 31, .075);
    --shadow-sm: 0 2px 6px rgba(97, 59, 47, .05), 0 8px 24px rgba(97, 59, 47, .055);
    --shadow-md: 0 8px 20px rgba(124, 45, 82, .1), 0 18px 48px rgba(97, 59, 47, .1);
    --shadow-brand: 0 12px 28px rgba(226, 43, 124, .26);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 27px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "DM Sans", Arial, sans-serif;
    --font-mono: "DM Mono", monospace;
  }
  body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
  body:has(dialog[open]) { overflow: hidden; }
  :focus-visible { outline: 3px solid rgba(226,43,124,.45); outline-offset: 3px; }
  ::selection { color: #fff; background: var(--petal); }
  .skip-link { position: fixed; z-index: 200; padding: 10px 16px; color: #fff; background: var(--petal-deep); transform: translateY(-120%); }
  .skip-link:focus { transform: translateY(0); }
}

@layer components {
  .public-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; max-width: 1280px; height: 78px; padding: 0 36px; margin: 0 auto; background: rgba(255,253,249,.82); border-bottom: 1px solid transparent; backdrop-filter: blur(16px) saturate(130%); transition: border-color .15s ease; }
  .public-header.is-scrolled { border-color: var(--line-soft); }
  .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
  .brand-home { gap: 8px; }
  .brand-admin-trigger { display: grid; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
  .brand-admin-trigger:focus-visible { outline: 3px solid rgba(226,43,124,.28); outline-offset: 3px; }
  .brand-admin-trigger:hover .brand-mark { box-shadow: 0 5px 13px rgba(226,43,124,.28); transform: rotate(-7deg) scale(1.05); }
  .brand-mark { display: grid; width: 31px; height: 31px; overflow: hidden; place-items: center; background: var(--petal); border-radius: 50%; }
  .brand-mark img { width: 78%; height: 78%; object-fit: contain; }
  .brand-name { color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.055em; text-decoration: none; }
  .brand-dot { color: var(--petal); }
  .main-nav { display: flex; gap: 31px; margin-left: 78px; }
  .main-nav a, .nav-admin { padding: 8px 0; color: var(--ink-soft); font-size: 14px; text-decoration: none; background: transparent; border: 0; transition: color .15s ease; }
  .main-nav a:hover, .nav-admin:hover { color: var(--petal); }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn-primary { color: #fff; background: var(--petal); box-shadow: 0 4px 13px rgba(226,43,124,.18); }
  .btn-primary:hover { background: var(--petal-deep); box-shadow: var(--shadow-brand); }
  .btn-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
  .btn-secondary:hover { background: var(--paper-deep); border-color: rgba(50,36,31,.2); }
  .btn-small { min-height: 38px; padding: 8px 15px; font-size: 13px; }
  .btn-large { min-height: 51px; padding: 13px 22px; }
  .hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); min-height: 620px; max-width: 1280px; padding: 77px 78px 67px; margin: 0 auto; overflow: hidden; }
  .hero::before { position: absolute; z-index: -1; top: 36px; right: -115px; width: 617px; height: 505px; content: ""; background: var(--petal-pale); border-radius: 48% 52% 54% 46% / 37% 49% 51% 63%; transform: rotate(-8deg); }
  .hero-copy { max-width: 520px; }
  .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
  .yarn-dot { width: 10px; height: 10px; background: var(--petal); border-radius: 50%; box-shadow: 3px 0 0 -1px var(--paper), 3px 0 0 0 var(--petal); }
  .hero h1 { margin-top: 18px; font-family: var(--font-display); font-size: clamp(52px, 5.3vw, 80px); font-weight: 600; letter-spacing: -.07em; line-height: .98; }
  h1 em, h2 em { color: var(--petal); font-weight: 500; }
  .hero-text { max-width: 410px; margin-top: 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
  .hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 31px; }
  .text-link { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
  .text-link span { margin-left: 4px; color: var(--petal); }
  .hero-notes { display: flex; gap: 30px; margin-top: 52px; }
  .hero-notes div { display: grid; gap: 2px; padding-left: 11px; border-left: 2px solid var(--peach); }
  .hero-notes strong { font-size: 12px; font-weight: 700; }
  .hero-notes span { color: var(--ink-faint); font-size: 12px; }
  .hero-visual { position: relative; min-height: 460px; }
  .hero-photo-frame { position: absolute; top: 18px; right: 47px; width: min(85%, 385px); padding: 13px 13px 34px; background: #fff; box-shadow: var(--shadow-md); transform: rotate(5deg); }
  .hero-photo-frame img { width: 100%; height: 356px; object-fit: cover; object-position: center 68%; filter: saturate(.82) contrast(.97); }
  .hero-photo-frame p { position: absolute; right: 17px; bottom: 9px; color: var(--petal-deep); font-family: var(--font-display); font-size: 15px; font-style: italic; transform: rotate(-3deg); }
  .tape { position: absolute; z-index: 2; width: 82px; height: 27px; background: rgba(247,200,179,.79); }
  .tape-top { top: -13px; left: calc(50% - 41px); transform: rotate(-2deg); }
  .sticker { position: absolute; z-index: 3; display: grid; width: 67px; height: 67px; place-items: center; color: var(--petal); background: #fff7e9; border: 2px solid var(--petal); border-radius: 50%; box-shadow: 0 4px 0 var(--petal); }
  .sticker-flower { top: 2px; left: 1px; font-size: 37px; transform: rotate(-12deg); }
  .hero-label { position: absolute; right: 0; bottom: 48px; z-index: 3; padding: 14px 19px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow-sm); font-family: var(--font-display); font-size: 16px; line-height: 1.05; transform: rotate(-4deg); }
  .hero-label strong { color: var(--petal); font-family: var(--font-body); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
  .yarn-ball { position: absolute; bottom: 5px; left: 11px; width: 116px; height: 116px; overflow: hidden; border: 5px solid #d35193; border-radius: 45% 55% 49% 51%; background: repeating-radial-gradient(ellipse at 40% 45%, transparent 0 9px, #f17eb5 10px 13px, #cf347c 14px 16px); transform: rotate(-19deg); }
  .yarn-ball span { position: absolute; border: 2px solid rgba(255,224,241,.8); border-radius: 50%; }
  .yarn-ball span:nth-child(1) { width: 92px; height: 34px; top: 24px; left: 7px; transform: rotate(23deg); }
  .yarn-ball span:nth-child(2) { width: 103px; height: 41px; top: 39px; left: 2px; transform: rotate(-25deg); }
  .yarn-ball span:nth-child(3) { width: 67px; height: 85px; top: 12px; left: 23px; transform: rotate(62deg); }
  .crochet-line { position: absolute; bottom: 18px; left: 61px; width: 395px; color: var(--petal); transform: rotate(8deg); }
  .thread-one, .thread-two { position: absolute; z-index: -1; border: 1.5px solid var(--petal); border-radius: 50%; opacity: .35; }
  .thread-one { top: -136px; left: -68px; width: 300px; height: 300px; }
  .thread-two { bottom: -164px; right: -66px; width: 370px; height: 280px; border-style: dashed; transform: rotate(-15deg); }
  .schedule-section { max-width: 1150px; padding: 107px 0 93px; margin: 0 auto; }
  .section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 39px; }
  .section-heading h2, .about-copy h2 { margin-top: 10px; font-family: var(--font-display); font-size: clamp(37px,4.2vw,58px); font-weight: 600; letter-spacing: -.06em; line-height: 1.03; }
  .section-heading > p { max-width: 275px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
  .section-number { color: var(--petal); }
  .workshop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
  .workshop-card { position: relative; overflow: hidden; min-width: 0; padding: 9px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
  .workshop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px) rotate(-.4deg); }
  .workshop-cover { position: relative; height: 230px; overflow: hidden; border-radius: 11px; background: var(--paper-deep); }
  .workshop-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
  .workshop-card:hover .workshop-cover img { transform: scale(1.05); }
  .workshop-level { position: absolute; top: 12px; left: 12px; padding: 6px 9px; color: var(--ink); background: rgba(255,253,249,.91); border-radius: 999px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
  .workshop-date-tag { position: absolute; top: 11px; right: 11px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 7px; min-width: 78px; padding: 8px 10px 7px; color: #fff; background: var(--petal); border: 2px solid rgba(255,255,255,.92); border-radius: 12px; box-shadow: 0 5px 13px rgba(76,25,51,.24); line-height: 1; text-shadow: 0 1px 1px rgba(74,16,42,.2); }
  .workshop-date-tag span { align-self: end; padding-bottom: 2px; font-family: var(--font-mono); font-size: 8px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
  .workshop-date-tag strong { grid-row: span 2; align-self: center; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.06em; }
  .workshop-date-tag em { align-self: start; font-family: var(--font-mono); font-size: 8px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
  .workshop-content { padding: 19px 8px 10px; }
  .workshop-project { color: var(--petal-deep); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
  .workshop-content h3 { margin-top: 4px; font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
  .workshop-content p { height: 41px; margin-top: 7px; overflow: hidden; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
  .workshop-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 15px 0 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-family: var(--font-mono); font-size: 9px; }
  .workshop-meta span + span::before { padding-right: 9px; color: var(--peach); content: "•"; }
  .workshop-meta .workshop-venue { width: 100%; overflow: hidden; color: var(--ink-faint); text-overflow: ellipsis; white-space: nowrap; }
  .workshop-meta .workshop-venue::before { display: none; }
  .workshop-bottom { display: flex; align-items: center; justify-content: space-between; }
  .seat-left { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 10px; }
  .seat-left i { display: inline-block; width: 7px; height: 7px; background: var(--sage); border-radius: 50%; }
  .seat-left.low i { background: var(--petal); }
  .card-detail-btn { padding: 6px 0; color: var(--ink); background: none; border: 0; font-size: 11px; font-weight: 700; }
  .card-detail-btn:hover { color: var(--petal); }
  .schedule-footnote { margin-top: 33px; color: var(--ink-soft); font-size: 13px; text-align: center; }
  .schedule-footnote .spark { padding-right: 5px; color: var(--petal); }
  .schedule-footnote a { color: var(--petal-deep); font-weight: 700; }
  .about-section { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(42px,7vw,110px); align-items: center; max-width: 1280px; padding: 83px 113px; margin: 0 auto; background: #f7eee5; border-radius: 49% 51% 0 0 / 8% 8% 0 0; }
  .about-image-wrap { position: relative; }
  .about-media-frame { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 10px solid #fffaf3; background: #f3e9df; box-shadow: var(--shadow-sm); transform: rotate(-2deg); }
  .about-media-frame > img, .about-media-frame > video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .about-stamp { position: absolute; right: -27px; bottom: 24px; display: grid; width: 96px; height: 96px; place-content: center; color: var(--petal-deep); border: 2px dashed var(--petal); border-radius: 50%; font-family: var(--font-mono); font-size: 10px; line-height: 1.3; text-align: center; text-transform: uppercase; transform: rotate(13deg); }
  .about-copy { max-width: 490px; }
  .about-copy > p:not(.eyebrow) { margin-top: 23px; color: var(--ink-soft); line-height: 1.75; }
  .about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
  .about-values div { padding-top: 14px; border-top: 1px solid var(--line); }
  .about-values span { display: block; color: var(--petal); font-family: var(--font-mono); font-size: 10px; }
  .about-values strong { display: block; margin-top: 4px; font-size: 13px; }
  .about-values p { margin-top: 4px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
  .public-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; padding: 30px 36px; margin: 0 auto; color: var(--ink-soft); border-top: 1px solid var(--line-soft); font-size: 12px; }
  .public-footer a:last-child { color: var(--ink); font-weight: 600; text-decoration: none; }
  .whatsapp-float { position: fixed; z-index: 25; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 9px; min-height: 49px; padding: 10px 17px 10px 11px; color: #fff; background: #26bf63; border: 3px solid var(--paper); border-radius: 999px; box-shadow: 0 7px 22px rgba(11,95,39,.25); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
  .whatsapp-float:hover { box-shadow: 0 10px 30px rgba(11,95,39,.33); transform: translateY(-3px); }
  .whatsapp-float svg { width: 27px; height: 27px; }

  .admin-shell { min-height: 100dvh; color: #292222; background: #fbfaf8; }
  .admin-shell[hidden] { display: none; }
  .admin-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); }
  .admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: space-between; height: 100dvh; padding: 25px 15px 20px; background: #fffdfb; border-right: 1px solid #eee9e4; }
  .admin-brand { display: flex; align-items: center; gap: 9px; width: 100%; padding: 0 10px; color: #2e2420; background: none; border: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.06em; text-align: left; }
  .admin-brand > span:last-child > span { color: var(--petal); }
  .admin-kicker { margin: 37px 11px 12px; color: #a5968e; font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; }
  .admin-nav { display: grid; gap: 4px; }
  .admin-nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 11px; color: #746761; background: transparent; border: 0; border-radius: 9px; font-size: 13px; font-weight: 500; text-align: left; transition: background .15s ease, color .15s ease; }
  .admin-nav-item:hover { color: var(--petal-deep); background: #fff1f7; }
  .admin-nav-item.active { color: var(--petal-deep); background: #fff0f6; font-weight: 700; }
  .nav-icon { width: 18px; color: currentColor; font-size: 18px; text-align: center; }
  .admin-nav-item b { min-width: 18px; padding: 1px 5px; margin-left: auto; color: #fff; background: var(--petal); border-radius: 99px; font-family: var(--font-mono); font-size: 9px; text-align: center; }
  .admin-user { display: flex; align-items: center; gap: 8px; padding: 10px 9px; border-top: 1px solid #f0ebe7; }
  .avatar { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--petal); border-radius: 9px; font-family: var(--font-display); font-weight: 600; }
  .admin-user strong, .admin-user small { display: block; }
  .admin-user strong { font-size: 11px; }
  .admin-user small { color: #9c8f87; font-size: 9px; }
  .admin-user button { padding: 6px; margin-left: auto; color: #887a73; background: none; border: 0; }
  .admin-main { min-width: 0; }
  .admin-topbar { display: flex; align-items: center; justify-content: space-between; height: 69px; padding: 0 38px; background: rgba(255,253,251,.82); border-bottom: 1px solid #eee9e4; }
  .admin-topbar > p { color: #a1948c; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
  .admin-top-actions { display: flex; align-items: center; gap: 17px; }
  .today-label { color: #998c84; font-size: 11px; }
  .notification-btn { position: relative; width: 32px; height: 32px; color: #72645e; background: none; border: 0; font-size: 19px; }
  .notification-btn i { position: absolute; top: 6px; right: 5px; width: 6px; height: 6px; background: var(--petal); border: 1px solid #fff; border-radius: 50%; }
  .top-public-link { padding: 7px 10px; color: #6c5d56; background: transparent; border: 1px solid #e6ddd6; border-radius: 7px; font-size: 11px; }
  .mobile-menu { display: none; }
  .admin-view { display: none; max-width: 1340px; padding: 38px 42px 53px; margin: 0 auto; }
  .admin-view.active { display: block; animation: admin-entry .2s ease; }
  @keyframes admin-entry { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  .admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
  .export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
  .admin-page-heading .eyebrow { color: #a2928a; font-size: 9px; }
  .admin-page-heading h1 { margin-top: 6px; color: #2e2521; font-family: var(--font-display); font-size: 35px; font-weight: 600; letter-spacing: -.06em; line-height: 1; }
  .admin-page-heading h1 span { color: var(--petal); }
  .admin-page-heading p:last-child { margin-top: 8px; color: #8e8078; font-size: 13px; }
  .metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .metric-card { display: flex; align-items: start; justify-content: space-between; min-height: 135px; padding: 20px 19px; background: #fff; border: 1px solid #eee9e4; border-radius: 14px; box-shadow: 0 2px 4px rgba(80,48,37,.025); }
  .metric-card span { display: block; color: #8d7d74; font-size: 11px; }
  .metric-card strong { display: block; margin: 7px 0 5px; color: #302623; font-family: var(--font-display); font-size: 31px; font-weight: 600; letter-spacing: -.06em; line-height: 1; }
  .metric-card small { color: #a3958e; font-size: 10px; }
  .metric-card small b { color: var(--success); }
  .metric-card > i { display: grid; width: 29px; height: 29px; place-items: center; color: #9b8b83; background: #fbf8f5; border-radius: 9px; font-style: normal; font-size: 16px; }
  .accent-card { background: #fff5f9; border-color: #f8d8e6; }
  .accent-card strong, .accent-card > i { color: var(--petal-deep); }
  .accent-card > i { background: #ffe4f0; }
  .dashboard-mid-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; margin-top: 14px; }
  .chart-card, .mini-summary, .upcoming-panel, .admin-workshop-item, .registration-table-wrap { background: #fff; border: 1px solid #eee9e4; border-radius: 14px; }
  .chart-card { min-height: 263px; padding: 20px 21px 13px; }
  .card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
  .card-title-row h2 { color: #3a2d28; font-size: 14px; }
  .card-title-row p { margin-top: 2px; color: #9a8c85; font-size: 11px; }
  .chart-key { display: inline-flex; align-items: center; gap: 5px; color: #9c8c85; font-family: var(--font-mono); font-size: 9px; }
  .chart-key i { display: block; width: 6px; height: 6px; background: var(--petal); border-radius: 50%; }
  .bar-chart { display: flex; align-items: end; justify-content: space-between; gap: 16px; height: 177px; padding: 18px 4px 0; }
  .bar-col { display: grid; flex: 1; gap: 7px; align-items: end; height: 100%; }
  .bar-rail { display: flex; align-items: end; height: 137px; background: repeating-linear-gradient(to bottom, transparent 0 33px, #f3eeea 34px 35px); border-radius: 4px 4px 0 0; }
  .bar { width: 100%; min-height: 5px; background: linear-gradient(180deg, #ef75ad, var(--petal)); border-radius: 4px 4px 1px 1px; transition: height .35s cubic-bezier(.2,0,0,1); }
  .bar-col span { color: #9c8c85; font-family: var(--font-mono); font-size: 9px; text-align: center; }
  .mini-summary { padding: 20px; }
  .mini-summary .eyebrow { color: #a2928a; font-size: 9px; }
  .donut-wrap { display: grid; place-items: center; margin: 15px auto; }
  .donut { display: grid; width: 110px; height: 110px; place-content: center; background: conic-gradient(var(--petal) var(--donut-progress, 0%), #f5e8ee 0); border-radius: 50%; text-align: center; }
  .donut::before { position: absolute; width: 83px; height: 83px; content: ""; background: #fff; border-radius: 50%; }
  .donut strong, .donut span { position: relative; z-index: 1; }
  .donut strong { color: #302623; font-family: var(--font-display); font-size: 22px; letter-spacing: -.05em; }
  .donut span { color: #a3928a; font-size: 9px; }
  .mini-summary > p:last-of-type { color: #8a7b73; font-size: 11px; line-height: 1.6; text-align: center; }
  .mini-summary > p strong { color: #57453e; }
  .mini-summary button, .text-btn { padding: 0; margin-top: 15px; color: var(--petal-deep); background: none; border: 0; font-size: 11px; font-weight: 700; }
  .mini-summary button { display: block; margin-right: auto; margin-left: auto; }
  .upcoming-panel { padding: 20px 21px 5px; margin-top: 14px; }
  .text-btn { margin-top: 3px; }
  .upcoming-table-wrap, .registration-table-wrap { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; }
  th { padding: 16px 9px 10px; color: #a1928a; border-bottom: 1px solid #f0ebe7; font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-align: left; white-space: nowrap; }
  td { padding: 12px 9px; border-bottom: 1px solid #f4f0ed; color: #76665f; font-size: 11px; white-space: nowrap; }
  tr:last-child td { border-bottom: 0; }
  .workshop-cell { display: flex; align-items: center; gap: 9px; color: #4a3933; font-weight: 600; }
  .workshop-cell img { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; }
  .seat-progress { display: inline-flex; align-items: center; gap: 7px; }
  .seat-progress i { display: inline-block; width: 43px; height: 5px; overflow: hidden; background: #f0e8e3; border-radius: 99px; }
  .seat-progress i::before { display: block; width: var(--width); height: 100%; content: ""; background: var(--petal); border-radius: inherit; }
  .table-edit-btn { padding: 5px 8px; color: #846f66; background: #fff; border: 1px solid #e9dfd9; border-radius: 6px; font-size: 10px; }
  .table-edit-btn:hover { color: var(--petal-deep); border-color: #eab5cc; }
  .workshop-toolbar, .registration-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
  .admin-tabs { display: inline-flex; gap: 3px; padding: 3px; background: #f4f1ee; border-radius: 8px; }
  .admin-tabs button { min-height: 31px; padding: 5px 10px; color: #897a72; background: none; border: 0; border-radius: 6px; font-size: 11px; }
  .admin-tabs button span { display: inline-block; min-width: 16px; padding: 1px 4px; margin-left: 3px; color: #a5948b; background: #eae5e0; border-radius: 99px; font-family: var(--font-mono); font-size: 8px; }
  .admin-tabs button.active { color: #513d36; background: #fff; box-shadow: 0 1px 3px rgba(63,38,27,.1); font-weight: 700; }
  .admin-tabs button.active span { color: var(--petal-deep); background: #fff0f6; }
  .search-box { display: flex; align-items: center; gap: 7px; width: 225px; min-height: 34px; padding: 0 10px; color: #9d8e86; background: #fff; border: 1px solid #e9e2dd; border-radius: 7px; }
  .search-box input { width: 100%; color: #4d3c35; background: transparent; border: 0; font-size: 11px; outline: 0; }
  .admin-workshop-list { display: grid; gap: 10px; }
  .admin-workshop-item { display: grid; grid-template-columns: 90px minmax(165px, 1.2fr) minmax(125px,.75fr) minmax(120px,.7fr) minmax(130px,.7fr) auto; gap: 17px; align-items: center; padding: 11px; transition: box-shadow .15s ease; }
  .admin-workshop-item:hover { box-shadow: var(--shadow-sm); }
  .admin-workshop-item.is-expanded { box-shadow: var(--shadow-sm); }
  .admin-workshop-image { width: 90px; height: 67px; object-fit: cover; border-radius: 8px; }
  .admin-workshop-title strong { display: block; color: #3d2f2a; font-size: 13px; }
  .admin-workshop-title span { display: block; margin-top: 4px; color: #ad9d94; font-family: var(--font-mono); font-size: 9px; }
  .workshop-admin-detail span { display: block; color: #ab9b92; font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
  .workshop-admin-detail strong { display: block; margin-top: 3px; color: #65534b; font-size: 11px; font-weight: 500; }
  .workshop-actions { display: flex; gap: 5px; }
  .icon-action { min-width: 31px; height: 31px; color: #897972; background: #fff; border: 1px solid #e9e1dc; border-radius: 6px; font-size: 12px; }
  .icon-action:hover { color: var(--petal-deep); background: #fff5f8; border-color: #eeb9cf; }
  .workshop-participant-disclosure { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid #f2ece8; }
  .workshop-participant-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; color: #75645c; background: transparent; border: 0; border-radius: 7px; font-size: 10px; font-weight: 700; }
  .workshop-participant-toggle:hover { color: var(--petal-deep); background: #fff4f8; }
  .workshop-participant-toggle strong { display: inline-grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; color: var(--petal-deep); background: #fff0f6; border-radius: 99px; font-family: var(--font-mono); font-size: 8px; }
  .workshop-participant-toggle i { font-size: 14px; font-style: normal; line-height: 1; transition: transform .15s ease; }
  .workshop-participant-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  .workshop-participant-panel { grid-column: 1 / -1; min-width: 0; padding: 4px 0 2px; }
  .workshop-participant-panel[hidden] { display: none; }
  .workshop-participant-table-wrap { overflow-x: auto; border: 1px solid #eee5e0; border-radius: 10px; }
  .workshop-participant-table { width: 100%; border-collapse: collapse; }
  .workshop-participant-table th { padding: 9px 12px; color: #a08f87; background: #fbf8f5; border-bottom: 1px solid #eee5e0; font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
  .workshop-participant-table td { padding: 10px 12px; color: #76665f; font-size: 10px; white-space: normal; }
  .workshop-participant-table td:first-child strong { color: #4c3b34; font-size: 11px; }
  .participant-status { display: inline-flex; min-height: 25px; padding: 5px 9px; align-items: center; border-radius: 99px; font-size: 9px; font-weight: 700; }
  .participant-status.status-pending { color: #8d6418; background: #fff4d9; }
  .participant-status.status-confirmed { color: #237157; background: #e4f6ee; }
  .participant-status.status-cancelled { color: #a44947; background: #fff0ef; }
  .participant-status.status-reschedule { color: #7060a6; background: #f0edff; }
  .workshop-participant-empty { padding: 20px 14px; color: #9f9189; background: #fbf8f5; border: 1px dashed #dfd4cd; border-radius: 10px; font-size: 11px; text-align: center; }
  .empty-list { padding: 56px 18px; color: #9f9189; background: #fff; border: 1px dashed #dfd4cd; border-radius: 14px; font-size: 13px; text-align: center; }
  .select-label { display: inline-flex; align-items: center; gap: 8px; color: #8d7c74; font-size: 11px; }
  .select-label select { min-height: 35px; padding: 0 27px 0 10px; color: #5d4b44; background: #fff; border: 1px solid #e9e1dc; border-radius: 7px; font-size: 11px; outline: 0; }
  .registration-toolbar { justify-content: flex-start; }
  #registrationResultCount { margin-left: auto; color: #9a8a82; font-size: 11px; }
  .registration-table-wrap { padding: 0 13px; }
  .participant-cell { display: flex; align-items: center; gap: 9px; }
  .participant-initial { display: grid; width: 30px; height: 30px; place-items: center; color: var(--petal-deep); background: #fff0f6; border-radius: 50%; font-family: var(--font-display); font-size: 14px; }
  .participant-cell strong { display: block; color: #4c3b34; font-size: 11px; }
  .participant-cell span { display: block; margin-top: 2px; color: #a19189; font-size: 9px; }
  .status-select { min-width: 107px; min-height: 27px; padding: 0 7px; border: 0; border-radius: 99px; font-size: 9px; font-weight: 700; outline: 0; }
  .status-select.status-pending { color: #8d6418; background: #fff4d9; }
  .status-select.status-confirmed { color: #237157; background: #e4f6ee; }
  .status-select.status-cancelled { color: #a44947; background: #fff0ef; }
  .status-select.status-reschedule { color: #7060a6; background: #f0edff; }
  .registration-actions { display: flex; gap: 5px; }
  .registration-actions a { display: inline-grid; width: 29px; height: 29px; place-items: center; color: #83736b; background: #fff; border: 1px solid #e8dfda; border-radius: 6px; font-size: 13px; text-decoration: none; }
  .registration-actions a:hover { color: #fff; background: var(--petal); border-color: var(--petal); }

  dialog { color: var(--ink); }
  .modal { width: min(94vw, 640px); max-height: min(90dvh, 760px); padding: 0; overflow: visible; background: #fffdf9; border: 0; border-radius: 18px; box-shadow: 0 22px 75px rgba(65,30,44,.25); }
  .modal::backdrop { background: rgba(50,36,31,.43); backdrop-filter: blur(3px); }
  .modal[open] { animation: modal-in .22s cubic-bezier(0,0,.2,1); }
  @keyframes modal-in { from { opacity: 0; transform: scale(.96) translateY(9px); } to { opacity: 1; transform: scale(1) translateY(0); } }
  .modal-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; width: 32px; height: 32px; place-items: center; color: #67544d; background: rgba(255,253,249,.9); border: 1px solid var(--line-soft); border-radius: 50%; font-size: 23px; line-height: 1; }
  .modal-close:hover { color: var(--petal); }
  .workshop-detail-modal { width: min(94vw, 765px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .detail-modal-body { display: grid; grid-template-columns: 41% 59%; min-height: 440px; }
  .detail-modal-body > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
  .detail-content { display: flex; flex-direction: column; padding: 42px 37px 32px; }
  .detail-content h2 { margin-top: 10px; font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.065em; line-height: 1; }
  .detail-content > p { margin-top: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.72; }
  .detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 23px 0; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
  .detail-info div { display: grid; gap: 2px; }
  .detail-info span { color: var(--ink-faint); font-family: var(--font-mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
  .detail-info strong { font-size: 12px; font-weight: 600; }
  .detail-content .btn { width: 100%; margin-top: auto; }
  .registration-modal, .create-modal { overflow-y: auto; }
  .registration-modal { width: min(94vw, 680px); padding: 37px; }
  .create-modal { width: min(95vw, 790px); max-height: 92dvh; padding: 38px; }
  .form-modal-head h2 { margin-top: 7px; font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.065em; line-height: 1.04; }
  .form-modal-head > p:last-child { margin-top: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
  form { margin-top: 25px; }
  .form-field { margin-top: 16px; }
  .form-field:first-child { margin-top: 0; }
  .form-field label, .form-field legend { display: block; margin-bottom: 6px; color: #624e45; font-size: 12px; font-weight: 700; }
  .form-field label b, .form-field legend b { color: var(--petal); }
  .form-field input:not([type="radio"]), .form-field select, .form-field textarea { width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #e3d9d2; border-radius: 9px; font-size: 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
  .form-field input:not([type="radio"]), .form-field select { min-height: 42px; }
  .form-field textarea { resize: vertical; }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--petal); box-shadow: 0 0 0 3px rgba(226,43,124,.12); }
  .form-field input::placeholder, .form-field textarea::placeholder { color: #b6a7a0; }
  .form-two-col, .form-three-col { display: grid; gap: 15px; }
  .form-two-col { grid-template-columns: 1fr 1fr; }
  .form-three-col { grid-template-columns: repeat(3, 1fr); }
  .form-two-col .form-field, .form-three-col .form-field { margin-top: 0; }
  .registration-modal .phone-fields { align-items: start; gap: 16px; margin-top: 16px; }
  .phone-control { display: grid; grid-template-columns: minmax(112px, .85fr) minmax(0, 1.15fr); gap: 7px; }
  .phone-control select { min-width: 0; padding-right: 7px; overflow: hidden; color: var(--petal-deep); background: #fff6fa; border-color: #efc8da; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-overflow: ellipsis; }
  .phone-control input { min-width: 0; }
  fieldset.form-field { padding: 0; border: 0; }
  .experience-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .experience-options label { position: relative; margin: 0; cursor: pointer; }
  .experience-options input { position: absolute; opacity: 0; }
  .experience-options span { display: block; min-height: 74px; padding: 11px; color: #674f46; background: #fff; border: 1px solid #e4d9d3; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 1.35; transition: border-color .15s ease, background .15s ease; }
  .experience-options small { color: #9d8d85; font-size: 9px; font-weight: 400; }
  .experience-options input:checked + span { color: var(--petal-deep); background: #fff2f7; border-color: var(--petal); box-shadow: 0 0 0 2px rgba(226,43,124,.1); }
  .field-error { margin-top: 5px; color: var(--danger); font-size: 11px; }
  .btn-submit { width: 100%; min-height: 48px; margin-top: 22px; }
  .form-footnote { margin-top: 10px; color: var(--ink-faint); font-size: 10px; line-height: 1.5; text-align: center; }
  .success-modal { width: min(92vw, 440px); padding: 47px 39px 36px; text-align: center; }
  .success-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 18px; color: #fff; background: var(--petal); border: 6px solid #ffe3ef; border-radius: 50%; font-size: 26px; font-weight: 700; }
  .success-modal .eyebrow { justify-content: center; }
  .success-modal h2 { margin-top: 8px; font-family: var(--font-display); font-size: 35px; font-weight: 600; letter-spacing: -.065em; line-height: 1.05; }
  .success-modal p:not(.eyebrow) { margin-top: 15px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
  .success-modal .btn { margin-top: 25px; }
  .admin-login-modal { width: min(92vw, 420px); padding: 38px 35px 35px; text-align: center; }
  .admin-login-modal form { text-align: left; }
  .admin-login-mark { display: grid; width: 55px; height: 55px; place-items: center; margin: 0 auto 17px; background: #fff0f6; border: 1px solid #f5cadc; border-radius: 50%; box-shadow: 0 5px 14px rgba(226,43,124,.12); }
  .admin-login-mark img { width: 38px; height: 38px; object-fit: contain; }
  .admin-login-modal .form-modal-head .eyebrow { justify-content: center; }
  .admin-login-modal .form-modal-head h2 { font-size: 34px; }
  .admin-login-modal .field-error { margin-top: 12px; }
  .admin-form-section { padding: 0 0 22px; margin-bottom: 21px; border-bottom: 1px dashed var(--line); }
  .admin-form-section h3 { margin-bottom: 14px; font-size: 14px; }
  .admin-form-section .form-field { margin-top: 12px; }
  .form-field small { display: block; margin-top: 5px; color: #9c8d85; font-size: 10px; }
  .workshop-form-actions { display: flex; justify-content: end; gap: 9px; }
  .toast { position: fixed; z-index: 100; right: 22px; bottom: 83px; max-width: 330px; padding: 12px 16px; color: #fff; background: #3f302a; border-radius: 10px; box-shadow: var(--shadow-md); font-size: 12px; animation: toast-in .2s ease; }
  .toast.success { background: #257252; }
  @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
}

@layer utilities {
  @media (max-width: 1020px) {
    .public-header { padding: 0 24px; }
    .hero { padding: 64px 35px; }
    .schedule-section { padding-right: 24px; padding-left: 24px; }
    .about-section { padding: 72px 54px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-workshop-item { grid-template-columns: 90px 1.2fr 1fr auto; }
    .admin-workshop-item .workshop-admin-detail:nth-of-type(4) { display: none; }
  }
  @media (max-width: 760px) {
    .public-header { height: 65px; padding: 0 17px; }
    .main-nav { display: none; }
    .brand-name { font-size: 20px; }
    .hero { display: flex; flex-direction: column; min-height: auto; padding: 53px 24px 25px; }
    .hero::before { top: 360px; right: -135px; width: 500px; height: 440px; }
    .hero h1 { font-size: clamp(48px,15vw,70px); }
    .hero-actions { flex-wrap: wrap; gap: 16px; }
    .hero-notes { margin-top: 37px; }
    .hero-visual { width: 100%; min-height: 394px; margin-top: 28px; }
    .hero-photo-frame { top: 4px; right: 22px; width: 83%; }
    .hero-photo-frame img { height: 295px; }
    .sticker-flower { top: -11px; left: 2px; }
    .hero-label { right: 0; bottom: 22px; }
    .yarn-ball { bottom: -1px; left: -16px; width: 94px; height: 94px; }
    .crochet-line { bottom: 6px; left: 9px; width: 340px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 16px; }
    .workshop-grid { grid-template-columns: 1fr; gap: 15px; }
    .workshop-cover { height: 260px; }
    .about-section { grid-template-columns: 1fr; gap: 46px; padding: 65px 30px; border-radius: 33% 67% 0 0 / 3% 3% 0 0; }
    .about-image-wrap { max-width: 420px; }
    .public-footer { display: grid; gap: 14px; padding: 28px 24px 88px; }
    .whatsapp-float { right: 15px; bottom: 15px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { width: 54px; height: 54px; justify-content: center; padding: 0; }
    .workshop-detail-modal { max-height: 92dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
    .detail-modal-body { grid-template-columns: 1fr; min-height: 0; }
    .detail-modal-body > img { min-height: 190px; height: 190px; }
    .detail-content { min-height: 0; padding: 25px 20px 18px; }
    .detail-content h2 { padding-right: 26px; font-size: 34px; }
    .detail-info { gap: 11px 15px; margin: 19px 0; padding: 15px 0; }
    .detail-content .btn { position: sticky; z-index: 2; bottom: 8px; min-height: 50px; margin-top: 17px; box-shadow: 0 7px 21px rgba(226,43,124,.28); }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; z-index: 90; left: 0; width: 232px; transform: translateX(-105%); box-shadow: var(--shadow-md); transition: transform .25s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-topbar { height: 60px; padding: 0 18px; }
    .mobile-menu { display: block; color: #6e5f58; background: none; border: 0; font-size: 20px; }
    .admin-topbar > p, .today-label { display: none; }
    .admin-top-actions { margin-left: auto; }
    .notification-btn { display: none; }
    .admin-view { padding: 28px 17px 40px; }
    .admin-page-heading { align-items: start; flex-direction: column; gap: 15px; }
    .admin-page-heading .btn { width: 100%; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .metric-card { min-height: 123px; padding: 15px; }
    .metric-card strong { font-size: 27px; }
    .metric-card > i { display: none; }
    .dashboard-mid-grid { grid-template-columns: 1fr; }
    .chart-card { padding: 16px 14px 10px; }
    .mini-summary { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 5px 14px; }
    .mini-summary .eyebrow { grid-column: 1 / -1; }
    .donut-wrap { margin: 2px; }
    .mini-summary button { margin: 0; }
    .upcoming-panel { padding: 16px 8px 4px; }
    .workshop-toolbar, .registration-toolbar { align-items: stretch; flex-direction: column; }
    .search-box { width: 100%; }
    .admin-workshop-item { grid-template-columns: 65px minmax(0,1fr) auto; gap: 10px; }
    .admin-workshop-image { width: 65px; height: 65px; }
    .admin-workshop-item .workshop-admin-detail { display: none; }
    .workshop-participant-disclosure { padding-top: 8px; }
    .workshop-participant-toggle { width: 100%; justify-content: flex-start; min-height: 38px; }
    .workshop-participant-toggle i { margin-left: auto; }
    .workshop-participant-table-wrap { overflow: visible; border: 0; }
    .workshop-participant-table, .workshop-participant-table tbody, .workshop-participant-table tr, .workshop-participant-table td { display: block; width: 100%; }
    .workshop-participant-table thead { display: none; }
    .workshop-participant-table tbody { display: grid; gap: 8px; }
    .workshop-participant-table tr { padding: 11px 12px; background: #fbf8f5; border: 1px solid #eee5e0; border-radius: 10px; }
    .workshop-participant-table td { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 6px 0; border-bottom: 1px solid #eee5e0; }
    .workshop-participant-table td:last-child { border-bottom: 0; }
    .workshop-participant-table td::before { color: #a08f87; content: attr(data-label); font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
    .registration-toolbar .select-label { justify-content: space-between; }
    .registration-toolbar .select-label select { width: 70%; }
    #registrationResultCount { margin: 0; }
    .registration-table-wrap { padding: 0 6px; }
    .registration-table { min-width: 690px; }
    .registration-modal, .create-modal { padding: 30px 19px 23px; }
    .admin-login-modal { padding: 34px 23px 26px; }
    .form-two-col, .form-three-col { grid-template-columns: 1fr; gap: 0; }
    .form-two-col .form-field + .form-field, .form-three-col .form-field + .form-field { margin-top: 12px; }
    .registration-modal .phone-fields { gap: 0; }
    .phone-control { grid-template-columns: minmax(112px, .85fr) minmax(0, 1.15fr); }
    .export-actions { width: 100%; }
    .export-actions .btn { flex: 1; min-width: 0; }
    .experience-options { grid-template-columns: 1fr; }
    .experience-options span { min-height: 54px; }
    .workshop-form-actions { position: sticky; bottom: -23px; padding: 12px 0 0; background: #fffdf9; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
}
