/* ════════════════════════════════════════════════════
   HS Respiro v2 — Sistema de diseño completo
   Paleta: Sage #4A7566 · Sand #C4A882 · Mist #8FA8B8
   ════════════════════════════════════════════════════ */

/* ── Google Fonts hint (cargadas via PHP) ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
.hsr-app {
    --sage:        #4A7566;
    --sage-mid:    #7C9E8F;
    --sage-light:  #B8D4CA;
    --sage-soft:   #EAF3EE;
    --sage-deep:   #2D5245;
    --sand:        #C4A882;
    --sand-mid:    #D4BC9E;
    --sand-light:  #E8D9C4;
    --sand-soft:   #F5EDE0;
    --mist:        #8FA8B8;
    --mist-mid:    #AFC4D0;
    --mist-light:  #C8DCE8;
    --mist-soft:   #EBF3F8;

    --bg:          #F7F9F7;
    --surface:     #FFFFFF;
    --surface-2:   #F1F5F2;
    --surface-3:   #E8EDE9;
    --ink:         #1A2420;
    --ink-mid:     #3D524A;
    --ink-soft:    #7A918A;
    --ink-faint:   #B0C0BA;
    --border:      rgba(74,117,102,.12);
    --border-med:  rgba(74,117,102,.22);

    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   22px;
    --r-xl:   28px;
    --r-full: 9999px;

    --ease:   cubic-bezier(.4,0,.2,1);
    --fast:   180ms;
    --mid:    280ms;
    --slow:   420ms;

    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--bg);
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    border-radius: var(--r-xl);
    overflow: hidden;
    min-height: 640px;
}

/* ── Pantallas ── */
.hsr-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.875rem 2.5rem;
    min-height: 640px;
    animation: hsr-in var(--slow) var(--ease) both;
    gap: 1.25rem;
}
.hsr-screen.hsr-active { display: flex; }
@keyframes hsr-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast ── */
.hsr-toast {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--r-full);
    padding: .45rem 1rem;
    font-size: .76rem;
    opacity: 0;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
    white-space: nowrap;
    pointer-events: none;
    z-index: 9;
}
.hsr-toast.hsr-toast--on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════════
   PANTALLA: REGISTRO
   ════════════════════════════════════════════════ */
.hsr-screen--register {
    gap: 0;
    justify-content: flex-start;
    background: var(--bg);
}
.hsr-reg-visual {
    position: relative;
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.hsr-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}
.hsr-orb--a {
    width: 180px; height: 180px;
    background: var(--sage-soft);
    top: -40px; left: -30px;
    animation: hsr-float-a 8s ease-in-out infinite;
}
.hsr-orb--b {
    width: 130px; height: 130px;
    background: var(--mist-soft);
    top: -20px; right: -20px;
    animation: hsr-float-b 10s ease-in-out infinite;
}
.hsr-orb--c {
    width: 80px; height: 80px;
    background: var(--sand-soft);
    bottom: -10px; left: 50%;
    animation: hsr-float-c 7s ease-in-out infinite;
}
@keyframes hsr-float-a { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8px,-12px) scale(1.05)} }
@keyframes hsr-float-b { 0%,100%{transform:translate(0,0)} 40%{transform:translate(-10px,8px) scale(.95)} }
@keyframes hsr-float-c { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-10px)} }

.hsr-reg-content {
    padding: 0 0 1.5rem;
    text-align: center;
}
.hsr-reg-wordmark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: .85rem;
    color: var(--sage);
    letter-spacing: .12em;
    text-transform: lowercase;
    margin-bottom: .75rem;
}
.hsr-reg-title {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 .75rem;
}
.hsr-reg-title em {
    font-style: italic;
    color: var(--sage);
}
.hsr-reg-sub {
    font-size: .875rem;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}
.hsr-reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px;
}

/* ── Campos ── */
.hsr-field { display: flex; flex-direction: column; gap: 5px; }
.hsr-field__label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--ink-mid);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hsr-field__input {
    border: 1.5px solid var(--border-med);
    border-radius: var(--r-md);
    padding: .72rem 1rem;
    font-size: .9rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--surface);
    outline: none;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.hsr-field__input:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(74,117,102,.1);
}
.hsr-field__input::placeholder { color: var(--ink-faint); }

