/* Куда Себет — веб-приложение (iOS-стиль). Без анимаций, всё на своих местах. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --label: #1c1c1e;
  --label2: #6c6c70;
  --label3: #aeaeb2;
  --sep: #e5e5ea;
  --fill: #e9e9ee;
  --tint: #ff6801;
  --tint-d: #e84f2f;
  --tint-soft: #fff1e6;
  --sand-a: #f6ede2;
  --sand-b: #ecdcc9;
  --green: #34c759;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tab-h: 50px;
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
  --maxw: 520px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { font: 400 17px/1.35 var(--font); color: var(--label); background: #e4e4ea; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.app { position: relative; width: 100%; max-width: var(--maxw); min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); padding-top: var(--sa-t); padding-bottom: calc(var(--tab-h) + var(--sa-b) + 24px); }
.page { padding: 0 16px; }

/* Верхняя строка */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.loc { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: var(--card); font-size: 14px; font-weight: 600; }
.loc svg.i { width: 16px; height: 16px; color: var(--tint); }
.loc small { color: var(--label2); font-weight: 500; font-size: 12px; }
.round-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 20px; background: var(--card); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tint); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.large-title { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: 0.37px; padding: 4px 0 6px; }
.subtitle { color: var(--label2); font-size: 15px; margin-bottom: 16px; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: 0.35px; margin: 28px 0 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-head .section-title { margin: 0; }
.link { border: 0; background: none; color: var(--tint-d); font-size: 15px; font-weight: 500; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42%; align-items: center; gap: 4px; margin-top: 8px; padding: 22px 18px 22px 22px; border-radius: 24px; background: linear-gradient(145deg, var(--sand-a), var(--sand-b)); overflow: hidden; }
.hero__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8b6a4a; }
.hero h1 { font-size: 30px; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 16px; }
.hero img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: var(--tint); color: #fff; font-size: 16px; font-weight: 600; }
.btn:active { background: var(--tint-d); }
.btn--block { display: flex; width: 100%; height: 50px; border-radius: 14px; }
.btn--gray { background: var(--fill); color: var(--label); }
.btn--gray:active { background: #dcdce2; }
.btn:disabled { background: var(--fill); color: var(--label3); }

/* Баннер установки */
.install { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.install__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--tint); flex: 0 0 auto; }
.install__text { flex: 1; min-width: 0; }
.install__text strong { display: block; font-size: 15px; font-weight: 600; }
.install__text span { display: block; font-size: 13px; color: var(--label2); line-height: 1.3; }
.install .btn { height: 34px; padding: 0 16px; font-size: 14px; }
.install__x { border: 0; background: none; color: var(--label3); font-size: 22px; line-height: 1; padding: 4px; }

/* Плитки */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 0; border-radius: 18px; background: var(--card); text-align: left; min-height: 96px; }
.tile__emoji { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--tint-soft); font-size: 22px; }
.tile strong { font-size: 16px; font-weight: 600; }
.tile small { font-size: 13px; color: var(--label2); }

/* Поиск и сегменты */
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; background: #e3e3e8; color: var(--label2); }
.search svg.i { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--label); }
.search input::placeholder { color: var(--label2); }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 12px 0 14px; padding: 2px; border-radius: 9px; background: #e3e3e8; }
.segment button { height: 32px; border: 0; border-radius: 7px; background: none; font-size: 14px; font-weight: 500; }
.segment button.is-on { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* Каталог */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--card); overflow: hidden; text-align: left; border: 0; padding: 0; }
.pcard__img { aspect-ratio: 1; background: #f7f0e8; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.pcard__name { font-size: 15px; font-weight: 600; line-height: 1.2; min-height: 2.4em; }
.pcard__price { font-size: 15px; color: var(--label2); }
.pcard__add { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border: 0; border-radius: 17px; background: var(--tint); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.pcard__soon { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 12px; background: var(--fill); color: var(--label2); font-size: 12px; font-weight: 600; }
.pcard__add.is-done { background: var(--green); font-size: 16px; }
.empty { padding: 36px 16px; text-align: center; color: var(--label2); font-size: 15px; }

/* Баннер заботы */
.care { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 24px; padding: 16px; border: 0; border-radius: 18px; background: var(--card); text-align: left; }
.care__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint-soft); color: var(--tint-d); font-size: 22px; flex: 0 0 auto; }
.care strong { display: block; font-size: 16px; font-weight: 600; }
.care span.t { font-size: 13px; color: var(--label2); }
.chev { margin-left: auto; color: var(--label3); font-size: 22px; }

