:root {
  --teal:      #1F9070;
  --teal-2:    #2DAF88;
  --teal-bg:   #EBF8F3;
  --amber:     #D97706;
  --amber-2:   #F59E0B;
  --amber-bg:  #FFFBEB;
  --red:       #C0392B;
  --red-2:     #DC2626;
  --red-bg:    #FEF2F2;
  --blue:      #2563EB;
  --blue-bg:   #EFF6FF;
  --purple:    #5B21B6;
  --purple-bg: #F5F3FF;
  --orange:    #EA580C;
  --orange-bg: #FFF7ED;
  --ink:       #0F172A;
  --ink-2:     #334155;
  --ink-3:     #64748B;
  --ink-4:     #94A3B8;
  --line:      #E2E8F0;
  --line-2:    #F1F5F9;
  --surface:   #FFFFFF;
  --bg:        #F8FAFC;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --sh-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --f: 'Inter', -apple-system, sans-serif;
  
  
  --cat-сенс:        #6D4FCF;
  --cat-сенс-bg:     #F3EEFF;
  --cat-сенс-border: #D0BCFD;
  
  --cat-среда:        #C2762A;
  --cat-среда-bg:     #FFF4E5;
  --cat-среда-border: #F8CDAA;
  
  --cat-переход:        #2B8CC4;
  --cat-переход-bg:     #EAF5FF;
  --cat-переход-border: #A8D8F5;
  
  --cat-сост:        #64748B;
  --cat-сост-bg:     #F1F5F9;
  --cat-сост-border: #CBD5E1;
  
  --cat-none:        #94A3B8;
  --cat-none-bg:     #F8FAFC;
  --cat-none-border: #E2E8F0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


body {
  margin: 0;
  background: #ffffff;
  font-family: var(--f);
  overflow-x: hidden;
}

.outer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #ffffff;
  flex-direction: column;
  gap: 14px;
}


.demo-nav {
  display: flex; gap: 3px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-radius: 14px; padding: 5px; box-shadow: var(--sh-md);
  flex-wrap: wrap; justify-content: center;
}
.demo-nav button {
  padding: 7px 14px; border: none; background: transparent;
  border-radius: 10px; font-family: var(--f); font-size: 12.5px;
  font-weight: 600; color: var(--ink-3); cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.demo-nav button.on { background: var(--teal); color: #fff; box-shadow: 0 2px 8px rgba(31,144,112,.3); }
.demo-nav button:hover:not(.on) { background: var(--teal-bg); color: var(--teal); }


.phone {
  width: 375px;
  height: 812px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
}
.notch { display: none; }


.splash {
  position: absolute; inset: 0; z-index: 300;
  background: linear-gradient(160deg, #0D6450 0%, #1F9070 55%, #2DAF88 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  transition: opacity .6s ease, visibility .6s ease;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-icon {
  width: 76px; height: 76px; border-radius: 24px;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
}
.splash-icon svg { width: 40px; height: 40px; }
.splash-name { font-size: 34px; font-weight: 700; color: #fff; letter-spacing: -.03em; }
.splash-sub  { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.7); }
.splash-dot  { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:.4; transform:scale(.8); } 50% { opacity:1; transform:scale(1.2); } }

.edit-child-btn {
  margin-top: 14px; padding: 9px 20px;
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 20px; font-family: var(--f); font-size: 12.5px;
  font-weight: 600; color: var(--ink-3); cursor: pointer;
  transition: all .15s;
}
.edit-child-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-bg); }


