:root {
  --prune:#412143; --brique:#bf5e40; --lin:#dbc583; --raisin:#815488;
  --ink:#392d3a; --muted:#817382; --paper:#f8f5f1; --line:#e9e1e7; --selected:#f1e8f2;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; color:var(--ink); background:#ece5e9; font-family:"Noto Sans Thai",system-ui,sans-serif; }
button,input,select { font:inherit; } button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--raisin); outline-offset:4px; }
[hidden] { display:none!important; }
.ambient { position:fixed; inset:0; z-index:-1; background:radial-gradient(ellipse at 8% 8%,#dbc58335,transparent 48%),radial-gradient(ellipse at 100% 90%,#81548820,transparent 60%); }.blob,.grain { display:none; }
.app-shell { width:min(1260px,calc(100% - 64px)); margin:32px auto; display:grid; grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr); gap:24px; align-items:start; }
.studio { position:sticky; top:32px; display:flex; flex-direction:column; min-height:min(860px,calc(100vh - 64px)); padding:36px; overflow:hidden; isolation:isolate; border-radius:34px; color:#fff8ef; background:var(--prune); }
.studio::before { content:""; z-index:-1; position:absolute; width:470px; height:470px; border-radius:50%; right:-290px; bottom:30px; background:radial-gradient(circle,#815488bb,#81548800 70%); }
.brand { display:flex; align-items:center; gap:11px; color:inherit; text-decoration:none; width:max-content; }
.brand-glyph { display:grid; place-items:center; width:44px; height:44px; border-radius:16px; color:var(--prune); background:var(--lin); font-size:25px; font-weight:700; transform:rotate(-7deg); transition:transform .25s; }.brand:hover .brand-glyph { transform:rotate(5deg); }
.brand b { display:block; font-size:19px; line-height:1.2; }.brand small { display:block; font:500 9px/1.5 "Outfit",sans-serif; letter-spacing:.16em; color:#d4bfd6; }
.hero-copy { margin-top:58px; }.kicker { display:flex; align-items:center; gap:9px; margin:0 0 20px; color:#d5bdd5; font:500 9px/1.4 "Outfit",sans-serif; letter-spacing:.16em; }.kicker span { width:7px; height:7px; background:var(--lin); border-radius:50%; }
.hero-copy h1 { margin:0; font-size:clamp(40px,4.4vw,62px); line-height:1.23; letter-spacing:-.04em; font-weight:600; }.hero-copy em { color:var(--lin); font-style:normal; }.hero-copy > p:last-child { max-width:320px; margin:22px 0 0; color:#d9c8da; font-size:13px; line-height:1.9; }
.palette-scene { position:relative; width:min(100%,320px); margin:38px auto 32px; padding:10px 12px 22px; }
.palette-ticket { padding:21px; border:1px solid #ffffff80; border-radius:23px; color:var(--prune); background:linear-gradient(145deg,#faf5eb,#e9dcec); box-shadow:0 20px 45px #210d2638; transform:rotate(-6deg); animation:ticketFloat 7s ease-in-out infinite; }
.palette-ticket > span { display:flex; align-items:center; justify-content:space-between; font:500 9px "Outfit",sans-serif; letter-spacing:.12em; }.palette-ticket > span i { font-size:20px; font-style:normal; color:var(--raisin); }.palette-ticket > b { display:block; font-size:28px; line-height:1.3; font-weight:500; margin-top:18px; }
.palette-swatches { display:flex; height:58px; margin:19px 0 14px; gap:5px; }.palette-swatches i { flex:1; border-radius:22px; background:var(--prune); }.palette-swatches i:nth-child(2) { background:var(--brique); }.palette-swatches i:nth-child(3) { background:var(--lin); }.palette-swatches i:nth-child(4) { background:var(--raisin); }
.palette-ticket > small { font:500 7px "Outfit",sans-serif; letter-spacing:.12em; color:#8e728f; }.scene-star { position:absolute; right:-6px; top:-24px; color:var(--lin); font-size:65px; z-index:1; animation:starTurn 9s ease-in-out infinite; }
.floating-note { position:absolute; right:-9px; bottom:0; padding:12px 18px; border:1px solid #ffffff33; border-radius:18px; background:var(--raisin); box-shadow:0 7px 22px #240e2725; font-size:10px; transform:rotate(5deg); }.floating-note span { color:var(--lin); margin-right:6px; }
.hero-meta { display:flex; gap:26px; margin-top:auto; padding-top:24px; border-top:1px solid #ffffff20; }.hero-meta div { display:flex; align-items:center; gap:8px; }.hero-meta b { font:500 23px "Outfit",sans-serif; color:var(--lin); }.hero-meta span { font-size:9px; color:#d3bbd3; }
.flow { position:relative; padding:28px; background:var(--paper); border:1px solid #ffffffaa; border-radius:34px; min-width:0; }
.notice { display:flex; align-items:center; gap:10px; margin-bottom:26px; padding:12px 15px; background:#eee5ee; color:var(--prune); border-radius:16px; }.notice-pulse { flex:none; width:7px; height:7px; border-radius:50%; background:var(--raisin); box-shadow:0 0 0 4px #81548812; }.notice b,.notice small { display:block; }.notice b { font:500 9px "Outfit",sans-serif; text-transform:uppercase; letter-spacing:.14em; }.notice small { margin-top:3px; font-size:10px; color:#806c83; }
.steps { position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding-bottom:19px; margin-bottom:25px; }.step { display:flex; align-items:center; gap:7px; padding:0; border:0; background:none; color:#938993; font-size:11px; cursor:default; }.step b { display:grid; place-items:center; flex:none; width:27px; height:27px; border-radius:50%; background:#eae3e9; font:500 10px "Outfit",sans-serif; }.step.active { color:var(--prune); }.step.active b { background:var(--prune); color:#fff; }
.progress-track { position:absolute; left:0; right:0; bottom:0; height:3px; border-radius:5px; background:#e9e2e8; overflow:hidden; }.progress-track i { display:block; height:100%; width:33.333%; background:var(--raisin); border-radius:inherit; transition:width .4s ease; }
form,.success { padding:28px; border:1px solid #eee7ed; border-radius:27px; background:#fffdfb; box-shadow:0 12px 40px #41214308; }.panel { display:none; }.panel.active { display:block; animation:panelIn .35s ease both; }
.panel-title { display:flex; align-items:center; gap:12px; margin-bottom:25px; }.panel-title > div:last-child > span,.eyebrow { font:500 9px "Outfit",sans-serif; letter-spacing:.15em; color:var(--raisin); }.panel-title h2 { margin:4px 0; font-size:clamp(20px,2vw,25px); font-weight:600; letter-spacing:-.04em; }.panel-title p { margin:0; color:var(--muted); font-size:11px; }
.title-symbol { display:grid; place-items:center; position:relative; flex:none; width:45px; height:45px; border-radius:16px; background:#f0e7d0; color:var(--prune); }.symbol-sun::before { content:"✳"; font-size:30px; }.symbol-palette { display:flex; justify-content:center; gap:3px; background:#eee3ef; }.symbol-palette i { width:6px; height:23px; border-radius:8px; background:var(--prune); transform:rotate(20deg); }.symbol-palette i:nth-child(2) { background:var(--raisin); height:17px; }.symbol-palette i:nth-child(3) { background:var(--brique); height:12px; }.symbol-check { font-size:24px; background:var(--selected); }
.field-grid { display:grid; gap:12px; }.field-grid.two { grid-template-columns:1fr 1fr; }.field-grid.coordinates { grid-template-columns:1fr 1fr; }.timezone { grid-column:1/-1; }
.input-card { display:block; width:100%; min-width:0; margin:0 0 12px; padding:14px; text-align:left; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:#fbf9fb; transition:border-color .2s,background .2s,box-shadow .2s; }.input-card:focus-within { border-color:var(--raisin); background:#fff; box-shadow:0 0 0 3px #8154880b; }.input-card.has-value { border-color:#cbb6cf; }
.field-label { display:flex; align-items:center; gap:6px; color:#69576d; font-size:11px; font-weight:500; }.field-label i { color:var(--raisin); font-style:normal; }.field-label svg { width:16px; height:16px; fill:none; stroke:var(--raisin); stroke-width:1.6; stroke-linecap:round; }
.input-card input,.input-card select { display:block; width:100%; min-width:0; margin-top:7px; padding:3px 0; border:0; background:transparent; color:var(--ink); font-size:14px; font-weight:500; outline-offset:1px; }.input-card input::placeholder { color:#a797a7; font-weight:400; }.input-card small,legend small,.date-hint { display:block; color:var(--muted); font-size:10px; font-weight:400; margin-top:5px; }
.feature-field { background:#fcf6f2; border-color:#eddbd2; }.place-card { background:#f9f5fa; }.compact { padding:12px 14px; }.compact input,.compact select { font-size:12px; }
.date-field { min-width:0; }.date-trigger { min-height:112px; height:calc(100% - 12px); background:#f6eff7; border-color:#e2d4e4; }.date-trigger:hover { border-color:var(--raisin); background:#f1e7f3; }.date-value { display:block; font-size:14px; font-weight:500; margin-top:9px; color:var(--prune); }.date-hint { display:flex; justify-content:space-between; gap:8px; }.date-trigger .selection-box { margin-left:auto; width:17px; height:17px; }.date-trigger.has-value { background:var(--selected); border-color:var(--raisin); }.date-trigger[aria-invalid="true"] { border-color:var(--brique); }
fieldset { border:0; margin:22px 0; padding:0; min-width:0; }legend { padding:0; margin-bottom:12px; width:100%; }legend > span { font-size:13px; font-weight:600; }
.choice-row { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }.choice,.topic { display:block; min-width:0; position:relative; cursor:pointer; }.choice input,.topic input { position:absolute; width:1px; height:1px; opacity:0; }
.choice > span,.topic > span { display:flex; flex-direction:column; position:relative; height:100%; min-height:115px; padding:15px 12px; border:1.5px solid var(--line); border-radius:19px; background:#fff; transition:border-color .2s,background .2s,box-shadow .2s,transform .2s; }
.choice i,.topic i { display:grid; place-items:center; width:30px; height:30px; margin-bottom:12px; border-radius:11px; color:var(--raisin); background:#f0e9f2; font:500 18px "Outfit",sans-serif; font-style:normal; }.choice b { font-size:11px; font-weight:600; }.choice small { color:var(--muted); font-size:9px; margin-top:3px; }.choice:hover > span,.topic:hover > span { border-color:#b89cbd; transform:translateY(-2px); }
.selection-box,.choice > span::after,.topic > span::after,.consent input,.toggle-card > input { flex:none; width:20px; height:20px; border:1.5px solid #c8b9ca; border-radius:6px; background:#fff; transition:background .2s,border-color .2s; }
.choice > span::after,.topic > span::after { content:""; position:absolute; right:12px; top:14px; }
.choice input:checked + span,.topic input:checked + span,.consent:has(input:checked),.toggle-card:has(input:checked) { background:var(--selected); border-color:var(--raisin); box-shadow:0 4px 12px #41214306; }
.choice input:checked + span::after,.topic input:checked + span::after,.date-trigger.has-value .selection-box,.calendar-selected.has-value .selection-box,.consent input:checked,.toggle-card > input:checked { border-color:var(--prune); background:var(--prune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.2 3.2L15 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.choice input:focus-visible + span,.topic input:focus-visible + span { outline:3px solid var(--raisin); outline-offset:3px; }
.topic-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.topic > span { min-height:150px; padding:17px; }.topic i { width:37px; height:37px; border-radius:13px; color:var(--prune); background:var(--topic); }.topic b { font-size:15px; font-weight:600; }.topic small { margin-top:4px; color:var(--muted); font-size:10px; }.topic em { font-size:10px; color:var(--raisin); margin-top:14px; font-style:normal; visibility:hidden; }.topic input:checked + span em { visibility:visible; }.career { --topic:#dfcfe2; }.finance { --topic:#eadcb6; }.love { --topic:#efd0c5; }.health { --topic:#dcc8df; }
.schedule-card { margin:25px 0 12px; padding:18px; border-radius:21px; color:#fff; background:var(--prune); display:flex; align-items:center; justify-content:space-between; gap:14px; }.schedule-copy { display:flex; align-items:center; gap:10px; }.schedule-copy b,.schedule-copy small { display:block; }.schedule-copy b { font-size:12px; font-weight:500; }.schedule-copy small { font-size:9px; color:#d3bed6; margin-top:4px; }.mini-orbit { width:32px; height:32px; border:1px solid #bba0bd; border-radius:50%; display:grid; place-items:center; flex:none; }.mini-orbit i { width:10px; height:10px; border-radius:50%; background:var(--lin); }.schedule-card label { font-size:9px; color:#d9c6dc; }.schedule-card input { display:block; width:112px; margin-top:6px; padding:9px; border:0; border-radius:12px; color:var(--prune); background:#f2e5c8; font-size:16px; }
.toggle-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border:1.5px solid var(--line); border-radius:18px; cursor:pointer; }.toggle-card > span { display:flex; align-items:center; gap:11px; }.toggle-card > span > i { font-size:25px; font-style:normal; color:var(--raisin); }.toggle-card b,.toggle-card small { display:block; }.toggle-card b { font-size:12px; font-weight:500; }.toggle-card small { font-size:10px; color:var(--muted); margin-top:3px; }.toggle-card > input,.consent input { appearance:none; margin:0; cursor:pointer; }
.consent-stack { display:grid; gap:10px; }.consent { display:flex; align-items:flex-start; gap:11px; padding:16px; border:1.5px solid var(--line); border-radius:18px; cursor:pointer; }.consent input { margin-top:1px; }.consent b,.consent small { display:block; }.consent b { font-size:11px; font-weight:600; }.consent small { margin-top:4px; font-size:10px; line-height:1.7; color:var(--muted); }
.actions,.calendar-actions { display:flex; gap:10px; margin-top:25px; }.actions button,.success button,.calendar-actions button { flex:1; min-height:48px; padding:12px 17px; border:0; border-radius:16px; color:#fff; background:var(--prune); font-size:13px; font-weight:500; transition:transform .2s,background .2s,box-shadow .2s; }.actions button:hover,.success button:hover,.calendar-actions button:hover { background:#58335b; transform:translateY(-2px); box-shadow:0 6px 14px #41214318; }.actions button span { margin-left:10px; }.actions .secondary,.calendar-actions .secondary { color:var(--prune); background:#eee6ef; flex:.65; }.actions .secondary span { margin:0 8px 0 0; }button:disabled { opacity:.4; cursor:default; }button:disabled:hover { transform:none; box-shadow:none; }
.error { display:none; margin-top:15px; padding:13px; border-radius:13px; color:#923e28; background:#fbebe5; font-size:12px; }.error:not(:empty) { display:block; }
.success { text-align:center; padding-block:45px; position:relative; overflow:hidden; }.success-mark { margin:0 auto 20px; width:60px; height:60px; display:grid; place-items:center; border-radius:21px; background:var(--selected); color:var(--prune); font-size:28px; }.success .kicker { justify-content:center; color:var(--raisin); }.success h2 { font-size:30px; font-weight:500; line-height:1.4; }.success p { font-size:12px; color:var(--muted); }.success pre { white-space:pre-wrap; text-align:left; font-size:11px; overflow-wrap:anywhere; }.confetti { display:none; }footer { display:flex; justify-content:space-between; gap:10px; padding:22px 4px 0; color:var(--muted); font-size:9px; }
body:has(.date-dialog[open]) { overflow:hidden; }.date-dialog { width:min(430px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:27px; overflow-y:auto; border:1px solid #fff; border-radius:29px; color:var(--ink); background:#fffcf8; box-shadow:0 32px 100px #27142b40; }.date-dialog[open] { animation:calendarIn .25s ease both; }.date-dialog::backdrop { background:#2d193657; backdrop-filter:blur(7px); }
.calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }.calendar-heading h2 { margin:5px 0 0; font-size:23px; font-weight:600; letter-spacing:-.03em; }#calendarHelp { font-size:12px; margin:9px 0 22px; color:var(--muted); }
.icon-button { display:grid; place-items:center; flex:none; width:34px; height:34px; border:0; border-radius:50%; color:var(--prune); background:#efe7ee; font:400 25px/1 system-ui,sans-serif; }.icon-button:hover { background:#e3d4e5; }
.calendar-selectors { display:grid; grid-template-columns:1.2fr 1fr; gap:10px; }.calendar-selectors label { padding:10px 12px; border:1px solid #e3d6e5; border-radius:15px; background:#f7f1f7; font-size:10px; color:var(--muted); }.calendar-selectors select { display:block; width:100%; border:0; background:transparent; color:var(--prune); padding:4px 0 0; font-size:14px; font-weight:500; cursor:pointer; }
.calendar-navigation { display:flex; align-items:center; justify-content:space-between; margin:21px 0 16px; }.calendar-navigation b { font-size:13px; font-weight:600; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }.calendar-weekdays { padding-bottom:10px; text-align:center; color:#958298; font-size:11px; }
.calendar-day { display:grid; place-items:center; min-height:39px; aspect-ratio:1; padding:0; position:relative; border:1px solid transparent; border-radius:14px; background:#f5f0f4; color:var(--prune); font:500 14px "Outfit",sans-serif; transition:background .15s,transform .15s; }.calendar-day:hover:not(:disabled) { background:#e7d8ea; transform:translateY(-2px); }.calendar-day.today { border-color:#b99fc1; }.calendar-day[aria-pressed="true"] { background:var(--prune); color:#fff; box-shadow:0 4px 8px #41214320; }.calendar-day[aria-pressed="true"]::after { content:"✓"; position:absolute; top:2px; right:4px; font-size:8px; color:var(--lin); }.calendar-day[aria-pressed="true"]:hover { background:var(--prune); }.calendar-day:disabled { background:transparent; opacity:.3; }
.calendar-selected { display:flex; align-items:center; gap:11px; padding:15px; margin-top:20px; background:#f2e9f3; border-radius:17px; }.calendar-selected small,.calendar-selected b { display:block; }.calendar-selected small { font-size:10px; color:var(--muted); }.calendar-selected b { margin-top:3px; font-size:13px; font-weight:500; color:var(--prune); }.calendar-actions { margin-top:17px; }
@keyframes panelIn { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:none; } }
@keyframes calendarIn { from { opacity:0; transform:translateY(14px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes ticketFloat { 50% { transform:rotate(-3deg) translateY(-6px); } }@keyframes starTurn { 50% { transform:rotate(25deg); } }
@media (min-width:1050px) and (max-height:840px) { .studio { min-height:calc(100vh - 64px); padding:28px; }.hero-copy { margin-top:30px; }.hero-copy h1 { font-size:47px; }.palette-scene { width:245px; margin-block:20px 24px; }.palette-ticket { padding:15px; }.palette-ticket > b { font-size:23px; margin-top:10px; }.palette-swatches { height:39px; margin:12px 0; }.hero-meta { padding-top:18px; } }
@media (max-width:1040px) { .app-shell { width:calc(100% - 32px); gap:16px; margin:16px auto; grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr); }.studio { top:16px; padding:26px; }.hero-copy h1 { font-size:43px; }.hero-copy { margin-top:40px; }.flow { padding:22px; }form,.success { padding:22px; }.hero-meta { gap:15px; }.hero-meta span { font-size:8px; }.palette-ticket > b { font-size:24px; }.palette-scene { padding-inline:4px; } }
@media (max-width:780px) { .app-shell { display:block; width:min(630px,calc(100% - 28px)); }.studio { position:relative; top:0; min-height:0; padding:26px 28px 23px; margin-bottom:16px; border-radius:28px; }.brand-glyph { width:38px; height:38px; border-radius:13px; }.hero-copy { margin-top:27px; max-width:60%; }.hero-copy h1 { font-size:41px; }.hero-copy > p:last-child { font-size:11px; margin-top:15px; }.hero-copy .kicker { font-size:8px; margin-bottom:12px; }.palette-scene { position:absolute; width:190px; top:117px; right:26px; margin:0; }.palette-ticket { padding:15px; border-radius:20px; }.palette-ticket > span { font-size:7px; }.palette-ticket > b { font-size:23px; }.palette-swatches { height:40px; gap:4px; }.palette-ticket > small { font-size:5px; }.scene-star { font-size:48px; }.floating-note { font-size:8px; padding:9px 12px; }.hero-meta { margin-top:26px; padding-top:18px; gap:30px; }.flow { border-radius:28px; }.hero-meta span { font-size:9px; } }
@media (max-width:500px) { .app-shell { width:calc(100% - 20px); margin:10px auto; }.studio { padding:23px; border-radius:25px; }.hero-copy { max-width:100%; }.hero-copy h1 { font-size:37px; }.hero-copy > p:last-child { max-width:210px; font-size:11px; }.palette-scene { width:135px; right:6px; top:130px; }.palette-ticket { padding:11px; border-radius:16px; }.palette-ticket > span { font-size:5px; letter-spacing:.06em; }.palette-ticket > span i { font-size:15px; }.palette-ticket > b { font-size:18px; margin-top:10px; }.palette-swatches { height:33px; gap:3px; margin:13px 0 8px; }.palette-ticket > small { display:none; }.scene-star { font-size:38px; right:0; top:-18px; }.floating-note { display:none; }.hero-meta { gap:25px; }.hero-meta b { font-size:20px; }.hero-meta span { font-size:8px; }.flow { padding:17px 12px; border-radius:25px; }.notice { margin-bottom:22px; padding:12px; }.notice small { font-size:9px; }.steps { gap:4px; margin-inline:4px; }.step { gap:6px; font-size:10px; }.step b { width:24px; height:24px; }form,.success { padding:23px 15px; border-radius:22px; }.panel-title { gap:10px; }.panel-title h2 { font-size:20px; }.panel-title p { font-size:10px; }.title-symbol { width:39px; height:39px; border-radius:13px; }.field-grid.two { grid-template-columns:1fr; gap:0; }.date-trigger { min-height:110px; }.choice-row { gap:7px; }.choice > span { padding:13px 9px; min-height:135px; }.choice > span::after { right:9px; width:17px; height:17px; border-radius:5px; }.choice i { width:24px; height:27px; font-size:16px; background:none; margin-bottom:12px; }.choice b { font-size:11px; }.choice small { font-size:9px; line-height:1.6; }.topic-grid { gap:9px; }.topic > span { padding:14px; min-height:163px; }.topic small { font-size:9px; }.schedule-card { padding:15px; gap:8px; }.schedule-copy { gap:7px; }.schedule-copy b { font-size:11px; }.schedule-copy small { font-size:9px; }.mini-orbit { display:none; }.schedule-card input { width:102px; font-size:15px; }.summary { grid-template-columns:1fr; }.summary div:nth-child(5) { grid-column:auto; }footer { font-size:8px; padding-inline:2px; }.date-dialog { padding:23px 20px; border-radius:25px; }.calendar-day { border-radius:12px; min-height:35px; }.calendar-days { gap:4px; } }
@media (max-width:360px) { .hero-copy h1 { font-size:33px; }.palette-scene { width:115px; right:2px; top:138px; }.hero-copy > p:last-child { max-width:180px; }.hero-meta { gap:18px; }.flow { padding-inline:9px; }.calendar-day { min-height:30px; } }
@media (min-width:781px) and (max-width:900px) { .app-shell { grid-template-columns:1fr; max-width:650px; }.studio { position:relative; top:0; min-height:0; }.hero-copy { max-width:60%; margin-top:30px; }.palette-scene { position:absolute; width:200px; right:25px; top:130px; }.hero-meta { margin-top:30px; } }
@media (max-height:740px) { .date-dialog { padding:19px 23px; }.calendar-heading h2 { font-size:21px; }#calendarHelp { margin:7px 0 13px; }.calendar-navigation { margin:12px 0; }.calendar-day { aspect-ratio:auto; min-height:34px; height:36px; }.calendar-selected { margin-top:12px; padding:11px; }.calendar-actions { margin-top:12px; } }
@media (max-width:500px) { .hero-copy > p:last-child { max-width:calc(100% - 145px); } }
@media (max-width:360px) { .hero-copy > p:last-child { max-width:calc(100% - 120px); }.calendar-selectors { grid-template-columns:1fr 1.2fr; }.calendar-selectors select { font-size:12px; } }

/* Warm surfaces, outline cards, and a shared time-picker system. */
body { background:#f1ede7; }
.ambient { background:radial-gradient(ellipse at 10% 0%,#dbc58325,transparent 50%); }
.studio { color:var(--prune); background:#faf5ec; border:1px solid #e8dbcb; }
.studio::before { background:radial-gradient(circle,#dbc58340,transparent 70%); }
.brand-glyph { color:#fff; background:var(--brique); }
.brand small,.hero-copy > p:last-child,.hero-meta span { color:#837367; }
.kicker,.hero-copy em,.hero-meta b { color:var(--brique); }
.kicker span { background:var(--brique); }
.hero-meta { border-top-color:#e8dbcb; }
.floating-note { background:var(--brique); color:#fff; }
.palette-ticket { background:linear-gradient(145deg,#fffefa,#f3e8da); border-color:#fff; box-shadow:0 18px 35px #75472216; }
.scene-star { color:var(--brique); }
.flow { background:#fffcf8; border-color:#eae3da; margin-top:20px; }
.notice { background:#f5ece3; color:#874930; }.notice-pulse { background:var(--brique); box-shadow:0 0 0 4px #bf5e4012; }.notice small { color:#876d60; }
.step.active b,.progress-track i { background:var(--brique); }.step.active { color:#96472f; }
.progress-track { background:#ece4dc; }
form,.success { background:#fff; border-color:#e9e2da; box-shadow:none; }
.panel-title > div:last-child > span,.eyebrow { color:var(--brique); }
.symbol-check { color:var(--brique); background:#faeee7; }.symbol-palette { background:#faf2df; }
.input-card,.date-trigger,.date-trigger.has-value,.place-card { background:#fff; border-color:#e4dcd5; }
.input-card:focus-within { border-color:var(--brique); box-shadow:0 0 0 3px #bf5e4009; }
.input-card.has-value { border-color:#d7c4b7; }
.date-trigger.has-value,.time-trigger.has-value { border-color:var(--brique); }
.date-trigger:hover,.time-trigger:hover { border-color:var(--brique); background:#fff; box-shadow:0 5px 18px #bf5e400a; }
.field-label { color:#746356; }.field-label i,.field-label svg { color:var(--brique); stroke:var(--brique); }
.choice > span,.topic > span,.toggle-card,.consent { border-color:#e4dcd5; background:#fff; }
.choice input:checked + span,.topic input:checked + span,.consent:has(input:checked),.toggle-card:has(input:checked) { background:#fff; border-color:var(--brique); box-shadow:none; }
.choice:hover > span,.topic:hover > span { border-color:var(--brique); }
.choice i { color:var(--brique); background:#fbefe7; }
.choice:nth-child(2) i { color:#9c7929; background:#faf2df; }.choice:nth-child(3) i { color:var(--raisin); background:#f5edf5; }
.selection-box,.choice > span::after,.topic > span::after,.consent input,.toggle-card > input { border-color:#d1c3b8; }
.choice input:checked + span::after,.topic input:checked + span::after,.date-trigger.has-value .selection-box,.time-trigger.has-value .selection-box,.calendar-selected.has-value .selection-box,.consent input:checked,.toggle-card > input:checked {
  border-color:var(--brique);
  background:var(--brique) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.2 3.2L15 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.career { --topic:#f0e9f1; --topic-ink:var(--prune); }.finance { --topic:#faf1d8; --topic-ink:#9c7929; }.love { --topic:#fbedE5; --topic-ink:var(--brique); }.health { --topic:#f4eaf4; --topic-ink:var(--raisin); }
.topic i { color:var(--topic-ink); }.topic em { color:var(--brique); }
.toggle-card > span > i { color:var(--brique); }
.actions .secondary,.calendar-actions .secondary { background:#fff; color:var(--brique); border:1px solid #dac4b7; }
.actions .secondary:hover,.calendar-actions .secondary:hover { background:#fcf5ef; }
.calendar-actions button:not(.secondary) { background:var(--brique); }.calendar-actions button:not(.secondary):hover { background:#a94e32; }
.calendar-selectors label { background:#fff; border-color:#e2d6cb; }.calendar-selectors select { color:var(--ink); }
.icon-button { background:#f6eee6; color:var(--brique); }.icon-button:hover { background:#f1dfd2; }
.calendar-day { background:#fff; border-color:#eee7df; }.calendar-day:hover:not(:disabled) { background:#fcf1e8; }
.calendar-day[aria-pressed="true"],.calendar-day[aria-pressed="true"]:hover { background:var(--brique); border-color:var(--brique); }
.calendar-selected { background:#fff; border:1px solid #dac4b7; }.calendar-selected b { color:var(--ink); }
.time-trigger { min-height:112px; }.time-trigger .selection-box { margin-left:auto; width:17px; height:17px; }
.time-value { display:block; margin:10px 0 4px; font-size:17px; font-weight:500; color:var(--ink); }
.time-trigger.has-value .time-value { font:500 24px/1.4 "Outfit","Noto Sans Thai",sans-serif; letter-spacing:.02em; }
.time-trigger[aria-invalid="true"] { border-color:#b33225; }
.schedule-trigger { margin-top:24px; }
.summary { grid-template-columns:1fr 1fr; gap:12px; }
.summary-card { display:flex; align-items:flex-start; gap:12px; padding:18px; border:1px solid #e1d7ce; border-radius:18px; background:transparent; min-width:0; }
.summary-delivery { grid-column:1/-1; }
.summary-icon { flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:#f9ece3; color:var(--brique); font-style:normal; font-size:22px; }
.summary-person .summary-icon { color:var(--prune); background:#f3edf3; }
.summary-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.summary-birth .summary-icon { color:#9c7929; background:#fbf3de; }
.summary-topics .summary-icon { color:var(--raisin); background:#f5edf5; }
.summary-content { min-width:0; }.summary-content > span { display:block; font-size:10px; color:var(--muted); margin-bottom:9px; }
.summary-content > b { display:block; font-size:13px; line-height:1.7; font-weight:500; overflow-wrap:anywhere; }
.summary-topics-list { display:flex; flex-wrap:wrap; gap:10px 14px; padding:0; margin:0; list-style:none; }
.summary-topics-list li { display:flex; align-items:center; gap:6px; font-size:12px; }
.summary-topics-list .topic-mark { display:grid; place-items:center; width:24px; height:24px; border-radius:7px; font-style:normal; background:var(--topic); color:var(--topic-ink); font-size:16px; }
.consent:has(input:checked) { background:transparent; }
.time-dialog { width:min(430px,calc(100% - 32px)); }
#timeHelp { margin:9px 0 22px; color:var(--muted); font-size:12px; }
.time-columns { display:grid; grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr); gap:10px; }
.time-column { min-width:0; }.time-column > label { display:block; font-size:12px; color:#796959; }
.time-column > input { width:100%; padding:10px; border:1px solid #dac4b7; border-radius:16px; background:#fff; color:var(--prune); text-align:center; font:500 35px "Outfit",sans-serif; appearance:textfield; }
.time-column > input::-webkit-inner-spin-button,.time-column > input::-webkit-outer-spin-button { appearance:none; margin:0; }
.time-column > small { display:block; margin:6px 0 12px; text-align:center; font:400 11px "Outfit",sans-serif; color:#97867b; }
.time-colon { padding-top:34px; text-align:center; font:500 30px "Outfit",sans-serif; color:var(--brique); }
.time-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; height:204px; overflow-y:auto; padding:4px 5px 4px 3px; align-content:start; scrollbar-width:thin; scrollbar-color:#d5b3a2 #f5efe9; overscroll-behavior:contain; scroll-padding:4px; border-block:1px solid #eee4db; }
.time-option { min-height:37px; border:1px solid #e6dcd2; border-radius:10px; background:#fff; color:var(--ink); font:500 14px "Outfit",sans-serif; }
.time-option:hover { border-color:var(--brique); background:#fcf3ec; }.time-option[aria-pressed="true"] { background:var(--brique); color:#fff; border-color:var(--brique); }
.time-selection { display:flex; align-items:center; gap:10px; margin-top:20px; padding:14px; border:1px solid #dac4b7; border-radius:17px; }
.time-selection-icon { font-size:28px; color:var(--brique); }.time-selection small,.time-selection b { display:block; }.time-selection small { font-size:10px; color:var(--muted); }.time-selection b { font-size:18px; font-weight:500; }.time-format { margin-left:auto; font:500 10px "Outfit",sans-serif; color:#a3826d; }
@media (min-width:781px) {
  .app-shell { display:block; width:min(1040px,calc(100% - 64px)); max-width:1040px; margin:28px auto; }
  .studio { position:relative; top:0; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:0 35px; padding:32px 40px; }
  .brand { grid-column:1; }.hero-copy { grid-column:1; max-width:none; margin-top:25px; }
  .hero-copy h1 { font-size:40px; line-height:1.3; }.hero-copy > p:last-child { max-width:510px; margin-top:12px; font-size:12px; }
  .hero-copy .kicker { margin-bottom:13px; }
  .palette-scene { position:relative; inset:auto; grid-column:2; grid-row:1/4; align-self:center; width:240px; margin:0; padding:10px 12px 22px; }
  .palette-ticket { padding:20px; }.palette-ticket > b { font-size:26px; }.palette-swatches { height:50px; margin:18px 0 14px; }
  .hero-meta { grid-column:1; margin-top:24px; padding-top:18px; gap:35px; }.hero-meta span { font-size:9px; }
  .flow { padding:30px 40px; }.notice,.steps,form,.success,footer { max-width:800px; margin-left:auto; margin-right:auto; }
}
@media (max-width:780px) { .app-shell { display:block; }.studio { margin-bottom:0; }.hero-copy h1 { max-width:265px; }.hero-copy em { display:block; }.hero-copy h1 br { display:none; } }
@media (max-width:500px) { .summary { grid-template-columns:1fr; }.summary-delivery { grid-column:auto; }.summary-card { padding:16px; }.time-columns { gap:5px; grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr); }.time-option { min-height:37px; }.time-column > input { font-size:32px; }.time-options { gap:4px; } }
@media (max-height:740px) { .time-dialog { padding:20px; }#timeHelp { margin:8px 0 15px; }.time-options { height:155px; }.time-selection { margin-top:13px; padding:10px; } }

/* Four softly blended palette colors move independently behind the content. */
body { background:#f7f3ee; }
.ambient { overflow:hidden; background:#f7f3ee; }
.ambient .blob { display:block; position:absolute; width:70vmax; height:70vmax; border-radius:50%; filter:blur(65px); opacity:.16; will-change:transform; pointer-events:none; }
.blob-a { left:-25vmax; top:-27vmax; background:radial-gradient(circle,var(--prune),transparent 68%); animation:gradientPrune 23s ease-in-out infinite alternate; }
.blob-b { right:-22vmax; top:-10vmax; background:radial-gradient(circle,var(--brique),transparent 68%); animation:gradientBrique 19s ease-in-out infinite alternate; }
.blob-c { left:-18vmax; bottom:-30vmax; background:radial-gradient(circle,var(--lin),transparent 68%); opacity:.32!important; animation:gradientLin 26s ease-in-out infinite alternate; }
.blob-d { right:-28vmax; bottom:-28vmax; background:radial-gradient(circle,var(--raisin),transparent 68%); animation:gradientRaisin 21s ease-in-out infinite alternate; }
.flow { background:#fffcf8ed; }.studio { background:#faf5ecef; }
@keyframes gradientPrune { to { transform:translate(28vw,22vh) scale(1.15); } }
@keyframes gradientBrique { to { transform:translate(-24vw,32vh) scale(1.1); } }
@keyframes gradientLin { to { transform:translate(32vw,-25vh) scale(1.2); } }
@keyframes gradientRaisin { to { transform:translate(-28vw,-30vh) scale(1.12); } }
@media (max-width:500px) { .ambient .blob { filter:blur(40px); } }
.studio { background:var(--prune); border-color:var(--prune); color:#fff8ef; }
.studio::before { background:radial-gradient(circle,#81548899,transparent 70%); }
.brand-glyph { background:var(--lin); color:var(--prune); }
.brand small,.hero-copy > p:last-child,.hero-meta span { color:#d8c8d9; }
.hero-copy em,.hero-meta b { color:var(--lin); }.kicker { color:#dbc5da; }.kicker span { background:var(--brique); }
.hero-meta { border-top-color:#ffffff26; }.scene-star { color:var(--lin); }
.ambient .blob { width:60vmax; height:60vmax; filter:blur(32px); }
.blob-a { left:-20vmax; top:-18vmax; opacity:.32!important; }
.blob-b { right:-18vmax; top:-5vmax; opacity:.42!important; }
.blob-c { left:-12vmax; bottom:-20vmax; opacity:.62!important; }
.blob-d { right:-20vmax; bottom:-20vmax; opacity:.38!important; }
.summary { display:block; margin-bottom:20px; }
.summary-card { border:0; border-bottom:1px solid #e5dcd4; border-radius:0; padding:20px 0; align-items:center; background:transparent; }
.summary-card:first-child { padding-top:0; }.summary-card:last-child { border-bottom:0; }
.summary-content { display:grid; grid-template-columns:115px minmax(0,1fr); align-items:center; gap:18px; flex:1; }
.summary-content > span { margin:0; font-size:12px; }.summary-content > b { font-size:14px; }
.consent-stack { gap:0; border-top:1px solid #e5dcd4; }
.consent,.consent:has(input:checked) { border:0; border-bottom:1px solid #e5dcd4; border-radius:0; padding:18px 0; background:transparent; box-shadow:none; }
.time-column > label:first-child { display:block; text-align:center; font-size:13px; margin-bottom:8px; }
.time-wheel { position:relative; height:168px; overflow-y:auto; scroll-snap-type:y mandatory; scrollbar-width:none; padding-block:60px; border-block:1px solid #e4c7b5; background:linear-gradient(#fff9f6,#faf3ed 38%,#faf3ed 62%,#fff9f6); mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent); }
.time-wheel::-webkit-scrollbar { display:none; }
.time-wheel-option { display:block; width:100%; height:48px; padding:0; scroll-snap-align:center; border:0; color:#9b8993; background:transparent; box-shadow:none; font:500 24px/48px 'Outfit',sans-serif; }
.time-wheel-option:hover,.time-wheel-option.active { transform:none; color:var(--prune); background:#fff8f0; font-size:36px; }
.time-manual { display:block; margin-top:10px!important; }
.time-manual span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; }
.time-manual input { width:100%; padding:9px 6px; border:1px solid #dfcfc5; border-radius:11px; color:var(--prune); background:#fff; text-align:center; font:600 18px 'Outfit',sans-serif; }
.time-manual input:focus { border-color:var(--brique); outline:3px solid #bf5e4024; }
.time-colon { padding-top:88px; font-size:32px; }.time-column > small { margin:7px 0 0; }
.time-entry-hint { margin:14px 0 0; text-align:center; font-size:11px; color:var(--muted); }
.time-presets { margin-top:19px; }.time-presets > span { font-size:11px; color:var(--muted); }
.time-presets > div { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:8px; }
.time-presets button { min-height:40px; border:1px solid #e3d5c9; border-radius:12px; background:#fff; color:var(--ink); font:500 14px 'Outfit',sans-serif; }
.time-presets button[aria-pressed="true"] { border-color:var(--brique); color:var(--brique); background:#fcf0e7; }
@media (max-width:500px) { .ambient .blob { filter:blur(23px); }.summary-content { grid-template-columns:1fr; gap:5px; }.summary-content > span { font-size:11px; }.summary-content > b { font-size:13px; }.summary-card { align-items:flex-start; }.time-colon { padding-top:88px; } }
@media (max-height:740px) { .time-wheel { height:138px; padding-block:45px; }.time-colon { padding-top:72px; }.time-presets { margin-top:12px; }.time-entry-hint { margin-top:10px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }.ambient .blob { will-change:auto; } }

/* One outer surface and one choice outline; the report uses dividers. */
form,.success { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.input-card { border-width:1.5px; }
.schedule-trigger { border:1.5px solid var(--brique); }
.date-trigger .selection-box,.time-trigger .selection-box { width:20px; height:20px; border-width:1.5px; }
.report-preview { margin-top:22px; text-align:left; }
.success.has-report { display:flex; flex-direction:column; text-align:left; }
.success.has-report > .confetti,.success.has-report > .success-mark,.success.has-report > .kicker,.success.has-report > h2,.success.has-report > p { display:none; }
.success.has-report .report-preview { order:1; margin-top:0; }
.success.has-report #previewButton { flex:none; align-self:flex-start; min-height:42px; margin-top:15px; padding:8px 0; color:var(--brique); background:none; box-shadow:none; font-size:12px; }
.success.has-report #previewButton:hover { transform:none; text-decoration:underline; }
.report-sheet { border:0; background:transparent; }
.report-header { padding:20px 22px; border-radius:19px; color:#fff9f2; background:var(--prune); }
.report-eyebrow { font:600 10px/1.4 'Outfit',sans-serif; letter-spacing:.16em; text-transform:uppercase; color:var(--lin); }
.report-header h3 { margin:9px 0 3px; font-size:clamp(23px,4vw,32px); line-height:1.35; font-weight:600; }
.report-header p { margin:0!important; color:#fff8ef!important; font-size:14px!important; }
.report-header small { display:block; margin-top:7px; color:#dbc8dc; font-size:11px; line-height:1.6; }
.report-content { padding:0 2px; }
.success .report-draft { display:block; margin:20px 0; padding-left:10px; border-left:3px solid var(--brique); color:#974b31; font-size:11px; font-weight:500; }
.report-section { margin-top:20px; padding:20px; border:1px solid #e9e0d8; border-radius:18px; background:#fffdfa; }
.report-section-title { grid-column:1/-1; margin:0 0 18px; padding-bottom:12px; border-bottom:1px solid #eee7e0; color:var(--prune); font-size:18px; line-height:1.5; font-weight:650; }
.report-subtitle { margin:0 0 10px; color:var(--prune); font-size:14px; line-height:1.5; font-weight:600; }
.report-subtitle:not(:first-child) { margin-top:18px; }
.element-summary { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.element-summary .report-subtitle { margin:0 0 3px; }
.success .day-master-value { margin:0; color:var(--prune); font-size:25px; font-weight:650; line-height:1.4; }
.element-icon { display:grid; place-items:center; width:54px; height:54px; flex:none; border-radius:16px; color:#956741; background:#f4eadc; }
.element-icon svg { width:30px; height:30px; }
.element-ไม้ { color:#356447; background:#e9f0e6; }.element-ไฟ { color:#a84933; background:#fae8df; }
.element-โลหะ { color:#6d6277; background:#eeeaf3; }.element-น้ำ { color:#3c688e; background:#e6eef5; }
.daily-color-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.color-panel { min-width:0; padding:0 0 16px; border-bottom:1px solid #eee7e0; }
.color-panel-reduce { background:transparent; }
.success .report-caption { margin:0; color:#786b75; font-size:11px; line-height:1.8; }
.success .report-method { margin:16px 0 0; color:#786b75; font-size:12px; line-height:1.9; }
.report-details { margin-top:20px; border-top:1px solid #eee7e0; }
.report-details summary { padding:12px 0 0; color:var(--brique); font-size:12px; font-weight:500; cursor:pointer; }
.success .report-section .report-fact { display:grid; grid-template-columns:155px minmax(0,1fr); gap:8px 18px; margin:0; padding:10px 0; border-bottom:1px solid #eee7e0; }
.report-fact:last-child { border-bottom:0!important; }
.report-fact > .explained-label { align-self:start; color:#7b6473; font-size:12px; font-weight:600; }
.report-fact-value { color:var(--ink); font-size:13px; font-weight:400; }
@media (max-width:540px) { .success .report-section .report-fact { grid-template-columns:1fr; gap:3px; } .daily-color-grid { grid-template-columns:1fr; } .report-section { padding:16px; } }
.success .report-tara p,.success .report-overview { margin:0; color:var(--ink); font-size:13px; line-height:1.8; }
.success .report-overview { padding:17px 0 4px; }
.report-topics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:22px; }
.report-topic { min-width:0; padding:19px 0; border-bottom:1px solid #e9e0d8; background:transparent; }
.report-topic-heading { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.report-topic-heading h5 { margin:0; font-size:14px; line-height:1.5; font-weight:600; color:var(--prune); }
.report-topic-icon { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:9px; background:#f8ebdf; font-size:17px; }
.report-icon-finance { background:#f7efd5; }.report-icon-love { background:#f9e6e8; }.report-icon-health { background:#e8f2e8; }
.report-colors { display:flex; flex-wrap:wrap; gap:8px 20px; margin:0 0 10px; }
.report-color { display:inline-flex; align-items:center; gap:7px; color:var(--ink); font-size:13px; line-height:1.4; }
.report-swatch { display:block; flex:none; width:17px; height:17px; border:1px solid #0000001c; border-radius:50%; }
.success .report-level { margin:0 0 4px; color:#906b79; font-size:11px; }
.success .report-guidance { margin:0; color:#554651; font-size:12px; line-height:1.7; }
.report-avoid { margin-top:7px; padding:18px 0 0; border-top:1px solid #e9e0d8; }
.report-avoid h4 { margin:0 0 10px; color:#a44d3b; font-size:15px; }
.report-avoid h4:not(:first-child) { margin-top:16px; }
.success .report-avoid p { margin:0; color:#786b75; font-size:11px; line-height:1.7; }
.explained-label { display:inline-flex; align-items:center; gap:5px; flex-wrap:wrap; }
.success .glossary-help { display:inline-grid; place-items:center; flex:none; position:relative; width:24px; min-height:28px; padding:0; border:0; border-radius:6px; color:var(--brique); background:transparent; box-shadow:none; font:600 italic 14px/1 Georgia,serif; transform:none; cursor:pointer; }
.success .glossary-help:hover { color:#923e28; background:#bc603012; box-shadow:none; transform:none; }
.success .glossary-help:focus-visible { outline:2px solid var(--brique); outline-offset:2px; }
.monthly-table thead th { background:#f5eee6; color:var(--prune); border-color:#e7dcd1; }
.monthly-table thead .glossary-help { color:var(--brique); background:transparent; }
.monthly-table thead .glossary-help:hover { color:#923e28; background:#bc603012; }
.glossary-dialog { width:min(430px,calc(100vw - 32px)); max-height:min(80vh,600px); padding:22px; border:1px solid #e4d7de; border-radius:20px; color:var(--ink); background:#fffdfb; box-shadow:0 18px 55px #2b153e40; }
.glossary-dialog::backdrop { background:#24162899; }
.glossary-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.glossary-heading h2 { margin:0; color:var(--prune); font-size:18px; }
.glossary-heading button { flex:none; width:32px; height:32px; padding:0; border:0; border-radius:50%; color:var(--prune); background:#f4edf3; font-size:24px; line-height:1; }
.glossary-dialog p { margin:12px 0 0; font-size:13px; line-height:1.8; }
.glossary-example { padding:10px 12px; border-radius:10px; background:#f7f0f5; }
.success .report-footnote { margin:22px 0 0; padding-top:13px; border-top:1px solid #eee6df; color:#786e79; font-size:10px; line-height:1.65; }
.success .report-footnote p { margin:0 0 4px; color:inherit; font-size:inherit; line-height:inherit; }
.success .report-footnote a { color:var(--brique); text-decoration:underline; text-underline-offset:2px; }
.success .report-footnote a:focus-visible { outline:2px solid var(--brique); outline-offset:2px; }
.success .report-loading,.success .report-error { margin:0; padding:15px 0; color:var(--prune); font-size:13px; }
.success .report-error { color:#923e28; }
@media (max-width:680px) { .report-topics { grid-template-columns:1fr; } .report-header { padding:20px 18px; } }

.account-actions { margin-top:24px; padding-top:16px; border-top:1px solid #e9e0d8; text-align:left; }
.success.has-report .account-actions { order:3; width:100%; }
.success .account-actions #deliveryState { margin:0 0 12px; color:#786b75; font-size:11px; line-height:1.6; }
.account-action-row { display:flex; gap:9px; }
.success .account-actions .account-action-row button { flex:1; min-height:42px; border:1px solid #dfcfc5; border-radius:13px; color:var(--prune); background:transparent; font-size:11px; box-shadow:none; }
.success .account-actions .account-action-row button:hover { background:#fbf2ec; transform:none; }
.account-text-actions { display:flex; justify-content:space-between; gap:12px; margin-top:9px; }
.success .account-text-actions button { min-height:35px; padding:6px 2px; border:0; color:var(--brique); background:transparent; box-shadow:none; font-size:10px; text-decoration:underline; text-underline-offset:2px; }
.success .account-text-actions .delete-account { color:#a44d3b; }
.success .account-text-actions button:hover { background:transparent; transform:none; }
.success .account-actions .account-error { margin:9px 0 0; color:#923e28; font-size:11px; }
.account-error:empty { display:none; }

/* Self-service dashboard: daily report plus a compact downloadable month table. */
.dashboard-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; width:min(430px,100%); margin:24px auto 0; padding:5px; border:1px solid #e6dcd4; border-radius:17px; background:#f8f3ee; }
.success .dashboard-tab { min-height:44px; padding:9px 12px; border:0; border-radius:12px; color:#715f6d; background:transparent; box-shadow:none; font-size:12px; }
.success .dashboard-tab:hover { color:var(--prune); background:#fff; box-shadow:none; transform:none; }
.success .dashboard-tab.active { color:#fff; background:var(--prune); }
.success .dashboard-tab.active:hover { color:#fff; background:var(--prune); }
.dashboard-panel[hidden] { display:none!important; }
.success.has-report .dashboard-tabs { order:1; align-self:center; margin:0 auto 22px; }
.success.has-report .dashboard-panel { order:2; width:100%; }
.success.has-report .dashboard-tabs #previewButton { min-height:44px; margin:0; padding:9px 12px; color:#715f6d; background:transparent; font-size:12px; text-decoration:none; }
.success.has-report .dashboard-tabs #previewButton.active { color:#fff; background:var(--prune); }
.success.has-report .dashboard-tabs #previewButton:hover { transform:none; text-decoration:none; }
.success.has-report .account-actions { order:3; }

.monthly-report { text-align:left; }
.month-toolbar { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:10px; margin-bottom:15px; padding:16px 12px; border-radius:18px; color:#fff9f2; background:var(--prune); text-align:center; }
.month-toolbar div { display:grid; gap:3px; }
.month-toolbar small { color:#ddcddd; font-size:9px; letter-spacing:.12em; text-transform:uppercase; }
.month-toolbar b { font-size:20px; font-weight:600; }
.success .month-nav { width:44px; min-height:44px; padding:0; border:1px solid #ffffff30; border-radius:13px; color:#fff; background:#ffffff0d; box-shadow:none; font:500 27px/1 'Outfit',sans-serif; }
.success .month-nav:hover { background:#ffffff18; box-shadow:none; transform:none; }
.monthly-table-host { width:100%; overflow:auto; border-block:1px solid #e8ded7; background:#fffdfa; -webkit-overflow-scrolling:touch; }
.monthly-base-palette { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.monthly-base-group { min-width:0; padding:12px; border:1px solid #e8ded7; border-radius:13px; background:#fffdfa; }
.monthly-base-group > .explained-label { margin-bottom:9px; color:var(--prune); font-size:11px; font-weight:600; }
.monthly-base-group .monthly-colors { display:flex; flex-wrap:wrap; gap:6px 12px; min-width:0; }
.monthly-table { width:100%; min-width:670px; border-collapse:separate; border-spacing:0; font-size:11px; }
.monthly-table th,.monthly-table td { padding:12px 10px; border-bottom:1px solid #eee6df; border-right:1px solid #f0e9e3; vertical-align:top; }
.monthly-table thead th { position:sticky; top:0; z-index:2; color:var(--prune); background:#f5eee6; text-align:left; font-size:11px; font-weight:600; }
.monthly-table thead th:first-child { left:0; z-index:4; min-width:72px; }
.monthly-table tbody th { position:sticky; left:0; z-index:1; min-width:72px; color:var(--prune); background:#fffaf5; text-align:left; }
.monthly-table tbody th b,.monthly-table tbody th small { display:block; }
.monthly-table tbody th b { font:600 18px/1.2 'Outfit',sans-serif; }
.monthly-table tbody th small { margin-top:3px; color:#907f86; font-size:9px; font-weight:400; }
.monthly-table tbody tr:last-child th,.monthly-table tbody tr:last-child td { border-bottom:0; }
.monthly-colors { display:grid; gap:6px; min-width:96px; }
.monthly-color { display:flex; align-items:center; gap:6px; color:#4f424b; white-space:nowrap; }
.monthly-swatch { width:13px; height:13px; flex:none; border:1px solid #0000001c; border-radius:50%; }
.monthly-pillar { display:block; font-size:13px; }
.monthly-translation { display:block; margin-top:4px; color:#71616a; font-size:9px; line-height:1.5; }
.monthly-empty { color:#b4a9af; }
.success .download-month { display:block; width:100%; min-height:46px; margin-top:15px; border:1px solid #d9c7bb; color:var(--brique); background:#fff; box-shadow:none; }
.success .download-month:hover { background:#fcf3ed; box-shadow:none; transform:none; }
.success .monthly-note { margin:10px 0 0; color:#897982; font-size:9px; line-height:1.6; text-align:left; }
.success .monthly-report .report-loading,.success .monthly-report .report-error { padding:22px 12px; }
.success .report-cache-note { margin:0 0 14px; padding:10px 12px; border-radius:12px; color:#7e5b42; background:#fbf1e8; font-size:10px; line-height:1.6; }
.account-action-row { width:100%; }
.element-การงาน { color:#a25439; background:#fae8df; }.element-การเงิน { color:#956741; background:#f4eadc; }
.element-ความรัก { color:#a45b75; background:#f6e9ee; }.element-สุขภาพ { color:#356447; background:#e9f0e6; }
.download-options { display:grid; gap:8px; margin-top:16px; }
.download-options button { display:block; width:100%; padding:12px 16px; border:1px solid #e9e0d8; border-radius:12px; color:var(--prune); background:#fffdfa; text-align:left; font-size:15px; font-weight:600; cursor:pointer; }
.download-options small { display:block; margin-top:3px; color:#786b75; font-size:12px; font-weight:400; }
.download-options button:disabled { opacity:.5; cursor:wait; }
.save-report-file { display:block; margin-top:15px; padding:13px; border-radius:12px; color:#fff; background:var(--prune); text-align:center; text-decoration:none; font-weight:600; }
.save-report-file[hidden] { display:none; }
.download-dialog .download-privacy { font-size:11px; color:#786b75; }

@media (max-width:500px) {
  .dashboard-tabs { width:100%; }
  .month-toolbar { grid-template-columns:40px 1fr 40px; padding-inline:9px; }
  .success .month-nav { width:40px; min-height:40px; }
  .monthly-base-palette { grid-template-columns:1fr; }
  .monthly-table { min-width:670px; }
}

/* Shared dashboard rhythm: identical card insets and daily-first tab order. */
.success { --report-inset:24px; --report-gap:20px; }
.report-content { padding:0; }
.report-header,.report-section,.month-toolbar,.monthly-base-group { padding:var(--report-inset); }
.report-section { margin-top:var(--report-gap); }
.monthly-base-palette { gap:var(--report-gap); margin-bottom:var(--report-gap); }
.month-toolbar { margin-bottom:var(--report-gap); }
.success .dashboard-tabs #previewButton { order:0; }
.success .dashboard-tabs #monthlyButton { order:1; }
.calculation-principles { order:4; width:100%; margin-top:var(--report-gap); border:1px solid #e9e0d8; border-radius:18px; background:#fffdfa; }
.calculation-principles > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:var(--report-inset); color:var(--prune); font-size:14px; font-weight:600; cursor:pointer; list-style:none; }
.calculation-principles > summary::-webkit-details-marker { display:none; }
.calculation-principles > summary > span { color:var(--brique); font-size:22px; transition:transform .2s; }
.calculation-principles[open] > summary > span { transform:rotate(180deg); }
.calculation-principles > summary:hover { color:var(--brique); }
.calculation-principles > summary:focus-visible { outline:2px solid var(--brique); outline-offset:3px; border-radius:18px; }
.principles-content { margin:0 var(--report-inset); padding:0 0 var(--report-inset); border-top:1px solid #eee7e0; }
.principles-content h3 { margin:20px 0 8px; color:var(--prune); font-size:14px; font-weight:600; line-height:1.6; }
.success .principles-content p,.principles-content li { margin:0 0 12px; color:#786b75; font-size:12px; line-height:1.9; }
.principles-content ul { margin:0; padding-left:20px; }
.principles-content a { color:var(--brique); text-underline-offset:3px; }
.success .principles-content .principles-disclaimer { margin:16px 0 0; padding-top:16px; border-top:1px solid #eee7e0; }
@media (max-width:540px) { .success { --report-inset:16px; --report-gap:16px; } }
