/* Onest (SIL Open Font License 1.1, fonts/OFL.txt), served from here, not from Google Fonts: no request to a third party, and a page
   never waits for a host that may be slow or blocked where the barber is. One variable file per character set covers weights 400 to 800;
   the browser fetches a file only when a page uses one of its characters. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-math.woff2') format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-symbols.woff2') format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --b: #723fd9;
  --b-hi: #5d2eb8;
  --b-soft: #f7f5fe;
  --b-100: #edeaff;
  --b-200: #dbd4ff;
  --b-ink: #452786;
  --ink: #15151b;
  --t2: #46464f;
  --t3: #696973;
  --line: #e6e5ec;
  --line2: #d0d0d5;
  --fill: #f4f3f8;
  --fill2: #ebebee;
  --ok: #00793d;
  --ok-soft: #defae6;
  --ok-s: #ddf7e6;
  --ok-ink: #00582c;
  --bad: #cc2827;
  --bad-soft: #ffece9;
  --bad-s: #ffece9;
  --bad-ink: #9e1618;
  --warn: #9a5b00;
  --warn-soft: #fff4d7;
  --warn-s: #fff2d6;
  --warn-ink: #784900;
  --b-50: #f7f5fe;
  --cut: #723fd9;
  --cut-s: #efe9ff;
  --beard: #c2410c;
  --beard-s: #ffeadb;
  --color: #be185d;
  --color-s: #ffe3ef;
  --blow: #0369a1;
  --blow-s: #dff1fd;
  --care: #047857;
  --care-s: #d9f7e8;
  --kid: #a16207;
  --kid-s: #fdf3c7;
  --mert: #723fd9;
  --elif: #0e7490;
  --can: #c2410c;
  --shadow: 0 1px 2px rgba(21,21,27,.05), 0 8px 24px rgba(21,21,27,.07);
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s14: 56px;
  --r-sm: 10px;
  --r-chip: 12px;
  --r-input: 14px;
  --r-row: 16px;
  --r-card: 20px;
  --r-sheet: 24px;
  --r-pill: 99px;
  --shadow-float: 0 8px 24px rgba(21,21,27,.25);
  --shadow-overlay: 0 -8px 40px rgba(21,21,27,.18);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--b); text-decoration: none; }
a:hover { color: var(--b-hi); }
input::placeholder, textarea::placeholder { color: var(--t3); }
:focus-visible { outline: 3px solid var(--b-200); outline-offset: 2px; }
[hidden] { display: none !important; }

.Display { margin: 0; font: 700 28px/34px var(--font); letter-spacing: -.02em; }
.Title { margin: 0; font: 700 22px/28px var(--font); letter-spacing: -.01em; }
.Headline { font: 600 17px/24px var(--font); }
.Body { font: 400 16px/24px var(--font); }
.Label { font: 600 14px/20px var(--font); }
.Caption { font: 400 13px/18px var(--font); }
.Numeric { font: 600 16px/20px var(--font); font-variant-numeric: tabular-nums; }
.Muted { color: var(--t2); }
.Quiet { color: var(--t3); }

.Btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: auto;
  height: 56px;
  padding: 0 var(--s6);
  border: 0;
  border-radius: var(--r-row);
  background: var(--b);
  color: #fff;
  font: 600 17px/1 var(--font);
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.Btn:hover { background: var(--b-hi); }
.Btn:active { transform: scale(.98); }
.Btn:disabled, .Btn[aria-disabled="true"] { background: var(--fill2); color: #9a9aa2; }
.Btn-secondary { background: var(--fill); color: var(--ink); }
.Btn-secondary:hover { background: var(--fill2); }
.Btn-outline { border: 1.5px solid var(--line2); background: #fff; color: var(--ink); }
.Btn-outline:hover { background: var(--fill); }
.Btn-soft { background: var(--b-100); color: var(--b-ink); }
.Btn-soft:hover { background: var(--b-200); }
.Btn-ghost { background: transparent; color: var(--b); }
.Btn-ghost:hover { background: var(--b-soft); }
.Btn-danger { background: var(--bad); color: #fff; }
.Btn-danger:hover { background: #a81f1e; }
.Btn-danger-soft { background: var(--bad-soft); color: var(--bad-ink); }
.Btn-danger-soft:hover { background: #ffdcd6; }
.Btn-md { height: 48px; padding: 0 var(--s5); border-radius: var(--r-input); font-size: 16px; }
.Btn-sm { height: 44px; padding: 0 14px; border-radius: var(--r-chip); font-size: 14px; }
.Btn-full { width: 100%; }
.Btn-icon { width: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
.Btn-loading::before { content: ''; width: 18px; height: 18px; flex: none; border: 2.5px solid currentColor; border-top-color: transparent; border-radius: 50%; opacity: .85; animation: BuyraSpin .7s linear infinite; }
.Icon { display: block; flex: none; width: 24px; height: 24px; }
.Icon-sm { width: 18px; height: 18px; }

.Field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.Field-label { font: 600 14px/20px var(--font); }
.Field-input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 var(--s4);
  border: 1.5px solid var(--line2);
  border-radius: var(--r-input);
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.3 var(--font);
  outline: none;
}
textarea.Field-input { height: auto; min-height: 88px; padding-top: 14px; padding-bottom: 14px; resize: vertical; }
select.Field-input { appearance: auto; }
.Field-input:focus { border-color: var(--b); box-shadow: 0 0 0 3px var(--b-200); }
.Field-input[readonly] { background: var(--fill); }
.Field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--bad-ink); font: 400 13px/18px var(--font); }
.Field-invalid .Field-input { border-color: var(--bad); }
.Field-hint { color: var(--t2); font: 400 13px/18px var(--font); }

.Chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-width: 0;
  height: 48px;
  padding: 0 var(--s3);
  border: 1.5px solid var(--line2);
  border-radius: var(--r-chip);
  background: #fff;
  color: var(--ink);
  font: 600 14px/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.Chip:hover { background: var(--b-soft); }
.Chip-selected, .Chip[aria-pressed="true"] { border-color: var(--b); background: var(--b); color: #fff; }
.Chip-selected:hover, .Chip[aria-pressed="true"]:hover { background: var(--b-hi); }
.Chip:disabled { color: #c1c1c7; background: var(--fill); }
.Chip-filter { height: 38px; border-radius: var(--r-pill); }
.Chip-filter .Chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--b); }
.Chip-group { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }

.Badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--s3); border-radius: var(--r-pill); background: var(--fill2); color: var(--t2); font: 600 14px/1 var(--font); white-space: nowrap; }
.Badge::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.Badge-sm { height: 24px; padding: 0 9px; font-size: 12px; }
.Badge-ok { background: var(--ok-soft); color: var(--ok-ink); }
.Badge-ok::before { background: var(--ok); }
.Badge-cancel { background: var(--bad-soft); color: var(--bad-ink); }
.Badge-cancel::before { background: var(--bad); }
.Badge-new { background: var(--b-100); color: var(--b-ink); }
.Badge-new::before { display: none; }
.Badge-past::before { background: var(--t2); }

.Logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; color: var(--ink); line-height: 1; }
.Logo-word { font: 700 28px/1 var(--font); letter-spacing: .16em; margin-right: -.16em; }
.Logo-bar { width: 42px; height: 4px; border-radius: var(--r-pill); background: var(--b); }
.Logo-sm .Logo-word { font-size: 20px; }
.Logo-sm .Logo-bar { width: 30px; height: 3px; }
.Logo-lg .Logo-word { font-size: 34px; }
.Logo-lg .Logo-bar { width: 51px; height: 5px; }

.ChoiceRow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--r-row); background: #fff; color: var(--ink); text-align: left; }
.ChoiceRow:hover { border-color: var(--b-200); background: var(--b-soft); }
.ChoiceRow[aria-pressed="true"] { border-color: var(--b); background: var(--b-soft); }
.ChoiceRow-main { flex: 1; min-width: 0; }
.ChoiceRow-title { font: 600 17px/1.3 var(--font); }
.ChoiceRow-meta { margin-top: 2px; color: var(--t2); font: 400 14px/1.3 var(--font); }
.ChoiceRow-end { font: 600 17px/1 var(--font); font-variant-numeric: tabular-nums; }
.ChoiceRow-avatar { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--b-100); color: var(--b-ink); font: 700 16px/1 var(--font); }
.Card { border: 1.5px solid var(--line); border-radius: var(--r-card); background: #fff; }
.Card-flat { border: 0; background: var(--fill); }
.Card-pad { padding: var(--s5); }
.Card-head { display: flex; align-items: center; gap: var(--s3); padding: 16px 18px; background: var(--fill); border-radius: var(--r-card) var(--r-card) 0 0; }
.Card-foot { display: flex; justify-content: space-between; padding: 16px 18px; background: var(--fill); border-radius: 0 0 var(--r-card) var(--r-card); font: 700 18px/1 var(--font); }
.Divider { border: 0; border-top: 1px solid var(--line); }

.Segmented { display: inline-flex; padding: 3px; border-radius: var(--r-chip); background: var(--fill); }
.Segmented-item { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 14px/34px var(--font); }
.Segmented-item[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(21,21,27,.14); }
.Notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-input); background: var(--fill); color: var(--t2); font: 500 15px/1.4 var(--font); }
.Notice-error { background: var(--bad-soft); color: var(--bad-ink); }
.Notice-success { background: var(--ok-soft); color: var(--ok-ink); }
.Empty { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: 28px 16px; border: 1.5px dashed var(--line2); border-radius: var(--r-card); color: var(--t2); text-align: center; }
.Empty-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--fill); }
.Skeleton { position: relative; overflow: hidden; border-radius: var(--r-row); background: var(--fill); }
.Skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: BuyraPulse 1.2s ease-in-out infinite; }
.Skeleton-row { height: 72px; margin-bottom: 10px; }
.Toast { position: fixed; top: 20px; left: 50%; z-index: 30; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--r-input); background: var(--ink); color: #fff; box-shadow: var(--shadow-float); font: 600 15px/1.2 var(--font); white-space: nowrap; }
.Overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(21,21,27,.4); }
.Sheet { width: 100%; max-height: 92%; overflow-y: auto; padding: 12px 20px 24px; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: #fff; box-shadow: var(--shadow-overlay); }
.Sheet-handle { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 2px; background: var(--line2); }
.Sheet-title { margin: 0 0 12px; font: 700 20px/1.25 var(--font); }
.Sheet-actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s4); }

.Cal { width: 100%; color: var(--ink); }
.Cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.Cal-title { font: 700 19px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.Cal-nav { display: flex; gap: var(--s2); }
.Cal-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); row-gap: 4px; }
.Cal-weekday { text-align: center; font: 500 13px/32px var(--font); color: var(--t3); }
.Cal-day { height: 44px; padding: 0; border: 1.5px solid transparent; border-radius: var(--r-input); background: transparent; color: var(--ink); font: 600 16px/1 var(--font); font-variant-numeric: tabular-nums; }
.Cal-day:hover { background: var(--b-soft); }
.Cal-day[aria-pressed="true"] { border-color: var(--b); background: var(--b); color: #fff; }
.Cal-day-today { border-color: var(--b); }
.Cal-day:disabled { color: #c1c1c7; }
.Cal-day-empty { visibility: hidden; }

.AppBar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--s3); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.AppBar-title { color: var(--t2); font: 600 15px/1 var(--font); }
.AppBar-side { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
.Progress { height: 3px; margin: 0 20px 16px; border-radius: 2px; background: var(--fill2); }
.Progress-value { height: 3px; border-radius: 2px; background: var(--b); }
.Stack { display: flex; flex-direction: column; gap: var(--s3); }
.Stack-lg { gap: var(--s6); }
.Row { display: flex; align-items: center; gap: var(--s3); }
.Row-wrap { flex-wrap: wrap; }
.Space-between { justify-content: space-between; }
.Center { text-align: center; }
.Full { width: 100%; }
.Hidden { display: none !important; }

@keyframes BuyraSpin { to { transform: rotate(360deg); } }
@keyframes BuyraPulse { 50% { opacity: .45; transform: translateX(40%); } }
@media (min-width: 760px) {
  .Display { font-size: 32px; line-height: 40px; }
  .Overlay { align-items: center; padding: 24px; }
  .Sheet { width: 440px; padding: 28px; border-radius: var(--r-sheet); }
  .Sheet-drawer { align-self: stretch; width: 440px; max-height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