/* Конструктор */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size { padding: 12px 8px; border: 2px solid transparent; border-radius: 16px; background: var(--card); text-align: center; }
.size strong { display: block; font-size: 20px; font-weight: 700; }
.size small { font-size: 12px; color: var(--label2); }
.size.is-on { border-color: var(--tint); background: var(--tint-soft); }
.progress { margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--card); }
.progress__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.progress__top span:last-child { color: var(--label2); text-align: right; }
.track { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--tint); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--card); font-size: 14px; font-weight: 500; }
.chip.is-on { background: var(--label); color: #fff; }
.list { border-radius: 16px; background: var(--card); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; border-bottom: 1px solid var(--sep); }
.item:last-child { border-bottom: 0; }
.item__main { flex: 1; min-width: 0; }
.item__name { font-size: 16px; line-height: 1.25; }
.item__price { font-size: 14px; color: var(--label2); }
.stepper { display: grid; grid-template-columns: 34px 28px 34px; align-items: center; text-align: center; flex: 0 0 auto; }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 17px; background: var(--fill); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.stepper button[data-d="1"] { background: var(--tint); color: #fff; }
.stepper span { font-size: 16px; font-weight: 600; }
.dock { position: sticky; bottom: calc(var(--tab-h) + var(--sa-b) + 8px); display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--sep); }
.dock__sum { flex: 1; min-width: 0; font-size: 13px; color: var(--label2); line-height: 1.25; }
.dock__sum b { display: block; font-size: 18px; color: var(--label); }
.dock .btn { height: 46px; border-radius: 14px; padding: 0 18px; }

/* Корзина */
.cart-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--sep); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 60px; height: 60px; border-radius: 12px; object-fit: contain; background: #f7f0e8; flex: 0 0 auto; }
.cart-row__main { flex: 1; min-width: 0; }
.cart-row__name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.cart-row__det { font-size: 12px; color: var(--label2); line-height: 1.3; margin: 2px 0 6px; }
.cart-row__sum { font-size: 14px; color: var(--label2); margin-bottom: 6px; }
.cart-empty { padding: 56px 24px; text-align: center; }
.cart-empty .em { font-size: 52px; }
.cart-empty h2 { font-size: 22px; margin: 8px 0 4px; }
.cart-empty p { color: var(--label2); font-size: 15px; margin-bottom: 20px; }
.rows { margin-top: 16px; border-radius: 16px; background: var(--card); overflow: hidden; }
.rows .r { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--sep); }
.rows .r:last-child { border-bottom: 0; }
.rows .r.total { font-size: 19px; font-weight: 700; }
.field { padding: 12px 16px; }
.field label { display: block; font-size: 13px; color: var(--label2); margin-bottom: 4px; }
.field input { width: 100%; height: 36px; border: 0; background: none; outline: none; font-size: 17px; }
.field__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--sep); margin-top: 6px; }
.field__status { font-size: 12px; color: var(--label2); text-align: right; }
.field__status.is-error { color: var(--tint-d); }
.note { margin: 10px 4px 16px; font-size: 13px; color: var(--label2); line-height: 1.4; }