.onboard {
  position: absolute; inset: 0; z-index: 250;
  background: #fff; display: none; flex-direction: column;
  overflow-y: auto;
}
.onboard.active { display: flex; }
.onboard-header {
  padding: 28px 24px 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.onboard-icon {
  width: 60px; height: 60px; border-radius: 20px;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(31,144,112,.28);
}
.onboard-icon svg { width: 32px; height: 32px; }
.onboard-title { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; text-align: center; margin-top: 4px; }
.onboard-sub   { font-size: 13.5px; font-weight: 500; color: var(--ink-3); text-align: center; line-height: 1.5; }
.onboard-body  { padding: 24px 22px 32px; display: flex; flex-direction: column; gap: 16px; }
.ob-field      { display: flex; flex-direction: column; gap: 6px; }
.ob-label      { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.ob-input {
  padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-family: var(--f); font-size: 15px;
  color: var(--ink); background: var(--surface); outline: none;
  transition: border-color .15s;
}
.ob-input:focus { border-color: var(--teal-2); }
.ob-row { display: flex; gap: 10px; }
.ob-row .ob-field { flex: 1; }
.ob-gender-row { display: flex; gap: 8px; }
.ob-gender-btn {
  flex: 1; padding: 11px 8px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
  font-family: var(--f); font-size: 13px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; text-align: center;
  transition: all .15s;
}
.ob-gender-btn.on { border-color: var(--teal); background: var(--teal-bg); color: var(--teal); }
.ob-diag-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-diag-chip {
  padding: 7px 13px; border: 1.5px solid var(--line);
  border-radius: 20px; font-family: var(--f); font-size: 12.5px;
  font-weight: 600; color: var(--ink-3); cursor: pointer; transition: all .15s;
  background: var(--surface);
}
.ob-diag-chip.on { border-color: var(--teal); background: var(--teal-bg); color: var(--teal); }
.ob-note { font-size: 11.5px; color: var(--ink-4); font-weight: 500; line-height: 1.5; }
.ob-btn {
  width: 100%; padding: 15px; background: var(--teal);
  border: none; border-radius: var(--r-lg); font-family: var(--f);
  font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(31,144,112,.3); transition: background .15s;
  margin-top: 4px;
}
.ob-btn:hover { background: var(--teal-2); }


.screen { display: none; flex-direction: column; flex: 1; overflow: hidden; padding-top: 0; }
.screen.active { display: flex; }


.sbar {
  height: 18px; padding: 0 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.sbar-time { font-size: 12px; font-weight: 700; color: var(--ink); }
.sbar-icons { display: flex; gap: 5px; align-items: center; }
.sbar-icons svg { width: 14px; height: 14px; }


.nav {
  display: flex; justify-content: space-around;
  padding: 8px 0 16px; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px); flex-shrink: 0;
}
.ni {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; padding: 3px 11px;
  border-radius: 10px; transition: background .15s;
  -webkit-tap-highlight-color: transparent; min-width: 0;
}
.ni:active { background: var(--teal-bg); }
.ni svg { width: 20px; height: 20px; stroke: var(--ink-4); transition: stroke .15s; flex-shrink: 0; }
.ni-label { font-size: 9.5px; font-weight: 600; color: var(--ink-4); transition: color .15s; white-space: nowrap; }
.ni.on svg { stroke: var(--teal); }
.ni.on .ni-label { color: var(--teal); }
.ni-pip { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); display: none; }
.ni.on .ni-pip { display: block; }


.scroll-y { flex: 1; overflow-y: auto; }
.scroll-y::-webkit-scrollbar { display: none; }
.sec-label {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .06em; text-transform: uppercase; margin: 20px 0 9px;
}
.screen-hdr {
  padding: 13px 18px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.screen-hdr h2 { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.screen-hdr p  { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 3px; }


.crisis-overlay {
  position: absolute; inset: 0; z-index: 200; background: #FFF9F9;
  display: none; flex-direction: column; padding-top: 32px;
}
.crisis-overlay.open { display: flex; }
.crisis-hdr {
  background: var(--red-2); padding: 13px 18px 15px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.crisis-hdr-title { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.crisis-hdr-title svg { width: 18px; height: 18px; stroke: #fff; }
.crisis-close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff; transition: background .15s;
}
.crisis-close-btn:hover { background: rgba(255,255,255,.3); }
.crisis-body { flex: 1; overflow-y: auto; padding: 16px 16px 24px; }
.crisis-body::-webkit-scrollbar { display: none; }
.crisis-subtitle { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.crisis-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 13px 14px; margin-bottom: 9px; box-shadow: var(--sh-sm);
}
.crisis-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red-2); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.crisis-step-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.crisis-step-desc  { font-size: 12.5px; font-weight: 500; color: var(--ink-2); line-height: 1.55; }
.crisis-note {
  background: var(--amber-bg); border: 1px solid #FCD34D;
  border-radius: var(--r-md); padding: 11px 13px; margin-top: 4px;
  font-size: 12.5px; font-weight: 500; color: #78350F; line-height: 1.55;
}
.crisis-log-btn {
  width: 100%; margin-top: 12px; padding: 13px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); font-family: var(--f); font-size: 13.5px;
  font-weight: 600; color: var(--teal); cursor: pointer; text-align: center; transition: background .15s;
}
.crisis-log-btn:hover { background: var(--teal-bg); }
.crisis-gotit-btn {
  width: 100%; margin-top: 8px; padding: 13px; background: var(--red-2); border: none;
  border-radius: var(--r-lg); font-family: var(--f); font-size: 13.5px;
  font-weight: 700; color: #fff; cursor: pointer; text-align: center; transition: background .15s;
}
.crisis-gotit-btn:hover { background: #B91C1C; }


.home-body {
  flex: 1; overflow-y: auto; padding: 0; display: flex; flex-direction: column; background: var(--bg);
}
.home-body::-webkit-scrollbar { display: none; }


.home-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 10px; background: var(--surface); flex-shrink: 0;
}
.home-topbar-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.home-topbar-right {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; min-width: 0; flex: 1; justify-content: flex-end;
}
.home-topbar-logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  display: flex; align-items: center; justify-content: center;
}
.home-topbar-logo-icon svg { width: 19px; height: 19px; }
.home-topbar-name { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.home-topbar-notif {
  width: 34px; height: 34px; border-radius: 10px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid var(--line);
}
.home-topbar-notif svg { width: 17px; height: 17px; stroke: var(--ink-3); }

.home-topbar-child {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 5px 8px 5px 6px;
  cursor: pointer; transition: background .15s;
  min-width: 0; max-width: 250px; flex: 1;
}
.home-topbar-child:hover { background: var(--line-2); }
.home-topbar-child-copy { min-width: 0; flex: 1; }
.home-child-ava-sm { font-size: 18px; line-height: 1; flex-shrink: 0; }
.home-child-name-sm { font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-child-sub-sm  {
  font-size: 10px; font-weight: 500; color: var(--ink-4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.2; max-width: 150px;
}
.home-child-change-sm {
  font-size: 10px; font-weight: 700; color: var(--teal);
  margin-left: 2px; white-space: nowrap; flex-shrink: 0;
}


.home-child-card {
  margin: 14px 18px 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-sm);
}
.home-child-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #FFCF6E, #F59E0B);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.home-child-info { flex: 1; }
.home-child-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.home-child-sub  { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.home-child-change { font-size: 11.5px; font-weight: 600; color: var(--teal); cursor: pointer; flex-shrink: 0; }


.home-heading-wrap {
  padding: 24px 20px 6px;
}
.home-heading {
  font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.025em; line-height: 1.25;
}
.home-heading-sub {
  font-size: 13.5px; font-weight: 500; color: var(--ink-3); margin-top: 5px; line-height: 1.5;
}


.home-primary-wrap {
  padding: 18px 18px 0;
  display: flex; flex-direction: column; gap: 12px;
}


.home-crisis-btn {
  background: linear-gradient(145deg, #DC2626 0%, #B91C1C 100%);
  border-radius: 20px; padding: 22px 20px;
  cursor: pointer; box-shadow: 0 6px 24px rgba(220,38,38,.35), 0 2px 8px rgba(220,38,38,.2);
  display: flex; align-items: center; gap: 16px;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s;
  -webkit-tap-highlight-color: transparent; border: none; width: 100%; text-align: left;
  position: relative; overflow: hidden;
}
.home-crisis-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  border-radius: 20px;
}
.home-crisis-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(220,38,38,.4), 0 4px 12px rgba(220,38,38,.25); }
.home-crisis-btn:active { transform: scale(.97); }
.home-crisis-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.home-crisis-icon svg { width: 28px; height: 28px; stroke: #fff; }
.home-crisis-text { flex: 1; position: relative; }
.home-crisis-label {
  font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.7);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px;
}
.home-crisis-title { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.home-crisis-sub   { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.75); margin-top: 4px; line-height: 1.4; }
.home-crisis-arrow {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
}
.home-crisis-arrow svg { width: 18px; height: 18px; stroke: #fff; }


.home-chat-btn {
  background: linear-gradient(145deg, #1F9070 0%, #166d55 100%);
  border: none;
  border-radius: 18px; padding: 18px 18px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(31,144,112,.3);
  display: flex; align-items: center; gap: 14px;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; width: 100%; text-align: left;
}
.home-chat-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(31,144,112,.4); }
.home-chat-btn:active { transform: scale(.98); }
.home-chat-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.home-chat-icon svg { width: 24px; height: 24px; stroke: #fff; }
.home-chat-text { flex: 1; }
.home-chat-title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.home-chat-sub   { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.8); margin-top: 3px; }
.home-chat-arrow { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home-chat-arrow svg { width: 16px; height: 16px; stroke: #fff; }


.home-last-ep {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: var(--sh-sm);
}
.home-last-ep-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.home-last-ep-title {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .06em; text-transform: uppercase;
}
.home-last-ep-badge { font-size: 14px; }
.home-last-ep-text {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4;
  margin-bottom: 12px;
}
.home-last-ep-btn {
  width: 100%; padding: 10px; border: none;
  background: var(--teal-bg); border-radius: var(--r-md);
  font-family: var(--f); font-size: 13px; font-weight: 700;
  color: var(--teal); cursor: pointer; transition: background .15s;
  text-align: center;
}
.home-last-ep-btn:hover { background: #B6E0D3; }
.home-last-ep-btn:active { transform: scale(.98); }


.home-divider {
  margin: 26px 20px 0;
  display: flex; align-items: center; gap: 12px;
}
.home-divider-line { flex: 1; height: 1px; background: var(--line); }
.home-divider-label { font-size: 11px; font-weight: 700; color: var(--ink-4); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }


.home-secondary-wrap {
  padding: 14px 18px 30px;
  display: flex; flex-direction: column; gap: 8px;
}
.home-sec-btn {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 13px 15px;
  cursor: pointer; transition: background .14s, box-shadow .14s;
  -webkit-tap-highlight-color: transparent;
}
.home-sec-btn:hover { background: var(--line-2); box-shadow: var(--sh-sm); }
.home-sec-btn:active { transform: scale(.99); }
.home-sec-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.home-sec-icon svg { width: 17px; height: 17px; }
.home-sec-title { font-size: 14px; font-weight: 650; color: var(--ink); flex: 1; }
.home-sec-sub   { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.home-sec-arrow svg { width: 15px; height: 15px; stroke: var(--ink-4); flex-shrink: 0; }


.home-observe-card {
  margin: 12px 18px 0;
  background: #F8F5FF;
  border: 1.5px solid #E9DDFE;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--sh-sm);
  display: none;
}
.home-observe-card.visible { display: block; }
.home-observe-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.home-observe-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: #7C3AED; display: flex; align-items: center; justify-content: center;
}
.home-observe-icon svg { width: 14px; height: 14px; stroke: #fff; }
.home-observe-title {
  font-size: 11px; font-weight: 700; color: var(--purple);
  letter-spacing: .06em; text-transform: uppercase;
}
.home-observe-text {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.45;
  margin-bottom: 11px;
}
.home-observe-text.muted {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
}
.home-observe-btn {
  width: 100%; padding: 9px; border: none;
  background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.18); border-radius: var(--r-md);
  font-family: var(--f); font-size: 13px; font-weight: 700;
  color: #6D28D9; cursor: pointer; transition: background .15s, border-color .15s;
  text-align: center;
}
.home-observe-btn:hover { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.28); }
.home-observe-btn:active { transform: scale(.98); }


.chat-sticky { flex-shrink: 0; background: var(--surface); }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px 8px; border-bottom: 1px solid var(--line); gap: 8px;
}
.chat-header-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.assistant-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(31,144,112,.28); position: relative;
}
.assistant-avatar::after {
  content: ''; position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px; border-radius: 50%; background: #22C55E; border: 2px solid #fff;
}
.assistant-avatar svg { width: 18px; height: 18px; }
.assistant-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.assistant-sub   { font-size: 11px; font-weight: 500; color: var(--teal); margin-top: 1px; }
.ctx-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--teal-bg); border: 1.5px solid #B6E0D3;
  border-radius: 12px; padding: 5px 10px 5px 8px;
  min-width: 0; max-width: 230px; cursor: pointer; transition: background .15s;
}
.ctx-pill:hover { background: #E2F5EE; }
.ctx-pill-copy { min-width: 0; }
.ctx-emoji { font-size: 16px; line-height: 1; flex-shrink: 0; }
.ctx-name  { font-size: 12px; font-weight: 700; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-tag   {
  font-size: 10px; font-weight: 600; color: var(--teal); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.msgs-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.msgs-scroll::-webkit-scrollbar { display: none; }


.msgs {
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-grow: 1;
  justify-content: flex-start;
}
.msg-time-label {
  align-self: center; font-size: 10px; font-weight: 600; color: var(--ink-4);
  background: var(--line-2); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 20px; margin: 0 0 8px;
}


.msg-row {
  display: flex; flex-direction: row; align-items: flex-end;
  gap: 7px; margin-bottom: 3px;
  align-self: flex-start; max-width: 80%;
  margin-right: auto; margin-left: 0;
}

.msg-row.user {
  flex-direction: row-reverse; align-self: flex-end;
  max-width: 80%; margin-left: auto; margin-right: 0;
}
.msg-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.msg-av svg { width: 11px; height: 11px; }
.bubble {
  padding: 8px 12px; font-size: 13px; line-height: 1.5; font-weight: 500;
  animation: bpop .2s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes bpop {
  from { opacity: 0; transform: scale(.9) translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.bubble.assistant {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; box-shadow: var(--sh-sm);
}
.bubble.user {
  background: var(--teal); color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 6px rgba(31,144,112,.24);
}
.clear-chat-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; flex-shrink: 0; opacity: .72;
}
.clear-chat-btn svg { width: 14px; height: 14px; stroke: var(--ink-4); }
.clear-chat-btn:hover { background: var(--red-bg); border-color: #FECACA; }
.clear-chat-btn:hover svg { stroke: var(--red-2); }

.copy-btn {
  display: flex; align-items: center; gap: 4px;
  background: transparent; border: none; padding: 4px 8px;
  font-family: var(--f); font-size: 11px; font-weight: 600;
  color: var(--ink-4); cursor: pointer; transition: color .15s;
}
.copy-btn svg { width: 11px; height: 11px; stroke: var(--ink-4); transition: stroke .15s; }
.copy-btn:hover { color: var(--teal); }
.copy-btn:hover svg { stroke: var(--teal); }
.copy-btn.copied { color: var(--teal); }
.copy-btn.copied svg { stroke: var(--teal); }

.msg-meta-dur { font-size: 10px; font-weight: 500; color: var(--ink-4); margin-left: 2px; }
.msg-meta.right { justify-content: flex-end; padding: 0 2px; }
.msg-meta-time  { font-size: 10px; font-weight: 600; color: var(--ink-4); }
.msg-meta-check { font-size: 11px; color: var(--teal-2); }


.detect-card {
  align-self: flex-start;
  margin: 2px 0 6px 31px;
  background: var(--purple-bg); border: 1.5px solid #DDD6FE;
  border-radius: var(--r-md); padding: 6px 11px;
  display: flex; align-items: center; gap: 8px;
  animation: bpop .22s .04s both;
}
.detect-icon {
  width: 22px; height: 22px; border-radius: 6px; background: #EDE9FE; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.detect-icon svg { width: 11px; height: 11px; stroke: var(--purple); }
.detect-label { font-size: 9.5px; font-weight: 700; color: var(--purple); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1px; }
.detect-value { font-size: 11.5px; font-weight: 700; color: #3B0764; }


.response-card {
  align-self: flex-start;
  margin: 2px 0 6px 31px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); animation: bpop .22s .08s both;
  max-width: calc(100% - 43px);
}
.rc-section { padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.rc-section:last-child { border-bottom: none; }
.rc-section-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rc-section-icon {
  width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rc-section-icon svg { width: 9px; height: 9px; }
.rc-section-title { font-size: 9.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.rc-steps  { display: flex; flex-direction: column; gap: 5px; }
.rc-bullets{ display: flex; flex-direction: column; gap: 4px; }
.rc-bullet { font-size: 12px; color: var(--ink-2); line-height: 1.45; font-weight: 500; }
.rc-step   { display: flex; align-items: flex-start; gap: 7px; }
.rc-step-num {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.rc-step-text { font-size: 12px; color: var(--ink-2); line-height: 1.45; font-weight: 500; }
.rc-step-text strong { color: var(--ink); font-weight: 700; }

.icon-teal   { background: var(--teal-bg); }
.icon-teal   svg { stroke: var(--teal); }
.icon-blue   { background: var(--blue-bg); }
.icon-blue   svg { stroke: var(--blue); }
.icon-purple { background: var(--purple-bg); }
.icon-purple svg { stroke: var(--purple); }


.intro-banner {
  margin: 10px 12px 4px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 9px 12px;
  display: flex; gap: 10px; align-items: center;
}
.intro-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(31,144,112,.22); position: relative;
}
.intro-avatar::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%; background: #22C55E; border: 2px solid var(--bg);
}
.intro-avatar svg { width: 17px; height: 17px; }
.intro-body { flex: 1; }
.intro-name { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.intro-desc { font-size: 11px; font-weight: 500; color: var(--ink-3); line-height: 1.4; }


.crisis-calm-note {
  background: #FFF7ED; border: 1.5px solid #FCD34D;
  border-radius: var(--r-md); padding: 11px 14px; margin-bottom: 16px;
  font-size: 13px; font-weight: 500; color: #78350F; line-height: 1.6;
}
.crisis-hdr-sub { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.8); margin-top: 3px; }


.action-row {
  align-self: flex-start;
  display: flex; align-items: center; gap: 6px;
  margin: 4px 0 4px 31px;
}
.feedback-btn {
  display: flex; align-items: center; gap: 3px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 4px 10px;
  font-family: var(--f); font-size: 11px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; transition: all .15s; box-shadow: var(--sh-sm);
}
.feedback-btn.helped:hover, .feedback-btn.active-helped { background: var(--teal-bg); border-color: #A7E9D2; color: var(--teal); }
.feedback-btn.nope:hover,   .feedback-btn.active-nope   { background: var(--red-bg);  border-color: #FECACA; color: var(--red); }
.save-btn {
  display: flex; align-items: center; gap: 4px;
  background: transparent; border: none; padding: 4px 8px;
  font-family: var(--f); font-size: 11px; font-weight: 600;
  color: var(--ink-4); cursor: pointer; transition: color .15s;
}
.save-btn svg { width: 11px; height: 11px; stroke: var(--ink-4); transition: all .15s; }
.save-btn:hover { color: var(--amber); }
.save-btn:hover svg { stroke: var(--amber-2); }
.save-btn.saved { color: var(--amber); }
.save-btn.saved svg { stroke: var(--amber-2); fill: var(--amber-2); }


.stream-cursor {
  display: inline-block;
  animation: blink .7s step-end infinite;
  color: var(--teal);
  font-weight: 400;
  margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.stream-label { color: var(--ink-3); font-style: italic; }
.typing-row { display: flex; gap: 7px; align-items: flex-end; margin-bottom: 6px; align-self: flex-start; }
.typing-bub {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; padding: 9px 13px;
  display: flex; gap: 4px; align-items: center; box-shadow: var(--sh-sm);
}
.tdot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); animation: td 1.4s ease-in-out infinite; }
.tdot:nth-child(2) { animation-delay: .16s; }
.tdot:nth-child(3) { animation-delay: .32s; }
@keyframes td {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%          { transform: translateY(-4px); opacity: 1; }
}


.chat-examples {
  margin: 10px 12px 4px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.chat-examples-title {
  font-size: 10.5px; font-weight: 700; color: var(--ink-4);
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px;
}
.chat-examples-text {
  font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.45;
}


.chips-bar {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  padding: 4px 0 6px; background: transparent;
}
.chips-bar::-webkit-scrollbar { display: none; }
.chip {
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 6px 12px; white-space: nowrap;
  font-family: var(--f); font-size: 12px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; transition: all .16s;
  flex-shrink: 0;
}
.chip:active, .chip:hover { background: var(--teal-bg); border-color: #A7E9D2; color: var(--teal); }


.input-bar {
  display: flex; flex-direction: column;
  padding: 6px 12px 16px; background: var(--surface);
  border-top: 1px solid var(--line); flex-shrink: 0;
}
.input-row {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
}
.input-wrap {
  flex: 1; display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 22px; padding: 0 12px; transition: border-color .18s, box-shadow .18s;
}
.input-wrap:focus-within { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(45,175,136,.12); }
.input-icon { width: 14px; height: 14px; stroke: var(--ink-4); flex-shrink: 0; }
.chat-input {
  flex: 1; border: none; background: transparent;
  padding: 9px 7px; font-family: var(--f); font-size: 13.5px;
  color: var(--ink); outline: none; font-weight: 500;
}
.chat-input::placeholder { color: var(--ink-4); }
.send-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(31,144,112,.32);
  transition: all .17s cubic-bezier(.34,1.56,.64,1);
}
.send-btn:hover { transform: scale(1.08); }
.send-btn:active { transform: scale(.95); }
.send-btn svg { width: 14px; height: 14px; }


.followup-bubble {
  align-self: flex-start; margin: 0 0 8px 31px;
  background: var(--line-2); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; padding: 7px 12px;
  font-size: 12px; font-weight: 500; color: var(--ink-2); font-style: italic;
  animation: bpop .2s .18s both; max-width: calc(100% - 43px);
}


.pattern-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 15px 16px; margin-bottom: 11px; box-shadow: var(--sh-sm);
}
.pattern-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.pattern-card-icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--blue-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pattern-card-icon svg { width: 19px; height: 19px; stroke: var(--blue); }
.pattern-card-label { font-size: 10.5px; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.pattern-card-title { font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pattern-card-body  { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.58; margin-bottom: 11px; }
.ep-chart { display: flex; gap: 5px; align-items: flex-end; padding: 4px 0; }
.ep-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.ep-bar-outer { width: 100%; border-radius: 4px 4px 0 0; background: var(--line); height: 50px; display: flex; align-items: flex-end; }
.ep-bar-fill { width: 100%; border-radius: 4px 4px 0 0; transition: height .5s ease; }

.ep-bar-fill.cat-сенс     { background: var(--cat-сенс); }
.ep-bar-fill.cat-среда    { background: var(--cat-среда); }
.ep-bar-fill.cat-переход  { background: var(--cat-переход); }
.ep-bar-fill.cat-сост     { background: var(--cat-сост); }
.ep-bar-fill.cat-none     { background: var(--cat-none); }

.ep-bar-fill.hi  { background: var(--cat-сенс); }
.ep-bar-fill.lo  { background: var(--cat-none); }
.ep-bar-fill.med { background: var(--cat-среда); }
.ep-bar-date { font-size: 9.5px; font-weight: 600; color: var(--ink-4); white-space: nowrap; }


.ep-legend {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.ep-legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--ink-3);
}
.ep-legend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.pattern-rec {
  background: var(--teal-bg); border: 1px solid #A7E9D2;
  border-radius: var(--r-md); padding: 11px 14px; margin-top: 11px;
  display: flex; gap: 9px; align-items: flex-start;
}
.pattern-rec-icon  { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.pattern-rec-title { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.pattern-rec-body  { font-size: 12.5px; font-weight: 500; color: #1D4D3A; line-height: 1.55; }
.episode-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); margin-bottom: 11px;
}
.ep-item { display: flex; gap: 13px; padding: 13px 15px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.ep-item:last-child { border-bottom: none; }
.ep-date { flex-shrink: 0; text-align: center; width: 34px; }
.ep-date-day   { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.ep-date-month { font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; }
.ep-dot-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; margin-top: 3px; }
.ep-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.ep-dot.cat-сенс     { background: var(--cat-сенс); }
.ep-dot.cat-среда    { background: var(--cat-среда); }
.ep-dot.cat-переход  { background: var(--cat-переход); }
.ep-dot.cat-сост     { background: var(--cat-сост); }
.ep-dot.cat-none     { background: var(--cat-none); }

.ep-dot.red   { background: var(--cat-сенс); }
.ep-dot.amber { background: var(--cat-переход); }
.ep-line { width: 1.5px; flex: 1; background: var(--line); margin-top: 3px; min-height: 24px; }
.ep-item:last-child .ep-line { display: none; }
.ep-place    { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ep-behavior { font-size: 12px; font-weight: 500; color: var(--ink-2); line-height: 1.45; margin-bottom: 6px; }
.ep-trigger {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  background: var(--cat-none-bg); color: var(--cat-none); padding: 3px 9px;
  border-radius: 20px; border: 1px solid var(--cat-none-border);
}
.ep-trigger svg { width: 11px; height: 11px; stroke: var(--cat-none); }

.ep-trigger.cat-сенс     { background: var(--cat-сенс-bg);    color: var(--cat-сенс);    border-color: var(--cat-сенс-border); }
.ep-trigger.cat-сенс svg { stroke: var(--cat-сенс); }
.ep-trigger.cat-среда    { background: var(--cat-среда-bg);   color: var(--cat-среда);   border-color: var(--cat-среда-border); }
.ep-trigger.cat-среда svg { stroke: var(--cat-среда); }
.ep-trigger.cat-переход  { background: var(--cat-переход-bg); color: var(--cat-переход); border-color: var(--cat-переход-border); }
.ep-trigger.cat-переход svg { stroke: var(--cat-переход); }
.ep-trigger.cat-сост     { background: var(--cat-сост-bg);    color: var(--cat-сост);    border-color: var(--cat-сост-border); }
.ep-trigger.cat-сост svg { stroke: var(--cat-сост); }
.ep-trigger.cat-none     { background: var(--cat-none-bg);    color: var(--cat-none);    border-color: var(--cat-none-border); }
.ep-trigger.cat-none svg { stroke: var(--cat-none); }

.ep-trigger.amber { background: var(--cat-переход-bg); color: var(--cat-переход); border-color: var(--cat-переход-border); }
.ep-trigger.amber svg { stroke: var(--cat-переход); }


.work-screen {
  flex: 1;
  overflow-y: auto;
  background: #F7F3EC;
  padding: 12px 14px 26px;
}
.work-screen::-webkit-scrollbar { display: none; }
.work-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.work-brand {
  font-size: 16px;
  font-weight: 700;
  color: #3A9A93;
  letter-spacing: -.02em;
}
.work-bag {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3A9A93;
  cursor: pointer;
}
.work-bag svg { width: 22px; height: 22px; stroke: currentColor; }
.work-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #4B5563;
  margin-bottom: 14px;
}
.work-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #F3E5DA;
  border: 1px solid #EFDCCF;
  border-radius: 16px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px;
}
.work-tab {
  border: none;
  background: transparent;
  color: #8A7B72;
  font-family: var(--f);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 13px;
  cursor: pointer;
  transition: all .15s;
}
.work-tab.active {
  background: #FFFDF9;
  color: #3B3645;
  box-shadow: 0 2px 7px rgba(60,34,14,.08);
}
.work-section {
  margin-bottom: 10px;
}
.work-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #474554;
  margin: 14px 2px 10px;
}
.work-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFDF9;
  border: 1px solid #EADFD3;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(93,64,33,.06);
  margin-bottom: 12px;
}
.work-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #E9E2D8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card-body {
  min-width: 0;
  flex: 1;
}
.work-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #3D3945;
  line-height: 1.25;
  margin-bottom: 3px;
}
.work-card-date {
  font-size: 10px;
  font-weight: 500;
  color: #6E6B78;
}
.work-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.work-card-price {
  font-size: 13px;
  font-weight: 600;
  color: #4A4655;
  white-space: nowrap;
}
.work-btn {
  min-width: 112px;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--f);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, opacity .12s;
  text-transform: none;
}
.work-btn:active { transform: scale(.98); }
.work-btn.details {
  background: #F79A8A;
  color: #7A3E3F;
  box-shadow: inset 0 0 0 1px rgba(181,94,82,.18);
}
.work-btn.disabled {
  background: #2F9E9A;
  color: rgba(24,49,49,.78);
  cursor: default;
}
.work-btn.paid {
  background: #63636E;
  color: #4FC8BD;
  cursor: default;
}
.work-empty {
  display: none;
  text-align: center;
  padding: 34px 20px;
  color: #8A7B72;
  font-size: 13px;
  font-weight: 500;
}
.work-empty.show { display: block; }
.work-detail {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #FFFDF9;
  display: none;
  flex-direction: column;
}
.work-detail.open { display: flex; }
.work-detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}
.work-detail-back {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #D34E74;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.work-detail-back svg { width: 24px; height: 24px; stroke: currentColor; }
.work-detail-title {
  font-size: 28px;
  font-weight: 500;
  color: #D34E74;
  letter-spacing: -.03em;
}
.work-detail-body {
  padding: 10px 18px 24px;
  overflow-y: auto;
}
.work-detail-body::-webkit-scrollbar { display: none; }
.work-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #44404D;
  margin-bottom: 4px;
}
.work-detail-amount {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: #F28F81;
  margin-bottom: 20px;
  letter-spacing: -.04em;
}
.work-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  margin-bottom: 18px;
}
.work-detail-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: #57535F;
  margin-bottom: 4px;
}
.work-detail-meta-value {
  font-size: 17px;
  font-weight: 500;
  color: #343241;
  line-height: 1.3;
}
.work-detail-block-title {
  font-size: 11px;
  font-weight: 700;
  color: #3A9A93;
  margin-bottom: 6px;
}
.work-detail-desc {
  font-size: 14px;
  font-weight: 500;
  color: #353341;
  line-height: 1.45;
  margin-bottom: 18px;
}
.work-customer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.work-customer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.work-customer-name {
  font-size: 15px;
  font-weight: 500;
  color: #373443;
}
.work-customer-phone {
  font-size: 12px;
  font-weight: 500;
  color: #494652;
  margin-top: 3px;
}
.work-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 14px;
}
.work-detail-ghost {
  height: 52px;
  border-radius: 14px;
  border: 1px solid #E7DDD3;
  background: #FFFDF9;
  font-family: var(--f);
  font-size: 14px;
  font-weight: 500;
  color: #4A4655;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.work-detail-ghost svg { width: 17px; height: 17px; stroke: currentColor; }
.work-detail-claim {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: #2F9E9A;
  color: #F2FBFA;
  font-family: var(--f);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(47,158,154,.22);
}
.work-detail-claim svg { width: 18px; height: 18px; stroke: currentColor; }


.learn-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 15px; margin-bottom: 10px;
  cursor: pointer; box-shadow: var(--sh-sm); transition: box-shadow .16s, transform .16s;
}
.learn-card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.learn-accent { width: 4px; border-radius: 4px; flex-shrink: 0; align-self: stretch; min-height: 40px; }
.learn-accent.teal   { background: var(--teal); }
.learn-accent.blue   { background: var(--blue); }
.learn-accent.amber  { background: var(--amber-2); }
.learn-accent.purple { background: var(--purple); }
.learn-accent.red    { background: var(--red-2); }
.learn-accent.orange { background: var(--orange); }
.learn-body { flex: 1; min-width: 0; }
.learn-cat  { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.learn-cat.teal   { color: var(--teal); }
.learn-cat.blue   { color: var(--blue); }
.learn-cat.amber  { color: var(--amber); }
.learn-cat.purple { color: var(--purple); }
.learn-cat.red    { color: var(--red); }
.learn-cat.orange { color: var(--orange); }
.learn-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 5px; }
.learn-desc  { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.5; margin-bottom: 8px; }
.learn-meta  { display: flex; align-items: center; gap: 8px; }
.learn-time  { font-size: 11px; font-weight: 600; color: var(--ink-4); display: flex; align-items: center; gap: 3px; }
.learn-time svg { width: 12px; height: 12px; stroke: var(--ink-4); }
.learn-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.learn-badge.new   { background: var(--teal-bg); color: var(--teal); }
.learn-badge.saved { background: var(--amber-bg); color: var(--amber); }
.learn-arrow { flex-shrink: 0; margin-top: 2px; }
.learn-arrow svg { width: 17px; height: 17px; stroke: var(--ink-4); }
.learn-card-linked:hover .learn-arrow svg { stroke: var(--teal); }
.learn-card-linked:hover { border-color: var(--teal-2); }


.article-overlay {
  position: absolute; inset: 0; z-index: 400;
  background: #fff; display: none; flex-direction: column;
  border-radius: 24px; overflow: hidden;
}
.article-overlay.open { display: flex; }
.article-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex-shrink: 0; gap: 8px;
}
.article-back-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; font-family: var(--f);
  font-size: 13.5px; font-weight: 600; color: var(--teal);
  cursor: pointer; padding: 4px 6px; border-radius: 8px;
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.article-back-btn svg { width: 18px; height: 18px; stroke: var(--teal); }
.article-back-btn:hover { background: var(--teal-bg); }
.article-topbar-title {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  text-align: center; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.article-loader {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; flex: 1;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
}
.article-loader.hidden { display: none; }
.article-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--teal);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.article-iframe {
  flex: 1; border: none; width: 100%;
  display: none;
}
.article-iframe.loaded { display: block; }


.profile-hero { padding: 22px 18px 18px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.child-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #FFCF6E, #F59E0B);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 11px;
  box-shadow: 0 4px 14px rgba(245,158,11,.24), 0 0 0 3px #fff, 0 0 0 4px #FDE68A;
}
.profile-name { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.profile-sub  { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 3px; }
.profile-tags { display: flex; gap: 7px; justify-content: center; margin-top: 11px; flex-wrap: wrap; }

.profile-mom-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: .02em;
  text-transform: none;
  margin: 18px 0 8px;
}
.profile-mom-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.profile-mom-list .home-sec-btn {
  padding: 11px 13px;
  border-radius: 18px;
}
.profile-mom-list .home-sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.profile-mom-list .home-sec-icon svg {
  width: 15px;
  height: 15px;
}
.profile-mom-list .home-sec-title {
  font-size: 13.5px;
  font-weight: 700;
}
.profile-mom-list .home-sec-sub {
  font-size: 10.5px;
  line-height: 1.25;
}
.profile-mom-list .home-sec-arrow svg {
  width: 14px;
  height: 14px;
}
.ptag { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.ptag.green  { background: var(--teal-bg);   color: var(--teal); }
.ptag.red    { background: var(--red-bg);    color: var(--red); }
.ptag.amber  { background: var(--amber-bg);  color: var(--amber); }
.ptag.blue   { background: var(--blue-bg);   color: var(--blue); }
.ptag.purple { background: var(--purple-bg); color: var(--purple); }
.alert-block {
  background: #F8F5FF; border: 1.5px solid #E9DDFE;
  border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 11px;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-block-icon  { font-size: 19px; flex-shrink: 0; margin-top: 1px; }
.alert-block-title { font-size: 13px; font-weight: 700; color: var(--purple); margin-bottom: 3px; }
.alert-block-body  { font-size: 12px; font-weight: 500; color: var(--ink-2); line-height: 1.55; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 11px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px 14px; box-shadow: var(--sh-sm); }
.stat-icon-wrap { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.stat-icon-wrap svg { width: 15px; height: 15px; }
.stat-value { font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat-label { font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.stat-note  { font-size: 11.5px; font-weight: 600; color: var(--teal); margin-top: 3px; }
.prog-item { margin-bottom: 12px; }
.prog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.prog-name  { font-size: 13px; font-weight: 600; color: var(--ink); }
.prog-badge { font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-bg); padding: 2px 8px; border-radius: 20px; }
.prog-track { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog-fill  { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal-2), var(--teal)); }
.therapist-note { background: #FFFEF5; border: 1.5px solid #FEF08A; border-radius: var(--r-lg); padding: 13px 15px; }
.tn-author { font-size: 11.5px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.tn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-2); }
.tn-body { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.65; font-style: italic; }


.log-overlay {
  position: absolute; inset: 0; z-index: 250;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding-top: 22px;
}
.log-overlay.open { transform: translateX(0); }

.log-hdr {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 11px 16px 12px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.log-back-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.log-back-btn:hover { background: var(--line); }
.log-back-btn svg { width: 15px; height: 15px; stroke: var(--ink-2); stroke-width: 2.2; }
.log-hdr-title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

.log-body { flex: 1; overflow-y: auto; padding: 16px 16px 24px; }
.log-body::-webkit-scrollbar { display: none; }

.log-field { margin-bottom: 14px; }
.log-label {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; display: block;
}
.log-input {
  width: 100%; padding: 10px 12px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-family: var(--f); font-size: 13.5px;
  font-weight: 500; color: var(--ink); outline: none; resize: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
.log-input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(45,175,136,.12); }

input[type="date"].log-input { cursor: pointer; }
input[type="date"].log-input::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.log-input::placeholder { color: var(--ink-4); }
textarea.log-input { line-height: 1.5; }


.log-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.log-tag {
  padding: 5px 11px; border-radius: 20px; cursor: pointer;
  font-family: var(--f); font-size: 11.5px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-3);
  transition: all .15s;
}
.log-tag:hover  { background: var(--teal-bg); border-color: #A7E9D2; color: var(--teal); }
.log-tag.active { background: var(--teal-bg); border-color: var(--teal); color: var(--teal); }


.log-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.log-save-btn {
  width: 100%; padding: 13px; border: none; border-radius: var(--r-lg);
  background: var(--teal); color: #fff; font-family: var(--f);
  font-size: 14px; font-weight: 700; cursor: pointer; text-align: center;
  box-shadow: 0 4px 14px rgba(31,144,112,.28);
  transition: background .15s, transform .12s;
}
.log-save-btn:hover  { background: var(--teal-2); }
.log-save-btn:active { transform: scale(.98); }
.log-cancel-btn {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink-3); font-family: var(--f);
  font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center;
  transition: background .15s;
}
.log-cancel-btn:hover { background: var(--line-2); }


.save-toast {
  position: absolute; bottom: 80px; left: 14px; right: 14px; z-index: 260;
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 12px 15px; display: flex; align-items: flex-start; gap: 10px;
  box-shadow: 0 8px 28px rgba(15,23,42,.22);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.save-toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.save-toast-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.save-toast-icon svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.5; }
.save-toast-text { flex: 1; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.save-toast-text strong { font-weight: 700; display: block; margin-bottom: 1px; font-size: 13px; }


.update-banner {
  display: none;
  background: var(--teal-bg); border: 1.5px solid #A7E9D2;
  border-radius: var(--r-md); padding: 9px 12px; margin-bottom: 10px;
  align-items: center; gap: 9px;
  animation: bpop .3s cubic-bezier(.34,1.56,.64,1) both;
}
.update-banner.show { display: flex; }
.aub-icon {
  width: 26px; height: 26px; border-radius: 8px; background: rgba(31,144,112,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.aub-icon svg { width: 13px; height: 13px; stroke: var(--teal); stroke-width: 2.2; }
.aub-text { font-size: 12px; font-weight: 600; color: #1D4D3A; line-height: 1.4; }
.aub-text span { font-weight: 700; color: var(--teal); }


.ep-item.ep-new {
  background: linear-gradient(90deg, rgba(79,110,245,.04) 0%, transparent 80%);
  border-left: 3px solid var(--t-шум);
  animation: bpop .35s .1s cubic-bezier(.34,1.56,.64,1) both;
}
.ep-item.ep-new .ep-place { color: var(--ink); }


.screen { transition: opacity .22s ease; }


.auth-screen {
  position: absolute; inset: 0; z-index: 150;
  background: var(--bg);
  display: none; flex-direction: column;
  padding-top: 0;
}
.auth-screen.active { display: flex; }

.auth-topbar {
  height: 56px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.auth-logo {
  display: flex; align-items: center; gap: 8px;
}
.auth-logo-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-2), var(--teal));
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-icon svg { width: 15px; height: 15px; }
.auth-logo-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }

.auth-body {
  flex: 1; overflow-y: auto; padding: 32px 24px 32px;
  display: flex; flex-direction: column;
}
.auth-body::-webkit-scrollbar { display: none; }

.auth-title {
  font-size: 24px; font-weight: 700; color: var(--ink);
  letter-spacing: -.025em; margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  line-height: 1.5; margin-bottom: 32px;
}

.auth-field { margin-bottom: 14px; }
.auth-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 7px;
}
.auth-input {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-family: var(--f); font-size: 14px;
  font-weight: 500; color: var(--ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
.auth-input:focus {
  border-color: var(--teal-2);
  box-shadow: 0 0 0 3px rgba(45,175,136,.12);
}
.auth-input::placeholder { color: var(--ink-4); }

.auth-btn-primary {
  width: 100%; padding: 14px; border: none;
  background: var(--teal); border-radius: var(--r-lg);
  font-family: var(--f); font-size: 14.5px; font-weight: 700;
  color: #fff; cursor: pointer; text-align: center;
  box-shadow: 0 4px 16px rgba(31,144,112,.28);
  transition: background .15s, transform .12s;
  margin-top: 8px;
}
.auth-btn-primary:hover  { background: var(--teal-2); }
.auth-btn-primary:active { transform: scale(.98); }

.auth-btn-secondary {
  width: 100%; padding: 13px; border: 1.5px solid var(--line);
  background: var(--surface); border-radius: var(--r-lg);
  font-family: var(--f); font-size: 14px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s;
  margin-top: 10px;
}
.auth-btn-secondary:hover { background: var(--line-2); border-color: var(--ink-4); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.auth-divider-line { flex: 1; height: 1px; background: var(--line); }
.auth-divider-label { font-size: 11px; font-weight: 600; color: var(--ink-4); white-space: nowrap; }




.notify-overlay {
  position: absolute; inset: 0; z-index: 270;
  background: rgba(15,23,42,.28);
  display: none; align-items: flex-start; justify-content: center;
  padding: 78px 14px 14px;
}
.notify-overlay.open { display: flex; }
.notify-card {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 18px 40px rgba(15,23,42,.18);
  overflow: hidden;
}
.notify-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 12px; border-bottom: 1px solid var(--line);
}
.notify-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.notify-close {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-3); cursor: pointer; font-size: 16px;
}
.notify-list { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.notify-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.notify-icon {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.notify-item-title { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.notify-item-body { font-size: 11.5px; font-weight: 500; color: var(--ink-3); line-height: 1.45; }
.notify-empty {
  padding: 12px 14px 14px; font-size: 11.5px; color: var(--ink-4);
  border-top: 1px solid var(--line-2);
}


html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255,112,101,.16), transparent 34%),
    linear-gradient(180deg, #FFF8F4 0%, #FFFFFF 42%, #F4FBF8 100%);
}
.site-landing {
  min-height: 100vh;
  padding: 28px 20px 72px;
  overflow: hidden;
}
.landing-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.landing-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  margin-bottom: 34px;
  border: 1px solid rgba(31,144,112,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(18,55,47,.08);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(31,144,112,.16);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
}
.landing-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}
.landing-links a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
}
.landing-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #FF7065;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.landing-links a:hover { color: var(--teal); }
.landing-links a:hover::after { transform: scaleX(1); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--f);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .02em;
}
.lang-btn.on { background: var(--teal); color: #fff; }
.lang-btn:hover:not(.on) { color: var(--teal); }
.lang-switch.compact { padding: 2px; }
.lang-switch.compact .lang-btn { padding: 5px 8px; font-size: 10.5px; }
.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
  gap: 54px;
  align-items: center;
  padding: 18px 0 56px;
}
.landing-hero > * { min-width: 0; }
.landing-hero::before {
  content: "";
  position: absolute;
  inset: -50px -120px auto auto;
  width: 46%;
  height: 70%;
  background-image: linear-gradient(135deg, rgba(31,144,112,.08) 25%, transparent 25%, transparent 50%, rgba(31,144,112,.08) 50%, rgba(31,144,112,.08) 75%, transparent 75%);
  background-size: 24px 24px;
  opacity: .55;
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(31,144,112,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF7065;
}
.landing-hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: .96;
  letter-spacing: 0;
  color: #12372F;
}
.hero-copy {
  max-width: 640px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: #3D514C;
  overflow-wrap: anywhere;
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 640px;
}
.proof-pill {
  padding: 14px 14px 13px;
  border: 1px solid rgba(31,144,112,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(18,55,47,.06);
}
.proof-value {
  font-size: 20px;
  font-weight: 900;
  color: #12372F;
}
.proof-label {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-3);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  min-width: 0;
}
.primary-cta,
.secondary-cta {
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.primary-cta {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 28px rgba(31,144,112,.24);
}
.primary-cta:hover { background: #197C61; }
.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}
.secondary-cta {
  border: 1px solid rgba(31,144,112,.26);
  background: rgba(255,255,255,.78);
  color: var(--teal);
}
.hero-note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.hero-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero-device-card {
  position: absolute;
  left: -8px;
  top: 24px;
  width: 190px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(31,144,112,.14);
  box-shadow: 0 18px 44px rgba(18,55,47,.12);
  animation: float-soft 5.6s ease-in-out infinite;
  z-index: 4;
  backdrop-filter: blur(14px);
}
.device-card-label {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.device-card-title {
  margin-top: 6px;
  color: #12372F;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
}
.device-meter {
  margin-top: 12px;
  height: 8px;
  border-radius: 20px;
  background: #EAF7F2;
  overflow: hidden;
}
.device-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #FF7065);
  animation: meter 2.8s ease-in-out infinite;
}
.logo-orbit {
  position: relative;
  z-index: 2;
  width: min(390px, 88vw);
  aspect-ratio: 1;
  border-radius: 44px;
  background: #F8EEE8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 26px 70px rgba(18,55,47,.16);
  transform: rotate(-3deg);
  animation: logo-breathe 6s ease-in-out infinite;
}
.logo-orbit img {
  width: 78%;
  height: 78%;
  object-fit: cover;
  border-radius: 50%;
  transform: rotate(3deg);
}
.price-ticket {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 210px;
  padding: 18px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(31,144,112,.16);
  box-shadow: 0 18px 42px rgba(18,55,47,.14);
  z-index: 5;
  animation: price-float 6.4s ease-in-out infinite;
  backdrop-filter: blur(12px);
}
.price-ticket::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF7065;
  box-shadow: 0 0 0 8px rgba(255,112,101,.12);
}
.price-label {
  font-size: 12px;
  font-weight: 800;
  color: #FF7065;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-value {
  margin-top: 7px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #12372F;
}
.price-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-3);
}
.landing-section {
  padding: 64px 0;
  border-top: 1px solid rgba(31,144,112,.12);
}
.section-label {
  color: #FF7065;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-title {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #12372F;
}
.section-copy {
  max-width: 790px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: #41544F;
}
.story-grid,
.feature-grid,
.press-grid,
.timeline-grid,
.media-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.story-grid { grid-template-columns: 1.15fr .85fr; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.press-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.press-grid > .landing-card {
  align-self: start;
}
.press-grid > .landing-card:nth-child(1) { order: 1; }
.press-grid > .landing-card:nth-child(5) { order: 2; }
.press-grid > .landing-card:nth-child(6) { order: 3; grid-column: 1 / -1; }
.press-grid > .landing-card:nth-child(2) { order: 4; grid-column: 1 / -1; }
.press-grid > .landing-card:nth-child(3) { order: 5; grid-column: 1 / -1; }
.press-grid > .landing-card:nth-child(4) { order: 6; grid-column: 1 / -1; }
.press-grid > .landing-card:nth-child(2) .achievement-gallery,
.press-grid > .landing-card:nth-child(3) .achievement-gallery,
.press-grid > .landing-card:nth-child(4) .achievement-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.press-grid > .landing-card:nth-child(4) .achievement-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.press-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  align-items: start;
}
.award-showcase {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.award-showcase.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}
.award-intro {
  position: sticky;
  top: 108px;
}
.award-intro .section-label { margin-bottom: 10px; }
.award-intro h3 {
  color: #12372F;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}
.award-intro p {
  margin-top: 14px;
  color: #4A5E58;
  font-size: 15px;
  line-height: 1.7;
}
.timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.landing-card,
.feature-card,
.media-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82)),
    #fff;
  border: 1px solid rgba(31,144,112,.14);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(18,55,47,.07);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.landing-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #FF7065);
  opacity: .72;
}
.landing-card:hover,
.feature-card:hover,
.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31,144,112,.28);
  box-shadow: 0 20px 48px rgba(18,55,47,.13);
}
.landing-card { padding: 24px; }
.landing-card.featured-award {
  background:
    radial-gradient(circle at 96% 0%, rgba(255,112,101,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,255,251,.9));
}
.landing-card.featured-award::after {
  height: 5px;
  background: linear-gradient(90deg, #FF7065, var(--teal), #0878C9);
}
.feature-card { padding: 22px 20px 20px; }
.media-card {
  min-height: 184px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #10251F;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,112,101,.2), transparent 42%),
    linear-gradient(315deg, rgba(31,144,112,.22), transparent 50%);
  opacity: .8;
  transition: opacity .22s ease, transform .22s ease;
}
.media-card:hover::before {
  opacity: 1;
  transform: scale(1.04);
}
.media-card > * { position: relative; z-index: 1; }
.media-card-title {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}
.media-source {
  margin-top: 22px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-style: italic;
}
.card-title {
  font-size: 19px;
  font-weight: 850;
  color: #12372F;
  line-height: 1.28;
}
.card-copy,
.feature-card p {
  margin-top: 10px;
  color: #4A5E58;
  line-height: 1.65;
  font-size: 14.5px;
}
.achievement-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.achievement-photo {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(31,144,112,.14);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 30px rgba(18,55,47,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.achievement-photo:hover {
  transform: translateY(-3px);
  border-color: rgba(255,112,101,.26);
  box-shadow: 0 18px 38px rgba(18,55,47,.13);
}
.achievement-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.achievement-photo:hover img { transform: scale(1.035); }
.achievement-photo.document img {
  object-fit: contain;
  background: #fff;
}
.achievement-photo.document:hover img { transform: scale(1.015); }
.achievement-photo.portrait img { aspect-ratio: 3 / 4; }
.achievement-caption {
  padding: 12px 12px 13px;
  color: #4A5E58;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #F9FFFC);
}
.achievement-caption strong {
  display: block;
  margin-bottom: 4px;
  color: #12372F;
  font-size: 13.5px;
}
.award-spotlight {
  margin-top: 16px;
  padding: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,112,101,.16), transparent 32%),
    linear-gradient(135deg, #10251F 0%, #163F35 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(18,55,47,.16);
}
.award-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
}
.award-spotlight > * { position: relative; z-index: 1; }
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #FFE3DD;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.award-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF7065;
  box-shadow: 0 0 0 6px rgba(255,112,101,.14);
}
.award-spotlight h3 {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}
.award-spotlight p {
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  font-size: 14.5px;
}
.award-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.award-metric {
  padding: 13px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, background .2s ease;
}
.award-metric:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
}
.award-metric strong {
  display: block;
  color: #fff;
  font-size: 20px;
}
.award-metric span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.66);
  font-size: 11.5px;
  font-weight: 750;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #EAF7F2;
  color: var(--teal);
  font-weight: 900;
}
.timeline-num {
  color: #FF7065;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.founder-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #F8EEE8;
}
.insta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background: #FFF4F0;
  border-color: rgba(255,112,101,.24);
}
.insta-handle {
  margin-top: 8px;
  color: #FF7065;
  font-size: 22px;
  font-weight: 900;
}
.source-note {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.section-head-row .section-copy {
  max-width: 460px;
  margin-top: 0;
  font-size: 15px;
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.process-step {
  position: relative;
  min-height: 188px;
  padding: 22px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(31,144,112,.14);
  overflow: hidden;
}
.process-step::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--teal), #FF7065);
}
.process-step strong {
  display: block;
  margin-top: 34px;
  color: #12372F;
  font-size: 18px;
}
.process-step p {
  margin-top: 10px;
  color: #4A5E58;
  font-size: 14px;
  line-height: 1.6;
}
.step-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(18,55,47,.12);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}
.quote-band {
  margin-top: 28px;
  padding: 30px;
  border-radius: 8px;
  background: #12372F;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
}
.quote-band > * { position: relative; z-index: 1; }
.quote-band p {
  max-width: 850px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 850;
}
.quote-band span {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 700;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.final-cta {
  margin-top: 36px;
  padding: 36px;
  border-radius: 8px;
  background: #F8EEE8;
  border: 1px solid rgba(255,112,101,.22);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: #12372F;
  letter-spacing: 0;
}
.final-cta p {
  margin-top: 12px;
  color: #4A5E58;
  line-height: 1.65;
}
.mission-panel {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31,144,112,.94), rgba(18,55,47,.98)),
    #12372F;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.mission-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid rgba(255,255,255,.08);
}
.mission-panel > * { position: relative; z-index: 1; }
.mission-title {
  max-width: 680px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}