/* ── Botones ── */
.hsr-btn-primary {
    background: var(--sage);
    color: #fff;
    border: none;
    border-radius: var(--r-full);
    padding: .85rem 2rem;
    font-size: .9rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background var(--fast), transform var(--fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.hsr-btn-primary:hover  { background: var(--sage-deep); }
.hsr-btn-primary:active { transform: scale(.98); }

.hsr-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border-med);
    border-radius: var(--r-full);
    padding: .6rem 1.25rem;
    font-size: .85rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink-mid);
    cursor: pointer;
    transition: background var(--fast), border-color var(--fast), transform var(--fast);
    display: flex;
    align-items: center;
    gap: 6px;
}
.hsr-btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--sage-light);
}
.hsr-btn-ghost:active { transform: scale(.98); }

.hsr-link-btn {
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
}
.hsr-link-btn:hover { color: var(--sage); }

/* ════════════════════════════════════════════════
   PANTALLA: HOME
   ════════════════════════════════════════════════ */
.hsr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: .25rem;
}
.hsr-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink-mid);
    letter-spacing: .02em;
}
.hsr-logo em { font-style: italic; color: var(--sage); }

.hsr-user-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: background var(--fast);
    font-family: 'DM Sans', sans-serif;
}
.hsr-user-pill:hover { background: var(--surface-3); }

.hsr-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--sage);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500; color: #fff;
    flex-shrink: 0;
}

.hsr-user-pill span {
    font-size: .78rem;
    color: var(--ink-mid);
}

.hsr-greeting {
    width: 100%;
    margin-bottom: -.25rem;
}
.hsr-greeting h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.65rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.25;
    margin: 0;
}
.hsr-greeting p {
    font-size: .84rem;
    color: var(--ink-soft);
    margin: 4px 0 0;
}

/* ── Grid de modos ── */
.hsr-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.hsr-mode-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.1rem 1rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: transform var(--mid) var(--ease),
                border-color var(--mid) var(--ease),
                box-shadow var(--mid) var(--ease),
                background var(--fast);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
}
.hsr-mode-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--mid) var(--ease);
}
.hsr-mode-card--sage::after  { background: var(--sage-soft); }
.hsr-mode-card--sand::after  { background: var(--sand-soft); }
.hsr-mode-card--mist::after  { background: var(--mist-soft); }
.hsr-mode-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 10px 28px rgba(74,117,102,.12); }
.hsr-mode-card:hover::after { opacity: 1; }
.hsr-mode-card:active { transform: scale(.97); }

.hsr-mc-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .7rem;
    position: relative; z-index: 1;
}
.hsr-mode-card--sage .hsr-mc-icon { background: var(--sage-soft);  color: var(--sage); }
.hsr-mode-card--sand .hsr-mc-icon { background: var(--sand-soft);  color: #8B6A3E; }
.hsr-mode-card--mist .hsr-mc-icon { background: var(--mist-soft);  color: var(--mist); }

.hsr-mc-label {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
    display: block;
    position: relative; z-index: 1;
}
.hsr-mc-desc {
    font-size: .72rem;
    color: var(--ink-soft);
    display: block;
    margin-top: 2px;
    line-height: 1.4;
    position: relative; z-index: 1;
}

/* ── Sonidos ── */
.hsr-sound-panel {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.hsr-sound-label {
    font-size: .7rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: .07em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.hsr-sound-btns {
    display: flex;
    gap: 5px;
    flex: 1;
    flex-wrap: wrap;
}
.hsr-snd-btn {
    display: flex; align-items: center; gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px 11px;
    font-size: .72rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink-mid);
    cursor: pointer;
    transition: all var(--fast);
}
.hsr-snd-btn:hover { background: var(--sage-soft); border-color: var(--sage-light); color: var(--sage); }
.hsr-snd-btn[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }

.hsr-vol-row {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-soft);
}
.hsr-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 65px; height: 3px;
    border-radius: 2px;
    background: var(--sage-light);
    outline: none;
    cursor: pointer;
}
.hsr-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--sage);
    cursor: pointer;
}

