/* Версия 003: шапка, профиль, нижняя шторка поиска. */
.brand .brand-wordmark { font-family:Arial,Helvetica,sans-serif; font-size:27px; line-height:1.1; font-style:normal; font-weight:700; letter-spacing:-.8px; color:#c71585; }
.brand .brand-domain { font:inherit; color:#152c43; letter-spacing:inherit; }
.brand small { letter-spacing:1.9px; }
.portal-avatar { display:grid; place-items:center; font-style:normal; letter-spacing:0; font-size:14px; }
.portal-avatar > [data-icon] { position:static; width:auto; height:auto; border:0; border-radius:0; background:none; }
.portal-avatar svg { width:21px; height:21px; stroke-width:1.8; }
.portal-avatar.is-signed-in { background:var(--accent); color:white; border-color:var(--accent); }
.bottom-nav > button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; font-size:13.8px; font-weight:500; color:#8c8593; position:relative; min-width:0; }
.bottom-nav > button.is-active { color:var(--accent); font-weight:700; }
.empty-state > .primary-button { width:fit-content; max-width:100%; margin-inline:auto; text-align:center; }
.empty-state { overflow-wrap:anywhere; }
.search-sheet { height:88dvh; max-height:88dvh; overflow:hidden; }
.search-sheet .sheet-header { flex-shrink:0; }
.search-sheet .sheet-header h2 { font-size:23px; }
.search-sheet-body { flex:1; position:relative; padding:0 22px calc(24px + env(safe-area-inset-bottom)); overflow-x:hidden; overflow-y:auto; min-height:0; overscroll-behavior-y:contain; }
.search-field { position:sticky; top:0; z-index:1; }
.search-field input { font-size:16px; }
.search-context { color:var(--accent); background:var(--accent-soft); font-size:13.8px; line-height:1.5; border-radius:8px; padding:9px 12px; margin-top:15px; }
.search-results-label { font-size:14.95px; font-weight:650; color:var(--muted); padding:22px 0 3px; }
.search-results .agenda-card { margin:0; gap:12px; }
.search-results .agenda-card img { width:64px; height:80px; }
.search-results .agenda-card-copy h3 { font-size:17px; }
.search-results .agenda-card-copy p { line-height:1.5; }
.search-results .empty-state { padding:30px 0; }
.search-results .empty-state p { font-size:16px; }
.search-results .empty-state h2 { font-size:22px; }
.search-results .agenda-card .save-button { flex-shrink:0; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.profile-panel { padding:4px 22px 28px; }
.profile-welcome { padding:27px 22px; background:linear-gradient(145deg,#fcf3f9,#f4f1fa); border:1px solid #f0e1ed; border-radius:20px; text-align:center; }
.profile-portrait { width:78px; height:78px; border-radius:50%; display:grid; place-items:center; margin:0 auto 20px; background:white; border:1px solid #ead5e4; color:var(--accent); font-size:27px; font-weight:700; }
.profile-portrait svg { width:34px; height:34px; stroke-width:1.5; }
.profile-welcome h2 { font-size:25px; line-height:1.2; letter-spacing:-.6px; }
.profile-welcome p { color:var(--muted); font-size:16px; line-height:1.6; margin-top:12px; }
.profile-welcome .primary-button { margin:22px auto 0; width:100%; }
.profile-account { display:flex; gap:14px; align-items:center; margin:10px 0 23px; }
.profile-account .profile-portrait { width:67px; height:67px; flex-shrink:0; margin:0; background:var(--accent-soft); }
.profile-account-info { min-width:0; }
.profile-account h2 { font-size:24px; line-height:1.2; letter-spacing:-.5px; overflow-wrap:anywhere; }
.profile-account p { color:var(--muted); font-size:13.8px; margin:5px 0 7px; overflow-wrap:anywhere; }
.demo-badge { display:inline-block; padding:5px 9px; color:var(--accent); background:var(--accent-soft); border-radius:6px; font-size:12.65px; font-weight:600; }
.profile-stats { display:grid; grid-template-columns:1fr 1fr; gap:11px; margin-bottom:28px; }
.profile-stat { border:1px solid var(--line); border-radius:13px; padding:16px 12px; text-align:center; }
.profile-stat strong { display:block; color:var(--purple); font-size:26px; line-height:1.1; margin-bottom:6px; }
.profile-stat span { color:var(--muted); font-size:13.8px; }
.profile-edit { display:grid; gap:18px; margin-bottom:25px; }
.profile-edit .primary-button { margin-top:2px; }
.profile-section-title { font-size:18px; margin:4px 0; letter-spacing:-.3px; }
.profile-menu { margin-top:20px; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.profile-menu > :is(a,button) { display:flex; align-items:center; gap:11px; width:100%; padding:15px; min-height:55px; text-align:left; font-size:14.95px; border-bottom:1px solid var(--line); }
.profile-menu > :last-child { border-bottom:0; }
.profile-menu svg { width:20px; height:20px; color:var(--purple); }
.profile-menu .logout-button { color:var(--muted); }
.profile-note { color:var(--muted); font-size:12.65px; line-height:1.6; margin-top:19px; text-align:center; }
.auth-sheet { overflow-y:auto; }
.auth-sheet .sheet-header { flex-shrink:0; }
.auth-sheet .sheet-header h2 { font-size:23px; }
.auth-body { text-align:center; }
.auth-emblem { display:grid; place-items:center; width:66px; height:66px; border-radius:20px; background:var(--accent-soft); color:var(--accent); margin:3px auto 17px; }
.auth-emblem svg { width:30px; height:30px; stroke-width:1.5; }
.auth-description { font-size:16px; line-height:1.6; color:var(--muted); margin:18px 0 25px; }
.auth-body .form-field { text-align:left; }
.auth-body .form-field input { padding-right:13px; background:white; }
.auth-body .primary-button { width:100%; margin-top:18px; }
.auth-note { color:var(--muted); font-size:12.65px; line-height:1.6; margin-top:16px; }
.auth-email-label { font-size:14.95px; color:var(--muted); margin:0 0 18px; overflow-wrap:anywhere; }
#auth-code { font-size:24px; letter-spacing:7px; text-align:center; min-height:58px; }
#auth-code::placeholder { letter-spacing:0; font-size:16px; }
.demo-code-hint { font-size:14.95px; line-height:1.5; padding:12px; margin-top:13px; border-radius:9px; background:var(--accent-soft); color:var(--accent); }
.demo-code-hint strong { letter-spacing:2px; }
.form-error { color:#a3283f; font-size:14.95px; line-height:1.5; margin-top:12px; }
.auth-body .text-button { margin-top:9px; }
@media(max-width:360px) {
  .brand .brand-wordmark { font-size:25px; }
  .brand small { font-size:10.35px; letter-spacing:1.45px; }
  .header-actions { gap:5px; }
  .profile-panel,.search-sheet-body { padding-left:18px; padding-right:18px; }
  .profile-welcome { padding-left:17px; padding-right:17px; }
  .search-sheet .sheet-header h2,.auth-sheet .sheet-header h2 { font-size:21px; }
  .profile-account { gap:10px; }
  .profile-account h2 { font-size:22px; }
}
@media(min-width:600px) { .search-sheet { height:min(88dvh,850px); } }
