/*
 * UZU App UI — consumer sub-page design system (2026-10-23)
 * ---------------------------------------------------------------------------
 * Opt in from a template with:  {% set uzu_app = true %}   (base.html adds body.ua)
 * Landing (index.html) and its menu do NOT use this file.
 *
 * Principles (UZU design rules + Toss/Karrot/Yeogi benchmarks):
 *  - flat, no gradients, minimal borders/shadows; white sections on a light grey canvas
 *  - one accent: #0878ff (same as landing); text #191919 / #4e5968 / #8b95a1
 *  - Pretendard 400/500/600/900 only. 900 = page & section titles, 600 = emphasis/buttons
 *  - 20px side gutter, 430px max width, touch targets >= 44px, inputs 16px (no iOS zoom)
 *
 * Layout skeleton:
 *   <div class="ua-page">                       grey canvas (ua-page--white for plain white)
 *     <header class="ua-appbar">…</header>      sticky 56px bar (macro ua_appbar)
 *     <div class="ua-hero">large title</div>    optional big left-aligned title block
 *     <section class="ua-section">…</section>   white block, separated by 12px grey gap
 *   </div>
 *   <div class="ua-cta">primary button</div>    fixed bottom action (ua-cta--nav above bottom nav)
 */
@font-face{font-family:"Pretendard";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/Pretendard-Regular.woff2") format("woff2")}
@font-face{font-family:"Pretendard";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/Pretendard-Medium.woff2") format("woff2")}
@font-face{font-family:"Pretendard";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/Pretendard-SemiBold.woff2") format("woff2")}
@font-face{font-family:"Pretendard";font-style:normal;font-weight:900;font-display:swap;src:url("../fonts/Pretendard-Black.woff2") format("woff2")}

body.ua{
  --ua-blue:#0878ff;--ua-blue-strong:#0062d6;--ua-blue-tint:#ebf4ff;--ua-blue-line:#cfe3ff;
  --ua-ink:#191919;--ua-ink-2:#4e5968;--ua-muted:#8b95a1;--ua-faint:#b0b8c1;
  --ua-line:#eef1f5;--ua-line-strong:#e1e6ec;--ua-bg:#f3f5f8;--ua-fill:#f3f5f8;--ua-surface:#fff;
  --ua-red:#f04452;--ua-red-tint:#fff0f1;--ua-green:#03a862;--ua-green-tint:#e9f8f0;--ua-star:#ffb400;--ua-orange:#ff8a00;
  --ua-radius-s:10px;--ua-radius:12px;--ua-radius-l:16px;--ua-radius-xl:20px;
  --ua-gutter:20px;--ua-page:430px;--ua-nav:calc(var(--uzu-nav-h,56px) + env(safe-area-inset-bottom,0px));
  --ua-font:"Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Segoe UI",sans-serif;
  margin:0;background:var(--ua-bg)!important;color:var(--ua-ink);font-family:var(--ua-font);
  font-size:16px;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
  word-break:keep-all;overflow-wrap:anywhere;
}
body.ua>.navbar{display:none!important}
body.ua main{padding:0!important;min-height:0!important;will-change:auto!important} /* base main will-change:transform would trap position:fixed bars/overlays */
body.ua :is(h1,h2,h3,h4,h5,p,a,button,input,textarea,select,label,small,strong,b,li,td,th,span:not(.msr):not(.material-symbols-rounded):not(.fa):not([class^="fa-"]):not([class*=" fa-"])){font-family:var(--ua-font)}
:where(body.ua .ua-page,body.ua .ua-sheet,body.ua .ua-cta) :where(*,*::before,*::after){box-sizing:border-box}
body.ua :where(.ua-page,.ua-sheet) :is(h1,h2,h3,h4,p,ul,ol,figure){margin:0} /* NOTE: components that need margin on p/h use a wrapper gap or !important */
:where(body.ua .ua-page) :where(ul,ol){padding:0;list-style:none}
:where(body.ua .ua-page) :where(a){color:inherit;text-decoration:none}
:where(body.ua .ua-page) :where(button){font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
:where(body.ua .ua-page) :where(img){max-width:100%;display:block}
body.ua :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #8fc4ff;outline-offset:2px;border-radius:8px}

/* ---- page & layout --------------------------------------------------- */
.ua-page{width:100%;max-width:var(--ua-page);min-height:100dvh;margin:0 auto;background:var(--ua-bg);color:var(--ua-ink);padding-bottom:calc(var(--ua-nav) + 24px);position:relative}
.ua-page--white{background:#fff}
.ua-page--no-nav{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.ua-page--cta{padding-bottom:calc(var(--ua-nav) + 96px)}
.ua-page--cta.ua-page--no-nav{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
.ua-pad{padding-inline:var(--ua-gutter)}
.ua-stack{display:flex;flex-direction:column;gap:12px}
.ua-stack--8{gap:8px}.ua-stack--16{gap:16px}.ua-stack--24{gap:24px}
.ua-row-flex{display:flex;align-items:center;gap:8px}
.ua-grow{flex:1;min-width:0}
.ua-spacer{height:12px}
.ua-hidden{display:none!important}

/* ---- app bar ---------------------------------------------------------- */
.ua-appbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;min-height:56px;padding:0 6px;background:#fff;padding-top:env(safe-area-inset-top,0px)}
.ua-page:not(.ua-page--white)>.ua-appbar{background:#fff}
.ua-appbar.is-transparent{background:transparent}
.ua-appbar.is-scrolled{box-shadow:0 1px 0 var(--ua-line)}
.ua-appbar__title{margin:0;text-align:center;font-size:18px!important;line-height:26px!important;font-weight:600!important;letter-spacing:-.3px;color:var(--ua-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ua-appbar__side{display:flex;align-items:center;gap:0}
.ua-appbar__side--end{justify-content:flex-end}
.ua-appbar--wide{grid-template-columns:56px minmax(0,1fr) auto}
.ua-iconbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--ua-ink);flex-shrink:0;border:0;background:transparent;text-decoration:none;cursor:pointer}
.ua-iconbtn:active{background:var(--ua-fill)}
.ua-iconbtn .ua-dot{position:absolute;top:9px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--ua-red);border:1.5px solid #fff}

/* large title block below the app bar (Toss-style) */
.ua-hero{padding:8px var(--ua-gutter) 24px;background:#fff}
.ua-hero__eyebrow{font-size:14px;line-height:20px;color:var(--ua-blue);font-weight:600;margin-bottom:6px}
.ua-hero__title{font-size:24px!important;line-height:34px!important;font-weight:900!important;letter-spacing:-.6px;color:var(--ua-ink)}
.ua-hero__desc{margin-top:8px!important;font-size:15px;line-height:23px;color:var(--ua-ink-2)}

/* ---- sections --------------------------------------------------------- */
.ua-section{background:#fff;padding:24px var(--ua-gutter);margin-bottom:12px}
.ua-section:last-child{margin-bottom:0}
.ua-section--tight{padding-block:16px}
.ua-section--flush{padding-inline:0}
.ua-section__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.ua-section--flush .ua-section__head{padding-inline:var(--ua-gutter)}
.ua-section__title{font-size:20px!important;line-height:28px!important;font-weight:900!important;letter-spacing:-.5px;color:var(--ua-ink)}
.ua-section__sub{font-size:14px;line-height:20px;color:var(--ua-muted);margin-top:4px!important}
.ua-section__more{display:inline-flex;align-items:center;gap:2px;font-size:14px;line-height:20px;color:var(--ua-muted);font-weight:500;white-space:nowrap}
.ua-section__more .ua-icon{width:16px;height:16px}
.ua-label-caps{font-size:13px;line-height:18px;font-weight:600;color:var(--ua-muted);padding:20px var(--ua-gutter) 8px}

/* ---- text ------------------------------------------------------------- */
.ua-h1{font-size:24px;line-height:34px;font-weight:900;letter-spacing:-.6px}
.ua-h2{font-size:20px;line-height:28px;font-weight:900;letter-spacing:-.5px}
.ua-h3{font-size:17px;line-height:25px;font-weight:600;letter-spacing:-.3px}
.ua-body{font-size:16px;line-height:24px}
.ua-body2{font-size:15px;line-height:23px;color:var(--ua-ink-2)}
.ua-caption{font-size:13px;line-height:19px;color:var(--ua-muted)}
.ua-micro{font-size:12px;line-height:16px;color:var(--ua-muted)}
.ua-strong{font-weight:600}
.ua-blue{color:var(--ua-blue)}.ua-red{color:var(--ua-red)}.ua-muted{color:var(--ua-muted)}
.ua-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ua-clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ua-prewrap{white-space:pre-wrap}

/* ---- icons ------------------------------------------------------------ */
.ua-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;display:inline-block;vertical-align:middle}
.ua-icon--s{width:18px;height:18px}.ua-icon--l{width:28px;height:28px}
.ua-icon.is-filled{fill:currentColor}
.ua-icon-tile{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--ua-blue-tint);color:var(--ua-blue);flex-shrink:0}
.ua-icon-tile--grey{background:var(--ua-fill);color:var(--ua-ink-2)}
.ua-icon-tile--red{background:var(--ua-red-tint);color:var(--ua-red)}
.ua-icon-tile--green{background:var(--ua-green-tint);color:var(--ua-green)}

/* ---- list rows (settings / menu) -------------------------------------- */
.ua-list{display:flex;flex-direction:column}
.ua-list>li{list-style:none}
.ua-row{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px var(--ua-gutter);color:var(--ua-ink);text-decoration:none;width:100%;text-align:left;background:#fff;border:0}
.ua-section .ua-row{padding-inline:0}
.ua-section--flush .ua-row{padding-inline:var(--ua-gutter)}
a.ua-row:active,button.ua-row:active{background:var(--ua-fill)}
.ua-row__body{flex:1;min-width:0}
.ua-row__label{font-size:16px;line-height:24px;font-weight:500;color:var(--ua-ink)}
.ua-row__desc{display:block;font-size:13px;line-height:19px;color:var(--ua-muted);margin-top:2px}
.ua-row__label{display:block}
.ua-row__value{font-size:15px;line-height:22px;color:var(--ua-muted);white-space:nowrap;max-width:50%;overflow:hidden;text-overflow:ellipsis}
.ua-row__chev{color:var(--ua-faint);width:20px;height:20px}
.ua-row--danger .ua-row__label{color:var(--ua-red)}
.ua-list--divided>*+*{border-top:1px solid var(--ua-line)}

/* ---- cards & items ---------------------------------------------------- */
.ua-card{background:#fff;border-radius:var(--ua-radius-l);padding:20px}
.ua-card--fill{background:var(--ua-fill)}
.ua-card--tint{background:var(--ua-blue-tint)}
.ua-card--line{border:1px solid var(--ua-line-strong)}
/* list item with thumbnail (academy / post) */
.ua-item{display:flex;gap:14px;align-items:flex-start;padding:16px 0;color:var(--ua-ink);text-decoration:none}
.ua-item+.ua-item{border-top:1px solid var(--ua-line)}
.ua-item__thumb{width:88px;height:88px;border-radius:12px;object-fit:cover;background:var(--ua-fill);flex-shrink:0;overflow:hidden}
.ua-item__thumb--s{width:64px;height:64px}
.ua-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ua-item__title{font-size:16px;line-height:24px;font-weight:600;color:var(--ua-ink)}
.ua-item__meta{font-size:13px;line-height:19px;color:var(--ua-muted)}
.ua-item__text{font-size:15px;line-height:22px;color:var(--ua-ink-2)}
.ua-item__aside{flex-shrink:0;align-self:center}
.ua-rating{display:inline-flex;align-items:center;gap:3px;font-size:14px;line-height:20px;font-weight:600;color:var(--ua-ink)}
.ua-rating .ua-icon{width:15px;height:15px;color:var(--ua-star);fill:var(--ua-star);stroke:var(--ua-star)}
.ua-price{font-size:16px;line-height:24px;font-weight:600;color:var(--ua-ink)}
.ua-price small{font-size:13px;font-weight:400;color:var(--ua-muted)}
.ua-meta-dot>*+*::before{content:"·";margin:0 5px;color:var(--ua-faint)}

/* ---- buttons ---------------------------------------------------------- */
.ua-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:52px;padding:0 20px;border-radius:14px;border:0;background:var(--ua-blue);color:#fff!important;font-size:16px!important;line-height:24px;font-weight:600!important;letter-spacing:-.2px;text-decoration:none!important;cursor:pointer;white-space:nowrap;transition:background .15s ease,transform .1s ease;-webkit-appearance:none;appearance:none}
.ua-btn:active{transform:scale(.98);background:var(--ua-blue-strong)}
.ua-btn[disabled],.ua-btn.is-disabled{background:#e5e8eb!important;color:#b0b8c1!important;cursor:default;transform:none}
.ua-btn--block{display:flex;width:100%}
.ua-btn--secondary{background:var(--ua-blue-tint);color:var(--ua-blue-strong)!important}
.ua-btn--secondary:active{background:#dcebff}
.ua-btn--grey{background:var(--ua-fill);color:var(--ua-ink-2)!important}
.ua-btn--grey:active{background:#e8ebef}
.ua-btn--line{background:#fff;color:var(--ua-ink)!important;box-shadow:inset 0 0 0 1px var(--ua-line-strong)}
.ua-btn--line:active{background:var(--ua-fill)}
.ua-btn--danger{background:var(--ua-red-tint);color:var(--ua-red)!important}
.ua-btn--m{min-height:44px;padding:0 16px;border-radius:12px;font-size:15px!important}
.ua-btn--s{min-height:36px;padding:0 12px;border-radius:10px;font-size:14px!important}
.ua-btn .ua-icon{width:20px;height:20px}
.ua-btn-row{display:flex;gap:8px}.ua-btn-row>*{flex:1}
.ua-textbtn{display:inline-flex;align-items:center;gap:2px;min-height:44px;font-size:15px;font-weight:500;color:var(--ua-ink-2);background:none;border:0;cursor:pointer;text-decoration:none}
.ua-textbtn--blue{color:var(--ua-blue)}
.ua-link{color:var(--ua-blue)!important;font-weight:500;text-decoration:none}

/* fixed bottom action bar */
.ua-cta{box-sizing:border-box;position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:60;width:min(var(--ua-page),100%);padding:12px var(--ua-gutter) calc(12px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -1px 0 var(--ua-line);display:flex;gap:8px}
.ua-cta>*{flex:1}
.ua-cta--nav{bottom:calc(var(--ua-nav) + 30px);padding-bottom:12px;box-shadow:none;background:transparent} /* clears the raised centre UZU nav button */

/* ---- forms ------------------------------------------------------------ */
.ua-field{display:flex;flex-direction:column;gap:8px}
.ua-field+.ua-field{margin-top:24px}
.ua-field__label{font-size:14px!important;line-height:20px;font-weight:600!important;color:var(--ua-ink-2)!important;margin:0!important;display:flex;align-items:center;gap:4px}
.ua-field__label .req{color:var(--ua-blue)}
.ua-field__help{font-size:13px;line-height:19px;color:var(--ua-muted);margin:0}
.ua-field__error{font-size:13px;line-height:19px;color:var(--ua-red);margin:0}
.ua-input,.ua-select,.ua-textarea{width:100%;min-height:52px;padding:14px 16px;border:1px solid transparent;border-radius:var(--ua-radius);background:var(--ua-fill);color:var(--ua-ink);font-size:16px!important;line-height:24px;font-family:var(--ua-font);-webkit-appearance:none;appearance:none;outline:none;box-shadow:none;transition:border-color .15s ease,background .15s ease}
.ua-input::placeholder,.ua-textarea::placeholder{color:var(--ua-faint);opacity:1}
.ua-input:focus,.ua-select:focus,.ua-textarea:focus{border-color:var(--ua-blue);background:#fff}
.ua-input[readonly],.ua-input:disabled{color:var(--ua-ink-2);background:var(--ua-fill)}
.ua-input.is-invalid{border-color:var(--ua-red);background:#fff}
.ua-textarea{min-height:140px;resize:vertical}
.ua-select{padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:20px}
.ua-input-group{position:relative;display:flex;gap:8px;align-items:stretch}
.ua-input-group>.ua-input{flex:1}
.ua-input-group>.ua-btn{flex-shrink:0;min-height:52px}
.ua-input-wrap{position:relative}
.ua-input-wrap>.ua-input{padding-right:52px}
.ua-input-wrap>.ua-iconbtn{position:absolute;right:4px;top:50%;transform:translateY(-50%);color:var(--ua-muted)}
.ua-counter{font-size:13px;color:var(--ua-muted);text-align:right}
/* checkbox / radio rows */
.ua-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:16px;line-height:24px;color:var(--ua-ink);cursor:pointer}
.ua-check input{width:22px;height:22px;margin:0;accent-color:var(--ua-blue);flex-shrink:0}
/* option tiles (radio-like choice cards) */
.ua-options{display:grid;gap:8px}
.ua-options--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ua-options--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ua-option{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px;border-radius:var(--ua-radius);background:var(--ua-fill);color:var(--ua-ink-2);font-size:15px;font-weight:500;text-align:center;cursor:pointer;border:1px solid transparent}
.ua-option input{position:absolute;opacity:0;pointer-events:none}
.ua-option.is-active,.ua-option:has(input:checked){background:var(--ua-blue-tint);border-color:var(--ua-blue);color:var(--ua-blue-strong);font-weight:600}
/* switch */
.ua-switch{position:relative;display:inline-block;width:52px;height:32px;flex-shrink:0}
.ua-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.ua-switch span{position:absolute;inset:0;border-radius:999px;background:#e5e8eb;transition:background .2s ease}
.ua-switch span::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s ease}
.ua-switch input:checked+span{background:var(--ua-blue)}
.ua-switch input:checked+span::after{transform:translateX(20px)}
/* star rating input */
.ua-stars{display:flex;gap:4px}
.ua-stars button,.ua-stars label{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:#e5e8eb;cursor:pointer}
.ua-stars .is-on{color:var(--ua-star)}
.ua-stars .ua-icon{width:32px;height:32px;fill:currentColor;stroke:currentColor}
/* file upload tile */
.ua-upload{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:120px;border-radius:var(--ua-radius-l);background:var(--ua-fill);color:var(--ua-muted);font-size:14px;cursor:pointer;border:1px dashed var(--ua-line-strong);text-align:center;padding:16px}
.ua-upload input{display:none}

/* ---- chips, tabs, badges --------------------------------------------- */
.ua-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 var(--ua-gutter);margin:0 calc(var(--ua-gutter) * -1)}
.ua-chips::-webkit-scrollbar{display:none}
.ua-section--flush .ua-chips,.ua-chips--edge{margin:0}
.ua-chip{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;min-height:38px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--ua-line-strong);color:var(--ua-ink-2);font-size:14px!important;font-weight:500!important;line-height:20px;white-space:nowrap;cursor:pointer;text-decoration:none;border:0}
.ua-chip.is-active,.ua-chip[aria-pressed="true"],.ua-chip[aria-selected="true"]{background:var(--ua-ink);box-shadow:none;color:#fff!important}
.ua-chip--blue.is-active{background:var(--ua-blue)}
.ua-chip .ua-icon{width:16px;height:16px}
.ua-tabs{display:flex;background:#fff;box-shadow:inset 0 -1px 0 var(--ua-line);overflow-x:auto;scrollbar-width:none}
.ua-tabs::-webkit-scrollbar{display:none}
.ua-tab{flex:1 0 auto;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 16px;font-size:16px!important;font-weight:500!important;color:var(--ua-muted)!important;text-decoration:none!important;border:0;background:none;position:relative;white-space:nowrap;cursor:pointer}
.ua-tab.is-active,.ua-tab[aria-selected="true"]{color:var(--ua-ink)!important;font-weight:600!important}
.ua-tab.is-active::after,.ua-tab[aria-selected="true"]::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:2px;border-radius:2px;background:var(--ua-ink)}
.ua-segment{display:flex;padding:4px;border-radius:12px;background:var(--ua-fill);gap:4px}
.ua-segment>*{flex:1;min-height:40px;border-radius:9px;border:0;background:transparent;color:var(--ua-muted);font-size:15px;font-weight:500;display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none}
.ua-segment>.is-active,.ua-segment>[aria-selected="true"]{background:#fff;color:var(--ua-ink);font-weight:600;box-shadow:0 1px 3px #0000000f}
.ua-badge{display:inline-flex;align-items:center;gap:3px;min-height:22px;padding:0 8px;border-radius:6px;background:var(--ua-blue-tint);color:var(--ua-blue-strong);font-size:12px!important;line-height:16px;font-weight:600!important;white-space:nowrap;vertical-align:middle}
.ua-badge--grey{background:var(--ua-fill);color:var(--ua-ink-2)}
.ua-badge--red{background:var(--ua-red-tint);color:var(--ua-red)}
.ua-badge--green{background:var(--ua-green-tint);color:var(--ua-green)}
.ua-badge--solid{background:var(--ua-blue);color:#fff}
.ua-badge--dark{background:var(--ua-ink);color:#fff}
.ua-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--ua-red);color:#fff;font-size:12px;font-weight:600}

/* ---- profile ---------------------------------------------------------- */
.ua-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;background:var(--ua-blue-tint);color:var(--ua-blue);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.ua-avatar--l{width:72px;height:72px}.ua-avatar--s{width:36px;height:36px}
.ua-profile{display:flex;align-items:center;gap:16px}
.ua-profile__name{font-size:20px;line-height:28px;font-weight:900;letter-spacing:-.4px}
.ua-stats{display:grid;grid-template-columns:repeat(var(--ua-cols,3),minmax(0,1fr));background:var(--ua-fill);border-radius:var(--ua-radius-l);padding:16px 0}
.ua-stat{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ua-ink);text-decoration:none}
.ua-stat+.ua-stat{box-shadow:-1px 0 0 var(--ua-line-strong)}
.ua-stat__value{font-size:18px;line-height:26px;font-weight:600}
.ua-stat__label{font-size:13px;line-height:18px;color:var(--ua-muted)}
.ua-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.ua-quick__item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 0;font-size:13px;line-height:18px;font-weight:500;color:var(--ua-ink);text-decoration:none;text-align:center}

/* ---- feedback --------------------------------------------------------- */
.ua-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:64px 24px;gap:8px}
.ua-empty__icon{width:72px;height:72px;border-radius:50%;background:var(--ua-fill);color:var(--ua-faint);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.ua-empty__icon .ua-icon{width:34px;height:34px}
.ua-empty__title{font-size:17px;line-height:25px;font-weight:600;color:var(--ua-ink)}
.ua-empty__desc{font-size:15px;line-height:22px;color:var(--ua-muted)}
.ua-empty .ua-btn{margin-top:16px}
.ua-notice{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border-radius:var(--ua-radius);background:var(--ua-fill);font-size:14px;line-height:21px;color:var(--ua-ink-2)}
.ua-notice .ua-icon{width:20px;height:20px;margin-top:1px;color:var(--ua-muted)}
.ua-notice--blue{background:var(--ua-blue-tint);color:#1b4f99}.ua-notice--blue .ua-icon{color:var(--ua-blue)}
.ua-notice--red{background:var(--ua-red-tint);color:#b4232f}.ua-notice--red .ua-icon{color:var(--ua-red)}
.ua-notice--green{background:var(--ua-green-tint);color:#0a7146}.ua-notice--green .ua-icon{color:var(--ua-green)}
.ua-toast{position:fixed;left:50%;bottom:calc(var(--ua-nav) + 16px);transform:translate(-50%,12px);z-index:3000;max-width:calc(min(var(--ua-page),100vw) - 40px);padding:13px 18px;border-radius:14px;background:#333d4b;color:#fff;font-size:15px;line-height:22px;font-weight:500;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.ua-toast.is-show{opacity:1;transform:translate(-50%,0)}
.ua-skeleton{background:linear-gradient(90deg,#f2f4f6 0,#e9ecef 50%,#f2f4f6 100%);background-size:200% 100%;animation:ua-sk 1.2s infinite;border-radius:8px}
@keyframes ua-sk{to{background-position:-200% 0}}
.ua-divider{height:1px;background:var(--ua-line);border:0;margin:16px 0}
.ua-divider--thick{height:12px;background:var(--ua-bg);margin:0}

/* ---- bottom sheet (use <dialog class="ua-sheet">) ---------------------- */
dialog.ua-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(var(--ua-page),100%);max-width:none;max-height:85dvh;padding:8px var(--ua-gutter) calc(20px + env(safe-area-inset-bottom,0px));border:0;border-radius:20px 20px 0 0;background:#fff;color:var(--ua-ink);overflow:auto}
dialog.ua-sheet::backdrop{background:#0006}
dialog.ua-sheet[open]{animation:ua-up .22s ease-out}
.ua-sheet__grab{width:36px;height:4px;border-radius:2px;background:#e1e6ec;margin:4px auto 16px}
.ua-sheet__title{font-size:20px;line-height:28px;font-weight:900;margin-bottom:16px}
@keyframes ua-up{from{transform:translateY(40px);opacity:.4}}

/* ---- steps (onboarding / multi-step forms) ---------------------------- */
.ua-progress{height:4px;background:var(--ua-fill);border-radius:2px;overflow:hidden;margin:0 var(--ua-gutter)}
.ua-progress>span{display:block;height:100%;background:var(--ua-blue);border-radius:2px}
.ua-step-title{font-size:24px;line-height:34px;font-weight:900;letter-spacing:-.6px;padding:24px var(--ua-gutter) 8px}
.ua-step-desc{font-size:15px;line-height:23px;color:var(--ua-ink-2);padding:0 var(--ua-gutter) 24px}

/* small screens */
@media (max-width:359px){body.ua{--ua-gutter:16px}.ua-hero__title{font-size:22px!important;line-height:31px!important}.ua-item__thumb{width:76px;height:76px}}
/* PC: keep the 430px phone column centred on the grey canvas */
@media (min-width:600px){body.ua{background:#e9edf2!important}.ua-page{box-shadow:0 0 0 1px #e1e6ec}}

/* button-based toggle (legacy JS toggles .is-on and may set inline background) */
.ua-toggle{position:relative;width:52px;height:32px;border-radius:999px;border:0;background:#e5e8eb;flex-shrink:0;cursor:pointer;padding:0;transition:background .2s ease}
.ua-toggle::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s ease}
.ua-toggle.is-on{background:var(--ua-blue)}
.ua-toggle.is-on::after{transform:translateX(20px)}
.ua-field__help.ok{color:var(--ua-green)}
.ua-avatar-btn{position:relative;border:0;padding:0;background:none;cursor:pointer;flex-shrink:0}
.ua-avatar-btn .ua-avatar-badge{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px var(--ua-line-strong);display:flex;align-items:center;justify-content:center;color:var(--ua-ink-2)}
.ua-avatar-btn .ua-avatar-badge .ua-icon{width:15px;height:15px}
.ua-promo{display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:var(--ua-radius-l);background:var(--ua-blue-tint);color:var(--ua-ink);text-decoration:none}
.ua-promo__title{font-size:16px;line-height:24px;font-weight:600}
.ua-promo__desc{font-size:13px;line-height:19px;color:var(--ua-ink-2)}

/* ---- shared fixes (Bootstrap / legacy base collisions) ----------------- */
body.ua .ua-page a:not(.ua-link){text-decoration:none}
body.ua hr.ua-divider{opacity:1;border:0;color:transparent}
body.ua .app-flash{min-height:44px;border-radius:14px!important;padding:12px 16px;font-size:15px;font-weight:500;font-family:var(--ua-font)}
body.ua .app-flash--success,body.ua .app-flash--info{background:#333d4b!important;color:#fff!important}
body.ua .app-flash--danger{background:var(--ua-red)!important;color:#fff!important}
body.ua .app-flash--warning{background:#8a5a00!important;color:#fff!important}

/* 2026-11-04 (user request): touch devices (phone / tablet, either orientation) fill the device width — --ua-page drives the
   page column, ua-cta, ua-sheet, toasts and the fee modal; desktop (fine pointer) keeps the 430px column above. Landscape
   notch insets are added to the side gutter. */
@media (pointer:coarse){
  body.ua{--ua-page:100vw;--ua-gutter:calc(20px + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)))}
  .ua-page{box-shadow:none}
  .ua-cta{left:0;right:0;transform:none;width:auto}/* edge to edge, no half-pixel seam from the centring transform */
}
@media (pointer:coarse) and (max-width:359px){body.ua{--ua-gutter:calc(16px + max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)))}}
