body { background: var(--color-bg-canvas); color: var(--color-text-primary); font-family: var(--font-sans); }
h1, h2, h3 { letter-spacing: -0.01em; }
h1 { font-size: var(--text-h1-size); line-height: var(--text-h1-lh); font-weight: 600; }
.sg-logo { display: inline-flex; align-items: baseline; font-family: var(--font-sans); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.sg-logo__a { color: var(--color-text-primary); } .sg-logo__b { color: var(--color-brand-primary); }
.sg-logo__a--inv { color: var(--color-text-on-inverse); } .sg-logo__b--inv { color: var(--color-text-on-inverse-muted); }
.sg-logo-short { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--color-border-subtle, #E3E8EF); font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1; }
.sg-logo-short__s { color: #0B1A2E; } .sg-logo-short__g { color: #214DBA; }
.shell { min-height: 100vh; min-height: 100dvh; }
.shell-body { min-width: 0; display: flex; flex-direction: column; }
.shell-nav { display: none; }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 16px 16px calc(96px + var(--safe-bottom)); }
.app-top { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: 8px; min-height: 56px;
padding: calc(6px + var(--safe-top)) 12px 6px 16px; background: var(--color-bg-glass); -webkit-backdrop-filter: var(--backdrop-blur); backdrop-filter: var(--backdrop-blur); border-bottom: 1px solid var(--color-border-hairline); }
.app-top__logo { text-decoration: none; display: inline-flex; }
.app-top__logo:hover { text-decoration: none; }
.app-top__spacer { flex: 1; }
.app-top__search { display: none; align-items: center; gap: 8px; width: 380px; max-width: 40vw; height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
background: var(--color-bg-subtle); color: var(--color-text-muted); border: 1px solid transparent; }
.app-top__search:focus-within { border-color: var(--color-border-focus); background: var(--color-bg-surface); }
.app-top__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: 14px; color: var(--color-text-primary); box-shadow: none; }
.app-top__search input::placeholder { color: var(--color-text-placeholder); }
.app-top__new { display: none; }
.userbox { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.userbox .who, .userbox .js-logout { display: none; }
.userbox select { height: 36px; border-radius: var(--radius-pill); font-size: 13px; }
.app-top .js-bell { position: relative; }
.app-top__role:empty { display: none; }
.app-top__role:not(:empty) + .app-top__search + .app-top__spacer { }
@media (max-width: 639px) { .app-top__role:not(:empty) ~ .app-top__logo { display: none; } .app-top:has(.app-top__role:not(:empty)) .app-top__logo { display: none; } }
.sg-switcher[data-single] { cursor: default; }
#bottomNav { z-index: var(--z-nav); }
#bottomNav .sg-bnav__item { text-decoration: none; }
#bottomNav .sg-bnav__item[aria-current="page"] .sg-bnav__icon { background: var(--color-brand-subtle); }
#bottomNav .sg-bnav__item[aria-current="page"] .sg-icon { fill: currentColor; fill-opacity: .2; }
#bottomNav .sg-bnav__item[aria-current="page"] .sg-bnav__label { font-weight: 600; }
.sg-bnav__badge:empty { display: none; }
.app-fab { position: fixed; right: 16px; bottom: calc(76px + var(--safe-bottom)); z-index: var(--z-nav); }
.app-fab[hidden] { display: none; }
.more-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
.more-user b { display: block; font-weight: 600; } .more-user small { color: var(--color-text-muted); }
.sg-dialog .sg-row { text-decoration: none; color: var(--color-text-primary); cursor: pointer; }
.sg-dialog .sg-row:hover { background: var(--color-bg-hover); }
.sg-menu .sg-menu__item { text-decoration: none; }
.sgn-item { display: flex; align-items: center; color: var(--color-text-muted); text-decoration: none; font-weight: 500; }
.sgn-item:hover { text-decoration: none; color: var(--color-text-primary); }
.sgn-ic { display: grid; place-items: center; flex: none; }
.sgn-item[aria-current="page"] { color: var(--color-brand-on-subtle); font-weight: 600; }
.sgn-item[aria-current="page"] .sg-icon { fill: currentColor; fill-opacity: .2; }
.sgn-count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--color-text-muted); font-feature-settings: var(--font-feature-numbers); }
.sgn-count:empty { display: none; }
.sgn-logo { text-decoration: none; }
.sgn-logo:hover { text-decoration: none; }
@media (min-width: 640px) {
.shell { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.shell-nav { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; scrollbar-width: none;
background: var(--color-bg-surface); border-right: 1px solid var(--color-border-hairline); z-index: var(--z-nav); }
#bottomNav, .app-fab { display: none !important; }
main { padding: 24px 24px 48px; }
.app-top { padding: 8px 24px; }
.app-top__logo, .app-top__role { display: none !important; }
.app-top__new { display: inline-flex; }
.shell-nav { align-items: center; gap: 18px; padding: 24px 0 16px; }
.sgn-logo .sg-logo { display: none; }
.sgn-role { display: none; }
.sgn-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sgn-group--extra { padding-top: 4px; }
.sgn-sep { width: 40px; height: 1px; background: var(--color-border-hairline); margin: 2px 0 6px; }
.shell-nav .sgn-item { flex-direction: column; gap: 4px; width: 80px; font-size: 11px; line-height: 14px; text-align: center; }
.shell-nav .sgn-ic { width: 56px; height: 32px; border-radius: 16px; }
.shell-nav .sgn-item[aria-current="page"] .sgn-ic { background: var(--color-brand-subtle); }
.shell-nav .sgn-item[aria-current="page"] .sgn-lbl { color: var(--color-text-primary); }
.shell-nav .sgn-count { display: none; }
.sgn-lbl { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgn-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sgn-user { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sgn-user__text { display: none; }
}
@media (min-width: 1280px) {
.shell { grid-template-columns: 248px minmax(0, 1fr); }
main { padding: 28px 36px 56px; }
.app-top { height: 64px; padding: 0 36px; gap: 12px; }
.app-top__search { display: flex; }
.shell-nav { align-items: stretch; gap: 20px; padding: 22px 14px 14px; }
.sgn-logo { padding: 2px 12px; }
.sgn-logo .sg-logo { display: inline-flex; }
.sgn-logo .sg-logo-short { display: none; }
.sgn-role { display: block; }
.sgn-role .sg-menu-wrap, .sgn-role .sg-switcher { width: 100%; }
.sgn-role .sg-switcher__name { flex: 1; text-align: left; }
.sgn-group { align-items: stretch; gap: 2px; }
.sgn-sep { width: auto; margin: 6px 12px 8px; }
.shell-nav .sgn-item { flex-direction: row; gap: 12px; width: auto; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; line-height: 20px; text-align: left; }
.shell-nav .sgn-ic { width: 20px; height: 20px; border-radius: 0; background: none !important; }
.shell-nav .sgn-ic .sg-icon { width: 20px; height: 20px; }
.shell-nav .sgn-item:hover { background: var(--color-bg-hover); }
.shell-nav .sgn-item[aria-current="page"] { background: var(--color-brand-subtle); }
.shell-nav .sgn-item[aria-current="page"] .sgn-lbl { color: inherit; }
.shell-nav .sgn-count { display: inline; }
.sgn-lbl { max-width: none; }
.sgn-bottom { align-items: stretch; gap: 2px; }
.sgn-user { flex-direction: row; gap: 10px; padding: 12px 12px 4px; margin-top: 8px; border-top: 1px solid var(--color-border-hairline); }
.sgn-user__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sgn-user__name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgn-user__role { font-size: 12px; color: var(--color-text-muted); }
}
body.auth .shell { display: block; }
body.auth .shell-nav, body.auth #bottomNav, body.auth .app-fab, body.auth .app-top__search, body.auth .app-top__new, body.auth .js-bell, body.auth .app-top__role { display: none !important; }
body.auth .app-top__logo { display: inline-flex !important; }
body.auth main { padding-bottom: 32px; }
#wsBar { padding: 8px 16px; }
.sg-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 6px; height: 160px; }
.sg-bars__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.sg-bars__bar { width: 100%; max-width: 28px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--color-brand-subtle-hover); }
.sg-bars__col.is-current .sg-bars__bar { background: var(--color-brand-primary); }
.sg-bars__val { font-size: 11px; font-weight: 600; color: var(--color-text-muted); font-feature-settings: var(--font-feature-numbers); min-height: 14px; }
.sg-bars__lbl { font-size: 11px; color: var(--color-text-muted); }
.sg-bars__col.is-current .sg-bars__lbl, .sg-bars__col.is-current .sg-bars__val { color: var(--color-text-primary); }
@media print {
.shell { display: block; }
.shell-nav, #bottomNav, .app-fab, .app-top { display: none !important; }
main { padding: 0; }
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head__over { font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.page-head__title { margin: 2px 0 0; font-size: var(--text-h1-size); line-height: var(--text-h1-lh); letter-spacing: var(--text-h1-tracking); font-weight: 600; display: block; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: 600; }
.sec-head__link { font-size: 14px; font-weight: 500; text-decoration: none; }
.home-grid { display: grid; gap: 16px; }
.home-main, .home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
a.sg-hl, .sg-hl { background: var(--color-bg-inverse); color: var(--color-text-on-inverse); text-decoration: none; }
a.sg-hl:hover { text-decoration: none; color: var(--color-text-on-inverse); filter: brightness(1.06); }
.home-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-stats .sg-stat { text-decoration: none; color: var(--color-text-primary); min-width: 0; }
.home-stats .sg-stat__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-weekends { display: grid; gap: 12px; }
.home-weekends .sg-wk { text-decoration: none; color: var(--color-text-primary); }
.home-empty { padding: 8px; }
.home-chart { padding: 16px; }
.home-chart__total { font-size: 20px; font-weight: 600; }
.home-rem { padding: 16px; }
.home-rem .checklist li { border-color: var(--color-border-hairline); }
#teendok .sg-task { text-decoration: none; color: var(--color-text-primary); }
#teendok a.sg-task:hover { background: var(--color-bg-hover); }
@media (min-width: 640px) {
.home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-weekends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
.home-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; }
}
@media (min-width: 1280px) {
.home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .home-stats .sg-stat__value { font-size: 28px; line-height: 34px; } }
.sg-stat__value.is-long { font-size: 22px; line-height: 28px; }
@media (min-width: 1280px) { .home-stats .sg-stat__value.is-long { font-size: 22px; line-height: 34px; } }
@media (max-width: 1023px) {
.home-grid { display: flex; flex-direction: column; }
.home-main, .home-side { display: contents; }
.home-main > .sg-hl, .home-main > .home-empty { order: 1; }
.home-stats { order: 2; }
#teendok { order: 3; }
.home-upcoming { order: 4; }
.home-chart { order: 5; }
.home-rem { order: 6; }
}
.dogs-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sg-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--radius-input); background: var(--color-bg-surface);
border: 1px solid var(--color-border-input); color: var(--color-text-muted); }
.sg-search:focus-within { border-color: var(--color-border-focus); box-shadow: 0 0 0 3px var(--color-brand-subtle); }
.sg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; box-shadow: none; color: var(--color-text-primary); }
.dogs-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dogs-filters .sg-chips { flex: 0 1 auto; max-width: 100%; }
.dogs-sel { display: none; width: auto; height: 36px; padding: 0 30px 0 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
border: 1px solid var(--color-border-strong); background-color: var(--color-bg-surface); color: var(--color-text-primary); }
.dogs-view { display: none; margin-left: auto; }
#kind.dogs-sel { display: inline-block; }
.dogs-group { margin-bottom: 16px; }
.dog-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--color-text-primary); position: relative; }
.dog-row + .dog-row::before { content: ""; position: absolute; top: 0; left: 84px; right: 0; height: 1px; background: var(--color-border-hairline); }
.dog-row:hover { background: var(--color-bg-hover); text-decoration: none; }
.dog-row.is-selected { background: var(--color-brand-subtle); }
.dog-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dog-row__name { font-size: 15px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.dog-row__sub { font-size: 13px; line-height: 18px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dog-row__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.dog-row__end { flex: none; align-self: flex-start; padding-top: 2px; }
.dog-title { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--color-text-muted); font-feature-settings: var(--font-feature-numbers); white-space: nowrap; }
.dog-title.is-gold { color: var(--color-accent-gold-text); }
.dog-next { font-size: 12px; line-height: 16px; color: var(--color-text-muted); }
.dogs-peek { display: none; }
.dogs-table-wrap { padding: 0; overflow: hidden; }
.dogs-table { width: 100%; }
.dogs-table th { padding: 12px 16px; border-bottom: 1px solid var(--color-border-hairline); }
.dogs-table tbody tr { cursor: pointer; }
.dogs-table__dog { display: flex; align-items: center; gap: 10px; color: var(--color-text-primary); text-decoration: none; min-width: 0; max-width: 280px; }
.dogs-table__dog:hover { text-decoration: none; }
.dogs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dog-card { display: flex; flex-direction: column; text-decoration: none; color: var(--color-text-primary); overflow: hidden; padding: 0; }
.dog-card:hover { text-decoration: none; }
.dog-card__media { display: grid; place-items: center; height: 132px; background: var(--color-bg-subtle); }
.dog-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.peek { display: flex; flex-direction: column; gap: 16px; padding: 20px; position: sticky; top: 88px; }
.peek__head { display: flex; gap: 16px; align-items: center; }
.peek__name { margin: 2px 0 2px; font-size: var(--text-h2-size); line-height: var(--text-h2-lh); font-weight: 600; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.peek-kv { display: flex; flex-direction: column; border-top: 1px solid var(--color-border-hairline); }
.peek-kv__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border-hairline); font-size: 14px; }
.peek-kv__row span { color: var(--color-text-muted); }
.peek-kv__row b { font-weight: 500; text-align: right; font-feature-settings: var(--font-feature-numbers); }
.peek-next { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-input); background: var(--color-bg-subtle); }
.peek-next a { color: var(--color-text-primary); text-decoration: none; }
@media (min-width: 640px) {
.dogs-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.dogs-peek { display: block; }
.dogs-sel { display: inline-block; }
}
@media (min-width: 1280px) {
.dogs-layout { display: block; }
.dogs-peek { display: none; }
.dogs-tools { flex-direction: row; align-items: center; flex-wrap: wrap; }
.dogs-tools .sg-search { width: 360px; }
.dogs-filters { flex: 1; }
.dogs-view { display: inline-flex; }
}
.dogs-sel { max-width: 180px; }
@media (min-width: 1280px) { .dogs-filters { flex-wrap: nowrap; } .dogs-filters .sg-chips { flex: none; } }
.theme-pick { padding: 4px 4px 8px; }
.theme-pick .sg-seg { width: 100%; max-width: 420px; box-sizing: border-box; display: flex; }
.theme-pick .sg-seg__btn { flex: 1 1 0; min-width: 0; padding-inline: 6px; gap: 6px; }