/* One glass, one type scale, four views. Shared tokens come from home-reference.css. */
:is(#synastry,#ask,#cabinet,#places).reference-view{position:relative;gap:12px;padding:0;background:none !important;color:var(--reference-ink) !important;--ink:var(--reference-ink);--muted:var(--reference-muted);--control-fill:#ffffff82;--chip-fill:#fff9;--disclosure-fill:#fff5;--disclosure-open:#ffffff85;font:400 var(--today-type-body)/1.5 var(--today-font-body);letter-spacing:0}
:is(#synastry,#ask,#cabinet,#places).reference-view:not(.active){display:none}
:is(#synastry,#ask,#cabinet,#places) :where(*){font-family:inherit;font-size:inherit;line-height:inherit;box-sizing:border-box}
:is(#synastry,#ask,#cabinet,#places) :is(p,li,button,a,summary,label,input,select,textarea,legend,.reading-paragraph){font-family:var(--today-font-body)!important;font-size:var(--today-type-body)!important;line-height:1.5!important;letter-spacing:0!important}
:is(#synastry,#ask,#cabinet,#places) :is(h2,h3,h4,.reference-menu-row strong,.reference-row-copy>strong){font:700 var(--today-type-heading)/1.3 var(--today-font-heading)!important;letter-spacing:0!important;color:var(--reference-ink) !important}
:is(#synastry,#ask,#cabinet,#places) :is(small,.eyebrow,.reference-kicker,.reference-muted,.atlas-muted,.form-note,.form-status,.reference-menu-row small,.pair-topic-card p,.pair-topic-card strong,.pair-balance span,.pair-balance small,.ask-steps p,.ask-balance,.question-count,.spend-note,.places-profile,.places-preview-legend,.places-save-note,.reference-more,.cabinet-profile-badge,.place-recommendation>p){font:400 var(--today-type-meta)/1.4 var(--today-font-body)!important;letter-spacing:0!important;color:var(--reference-muted) !important}
:is(#synastry,#ask,#cabinet,#places) p{margin:8px 0;color:var(--reference-ink) !important}
:is(#synastry,#ask,#cabinet,#places) :is(button,summary,a,input,select,textarea):focus-visible{outline:2px solid #8850b7!important;outline-offset:3px}
:is(#synastry,#ask,#cabinet,#places) :is(input,textarea,select){width:100%;max-width:100%;min-width:0;border:1px solid #fff!important;border-radius:14px!important;background:#ffffff9c!important;color:var(--reference-ink)!important;box-shadow:inset 0 1px 2px #fff6!important;accent-color:#945ac5}
:is(#synastry,#ask,#cabinet,#places) :is(input[type=checkbox],input[type=radio]){width:18px;height:18px;min-height:0;flex:none;accent-color:#945ac5}
:is(#synastry,#ask,#cabinet,#places) :is(input,textarea)::placeholder{color:#725c90!important;opacity:1}
:is(#synastry,#ask,#cabinet,#places) :is(.primary-button,.soft-button){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;max-width:100%;padding:9px 14px!important;border:1px solid #fff!important;border-radius:999px!important;background:#ffffff80!important;box-shadow:inset 0 1px #fff8,0 3px 12px #704c9911!important;color:#4d2477!important;white-space:normal;overflow-wrap:anywhere}
:is(#synastry,#ask,#cabinet,#places) .primary-button{background:linear-gradient(125deg,#d9b9ff,#c19af1)!important;color:#32114f!important;box-shadow:inset 0 0 8px #fff,0 0 0 2px #fff7,0 3px 14px #aa73d942!important}
:is(#synastry,#ask,#cabinet,#places) button:disabled{opacity:.55;cursor:not-allowed}
:is(#synastry,#ask,#cabinet,#places) [hidden]{display:none!important}
:is(#synastry,#ask,#cabinet,#places) .reference-glass{min-width:0;max-width:100%;margin:0;padding:18px 20px;border:1px solid #fffffff0!important;border-radius:var(--reference-radius)!important;background:var(--reference-glass)!important;box-shadow:inset 0 1px 1px #fff8,0 7px 22px #76539412!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);color:var(--reference-ink)!important;overflow:visible}
:is(#synastry,#ask,#cabinet,#places) .reference-glass::before,:is(#synastry,#ask,#cabinet,#places) .reference-glass::after{content:none!important}
:is(#synastry,#ask,#cabinet,#places) .reference-page-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
:is(#synastry,#ask,#cabinet,#places) .reference-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;min-width:0}
:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading{display:flex;align-items:center;gap:10px;min-width:0;margin:0 0 12px}
:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>h2{min-width:0;margin:0;overflow-wrap:normal}
:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>.reference-icon{width:27px;height:27px;color:#b158cf !important;filter:drop-shadow(0 0 5px #ffe5ff)}
:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>.reference-icon:has(use[href='#atlas-icon-star']),:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>.reference-icon:has(use[href='#atlas-icon-sun']){color:#d65f16 !important;filter:drop-shadow(0 0 4px #ffc96b)}
:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>.reference-icon:has(use[href='#atlas-icon-heart']){color:#ba2550 !important}
:is(#synastry,#ask,#cabinet,#places) .reference-more{display:inline-flex;align-items:center;gap:6px;flex:none;margin-left:auto;padding:5px 0;min-height:30px;background:none!important;border:0!important;box-shadow:none!important;color:#67408b!important;text-decoration:none!important;text-align:right}
:is(#synastry,#ask,#cabinet,#places) .reference-more .reference-chevron{width:9px;height:17px}
:is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>.reference-kicker{margin-left:auto;text-align:right}
:is(#synastry,#ask,#cabinet,#places) .reference-row-list{display:grid;gap:6px;min-width:0}
:is(#synastry,#ask,#cabinet,#places) .reference-round-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #fff !important;border-radius:50% !important;background:linear-gradient(140deg,#fff9,#d9c4ffb3) !important;color:#6831b9 !important;box-shadow:0 0 12px #e9c7ff9c !important}
:is(#synastry,#ask,#cabinet,#places) .reference-round-icon svg{width:26px;height:26px;stroke-width:1.65}
:is(#synastry,#ask,#cabinet,#places) :is(.tone-heart,.tone-hearts,.tone-magnet){background:linear-gradient(140deg,#fff9,#ffd5e7b8) !important;color:#bd2449 !important;box-shadow:0 0 12px #ffdcdf9c !important}
:is(#synastry,#ask,#cabinet,#places) :is(.tone-crown,.tone-sun,.tone-gift){background:linear-gradient(140deg,#fff9,#ffe2c6b8) !important;color:#d66b1b !important;box-shadow:0 0 12px #ffdfb49c !important}
:is(#synastry,#ask,#cabinet,#places) :is(.tone-globe,.tone-leaf){background:linear-gradient(140deg,#fff9,#d1f0e7b8) !important;color:#347b7a !important;box-shadow:0 0 12px #dff8e89c !important}
/* Heroes stay open to the sky. Illustration occupies its own area and never touches the title. */
:is(#synastry,#ask,#cabinet,#places) .section-heading.reference-hero{position:relative;isolation:isolate;display:flex!important;align-items:flex-start;min-height:240px;margin:0!important;padding:27px 32px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
:is(#synastry,#ask,#cabinet,#places) .reference-hero::before{content:'';display:block;position:absolute;inset:0 30% 0 0;z-index:-1;border:1px solid #fff7 !important;border-right:0;border-bottom:0 !important;border-radius:32px 0 0 0 !important;background:linear-gradient(100deg,#fff6,#fff2 68%,transparent) !important;mask-image:linear-gradient(90deg,#000,transparent);-webkit-mask-image:linear-gradient(90deg,#000,transparent);pointer-events:none}
:is(#synastry,#ask,#cabinet,#places) .reference-hero::after{content:none!important}
:is(#synastry,#ask,#cabinet,#places) .reference-hero-copy{position:relative;z-index:1;width:68%;min-width:0}
:is(#synastry,#ask,#cabinet,#places) .reference-hero .reference-kicker{display:block;color:#62447b !important;letter-spacing:.1em!important}
:is(#synastry,#ask,#cabinet,#places) .reference-hero h1{margin:8px 0!important;padding:0!important;font:700 var(--today-type-page)/1.1 var(--today-font-heading)!important;letter-spacing:-.02em!important;color:var(--reference-ink)!important;overflow-wrap:normal}
:is(#synastry,#ask,#cabinet,#places) .reference-hero p{max-width:360px;margin:0;color:var(--reference-ink)!important}
:is(#synastry,#ask,#cabinet,#places) .reference-hero-note{position:absolute;right:10px;bottom:22px;max-width:35%;transform:rotate(-10deg);font:italic var(--today-type-heading)/1.3 var(--today-font-heading)!important;color:#67408a !important;text-align:center}
#ask .reference-hero-ask{min-height:225px}
#ask .reference-hero-ask::after{content:''!important;display:block!important;position:absolute;right:13%;top:8%;width:105px;height:105px;background:radial-gradient(circle,#fff 0%,#fffbd5 3%,#ffdd8d40 22%,transparent 62%) !important;clip-path:polygon(50% 0,54% 43%,100% 50%,54% 55%,50% 100%,46% 55%,0 50%,46% 43%);filter:drop-shadow(0 0 9px #ffe2a1);pointer-events:none}
/* The visible location control retains the application's existing relocation calculation. */
#chart .chart-location-toolbar{display:grid;gap:6px;margin:0 0 12px;padding:12px 16px;border:1px solid #ffffffe8 !important;border-radius:var(--reference-radius) !important;background:var(--reference-glass) !important;backdrop-filter:blur(4px)}
#chart .chart-location-toolbar .chart-location-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-width:none;padding:4px;border:1px solid #fff8 !important;border-radius:999px !important;background:#ffffff45 !important}
#chart .chart-location-toolbar legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#chart .chart-location-toolbar label{display:block;margin:0;min-width:0}
#chart .chart-location-toolbar .chart-location-switch span{min-height:40px;padding:8px 10px;border:1px solid transparent !important;border-radius:999px !important;background:none !important;color:var(--reference-muted) !important;font:400 var(--today-type-body)/1.35 var(--today-font-body);height:auto;transition:background .2s,box-shadow .2s}
#chart .chart-location-toolbar input:checked+span{border-color:#fff !important;background:linear-gradient(130deg,#eddcff,#d7b7f8) !important;color:#38164f !important;box-shadow:inset 0 1px 3px #fff,0 2px 8px #9162b333 !important}
#chart #chart-location-status{margin:0;text-align:center;color:var(--reference-muted) !important;font:400 var(--today-type-meta)/1.4 var(--today-font-body)!important}
/* Pair */
#synastry .reference-hero-pair{min-height:280px}
#synastry .reference-hero-pair .reference-hero-copy{width:44%}
#synastry .reference-hero-pair .reference-hero-note{left:32px;right:auto;bottom:22px;max-width:44%}
#synastry .pair-hero-wheels{position:absolute;top:0;right:-8px;z-index:0;width:58%;height:270px;pointer-events:none}
#synastry [data-pair-wheels]>svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 5px #fff9)}
#synastry .pair-form-disclosure{position:relative;z-index:1}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure{padding:0;overflow:hidden}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary{display:flex;align-items:center;gap:10px;min-height:50px;margin:0;padding:12px 38px 12px 18px!important;background:none!important;border:0!important;border-radius:0!important;color:var(--reference-ink)!important;font-weight:700;list-style:none;cursor:pointer}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary::-webkit-details-marker{display:none}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary>.reference-icon{width:24px;height:24px;color:#8147b3 !important}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary::before{content:none!important}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary::after{right:16px;color:#8759a5 !important}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure-body{padding:0 18px 18px}
#synastry #synastry-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
#synastry #synastry-form>label:nth-of-type(3),#synastry #synastry-form>.field-row,#synastry #synastry-form>.time-help,#synastry #synastry-form>button,#synastry #synastry-status{grid-column:1/-1}
#synastry #synastry-form :is(label,.field-row){min-width:0;margin:0}
#synastry #synastry-form .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#synastry #synastry-form input,#synastry #synastry-form select{min-height:44px;padding:9px 12px}
#synastry .time-help{margin:0}
#synastry .form-note{margin-bottom:0}
#synastry .reference-pair-result{display:grid;gap:12px;min-width:0;margin:0;padding:0;background:none!important;border:0!important;box-shadow:none!important;scroll-margin-top:20px}
#synastry .pair-overview-top{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,1fr);gap:22px;align-items:center}
#synastry .synastry-result-head{padding:0;margin:0;display:flex;align-items:flex-start;gap:10px;border:0 !important;background:none !important}
#synastry .synastry-result-head>div{order:2;min-width:0}
#synastry .synastry-result-head small{display:none}
#synastry .synastry-result-head h3{margin:0 0 6px}
#synastry .synastry-result-head p{margin:0;color:var(--reference-muted) !important;font-size:var(--today-type-meta)!important}
#synastry .synastry-emblem{display:grid;place-items:center;order:1;flex:none;width:42px;height:42px;border:1px solid #fff !important;border-radius:50% !important;background:#ffdfeb96 !important;color:#b02758 !important;font-size:var(--today-type-page)}
#synastry .pair-balance{padding-left:20px;border-left:1px solid #fff9 !important;display:grid;gap:5px}
#synastry .pair-balance strong{font:700 var(--today-type-page)/1.1 var(--today-font-heading)!important;color:var(--reference-ink) !important}
#synastry .pair-balance progress{display:block;width:100%;height:8px;overflow:hidden;border:1px solid #fff !important;border-radius:999px !important;background:#fff6 !important;appearance:none}
#synastry .pair-balance progress::-webkit-progress-bar{background:#fff6 !important}
#synastry .pair-balance progress::-webkit-progress-value{border-radius:999px !important;background:linear-gradient(90deg,#ae72ed,#e7cbff) !important}
#synastry .pair-balance progress::-moz-progress-bar{background:linear-gradient(90deg,#ae72ed,#e7cbff) !important;border-radius:999px !important}
#synastry .synastry-summary{margin:12px 0;color:var(--reference-muted) !important;font-size:var(--today-type-meta)!important}
#synastry .synastry-metrics{display:flex;flex-wrap:wrap;gap:7px 16px;margin:0 0 12px;padding:0;border:0 !important;background:none !important}
#synastry .synastry-metrics>div{display:flex;gap:5px;align-items:center;margin:0;padding:0;border:0 !important;background:none !important;font:400 var(--today-type-meta)/1.4 var(--today-font-body)}
#synastry .synastry-metrics strong{font:700 var(--today-type-meta)/1.4 var(--today-font-body);color:var(--reference-ink) !important}
#synastry .pair-topic-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#synastry .pair-topic-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:6px 10px;align-content:start;position:relative;min-width:0;text-align:left;min-height:115px;padding:12px;border:1px solid #fff !important;border-radius:22px !important;background:#ffffff69 !important;box-shadow:none !important;color:var(--reference-ink) !important}
#synastry .pair-topic-card>.reference-round-icon{grid-row:1/4}
#synastry .pair-topic-card h3{margin:0}
#synastry .pair-topic-card strong,#synastry .pair-topic-card p{margin:0;color:var(--reference-muted) !important}
#synastry .synastry-save-state{margin:8px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:0 !important;padding:0}
#synastry .synastry-save-state p,#synastry .synastry-save-state button{font-size:var(--today-type-meta)!important;margin:0}
#synastry .pair-synastry-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px}
#synastry .pair-synastry-preview>[data-pair-wheels]{height:160px}
#synastry .pair-synastry-panel>.reference-more{display:flex;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid #fff!important;border-radius:999px !important;background:#fff7!important;margin:12px 0 0}
#synastry .reference-insight-row{display:flex;align-items:center;gap:10px;min-width:0;width:100%;padding:10px;border:1px solid #fff9 !important;border-radius:18px !important;background:#ffffff6b !important;text-align:left;color:var(--reference-ink) !important}
#synastry .reference-insight-row>span:not(.reference-round-icon){min-width:0;flex:1}
#synastry .reference-insight-row strong,#synastry .reference-insight-row small{display:block}
#synastry .reference-insight-row strong{font:700 var(--today-type-heading)/1.3 var(--today-font-heading)!important}
#synastry .reference-insight-row small{margin-top:3px;color:var(--reference-muted) !important}
#synastry .reference-insight-row>.reference-chevron{width:9px;height:18px;flex:none}
#synastry .pair-harmony-item{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #fff7 !important;border-radius:16px !important;background:#ffffff5c !important;min-width:0}
#synastry .pair-harmony-item p{margin:0;font-size:var(--today-type-meta)!important;color:var(--reference-ink) !important}
#synastry .pair-harmony-item .reference-round-icon{width:32px;height:32px}
#synastry .pair-harmony-item svg{width:21px;height:21px}
#synastry .pair-story-body{display:flex;gap:12px;align-items:center;min-width:0}
#synastry .pair-story-body>div{min-width:0;flex:1}
#synastry .pair-story-body h3{margin:0 0 6px}
#synastry .pair-story-body p{margin:0;color:var(--reference-muted) !important;font-size:var(--today-type-meta)!important}
.reference-moon{display:block;flex:none;width:90px;height:90px;border-radius:50% !important;border:1px solid #fffc !important;background:url('assets/atlas-moon-phases-v114.webp') 100% 100%/300% 200% no-repeat !important;box-shadow:0 0 0 3px #ffffff55,0 0 18px #fff0df9c !important}
#synastry .reference-quote{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:14px;padding:12px;border:1px solid #fff7 !important;border-radius:18px !important;background:#fff5 !important;color:#704091 !important;font:italic var(--today-type-heading)/1.3 var(--today-font-heading)!important;text-align:left}
#synastry .reference-quote svg{width:26px;height:26px;color:#d67427 !important}
#synastry :is(.interaction-levels,.synastry-full){margin:0;min-width:0}
#synastry :is(.interaction-level,.seal-card,.overall-card,.recommendation-card,.synastry-full>details,.synastry-paywall){padding:16px;border:1px solid #fff9 !important;border-radius:var(--reference-radius) !important;background:var(--reference-glass) !important;color:var(--reference-ink) !important;box-shadow:none !important}
#synastry .synastry-full{display:grid;gap:12px}
#synastry .synastry-paywall{margin:0;background:linear-gradient(120deg,#fff8,#e9d6fa99) !important}
/* Ask */
/* Explicit visual order overrides the older mobile .chat-card order. */
#ask>.reference-page-stack>.ask-how{order:1}
#ask>.reference-page-stack>.ask-topic-chips{order:2}
#ask>.reference-page-stack>.ask-compose{order:3}
#ask>.reference-page-stack>.ask-answer{order:4}
#ask>.reference-page-stack>.ask-history{order:5}
#ask .chat-card.ask-compose{display:block;min-height:0;height:auto;padding:17px 20px;overflow:visible}
#ask .ask-balance{margin-left:auto;text-align:right;max-width:45%}
#ask .question-form{position:relative;display:flex;gap:8px;min-height:0;margin:0;padding:0}
#ask .question-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#ask .question-form textarea{min-height:96px;max-height:360px;padding:13px 14px 24px;border-radius:18px!important;background:#ffffff9c!important}
#ask .question-count{align-self:flex-end;margin:-32px 14px 8px;position:relative;z-index:1;color:#6f4e90 !important;pointer-events:none}
#ask .ask-context{margin:0;border:0 !important;background:none !important}
#ask .ask-context>summary{padding:4px 0;min-height:30px;color:#725087 !important;cursor:pointer;font-size:var(--today-type-meta)!important}
#ask .question-context-label{display:block;margin:8px 0 0}
#ask .question-context-label textarea{margin-top:6px;min-height:80px;padding:12px}
#ask .question-form button[type=submit]{justify-content:center;gap:8px;min-height:46px;margin:0;padding:10px 18px;border:2px solid #ffffffcf!important;border-radius:999px!important;background:linear-gradient(110deg,#c294f4,#cbb2fb 55%,#c29af0)!important;color:#32134d!important;box-shadow:inset 0 0 9px #fff9,0 0 0 3px #f7f0ff8c,0 0 16px #b784e273!important;font-family:var(--today-font-heading)!important;font-size:var(--today-type-heading)!important;font-weight:700}
#ask .question-form button[type=submit]::before{content:'✧';font-size:var(--today-type-page);line-height:1}
#ask :is(.spend-note,.question-hint){margin:9px 0 0;color:var(--reference-muted) !important}
#ask :is(.consult-controls,.consult-recovery){margin:0;padding:0}
#ask .consult-controls:not(:has(button:not([hidden]))){display:none}
#ask :is(.consult-details,.ask-routes){margin:8px 0 0;border:0 !important;border-top:1px solid #fff8;color:var(--reference-muted) !important}
#ask :is(.consult-details,.ask-routes)>summary{min-height:30px;padding:6px 0;color:#65407f !important;cursor:pointer;font-size:var(--today-type-meta)!important}
#ask .consult-details p{font-size:var(--today-type-meta)!important}
#ask .route-picker{margin:5px 0 10px;gap:5px}
#ask .route-picker select{min-height:42px}
#ask .consult-recovery{display:flex;flex-wrap:wrap;gap:6px}
#ask .consult-recovery .soft-button{margin-top:8px;min-height:34px;font-size:var(--today-type-meta)!important}
#ask .credit-panel{margin:8px 0;padding:8px 0;border-color:#fff8 !important}
#ask .credit-panel strong{font-size:var(--today-type-meta)!important}
#ask .ask-topic-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#ask .ask-topic-chips>button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:48px;padding:9px 7px;border:1px solid #fff !important;border-radius:20px !important;background:var(--reference-glass) !important;color:#5b247e !important;box-shadow:inset 0 1px #fff8 !important}
#ask .ask-topic-chips>button[aria-pressed=true]{background:linear-gradient(120deg,#e5c8ff,#f4e1ff) !important;box-shadow:inset 0 0 8px #fff,0 0 11px #e2b5fc !important}
#ask .ask-topic-chips svg{width:26px;height:26px;color:#8041cb !important}
#ask .ask-topic-chips>button:first-child svg{color:#b8284d !important}
#ask .ask-topic-chips>button:nth-child(4) svg{color:#dd6d1d !important}
#ask .ask-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#ask .ask-steps>article{position:relative;padding:12px 12px 12px 48px;border:1px solid #fff9 !important;border-radius:20px !important;background:#ffffff5e !important;min-width:0}
#ask .ask-step-number{position:absolute;left:11px;top:13px;display:grid;place-items:center;width:26px;height:26px;border:1px solid #fff !important;border-radius:50% !important;background:#eee0ff8c !important;color:#7849ac !important}
#ask .ask-steps .reference-round-icon{margin:0 0 8px}
#ask .ask-steps h3{margin:0 0 5px}
#ask .ask-steps p{margin:0;color:var(--reference-muted) !important}
#ask .ask-suggestion-hint{margin:12px 0 0;padding:0;color:var(--reference-muted)!important}
#ask .reference-inner-disclosure{margin-top:10px;border-top:1px solid #fff8}
#ask .reference-inner-disclosure:not([open]){display:none}
#ask .reference-inner-disclosure>summary{padding:10px 0;cursor:pointer}
#ask .question-rules{margin:0;padding:0;background:none !important;border:0 !important}
#ask .question-rules h3{margin:6px 0 10px}
#ask .question-rules ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0}
#ask .question-rules li{display:flex;gap:10px;margin:0;padding:10px;border:1px solid #fff6 !important;border-radius:14px !important;background:#ffffff3b !important}
#ask .question-rules img{width:24px;height:24px}
#ask .ask-answer-layout{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:start}
#ask .ask-answer-art{display:grid;place-items:center;min-height:110px;border-radius:24px !important;background:radial-gradient(ellipse,#fff5,transparent 70%) !important}
#ask .ask-answer-art .reference-moon{width:88px;height:88px;background-position:50% 100%}
#ask .messages,#ask .messages:not(:has(.user-message)){display:flex!important;flex-direction:column;gap:12px;min-height:0;max-height:none;height:auto;overflow:visible;padding:0;margin:0;scroll-margin-top:20px}
#ask .message{display:flex;gap:8px;margin:0;max-width:100%;align-self:stretch}
#ask .message .avatar{display:none}
#ask .message>div{min-width:0;max-width:100%;padding:0;border:0 !important;border-radius:0 !important;background:none !important;color:var(--reference-ink) !important;box-shadow:none !important}
#ask .message :is(p,small){color:var(--reference-ink) !important}
#ask .message small{display:block;margin:0 0 8px;color:var(--reference-muted) !important}
#ask .user-message{padding:10px 12px;border:1px solid #fff9 !important;border-radius:16px !important;background:#fff5 !important}
#ask .user-message>div{width:100%}
#ask .user-message p{box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;padding:12px 14px;border:1px solid #ffffffb3!important;border-radius:14px!important;background:#ffffff8c!important;color:var(--reference-ink)!important;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
html.tg-dark body.telegram-app #ask .user-message p{background:#ede3f6e0!important;color:#382346!important}
#ask :is(.reading-answer,.reading-panel,.reading-panel-body,.reading-toolbar,.reading-panel-title){min-width:0;max-width:100%;overflow-wrap:anywhere}
#ask .message .reading-panel{margin:7px 0;padding:12px;background:#ffffff62 !important;border-color:#fff9 !important;border-radius:15px !important;color:var(--reference-ink) !important}
#ask .message .reading-panel>summary{color:var(--reference-ink) !important;padding:0 25px 0 0}
#ask .message :is(.atlas-actions,.answer-feedback){display:flex;flex-wrap:wrap;gap:6px}
#ask .message :is(.atlas-actions,.answer-feedback) button{font-size:var(--today-type-meta)!important;min-height:34px;padding:6px 10px!important}
#ask .message .answer-feedback p{width:100%;margin-bottom:0;font-size:var(--today-type-meta)!important}
#ask .ask-history-row{display:flex;align-items:center;gap:9px;min-width:0;width:100%;padding:8px 10px;border:1px solid #fff9 !important;border-radius:15px !important;background:#ffffff73 !important;color:var(--reference-ink) !important;text-align:left}
#ask .ask-history-row>span:not(.reference-round-icon){flex:1;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#ask .ask-history-row .reference-round-icon{width:30px;height:30px}
#ask .ask-history-row .reference-round-icon svg{width:20px;height:20px}
#ask .ask-history-row time{flex:none;color:var(--reference-muted) !important;font-size:var(--today-type-meta)}
#ask .ask-history-row>.reference-chevron{width:8px;height:17px;flex:none}
/* Cabinet */
#cabinet .reference-hero-cabinet{min-height:200px}
#cabinet .reference-hero-note{bottom:14px}
#cabinet .cabinet-profile{display:flex;align-items:center;gap:22px;padding:18px 22px}
#cabinet .cabinet-avatar{position:relative;display:block;flex:none;padding:0;border:0 !important;background:none !important;box-shadow:none !important}
#cabinet .cabinet-avatar>.reference-moon{width:95px;height:95px;background-position:100% 0}
#cabinet .avatar-edit{position:absolute;bottom:0;right:0;display:grid;place-items:center;width:29px;height:29px;background:#f4e4ff !important;border:1px solid #fff !important;border-radius:50% !important;color:#7b39b1 !important;box-shadow:0 0 8px #e6bbff !important}
#cabinet .avatar-edit svg{width:17px;height:17px}
#cabinet .cabinet-profile-copy{min-width:0;flex:1}
#cabinet #cabinet-profile-name{margin:0 0 7px;font-size:var(--today-type-page)!important}
#cabinet #saved-profile{margin:0 0 9px;color:var(--reference-muted) !important;font-size:var(--today-type-meta)!important}
#cabinet .cabinet-profile-badge{display:inline-flex;align-items:center;gap:8px;min-height:30px;max-width:100%;padding:5px 12px;border:1px solid #fff !important;border-radius:999px !important;background:#fff7 !important;color:#47225f !important;text-align:left}
#cabinet .cabinet-profile-badge svg{width:20px;height:20px;color:#df862e !important;fill:#f6c579;stroke-width:1}
#cabinet .reference-icon-button{flex:none;display:grid;place-items:center;width:32px;height:40px;background:none !important;border:0 !important;box-shadow:none !important;color:#62387e !important}
#cabinet .reference-icon-button svg{width:10px;height:20px}
#cabinet .reference-menu-row{display:flex;align-items:center;gap:12px;min-height:58px;min-width:0;width:100%;padding:8px 12px;border:1px solid #fffb !important;border-radius:18px !important;background:#ffffff73 !important;color:var(--reference-ink) !important;text-align:left;box-shadow:none !important}
#cabinet .reference-row-copy{display:block;flex:1;min-width:0}
#cabinet .reference-row-copy strong,#cabinet .reference-row-copy small{display:block}
#cabinet .reference-row-copy small,#cabinet #cabinet-access-description{margin:3px 0 0;font-size:var(--today-type-meta)!important;color:var(--reference-muted) !important}
#cabinet .reference-menu-row>.reference-chevron{width:9px;height:18px;flex:none}
#cabinet .cabinet-bonus-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#cabinet .cabinet-bonus-grid>button{display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 8px;align-content:start;align-items:start;min-width:0;padding:12px 10px;border:1px solid #fff9 !important;border-radius:20px !important;background:#ffffff65 !important;text-align:left;color:var(--reference-ink) !important}
#cabinet .cabinet-bonus-grid .reference-round-icon{grid-row:1/3}
#cabinet .cabinet-bonus-grid strong{font:700 var(--today-type-heading)/1.2 var(--today-font-heading)!important;overflow-wrap:normal}
#cabinet .cabinet-bonus-grid small{margin:0}
#cabinet .cabinet-support .reference-menu-row{min-height:44px;padding:7px 10px;border-radius:14px !important;gap:10px}
#cabinet .cabinet-support .reference-round-icon{width:28px;height:28px;border:0 !important;background:none !important;box-shadow:none !important}
#cabinet .cabinet-support .reference-round-icon svg{width:23px;height:23px}
#cabinet .cabinet-support .reference-row-copy{display:flex;align-items:center;gap:15px}
#cabinet .cabinet-support .reference-row-copy small{margin:0;flex:1}
#cabinet .reference-disclosure .atlas-panel,#cabinet .language-settings{margin:0!important;padding:0;background:none !important;border:0!important;box-shadow:none !important}
#cabinet .reference-disclosure .atlas-panel>h3{margin:0 0 10px}
#cabinet .reference-disclosure .atlas-toolbar{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}
#cabinet .reference-disclosure .atlas-toolbar button{font-size:var(--today-type-meta)!important;padding:6px 10px!important;min-height:34px}
#cabinet .atlas-record{padding:14px;margin:10px 0;border:1px solid #fff9 !important;border-radius:17px !important;background:#ffffff65 !important;box-shadow:none !important;color:var(--reference-ink) !important}
#cabinet .atlas-record h4{margin:7px 0}
#cabinet .atlas-record :is(p,time){color:var(--reference-muted) !important}
#cabinet .atlas-record time{font-size:var(--today-type-meta)}
#cabinet .atlas-actions{display:flex;flex-wrap:wrap;gap:6px}
#cabinet .atlas-record button{font-size:var(--today-type-meta)!important;min-height:34px;padding:6px 10px!important}
#cabinet .atlas-record .reading-panel{padding:12px;border-color:#fff9 !important;border-radius:14px !important;background:#fff5 !important;color:var(--reference-ink) !important}
#cabinet .atlas-record .reading-panel p{color:var(--reference-ink) !important}
#cabinet #cabinet-data-panel>p,#cabinet #cabinet-data-panel>button{margin:10px 18px 18px}
#cabinet :is(#cabinet-status,#my-telegram-id):empty{display:none}
/* Cartography: real coastlines and real calculated tracks in both overview and detail. */
#places #places-profile{margin:0;padding:0 4px}
#places .places-world-card{position:relative;padding:16px 18px 10px;overflow:hidden}
#places .places-world-card .reference-panel-heading{position:relative;z-index:1;margin-bottom:0}
#places .places-preview-frame{position:relative;margin:0 -12px;min-width:0;aspect-ratio:2.2}
#places #places-preview{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 12px #fff9)}
#places .places-compass{position:absolute;left:15px;bottom:12px;display:grid;place-items:center;width:45px;height:45px;border:1px solid #fff9 !important;border-radius:50% !important;background:#f7ebff6b !important;color:#85558f !important}
#places .places-compass svg{width:35px;height:35px;stroke-width:.8}
#places .places-map-signature{position:absolute;right:10px;bottom:10px;color:#704884 !important;text-align:center;font:italic var(--today-type-heading)/1.3 var(--today-font-heading)!important;transform:rotate(-9deg)}
#places .places-preview-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;margin:0;padding:6px 10px;border:1px solid #fff8 !important;border-radius:15px !important;background:#fff5 !important;color:var(--reference-muted) !important}
#places .places-preview-legend>span{display:flex;gap:5px;align-items:center}
#places .places-preview-legend i{width:15px;height:0;border-top:2px solid #dc9234}
#places .places-preview-legend i.line-moon{border-color:#9b75ce !important;border-top-style:dashed}
#places .places-preview-legend i.line-venus{border-color:#d963a8 !important;border-top-style:dashed}
#places .places-preview-legend i.line-jupiter{border-color:#6998d0 !important}
#places #places-preview-caption{margin:7px 0 0;text-align:center}
#places :is(.places-paywall,.places-start){border:0 !important;background:none !important;box-shadow:none !important;margin:0;padding:0}
#places .places-paywall{padding:18px 20px;border:1px solid #fff!important;border-radius:var(--reference-radius) !important;background:var(--reference-glass) !important;color:var(--reference-ink) !important}
#places .places-paywall h2{margin-top:0}
#places .places-buy-options{gap:9px}
#places .places-start .terms-check{display:flex;align-items:flex-start;gap:8px;margin:0}
#places .places-start p{font-size:var(--today-type-meta)!important;color:var(--reference-muted) !important}
#places #places-status{margin-bottom:0;font-size:var(--today-type-meta)!important;color:var(--reference-muted) !important}
#places .places-goal-picker{display:grid;gap:12px;min-width:0;margin:0;padding:0;border:0 !important;background:none !important}
#places .places-goal-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#places .places-goal-tabs>button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:8px;border:1px solid #fff !important;border-radius:20px !important;background:var(--reference-glass) !important;color:#512777 !important;box-shadow:inset 0 1px #fff7 !important}
#places .places-goal-tabs svg{width:26px;height:26px;color:#8043b3 !important}
#places .places-goal-tabs>button[aria-selected=true]{background:linear-gradient(120deg,#e5bdff,#d0a0f6) !important;color:#3b155b !important;box-shadow:inset 0 0 8px #fff,0 0 0 2px #ffffff73,0 0 12px #c798e3 !important}
#places .places-goal-tabs>button[data-place-goal=love] svg{color:#be2f61 !important}
#places .places-recommendation-panel{padding:16px 16px 12px}
#places .places-recommendation-panel>.reference-panel-heading{margin-bottom:4px}
#places #places-goals-title{margin:0 0 12px}
#places .places-recommendations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0;margin:0;background:none !important;border:0 !important}
#places .places-recommendations>p{grid-column:1/-1;margin:0 0 3px;font-size:var(--today-type-meta)!important}
#places .places-recommendations:empty::before{content:'Подтвердите точность времени рождения и нажмите «Подобрать города для меня».';grid-column:1/-1;color:var(--reference-muted) !important;padding:8px}
#places .place-recommendation{position:relative;min-width:0;display:flex;flex-direction:column;gap:5px;align-items:flex-start;padding:0 10px 10px;margin:0;border:1px solid #fffc !important;border-radius:18px !important;background:#fff6 !important;overflow:hidden;box-shadow:none !important}
#places .place-recommendation:nth-of-type(n+4){display:none}
#places .places-recommendations.show-all .place-recommendation:nth-of-type(n+4){display:flex}
#places .place-city-map{display:block;flex:none;width:calc(100% + 20px);max-width:none;height:112px;margin:0 -10px 3px;background:linear-gradient(135deg,#e1dafb,#f9d7e5) !important;border-bottom:1px solid #fff9 !important}
#places .place-recommendation .eyebrow{display:none}
#places .place-recommendation h3{margin:0;font-size:var(--today-type-heading)!important}
#places .place-recommendation>p{margin:0;max-width:100%}
#places .place-recommendation>details{font-size:var(--today-type-meta)!important;width:100%}
#places .place-recommendation>details>summary{font-size:var(--today-type-meta)!important;padding:4px 15px 4px 0;min-height:0;background:none !important;cursor:pointer}
#places .place-recommendation>.soft-button{margin-top:auto;min-height:32px;padding:5px 9px!important;font-size:var(--today-type-meta)!important;width:100%}
#places .places-bottom-grid .reference-panel-heading{gap:8px;margin-bottom:10px}
#places #places-nearest{margin:0;padding:0;background:none !important;border:0 !important;box-shadow:none !important;min-width:0}
#places .places-nearest-card:has(#places-nearest:not(:empty)) .places-nearest-empty{display:none}
#places #places-nearest h3{margin:0 0 10px}
#places .places-near-line{display:block;width:100%;text-align:left;padding:10px;margin:6px 0;border:1px solid #fff9 !important;border-radius:15px !important;background:#fff6 !important;color:var(--reference-ink) !important;font-size:var(--today-type-meta)!important}
#places #places-save-city{font-size:var(--today-type-meta)!important;min-height:34px;padding:6px 10px!important;margin:3px 0 10px}
#places .saved-city-row{display:flex;gap:8px;align-items:center;min-width:0}
#places .saved-city-open{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:45px;padding:8px 10px;border:1px solid #fff9 !important;border-radius:15px !important;background:#fff6 !important;color:var(--reference-ink) !important;text-align:left}
#places .saved-city-open .reference-round-icon{width:28px;height:28px}
#places .saved-city-open svg{width:18px;height:18px}
#places .saved-city-open>span:not(.reference-round-icon){min-width:0;overflow-wrap:anywhere}
#places .saved-city-remove{width:26px;height:30px;flex:none;padding:0;border:0 !important;border-radius:50% !important;background:#fff5 !important;color:#7a4f8f !important;font-size:var(--today-type-heading)!important}
#places .places-save-note{margin:9px 0 0}
#places .places-map-details{padding:0;border:1px solid #fff!important;border-radius:var(--reference-radius) !important;background:var(--reference-glass) !important;color:var(--reference-ink) !important;overflow:hidden}
#places .places-map-details>summary{padding:14px 35px 14px 18px!important;background:none!important;color:var(--reference-ink)!important;cursor:pointer}
#places .places-map-details>p,#places .places-map-details>.places-attribution{margin:10px 16px;color:var(--reference-muted) !important}
#places .places-map-details>.places-tools,#places .places-map-details>.places-line-buttons,#places .places-map-details>.places-city-form,#places .places-map-details>.places-reading-grid{margin:12px 16px}
#places .places-map-frame{margin:12px 16px;border:1px solid #fff !important;border-radius:17px !important;background:#eadff4 !important;overflow:hidden;touch-action:auto}
#places #places-map{display:block;width:100%;min-height:0;height:auto;aspect-ratio:2;touch-action:auto}
#places .places-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#places .places-tools>label{display:flex;align-items:center;gap:8px}
#places .places-tools select{min-width:125px}
#places .places-tools>div{display:flex;flex-wrap:wrap;gap:5px}
#places .places-tools .soft-button{padding:6px 10px!important;min-width:34px;min-height:34px}
#places .places-line-buttons{display:flex;flex-wrap:wrap;gap:6px}
#places .places-line-buttons button{font-size:var(--today-type-meta)!important;min-height:34px;padding:6px 10px!important}
#places .places-city-form{padding:12px;border:1px solid #fff8 !important;border-radius:16px !important;background:#fff4 !important}
#places .places-city-form>div{display:flex;flex-wrap:wrap;gap:8px}
#places .places-city-form input{flex:1;min-width:140px}
#places .places-reading-grid{display:block}
#places .places-reading-grid article{padding:14px;border:1px solid #fff8 !important;border-radius:18px !important;background:#fff5 !important;color:var(--reference-ink) !important}
#places .places-reading-grid .reading-panel{background:#fff4 !important;border-color:#fff8 !important;color:var(--reference-ink) !important}
#places .places-attribution{font-size:var(--today-type-meta)!important}
#places .access-details{padding:12px 16px;border:1px solid #fff9 !important;border-radius:18px !important;background:#fff5 !important}
#places .access-details p{font-size:var(--today-type-meta)!important;color:var(--reference-muted) !important}
/* Phones keep the reference's compact compositions without squeezing long text. */
@media(max-width:760px){
 :is(#synastry,#ask,#cabinet,#places).reference-view,:is(#synastry,#ask,#cabinet,#places) .reference-page-stack{gap:8px}
 :is(#synastry,#ask,#cabinet,#places) .reference-glass{padding:12px}
 :is(#synastry,#ask,#cabinet,#places) .reference-two-columns{gap:7px}
 :is(#synastry,#ask,#cabinet,#places) .reference-panel-heading{gap:7px;margin-bottom:10px}
 :is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>.reference-icon{width:22px;height:22px}
 :is(#synastry,#ask,#cabinet,#places) .reference-panel-heading>h2{flex:1}
 :is(#synastry,#ask,#cabinet,#places) .reference-more{gap:4px}
 :is(#synastry,#ask,#cabinet,#places) .section-heading.reference-hero{min-height:175px;padding:15px 16px!important}
 :is(#synastry,#ask,#cabinet,#places) .reference-hero-copy{width:70%}
 :is(#synastry,#ask,#cabinet,#places) .reference-hero-note{right:0;bottom:17px;font-size:var(--today-type-meta)!important}
 :is(#synastry,#ask,#cabinet,#places) .reference-round-icon{width:34px;height:34px}
 :is(#synastry,#ask,#cabinet,#places) .reference-round-icon svg{width:22px;height:22px}
 :is(#synastry,#ask,#cabinet,#places) .reference-disclosure{padding:0}
 :is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary{padding:10px 32px 10px 12px!important;gap:7px}
 :is(#synastry,#ask,#cabinet,#places) .reference-disclosure-body{padding:0 12px 12px}
 #chart .chart-location-toolbar{margin-bottom:8px;padding:9px}
 #chart .chart-location-toolbar .chart-location-switch span{min-height:40px;padding:8px 7px;font-size:var(--today-type-meta)}
 #synastry .reference-hero-pair{min-height:205px}
 #synastry .reference-hero-pair .reference-hero-copy{width:47%}
 #synastry .reference-hero-pair .reference-hero-note{left:17px;bottom:18px}
 #synastry .pair-hero-wheels{height:200px;top:0;right:-2px;width:57%}
 #synastry .pair-overview-top{grid-template-columns:minmax(0,1.25fr) minmax(100px,1fr);gap:10px}
 #synastry .pair-balance{padding-left:9px}
 #synastry .synastry-result-head{gap:7px}
 #synastry .synastry-emblem{width:28px;height:28px;font-size:var(--today-type-heading)}
 #synastry .synastry-metrics{gap:4px 10px}
 #synastry .pair-topic-cards{gap:6px}
 #synastry .pair-topic-card{display:flex;flex-direction:column;gap:5px;min-height:130px;padding:9px 8px;border-radius:17px !important}
 #synastry .pair-topic-card h3{font-family:var(--today-font-body)!important;font-size:var(--today-type-meta)!important;overflow-wrap:normal}
 #synastry .pair-dashboard .reference-panel-heading{gap:5px;flex-wrap:wrap}
 #synastry .pair-dashboard .reference-panel-heading .reference-more{margin-left:auto}
 #synastry .pair-dashboard .reference-panel-heading>.reference-icon{width:21px;height:21px}
 #synastry .pair-synastry-preview{grid-template-columns:1fr;gap:0}
 #synastry .pair-synastry-preview>[data-pair-wheels]{height:105px}
 #synastry .pair-synastry-preview>p{font-size:var(--today-type-meta)!important;margin:5px 0}
 #synastry .pair-synastry-panel>.reference-more{font-size:var(--today-type-meta)!important;min-height:34px;padding:7px}
 #synastry .reference-insight-row{gap:6px;padding:8px 6px;border-radius:15px !important;flex-wrap:wrap}
 #synastry .reference-insight-row .reference-round-icon{width:28px;height:28px}
 #synastry .reference-insight-row .reference-round-icon svg{width:19px;height:19px}
 #synastry .reference-insight-row>span:not(.reference-round-icon){min-width:70px}
 #synastry .reference-insight-row strong{font-size:var(--today-type-meta)!important}
 #synastry .reference-insight-row>.reference-chevron{display:none}
 #synastry .pair-harmony-item{padding:8px 7px;gap:7px}
 #synastry .pair-harmony-item .reference-round-icon{width:24px;height:24px}
 #synastry .pair-harmony-item svg{width:17px;height:17px}
 #synastry .pair-story-body{display:block}
 #synastry .pair-story-body .reference-moon{width:65px;height:65px;float:left;margin:0 9px 7px 0}
 #synastry .pair-story-body h3{font-size:var(--today-type-meta)!important}
 #synastry .reference-quote{clear:both;gap:6px;padding:9px;font-size:var(--today-type-meta)!important}
 #synastry .reference-quote svg{width:20px;height:20px}
 #synastry .reference-pair-result{gap:8px}
 #ask .chat-card.ask-compose{padding:12px}
 #ask .ask-topic-chips{gap:5px}
 #ask .ask-topic-chips>button{flex-direction:column;gap:4px;min-height:56px;padding:7px 3px;border-radius:16px !important;font-size:var(--today-type-meta)!important}
 #ask .ask-topic-chips svg{width:22px;height:22px}
 #ask .ask-steps{gap:6px}
 #ask .ask-steps>article{padding:9px 8px;border-radius:16px !important}
 #ask .ask-step-number{left:auto;right:7px;top:8px;width:21px;height:21px;font-size:var(--today-type-meta)}
 #ask .ask-steps .reference-round-icon{width:30px;height:30px;margin-bottom:7px}
 #ask .ask-steps .reference-round-icon svg{width:20px;height:20px}
 #ask .ask-steps h3{font-size:var(--today-type-meta)!important}
 #ask .ask-answer-layout{grid-template-columns:64px minmax(0,1fr);gap:9px}
 #ask .ask-answer-art{min-height:75px}
 #ask .ask-answer-art .reference-moon{width:61px;height:61px}
 #ask .ask-answer:has(.user-message) .ask-answer-layout{grid-template-columns:minmax(0,1fr)}
 #ask .ask-answer:has(.user-message) .ask-answer-art{display:none}
 #ask .ask-answer .reference-panel-heading>.reference-kicker{display:none}
 #ask .ask-history-row{gap:6px;padding:7px 8px}
 #ask .ask-history-row time{max-width:62px;text-align:right}
 #ask .question-rules ul{grid-template-columns:1fr}
 #cabinet .reference-hero-cabinet{min-height:150px}
 #cabinet .cabinet-profile{gap:12px;padding:13px}
 #cabinet .cabinet-avatar>.reference-moon{width:64px;height:64px}
 #cabinet #cabinet-profile-name{font-size:var(--today-type-heading)!important;margin-bottom:5px}
 #cabinet .cabinet-profile-badge{padding:4px 8px;gap:5px}
 #cabinet .cabinet-profile-badge svg{width:17px;height:17px}
 #cabinet .reference-icon-button{width:15px}
 #cabinet .reference-menu-row{gap:9px;min-height:52px;padding:7px 9px;border-radius:16px !important}
 #cabinet .reference-menu-row>.reference-round-icon{width:31px;height:31px}
 #cabinet .reference-menu-row>.reference-round-icon svg{width:21px;height:21px}
 #cabinet .cabinet-bonus-grid{gap:5px}
 #cabinet .cabinet-bonus-grid>button{display:flex;flex-direction:column;gap:6px;padding:9px 7px;border-radius:16px !important}
 #cabinet .cabinet-bonus-grid strong{font-size:var(--today-type-meta)!important}
 #cabinet .cabinet-bonus-grid small{overflow-wrap:normal}
 #cabinet .cabinet-support .reference-row-copy{display:block}
 #cabinet .cabinet-support .reference-row-copy small{margin-top:2px}
 #places .places-world-card{padding:12px 10px 9px}
 #places .places-world-card .reference-panel-heading{gap:6px}
 #places .places-world-card .reference-more{max-width:45%;font-size:var(--today-type-meta)!important}
 #places .places-preview-frame{margin:0 -5px;aspect-ratio:1.75}
 #places .places-compass{width:33px;height:33px;left:8px;bottom:6px}
 #places .places-compass svg{width:28px;height:28px}
 #places .places-map-signature{font-size:var(--today-type-meta)!important;bottom:6px;right:5px}
 #places .places-preview-legend{gap:5px 10px;padding:6px}
 #places .places-preview-legend i{width:11px}
 #places .places-goal-tabs{gap:5px;grid-template-columns:repeat(4,minmax(0,1fr))}
 #places .places-goal-tabs>button{flex-direction:column;gap:4px;padding:8px 3px;min-height:56px;font-size:var(--today-type-meta)!important;border-radius:16px !important}
 #places .places-goal-tabs>button[data-place-goal=self]{grid-column:1/-1;flex-direction:row;min-height:32px;padding:4px 8px;justify-self:center;border-radius:999px !important}
 #places .places-goal-tabs>button[data-place-goal=self] svg{width:17px;height:17px}
 #places .places-goal-tabs svg{width:24px;height:24px}
 #places .places-recommendations{gap:6px}
 #places .place-recommendation{padding:0 7px 8px;border-radius:14px !important;gap:4px}
 #places .place-city-map{height:80px;width:calc(100% + 14px);margin:0 -7px 3px}
 #places .place-recommendation h3{font-family:var(--today-font-body)!important;font-size:var(--today-type-meta)!important;font-weight:700!important}
 #places .place-recommendation>p:nth-of-type(2){display:none}
 #places .place-recommendation>details{margin-top:3px}
 #places .place-recommendation>.soft-button{min-height:32px;padding:5px!important}
 #places .places-bottom-grid .reference-panel-heading{flex-wrap:wrap;gap:5px}
 #places .places-bottom-grid .reference-panel-heading>h2{min-width:90px}
 #places .places-bottom-grid .reference-panel-heading>.reference-more{padding:0;min-height:24px}
 #places .saved-city-open{padding:7px;gap:6px}
 #places .saved-city-open .reference-round-icon{display:none}
 #places .saved-city-remove{width:22px}
 #places .places-map-details>.places-tools,#places .places-map-details>.places-line-buttons,#places .places-map-details>.places-city-form,#places .places-map-details>.places-reading-grid,#places .places-map-frame{margin:10px}
}
@media(max-width:359px){
 #synastry .pair-dashboard,#places .places-bottom-grid{grid-template-columns:minmax(0,1fr)}
 #synastry .pair-synastry-preview{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #ask .ask-steps{grid-template-columns:minmax(0,1fr)}
 #ask .ask-steps>article{padding-left:50px;min-height:66px}
 #ask .ask-steps .reference-round-icon{position:absolute;left:9px;top:12px}
 #ask .ask-step-number{display:none}
 #cabinet .cabinet-bonus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #places .places-recommendations{grid-template-columns:minmax(0,1fr)}
 #places .place-city-map{height:120px}
}
@media(prefers-reduced-motion:reduce){:is(#synastry,#ask,#cabinet,#places){animation:none!important}:is(#synastry,#ask,#cabinet,#places) *{transition:none!important}}
/* Telegram dark mode keeps the same surfaces and readable, warm text. */
html.tg-dark body.telegram-app :is(#synastry,#ask,#cabinet,#places){--control-fill:#4c386499;--chip-fill:#4a365b;--disclosure-fill:#402d547d;--disclosure-open:#5036678c;--disclosure-edge:#a387bb}
html.tg-dark body.telegram-app :is(#synastry,#ask,#cabinet,#places) :is(.reference-menu-row,.reference-insight-row,.pair-harmony-item,.ask-history-row,.ask-steps>article,.pair-topic-card,.cabinet-bonus-grid>button,.place-recommendation,.saved-city-open,.places-near-line,.atlas-record){background:#46315499 !important;border-color:#ba9dcf6b !important;color:var(--reference-ink) !important}
html.tg-dark body.telegram-app :is(#synastry,#ask,#cabinet,#places) :is(input,select,textarea){background:#3a2949e0!important;border-color:#a58bb9!important;color:var(--reference-ink)!important}
html.tg-dark body.telegram-app :is(#synastry,#ask,#cabinet,#places) :is(input,textarea)::placeholder{color:#d4bedf!important}
html.tg-dark body.telegram-app :is(#synastry,#ask,#cabinet,#places) .soft-button{background:#5b3b74a6!important;color:#f8e9ff!important;border-color:#b395c4!important}
html.tg-dark body.telegram-app :is(#synastry,#ask,#cabinet,#places) .reference-hero :is(h1,p,.reference-kicker){color:#fff3ff!important;text-shadow:0 1px 9px #331e5c}
html.tg-dark body.telegram-app #cabinet .cabinet-profile-badge{background:#4c3169 !important;color:#fff0ff !important;border-color:#c8a8df !important}
html.tg-dark body.telegram-app #chart .chart-location-toolbar input:checked+span{background:#704c92 !important;color:#fff1ff !important}
html.tg-dark body.telegram-app #chart .chart-location-toolbar{border-color:#af92c4 !important}
/* Reserve the disclosure mark's width even when a translated heading wraps. */
:is(#synastry,#ask,#cabinet,#places) details:not(.reference-disclosure)>summary{position:relative;min-height:36px;padding:8px 34px 8px 10px!important;border:1px solid #ffffff8c!important;border-radius:12px!important;background:#ffffff45!important;box-shadow:none!important;color:var(--reference-ink)!important}
:is(#synastry,#ask,#cabinet,#places) details>summary::after{right:9px;width:18px;height:20px;border:0!important;border-radius:0!important;color:var(--reference-muted)!important;font:400 var(--today-type-heading)/1 var(--today-font-body)!important}
:is(#synastry,#ask,#cabinet,#places) .reference-disclosure>summary::after{right:13px}
:is(#synastry,#ask,#cabinet,#places) .reference-more[aria-expanded]{padding:5px 0!important;border:0!important;background:none!important;min-height:30px;box-shadow:none!important}
:is(#synastry,#ask,#cabinet,#places) .reference-more[aria-expanded]::after{display:none!important;content:none!important}
#ask .ask-answer .reading-toolbar button[aria-expanded]{display:inline-grid;grid-template-columns:minmax(0,1fr) 24px;column-gap:10px;align-items:center;flex:0 1 auto;min-width:0;max-width:100%;min-height:44px;margin-left:auto;padding:10px 12px!important;white-space:normal;overflow-wrap:anywhere;text-align:left}
#ask .ask-answer .reading-toolbar button[aria-expanded]::after{position:static;grid-column:2;grid-row:1;box-sizing:border-box;align-self:center;transform:none;width:24px;height:24px;color:var(--reference-ink)!important}
#ask .ask-context:not(:has(.question-context-label:not([hidden]))){display:none}
#ask .ask-balance:empty{display:none}
#chart .chart-location-toolbar+.chart-orbit-stage{margin-top:0}
#synastry .reference-hero-pair .reference-kicker{display:none}

#synastry #synastry-form>.synastry-circle-picker{grid-column:1/-1;min-width:0}
#synastry .synastry-circle-picker label{display:grid;gap:8px}