.hsr-session-bar {
    width: 100%;
    display: flex;
    justify-content: center;
}
.hsr-session-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border-radius: var(--r-full);
    padding: .35rem .9rem;
    font-size: .72rem;
    color: var(--ink-soft);
}
.hsr-session-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sage);
    animation: hsr-blink 3s ease-in-out infinite;
}
@keyframes hsr-blink { 0%,100%{opacity:1}50%{opacity:.3} }

/* ════════════════════════════════════════════════
   HEADER DE PANTALLA INTERNA
   ════════════════════════════════════════════════ */
.hsr-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: -.25rem;
}
.hsr-back {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    color: var(--ink-mid);
    transition: background var(--fast);
    flex-shrink: 0;
}
.hsr-back:hover { background: var(--surface-3); }

.hsr-screen-title {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--ink-mid);
}
.hsr-screen-meta {
    font-size: .72rem;
    color: var(--ink-soft);
    letter-spacing: .07em;
    text-transform: lowercase;
}
.hsr-meta-text {
    font-size: .75rem;
    color: var(--ink-soft);
    text-align: center;
}
.hsr-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: .25rem;
}

/* ════════════════════════════════════════════════
   ANILLO DE RESPIRACIÓN
   ════════════════════════════════════════════════ */
.hsr-breath {
    position: relative;
    width: 190px; height: 190px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hsr-breath--lg { width: 220px; height: 220px; }

.hsr-breath__glow {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sage-soft) 40%, transparent 70%);
    animation: hsr-breathGlow 8s ease-in-out infinite;
}
.hsr-breath--lg .hsr-breath__glow { animation-duration: 19s; }
@keyframes hsr-breathGlow {
    0%,100% { transform: scale(.9); opacity: .6; }
    50%      { transform: scale(1.2); opacity: 1; }
}

.hsr-breath__ring {
    position: absolute; inset: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(74,117,102,.25);
    animation: hsr-breathRing 8s ease-in-out infinite;
}
.hsr-breath__ring--2 { inset: 24px; border-color: rgba(74,117,102,.4); animation-duration: 8.5s; }
.hsr-breath--lg .hsr-breath__ring { animation-duration: 19s; }
.hsr-breath--lg .hsr-breath__ring--2 { animation-duration: 20s; }
@keyframes hsr-breathRing {
    0%,100% { transform: scale(1); opacity: .4; }
    50%      { transform: scale(1.1); opacity: .9; }
}

.hsr-breath__core {
    width: 108px; height: 108px;
    border-radius: 50%;
    background: var(--sage);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; z-index: 1;
    transition: transform 4s cubic-bezier(.4,0,.2,1), background .6s ease;
    gap: 3px;
}
.hsr-breath--lg .hsr-breath__core { width: 124px; height: 124px; }
.hsr-breath__core.expand  { transform: scale(1.32); background: var(--sage-deep); }
.hsr-breath__core.hold    { transform: scale(1.32); }
.hsr-breath__core.exhale  { transform: scale(.84); background: var(--sage-mid); }

.hsr-breath__word {
    font-family: 'Fraunces', serif;
    font-size: .9rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,.95);
    letter-spacing: .04em;
    line-height: 1;
}
.hsr-breath__sec {
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.65);
    line-height: 1;
}

/* ── Barra de progreso ── */
.hsr-prog {
    width: 100%;
    height: 2px;
    background: var(--sage-soft);
    border-radius: var(--r-full);
    overflow: hidden;
}
.hsr-prog__fill {
    height: 100%;
    width: 0%;
    background: var(--sage);
    border-radius: var(--r-full);
    transition: width 1s linear;
}

/* ════════════════════════════════════════════════
   POMODORO
   ════════════════════════════════════════════════ */