/* Профиль */
.profile-card { margin-top: 8px; padding: 22px; border-radius: 24px; background: linear-gradient(145deg, var(--sand-a), var(--sand-b)); }
.profile-card__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8b6a4a; }
.profile-card h2 { font-size: 26px; line-height: 1.12; letter-spacing: -0.02em; margin: 8px 0 6px; }
.profile-card p { font-size: 15px; color: #5f503f; margin-bottom: 16px; }
.group { margin-top: 20px; border-radius: 16px; background: var(--card); overflow: hidden; }
.group__title { margin: 24px 16px 6px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; color: var(--label2); }
.group__title + .group { margin-top: 0; }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--sep); background: none; text-align: left; }
.lrow:last-child { border-bottom: 0; }
.lrow:active { background: #f2f2f7; }
.lrow__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; flex: 0 0 auto; }
.lrow__icon svg.i { width: 18px; height: 18px; }
.lrow__text { flex: 1; min-width: 0; }
.lrow__text small { display: block; font-size: 12px; color: var(--label2); }
.lrow__text strong { display: block; font-size: 16px; font-weight: 500; }
.lrow .val { color: var(--label2); font-size: 15px; }
.bg-orange { background: #ff9500; } .bg-green { background: #34c759; } .bg-blue { background: #0a84ff; } .bg-pink { background: #ff2d55; } .bg-gray { background: #8e8e93; } .bg-brand { background: var(--tint); } .bg-purple { background: #af52de; }
.footnote { margin: 24px 16px 0; text-align: center; font-size: 12px; color: var(--label3); }

/* Таб-бар */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab-h) + var(--sa-b)); padding-bottom: var(--sa-b); background: rgba(249, 249, 249, 0.96); border-top: 1px solid rgba(60, 60, 67, 0.18); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: #8e8e93; font-size: 10px; font-weight: 500; }
.tab svg.i { width: 25px; height: 25px; }
.tab.is-on { color: var(--tint); }
.tab .badge { top: 3px; right: calc(50% - 22px); border: 2px solid #f9f9f9; box-sizing: content-box; min-width: 14px; height: 14px; font-size: 10px; }

/* Шторка */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: flex-end; }
.sheet { position: relative; width: 100%; max-width: var(--maxw); max-height: 88vh; max-height: 88dvh; overflow: auto; border-radius: 22px 22px 0 0; background: var(--bg); padding: 10px 16px calc(var(--sa-b) + 20px); }
.sheet__grab { width: 36px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #c7c7cc; }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 15px; background: var(--fill); color: var(--label2); font-size: 18px; line-height: 1; display: grid; place-items: center; }
.sheet h2 { font-size: 24px; line-height: 1.15; letter-spacing: 0.3px; padding-right: 36px; margin: 6px 0 4px; }
.sheet__price { font-size: 20px; font-weight: 700; color: var(--tint-d); margin-bottom: 12px; }
.sheet__img { aspect-ratio: 1.15; border-radius: 18px; background: #f7f0e8; overflow: hidden; margin: 8px 0 14px; }
.sheet__img img { width: 100%; height: 100%; object-fit: contain; }
.sheet p { font-size: 15px; color: var(--label2); line-height: 1.5; margin-bottom: 12px; }
.sheet p b { color: var(--label); }
.steps { display: grid; gap: 10px; margin: 14px 0 18px; list-style: none; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 15px; }
.steps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px; background: var(--tint); color: #fff; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.steps svg.i { width: 22px; height: 22px; color: #0a84ff; margin: 0 2px; vertical-align: -5px; }

@media (min-width: 560px) {
  .app { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .large-title { font-size: 30px; }
}


/* Shared Supabase account, favorites, and date reminders */
.pcard__favorite { top: 9px; right: 9px; width: 36px; height: 36px; }
.pcard__favorite.is-favorite { border-color: rgba(232,79,47,.2); background: #fff; color: var(--tint-d); }
.sheet-favorite {
  width: 100%; min-height: 42px; margin: 0 0 12px; padding: 0 14px;
  border: 1px solid var(--sep); border-radius: 13px; background: var(--card);
  color: var(--tint-d); font-size: 15px; font-weight: 600;
}
.sheet-favorite.is-favorite { background: var(--tint-soft); border-color: var(--tint-d); }
.cloud-profile-section { margin-top: 22px; }
.cloud-profile-section h2 { margin: 0 16px 7px; color: var(--label2); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cloud-panel { padding: 14px; border-radius: 16px; background: var(--card); }
.cloud-muted { color: var(--label2); font-size: 13px; line-height: 1.45; }
.cloud-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cloud-user strong, .cloud-user small { display: block; overflow-wrap: anywhere; }
.cloud-user strong { font-size: 16px; font-weight: 600; }
.cloud-user small { margin-top: 3px; color: var(--label2); font-size: 13px; }
.cloud-secondary { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--sep); border-radius: 12px; background: white; color: var(--label2); font-size: 13px; }
.cloud-google { margin-top: 12px; background: var(--tint-d); }
.cloud-error { margin-top: 10px; color: #c23b2c; font-size: 13px; line-height: 1.4; }
.cloud-favorite-list, .cloud-date-list { display: grid; gap: 8px; }
.cloud-favorite-row, .cloud-date-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--sep); border-radius: 13px; background: #fff; }
.cloud-date-list { gap: 12px; }
.cloud-date-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; }
.cloud-favorite-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.cloud-favorite-row img { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: var(--sand-a); }
.cloud-favorite-link > span, .cloud-date-copy { flex: 1; min-width: 0; }
.cloud-favorite-row strong, .cloud-favorite-row small, .cloud-date-copy strong, .cloud-date-copy small { display: block; overflow-wrap: anywhere; }
.cloud-favorite-row strong, .cloud-date-copy strong { font-size: 14px; line-height: 1.25; }
.cloud-favorite-row small, .cloud-date-copy small { margin-top: 4px; color: var(--label2); font-size: 12px; line-height: 1.35; }
.cloud-favorite-row button, .cloud-date-actions button {
  display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center;
  border: 0; border-radius: 50%; background: var(--tint-soft); color: var(--tint-d);
  font-size: 20px; line-height: 1;
}
.cloud-date-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--tint-soft); font-size: 21px; }
.cloud-date-actions { display: flex; align-items: center; gap: 6px; }
.cloud-date-actions button { width: 34px; height: 34px; border: 1px solid var(--sep); background: #f8f7f5; color: var(--label2); font-size: 17px; cursor: pointer; }
.cloud-date-actions [data-birthday-edit] { transform: scaleX(-1); }
.cloud-date-form { display: grid; gap: 10px; margin-bottom: 14px; }
.cloud-date-form label { display: grid; gap: 5px; min-width: 0; color: var(--label2); font-size: 12px; }
.cloud-date-form input, .cloud-date-form select {
  width: 100%; min-width: 0; height: 42px; padding: 0 11px;
  border: 1px solid var(--sep); border-radius: 11px; background: #fff;
  color: var(--label); font-size: 15px;
}
.cloud-date-form, .cloud-date-fields, .cloud-date-form label, .cloud-date-fields > label { width: 100%; min-width: 0; }
.cloud-date-form input[type="date"], .cloud-date-edit-form input[type="date"] { display: block; width: 100% !important; min-width: 0 !important; max-width: 100% !important; min-inline-size: 0; max-inline-size: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.cloud-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cloud-date-fields { width: 100%; min-width: 0; }
.cloud-date-fields > label { min-width: 0; }
.cloud-date-fields input, .cloud-date-fields select { max-width: 100%; }
.cloud-date-edit-form { grid-column: 1 / -1; display: grid; gap: 12px; min-width: 0; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--sep); }
.cloud-date-edit-form[hidden] { display: none; }
.cloud-date-edit-form label { display: grid; gap: 5px; min-width: 0; color: var(--label2); font-size: 12px; }
.cloud-date-edit-form input, .cloud-date-edit-form select { width: 100%; min-width: 0; max-width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--sep); border-radius: 11px; background: #fff; color: var(--label); font-size: 15px; }
.cloud-date-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cloud-date-edit-actions .btn { display: inline-flex; width: auto; min-width: 100px; height: 40px; padding: 0 12px; border-radius: 10px; }
.cloud-date-form .btn { height: 44px; }
.cloud-reminder-permission {
  min-height: 40px; border: 1px solid var(--sep); border-radius: 12px;
  background: #fff; color: var(--tint-d); font-size: 13px; font-weight: 600;
}
.cloud-date-form .cloud-muted { font-size: 12px; }

/* Профиль: боковая навигация на широком экране, компактные вкладки на телефоне */
.cloud-profile-nav { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 20px; padding: 2px 0 8px; scrollbar-width: none; }
.cloud-profile-nav::-webkit-scrollbar { display: none; }
.cloud-profile-nav a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--sep); border-radius: 999px; background: var(--card); color: var(--label); font-size: 13px; font-weight: 600; text-decoration: none; }
.cloud-profile-nav a:hover { border-color: var(--tint); color: var(--tint-d); }
.cloud-profile-content { min-width: 0; }
@media (min-width: 900px) {
  .app:has(#page-profile:not([hidden])) { max-width: 1120px; padding-right: 34px; padding-left: 34px; }
  #page-profile:has(#cloudProfileFeatures) #cloudProfileFeatures { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 30px; }
  #cloudProfileFeatures .cloud-profile-nav { position: sticky; top: 28px; display: grid; gap: 7px; overflow: visible; margin: 5px 0 0; padding: 0; }
  #cloudProfileFeatures .cloud-profile-nav a { border-color: transparent; border-radius: 12px; background: transparent; }
  #cloudProfileFeatures .cloud-profile-nav a:hover { border-color: var(--sep); background: var(--card); }
  #cloudProfileFeatures .cloud-profile-section { margin-top: 0; margin-bottom: 24px; scroll-margin-top: 22px; }
  #cloudProfileFeatures .cloud-profile-section h2 { margin-left: 2px; font-size: 14px; }
  #cloudProfileFeatures .cloud-profile-content { display: grid; gap: 4px; }
}
@media (max-width: 520px) { .cloud-date-fields { grid-template-columns: minmax(0, 1fr); } }
.cloud-toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(65px + var(--sa-b)); max-width: calc(100vw - 32px);
  padding: 10px 15px; border-radius: 999px; background: var(--label); color: #fff;
  font-size: 13px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s ease;
}
.cloud-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