.mission-copy {
  margin-top: 18px;
  max-width: 680px;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.72;
}
.mission-stat {
  align-self: end;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}
.mission-stat strong {
  display: block;
  font-size: 46px;
  line-height: 1;
  color: #FFE3DD;
}
.mission-stat span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.76);
  line-height: 1.5;
  font-weight: 650;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.audience-card {
  padding: 20px;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,144,112,.14);
  min-height: 156px;
}
.audience-card strong {
  display: block;
  color: #12372F;
  font-size: 16px;
  line-height: 1.35;
}
.audience-card span {
  display: block;
  margin-top: 10px;
  color: #4A5E58;
  font-size: 13.5px;
  line-height: 1.55;
}
.bracelet-showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
}
.bracelet-preview {
  min-height: 360px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 45% 40%, rgba(255,112,101,.2), transparent 26%),
    linear-gradient(160deg, #F8EEE8 0%, #FFFFFF 100%);
  border: 1px solid rgba(31,144,112,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bracelet-ring {
  width: 230px;
  height: 230px;
  border: 28px solid var(--teal);
  border-bottom-color: #FF7065;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(18,55,47,.16);
  animation: logo-breathe 5.5s ease-in-out infinite;
}
.bracelet-chip {
  position: absolute;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31,144,112,.14);
  color: #12372F;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(18,55,47,.1);
}
.bracelet-chip.one { top: 38px; left: 34px; }
.bracelet-chip.two { bottom: 44px; right: 34px; }
.preorder-form {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(31,144,112,.14);
  box-shadow: 0 12px 34px rgba(18,55,47,.07);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px;
  font-weight: 850;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1.5px solid rgba(31,144,112,.16);
  border-radius: 12px;
  background: #fff;
  color: #12372F;
  font: 600 14px/1.4 var(--f);
  padding: 12px 13px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31,144,112,.1);
}
.form-status {
  display: none;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #EAF7F2;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}
.form-status.show { display: block; }
.roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.roadmap-item {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(31,144,112,.14);
  position: relative;
  min-height: 154px;
}
.roadmap-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF7065;
  box-shadow: 0 0 0 7px rgba(255,112,101,.12);
}
.roadmap-item strong {
  display: block;
  padding-top: 28px;
  color: #12372F;
  line-height: 1.35;
}
.roadmap-item span {
  display: block;
  margin-top: 9px;
  color: #4A5E58;
  font-size: 13px;
  line-height: 1.5;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
@keyframes float-soft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(1deg); }
}
@keyframes price-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(1deg); }
  50% { transform: translate3d(8px, -12px, 0) rotate(-1deg); }
}
@keyframes logo-breathe {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(-1deg) scale(1.025); }
}
@keyframes meter {
  0%, 100% { width: 56%; }
  50% { width: 82%; }
}
.bracelet-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 8px;
  background: #12372F;
  color: #fff;
}
.bracelet-band h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}
.bracelet-band p {
  max-width: 680px;
  margin-top: 10px;
  color: rgba(255,255,255,.76);
  line-height: 1.65;
}
.bracelet-band .primary-cta {
  background: #FF7065;
  color: #fff;
  box-shadow: none;
}
.demo-heading {
  text-align: center;
  padding: 54px 20px 18px;
}
.demo-heading h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: #12372F;
  letter-spacing: 0;
}
.demo-heading p {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--ink-3);
  line-height: 1.6;
}
.outer {
  height: auto;
  min-height: 100vh;
  padding: 0 18px 56px;
  background: transparent;
}
@media (max-width: 900px) {
  .landing-hero,
  .story-grid,
  .press-grid,
  .press-summary-grid,
  .award-showcase,
  .award-showcase.reverse,
  .timeline-grid,
  .media-grid,
  .insta-card,
  .mission-panel,
  .audience-grid,
  .bracelet-showcase,
  .roadmap,
  .section-head-row,
  .process-list,
  .faq-grid,
  .final-cta,
  .bracelet-band {
    grid-template-columns: 1fr;
  }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 360px; }
  .award-intro { position: static; }
  .price-ticket { right: 14px; }
}
@media (max-width: 640px) {
  .site-landing { padding: 18px 14px 48px; }
  .landing-nav {
    align-items: center;
    top: 8px;
    margin-bottom: 22px;
    padding: 9px 10px;
    flex-wrap: wrap;
  }
  .brand-mark img {
    width: 42px;
    height: 42px;
  }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 11px; }
  .landing-links { display: none; }
  .landing-hero::before { display: none; }
  .landing-shell,
  .landing-hero,
  .hero-proof,
  .hero-actions,
  .landing-section,
  .bracelet-band,
  .final-cta,
  .insta-card {
    max-width: 100%;
    min-width: 0;
  }
  .landing-hero { gap: 24px; padding-top: 8px; }
  .landing-hero h1 { font-size: 48px; }
  .hero-copy { font-size: 16px; }
  .hero-actions a { width: 100%; min-height: 56px; }
  .feature-grid { grid-template-columns: 1fr; }
  .audience-grid,
  .roadmap,
  .form-grid,
  .achievement-gallery,
  .award-metrics { grid-template-columns: 1fr; }
  .press-grid > .landing-card:nth-child(2) .achievement-gallery,
  .press-grid > .landing-card:nth-child(3) .achievement-gallery,
  .press-grid > .landing-card:nth-child(4) .achievement-gallery {
    grid-template-columns: 1fr;
  }
  .form-field.full { grid-column: auto; }
  .mission-panel { padding: 24px; }
  .mission-stat strong { font-size: 38px; }
  .bracelet-preview { min-height: 290px; }
  .bracelet-ring {
    width: 190px;
    height: 190px;
    border-width: 22px;
  }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-device-card {
    position: static;
    width: 100%;
    margin-bottom: -20px;
  }
  .section-head-row { align-items: start; }
  .final-cta { padding: 24px; }
  .price-ticket {
    position: static;
    width: 100%;
    margin-top: -28px;
  }
  .logo-orbit { border-radius: 30px; }
  .landing-section { padding: 44px 0; }
  .section-title { font-size: 30px; }
  .section-copy { font-size: 15.5px; line-height: 1.68; }
  .landing-card,
  .feature-card,
  .media-card,
  .audience-card,
  .process-step,
  .roadmap-item,
  .preorder-form { padding: 18px; }
  .media-card { min-height: 160px; }
  .phone { width: min(375px, 100vw - 28px); }
  .outer { padding: 0 14px 48px; }
}