.hsr-pomo-layout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}
.hsr-pomo-ring-wrap {
    position: relative;
    width: 170px; height: 170px;
    flex-shrink: 0;
}
.hsr-pomo-svg {
    width: 170px; height: 170px;
    transform: rotate(-90deg);
}
.hsr-pomo-track {
    fill: none;
    stroke: var(--sage-soft);
    stroke-width: 5;
}
.hsr-pomo-progress {
    fill: none;
    stroke: var(--sage);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke .4s;
}
.hsr-pomo-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
}
.hsr-pomo-time {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.hsr-pomo-phase {
    font-size: .68rem;
    color: var(--ink-soft);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hsr-pomo-side {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    min-width: 140px;
}
.hsr-card--task {
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: .85rem 1rem;
}
.hsr-label {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}
.hsr-textarea {
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-size: .88rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    outline: none;
    min-height: 44px;
}
.hsr-textarea::placeholder { color: var(--ink-faint); }
.hsr-dur-row { display: flex; align-items: center; gap: 8px; }
.hsr-select {
    border: 1px solid var(--border-med);
    border-radius: var(--r-sm);
    padding: 4px 8px;
    font-size: .78rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink-mid);
    background: var(--surface);
    outline: none;
    cursor: pointer;
}
.hsr-pomo-dots {
    display: flex;
    gap: 7px;
}
.hsr-pomo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sage-soft);
    border: 1.5px solid var(--sage-light);
    transition: background var(--mid), border-color var(--mid);
}
.hsr-pomo-dot.hsr-done {
    background: var(--sage);
    border-color: var(--sage);
}
.hsr-pomo-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: .25rem;
}
.hsr-icon-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--border-med);
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--ink-mid);
    transition: all var(--fast);
    flex-shrink: 0;
}
.hsr-icon-btn:hover { background: var(--surface-2); border-color: var(--sage-light); }
.hsr-icon-btn--primary {
    width: 54px; height: 54px;
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}
.hsr-icon-btn--primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.hsr-icon-btn-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--ink-soft);
    transition: all var(--fast);
}
.hsr-icon-btn-sm:hover { background: var(--surface-2); color: var(--sage); }

/* ════════════════════════════════════════════════
   CONTENIDO CURADO
   ════════════════════════════════════════════════ */
.hsr-read-card {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 170px;
    display: flex;
    flex-direction: column;
}
.hsr-read-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--mist));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.hsr-read-cat {
    font-size: .7rem;
    font-weight: 500;
    color: var(--sage);
    letter-spacing: .1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .85rem;
}
.hsr-read-text {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    line-height: 1.7;
    margin: 0 0 .85rem;
}
.hsr-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--mist-soft);
    color: var(--mist);
    border-radius: var(--r-full);
    padding: 3px 9px;
    font-size: .68rem;
    font-weight: 500;
    margin-top: auto;
}
.hsr-read-hint {
    font-size: .78rem;
    color: var(--ink-faint);
    font-style: italic;
    text-align: center;
    margin: -.25rem 0;
}
.hsr-read-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}
.hsr-btn--icon {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hsr-read-none {
    font-size: .76rem;
    color: var(--ink-soft);
    text-align: center;
}

/* ════════════════════════════════════════════════
   DESCANSO VISUAL
   ════════════════════════════════════════════════ */
.hsr-eye-orb {
    position: relative;
    width: 180px; height: 180px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hsr-eye-orbit {
    position: absolute; inset: 0;
    border-radius: 50%;
}
.hsr-eye-orbit--a {
    border: 2px solid var(--mist-light);
    animation: hsr-orbit 4s linear infinite;
}
.hsr-eye-orbit--b {
    inset: 16px;
    border: 1.5px solid var(--sage-light);
    animation: hsr-orbit 6s linear infinite reverse;
}
@keyframes hsr-orbit { to { transform: rotate(360deg); } }
.hsr-eye-core {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--mist-soft);
    border: 2px solid var(--mist-light);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.hsr-eye-count {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--mist);
}
.hsr-card--info {
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    width: 100%;
    text-align: center;
}
.hsr-card--info p {
    font-size: .84rem;
    color: var(--ink-mid);
    line-height: 1.6;
    margin: 0;
}

/* ════════════════════════════════════════════════
   DIARIO
   ════════════════════════════════════════════════ */
.hsr-journal-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 320px;
    overflow-y: auto;
    flex: 1;
}
.hsr-journal-list::-webkit-scrollbar { width: 4px; }
.hsr-journal-list::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 2px; }

.hsr-journal-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}
.hsr-je-date {
    font-size: .65rem;
    color: var(--ink-faint);
    flex-shrink: 0;
    padding-top: 1px;
    min-width: 56px;
}
.hsr-je-badge {
    font-size: .68rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.hsr-je-badge--calm   { background: var(--sage-soft);  color: var(--sage); }
.hsr-je-badge--focus  { background: var(--sand-soft);  color: #8B6A3E; }
.hsr-je-badge--read   { background: var(--mist-soft);  color: var(--mist); }
.hsr-je-badge--eyes   { background: var(--mist-soft);  color: var(--mist); }
.hsr-je-badge--breath { background: var(--sage-soft);  color: var(--sage); }
.hsr-je-badge--nota   { background: var(--surface-2);  color: var(--ink-soft); }

.hsr-je-text {
    font-size: .82rem;
    color: var(--ink-mid);
    line-height: 1.5;
    flex: 1;
}
.hsr-journal-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ink-soft);
    font-size: .84rem;
    font-style: italic;
}

.hsr-journal-input {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: .75rem 1rem;
}
.hsr-journal-input .hsr-textarea { min-height: 36px; }

/* ════════════════════════════════════════════════
   AJUSTES
   ════════════════════════════════════════════════ */
.hsr-settings-card {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.hsr-settings-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.25rem;
}
.hsr-settings-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--sage);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 500; color: #fff;
    flex-shrink: 0;
}
.hsr-settings-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hsr-settings-info strong {
    font-size: .9rem;
    color: var(--ink);
    font-weight: 500;
}
.hsr-settings-info span {
    font-size: .76rem;
    color: var(--ink-soft);
}
.hsr-settings-card--actions {
    display: flex;
    flex-direction: column;
}
.hsr-settings-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .9rem 1.25rem;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: .84rem;
    color: var(--ink-mid);
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid var(--border);
    transition: background var(--fast);
}
.hsr-settings-action:last-child { border-bottom: none; }
.hsr-settings-action:hover { background: var(--surface-2); }
.hsr-settings-action--danger { color: #C0453E; }

.hsr-settings-stat {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.hsr-settings-stat:last-child { border-bottom: none; }
.hsr-settings-stat__num {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--sage);
    min-width: 40px;
}
.hsr-settings-stat__lbl {
    font-size: .82rem;
    color: var(--ink-soft);
}

/* ════════════════════════════════════════════════
   LOADING / SKELETON
   ════════════════════════════════════════════════ */
.hsr-dots-loader {
    display: flex;
    gap: 5px;
    align-items: center;
}
.hsr-dots-loader span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sage-light);
    animation: hsr-dotPulse .9s ease-in-out infinite;
}
.hsr-dots-loader span:nth-child(2) { animation-delay: .15s; }
.hsr-dots-loader span:nth-child(3) { animation-delay: .30s; }
@keyframes hsr-dotPulse {
    0%,80%,100% { transform: scale(.7); opacity: .4; }
    40%         { transform: scale(1.1); opacity: 1; }
}

/* ════════════════════════════════════════════════
   ACCESIBILIDAD Y RESPONSIVE
   ════════════════════════════════════════════════ */
.hsr-app :focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .hsr-app { border-radius: var(--r-lg); }
    .hsr-screen { padding: 1.5rem 1.25rem 2rem; }
    .hsr-mode-grid { gap: 8px; }
    .hsr-mode-card { padding: .9rem .85rem .85rem; border-radius: var(--r-lg); }
    .hsr-pomo-layout { flex-direction: column; align-items: center; }
    .hsr-pomo-ring-wrap { width: 150px; height: 150px; }
    .hsr-pomo-svg { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    .hsr-orb, .hsr-breath__glow, .hsr-breath__ring,
    .hsr-session-dot, .hsr-eye-orbit { animation: none; }
    .hsr-screen { animation: none; }
    .hsr-breath__core { transition: none; }
}

/* ════════════════════════════════════════════════
   SHORTCODE STATS
   ════════════════════════════════════════════════ */
.hsr-stats-inline strong { color: var(--sage, #4A7566); }

/* ── Seguridad: si JS no cargó, mostrar pantalla de registro ── */
.hsr-screen--register { display: flex; }
.hsr-app.hsr-js-ready .hsr-screen--register:not(.hsr-active) { display: none; }
