
#view-dashboard {
    --dn-panel: rgba(17, 17, 21, 0.78);
    --dn-panel-2: rgba(255, 255, 255, 0.035);
    --dn-line: rgba(255, 255, 255, 0.075);
    --dn-line-2: rgba(255, 255, 255, 0.13);
    --dn-faint: color-mix(in srgb, var(--text-muted) 62%, transparent);
    --dn-soft: rgba(var(--primary-rgb), 0.13);
    --dn-acc-line: rgba(var(--primary-rgb), 0.5);
    --dn-on-primary: #fff;
    --dn-out: cubic-bezier(.23, 1, .32, 1);
    --dn-io: cubic-bezier(.77, 0, .175, 1);
    --dn-drawer: cubic-bezier(.32, .72, 0, 1);
    --dn-r: 18px;
}
[data-theme="light"] #view-dashboard {
    --dn-panel: rgba(255, 255, 255, 0.92);
    --dn-panel-2: rgba(7, 16, 35, 0.035);
    --dn-line: rgba(7, 16, 35, 0.08);
    --dn-line-2: rgba(7, 16, 35, 0.15);
    --dn-soft: rgba(var(--primary-rgb), 0.1);
}
.dn-drawer { --dn-line: rgba(255, 255, 255, 0.075); --dn-line-2: rgba(255, 255, 255, 0.13); --dn-panel-2: rgba(255, 255, 255, 0.035); --dn-soft: rgba(var(--primary-rgb), 0.13); --dn-acc-line: rgba(var(--primary-rgb), 0.5); --dn-out: cubic-bezier(.23, 1, .32, 1); --dn-drawer: cubic-bezier(.32, .72, 0, 1); }
[data-theme="light"] .dn-drawer { --dn-line: rgba(7, 16, 35, 0.08); --dn-line-2: rgba(7, 16, 35, 0.15); --dn-panel-2: rgba(7, 16, 35, 0.035); --dn-soft: rgba(var(--primary-rgb), 0.1); }

.main:not(:has(> .view-section.active:not(#view-dashboard))) > .header { display: none; }

#view-dashboard:not(.dn-ready) { visibility: hidden; animation: dnZeigenNotfalls 0s 6s forwards; }
@keyframes dnZeigenNotfalls { to { visibility: visible; } }

#view-dashboard [hidden], .dn-drawer [hidden] { display: none !important; }

#view-dashboard { width: 100%; max-width: 1600px; margin-inline: auto; }
@media (min-width: 2200px) { #view-dashboard { max-width: 2240px; } }
.dn { container-type: inline-size; container-name: dn; display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.dn svg.dn-i, .dn-drawer svg.dn-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dn-notes:empty { display: none; }
.dn-notes > .umf-banner { margin-bottom: 14px; }

.dn-top { display: flex; align-items: flex-end; align-self: stretch; padding: 0 22px 0 0; border-right: 1px solid var(--dn-line-2); }
.dn-top__tools { display: flex; align-items: center; gap: 2px; margin-bottom: -6px; }
.dn-ibtn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--dn-line); background: var(--dn-panel);
    color: var(--text-main); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .14s var(--dn-out); }
.dn-ibtn:hover, .dn-ibtn[aria-pressed="true"] { border-color: var(--dn-acc-line); background: var(--dn-soft); }
.dn-ibtn:active { transform: scale(.95); }
.dn-ibtn--sm { width: 34px; height: 34px; border-radius: 10px; }
.dn-ibtn--sm svg.dn-i { width: 16px; height: 16px; }
.dn-ibtn:disabled { opacity: .35; pointer-events: none; }
.dn-badge { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--bg-deep); }
.dn-chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--dn-line); background: var(--dn-panel);
    color: var(--text-main); font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: border-color .2s ease, transform .14s var(--dn-out); }
.dn-chip:hover { border-color: var(--dn-line-2); }
.dn-chip:active { transform: scale(.98); }
.dn-weather .mwl-icon, .dn-weather svg { width: 20px; height: 20px; }
.dn-weather small { color: var(--text-muted); font-size: 13px; }
.dn-weather.is-setup b { font-weight: 500; color: var(--text-muted); }
.dn-lang { padding: 0 14px; }
.dn-top .dn-ibtn, .dn-top .dn-chip { height: 36px; border-color: transparent; background: transparent; border-radius: 10px; color: var(--text-muted); }
.dn-top .dn-ibtn { width: 36px; }
.dn-top .dn-chip { padding: 0 11px; gap: 8px; font-size: 13.5px; }
.dn-top .dn-ibtn:hover, .dn-top .dn-chip:hover, .dn-top .dn-ibtn[aria-pressed="true"] { background: var(--dn-soft); border-color: transparent; color: var(--text-main); }
.dn-top svg.dn-i { width: 17px; height: 17px; }
.dn-top .dn-weather .mwl-icon, .dn-top .dn-weather svg { width: 17px; height: 17px; }
.dn-top .dn-streak { gap: 6px; }
.dn-top .dn-streak b { font-weight: 600; color: var(--text-main); font-variant-numeric: tabular-nums; }
.dn-top .dn-streak:hover svg.dn-i { color: var(--primary); }
.dn-top .dn-badge { top: 7px; right: 8px; box-shadow: 0 0 0 2px var(--bg-deep); }
.dn-top .dn-date { position: relative; margin-left: 5px; color: var(--text-main); }
.dn-top .dn-date::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 1px; background: var(--dn-line-2); }

.dn-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 6px 2px 2px; }
.dn-hello__greet { margin: 0; font-size: clamp(22px, 2.6cqi, 30px); font-weight: 300; letter-spacing: -.01em; color: var(--text-main); line-height: 1.15; }
.dn-hello__name { margin: 2px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6cqi, 68px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.dn-dotmark { color: var(--primary); }
.dn-hello__quote { margin: 0; color: var(--text-muted); font-size: 16px; max-width: 52ch; }
.dn-ki__tip { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; white-space: nowrap;
    padding: 6px 10px; border-radius: 10px; border: 1px solid var(--dn-line); background: var(--dn-panel);
    color: var(--text-main); font-size: 12.5px; opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .2s ease, transform .2s var(--dn-out); }
.dn-ki.is-kopiert .dn-ki__tip { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dn-ki__tip { transform: none; } }
.dn-hero__cards { display: flex; align-items: stretch; }
.dn-card { display: flex; align-items: center; gap: 16px; padding: 4px 28px; border: 0; background: none; color: var(--text-main); text-align: left; }
.dn-card + .dn-card { border-left: 1px solid var(--dn-line-2); }
.dn-card:last-child { padding-right: 4px; }
button.dn-card { cursor: pointer; border-radius: 0; font: inherit; }
button.dn-card:hover .dn-kw__top > span { color: var(--text-main); }
button.dn-card:active { transform: scale(.985); }
button.dn-card:focus-visible { outline: 2px solid var(--dn-acc-line); outline-offset: 4px; border-radius: 10px; }
.dn-kw { flex-direction: column; align-items: stretch; gap: 2px; min-width: 210px; }
.dn-kw__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--text-muted); font-size: 14px; }
.dn-kw__top > span { transition: color .2s ease; }
.dn-kw__top small { font-size: 12.5px; white-space: nowrap; }
.dn-kw__val { white-space: nowrap; }
.dn-kw__val b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dn-kw__val span { margin-left: 3px; font-size: 15px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dn-kw__bars { display: flex; gap: 6px; height: 40px; margin: 2px 0 3px; }
.dn-kwb { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dn-kwb__t { position: relative; flex: 1; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--dn-line); }
.dn-kwb__t i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--primary) 55%, transparent); transition: height .7s var(--dn-out); }
.dn-kwb.is-met .dn-kwb__t i { background: var(--primary); }
.dn-kwb__t em { position: absolute; left: -3px; right: -3px; height: 2px; margin-bottom: -1px; border-radius: 1px; background: var(--text-main); opacity: .6; }
.dn-kwb.is-future .dn-kwb__t { background: none; outline: 1px dashed var(--dn-line-2); outline-offset: -1px; }
.dn-kwb small { font-size: 10.5px; line-height: 1; color: var(--text-muted); }
.dn-kwb.is-today small { color: var(--primary); font-weight: 600; }
.dn-kw__meta { color: var(--text-muted); font-size: 12.5px; }
.dn-flex { flex-direction: column; align-items: stretch; gap: 2px; min-width: 210px; }
.dn-flex__top { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 14px; }
.dn-mini { width: 30px; height: 30px; margin: -6px -8px -6px 0; display: grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--text-muted); cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .14s var(--dn-out); }
.dn-mini:hover { border-color: var(--dn-line-2); color: var(--text-main); background: var(--dn-soft); }
.dn-mini:active { transform: scale(.93); }
.dn-mini svg.dn-i { width: 15px; height: 15px; }
.dn-flex__val { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dn-flex__spark { display: block; height: 30px; }
.dn-flex__spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dn-flex__meta { margin-top: auto; color: var(--text-muted); font-size: 12.5px; }

.dn-tile { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; color: var(--primary);
    background: var(--dn-soft); border: 1px solid rgba(var(--primary-rgb), .22); }
.dn-tile svg.dn-i { width: 20px; height: 20px; }

.dn-ring { position: relative; display: grid; place-items: center; flex: none; }
.dn-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dn-ring .trk { fill: none; stroke: var(--dn-line-2); }
.dn-ring .arc { fill: none; stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .9s var(--dn-out); }
.dn-ring--lg { width: min(184px, 100%); aspect-ratio: 1; margin: 6px auto 4px; }
.dn-ring__c { display: grid; justify-items: center; gap: 2px; text-align: center; }
.dn-ring__c b { font-size: 38px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.dn-ring__c b small { font-size: 18px; font-weight: 500; margin-left: 3px; color: var(--text-muted); letter-spacing: 0; }
.dn-ring__c > small { color: var(--text-muted); font-size: 13.5px; }
.dn-ring .glow { fill: var(--primary); opacity: 0; transform-box: fill-box; transform-origin: center; }
.dn-today.is-running .dn-ring .glow { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
    .dn-today.is-running .dn-ring .glow { animation: dnAtmen 2.6s ease-in-out infinite; }
}
@keyframes dnAtmen { 50% { transform: scale(1.9); opacity: .08; } }

.dn-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 18px; align-items: stretch; }
.dn-panel { position: relative; min-width: 0; border-radius: var(--dn-r); border: 1px solid var(--dn-line); padding: 22px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), .045), rgba(var(--primary-rgb), 0) 34%), var(--dn-panel); }
.dn-mod { container-type: inline-size; container-name: dnm; grid-column: span 6; }
.dn-mod[data-size="s"] { grid-column: span 4; }
.dn-mod[data-size="m"] { grid-column: span 6; }
.dn-mod[data-size="l"] { grid-column: span 8; }
.dn-mod[data-size="f"] { grid-column: span 12; }

.dn-ph { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dn-ph--plain { align-items: flex-start; }
.dn-ph__txt { flex: 1; min-width: 0; }
.dn-ph h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.dn-ph p { margin: 3px 0 0; color: var(--text-muted); font-size: 14px; }
.dn-ph__act { display: flex; align-items: center; gap: 8px; }

.dn-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--dn-line-2);
    background: transparent; color: var(--text-main); font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease, transform .14s var(--dn-out); }
.dn-btn:hover { border-color: var(--dn-acc-line); background: var(--dn-soft); }
.dn-btn:active { transform: scale(.97); }
.dn-btn svg.dn-i { width: 16px; height: 16px; transition: transform .2s var(--dn-out); }
.dn-btn:hover svg.dn-i { transform: translateX(2px); }
.dn-btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 8px; }
.dn-btn--solid { background: var(--primary); border-color: transparent; color: var(--dn-on-primary); }
.dn-btn--solid:hover { background: color-mix(in srgb, var(--primary) 86%, #fff); border-color: transparent; }

.dn-seg { position: relative; display: inline-flex; padding: 3px; border-radius: 11px; background: var(--dn-panel-2); border: 1px solid var(--dn-line); }
.dn-seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 8px; background: var(--dn-soft); box-shadow: inset 0 0 0 1px var(--dn-acc-line);
    transition: transform .38s var(--dn-drawer), width .38s var(--dn-drawer); }
.dn-seg button { position: relative; height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: var(--text-muted); font-size: 13px; cursor: pointer;
    font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .2s ease; }
.dn-seg button[aria-pressed="true"] { color: var(--text-main); }

.dn-editbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 14px; border: 1px dashed var(--dn-acc-line); background: var(--dn-soft); }
.dn-editbar__t { flex: 1; min-width: 200px; font-size: 14px; color: var(--text-main); }
.dn-editbar__tray { display: flex; gap: 6px; flex-wrap: wrap; }
.dn-traychip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--dn-line-2); background: var(--dn-panel); color: var(--text-main);
    font-size: 13px; cursor: pointer; transition: border-color .2s ease, transform .14s var(--dn-out); }
.dn-traychip:hover { border-color: var(--dn-acc-line); }
.dn-traychip:active { transform: scale(.96); }
.dn-traychip svg.dn-i { width: 14px; height: 14px; }
.dn.is-edit .dn-mod { outline: 1px dashed var(--dn-acc-line); outline-offset: 3px; padding-top: 64px; transition: padding-top .3s var(--dn-out); }
.dn.is-edit .dn-mod > :not(.dn-modbar) { pointer-events: none; opacity: .8; transition: opacity .2s ease; }
.dn-modbar { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 5; display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 12px;
    background: linear-gradient(var(--bg-sidebar), var(--bg-sidebar)), var(--bg-deep); border: 1px solid var(--dn-line-2); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7); }
.dn-modbar__grip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--text-main);
    font-size: 13.5px; font-weight: 600; cursor: grab; touch-action: none; text-align: left; }
.dn-modbar__grip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-modbar__grip:hover { background: var(--dn-soft); }
.dn-modbar__grip:active { cursor: grabbing; }
.dn-modbar__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--dn-line-2); background: none; color: var(--text-main);
    font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: border-color .2s ease, background-color .2s ease, transform .14s var(--dn-out); }
.dn-modbar__btn:hover { border-color: var(--dn-acc-line); background: var(--dn-soft); }
.dn-modbar__btn:active { transform: scale(.95); }
.dn-modbar svg.dn-i { width: 15px; height: 15px; }
.dn-mod.is-lift { z-index: 6; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px var(--dn-acc-line); transform: scale(1.012); transition: transform .2s var(--dn-out), box-shadow .2s ease; }

.dn-more { border-color: transparent; background: transparent; color: var(--text-muted); }
.dn-more:hover, .dn-more[aria-expanded="true"] { border-color: var(--dn-line-2); background: var(--dn-panel-2); color: var(--text-main); }

.dn-mod.has-menu { z-index: 8; }
.dn-menu { position: absolute; z-index: 9; width: 264px; max-width: calc(100% - 16px); padding: 6px; border-radius: 14px; border: 1px solid var(--dn-line-2);
    background: linear-gradient(var(--bg-sidebar), var(--bg-sidebar)), var(--bg-deep); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7); transform-origin: top right; }
.dn-menu__t { margin: 6px 10px 4px; font-size: 12px; color: var(--text-muted); }
.dn-menu hr { border: 0; border-top: 1px solid var(--dn-line); margin: 6px 4px; }
.dn-menu__it { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px;
    background: none; color: var(--text-main); font-size: 13.5px; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.dn-menu__it:hover { background: var(--dn-soft); }
.dn-menu__it:focus-visible { background: var(--dn-soft); outline: 2px solid var(--dn-acc-line); outline-offset: -2px; }
.dn-menu__it svg.dn-i { width: 15px; height: 15px; color: var(--text-muted); }
.dn-menu__it em { font-style: normal; color: var(--text-muted); font-size: 12.5px; }
.dn-sw { position: relative; width: 30px; height: 18px; flex: none; border-radius: 9px; background: var(--dn-line-2); transition: background-color .2s ease; }
.dn-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-main); transition: transform .25s var(--dn-drawer), background-color .2s ease; }
.dn-menu__it[aria-checked="true"] .dn-sw { background: var(--primary); }
.dn-menu__it[aria-checked="true"] .dn-sw::after { transform: translateX(12px); background: var(--dn-on-primary); }

.dn-week { padding: 18px 22px 20px 14px; display: flex; flex-direction: column; }
.dn-week__in { flex: 1; display: grid; grid-template-columns: 108px minmax(0, 1fr); grid-template-areas: "rail head" "rail body"; grid-template-rows: auto 1fr; column-gap: 18px; }
.dn-week__head { grid-area: head; }
.dn-week__rail { grid-area: rail; display: grid; align-content: start; gap: 4px; position: relative; padding-top: 2px; }
.dn-week__body { grid-area: body; min-width: 0; display: flex; flex-direction: column; }
.dn-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dn-wknav { display: inline-flex; gap: 6px; }
.dn-day { position: relative; display: grid; gap: 1px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text-main);
    text-align: left; cursor: pointer; font-size: 14.5px; white-space: nowrap; z-index: 1; transition: color .2s ease, transform .14s var(--dn-out); }
.dn-day small { color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dn-day:active { transform: scale(.97); }
.dn-day i { position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--primary); }
.dn-day-pill { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; background: var(--dn-panel-2); border: 1px solid var(--dn-line-2);
    transition: transform .45s var(--dn-drawer), width .45s var(--dn-drawer), height .45s var(--dn-drawer); pointer-events: none; }
.dn-tl { position: relative; flex: 1; min-height: 200px; overflow: hidden; }
.dn-tl.is-flat { display: flex; min-height: 120px; overflow: visible; }
.dn-tl.is-flat .dn-tl__track { position: static; flex: 1; display: flex; }
.dn-tl.is-flat .dn-dcards { position: relative; flex: 1; align-items: stretch; }
.dn-tl.is-flat .dn-dcard { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; }
.dn-tl.is-flat .dn-dcard__t b { font-size: 14.5px; }
.dn-tl__track { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.dn-tl svg.dn-tl__svg { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; }
.dn-tl__base { fill: none; stroke: var(--dn-line-2); stroke-width: 1.5; stroke-dasharray: 3 5; }
.dn-tl__done { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), .45)); }
.dn-tl__live { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; opacity: .55; transition: stroke-dasharray .8s cubic-bezier(.23,1,.32,1); }
.dn-tl__tip { fill: var(--primary); transition: cx .8s cubic-bezier(.23,1,.32,1), cy .8s cubic-bezier(.23,1,.32,1), opacity .3s ease; }
.dn-node { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
    border: 1.5px dashed var(--dn-line-2); background: var(--bg-deep); color: var(--dn-on-primary); transition: transform .3s var(--dn-out), box-shadow .3s ease; }
.dn-node svg.dn-i { width: 14px; height: 14px; stroke-width: 2.6; }
.dn-node[data-s="done"] { border: 0; background: var(--primary); box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .16); }
.dn-node[data-s="part"] { border: 2px solid var(--primary); background: var(--bg-deep); }
.dn-node[data-s="part"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.dn-node[data-s="miss"] { border: 1.5px solid color-mix(in srgb, var(--danger) 70%, transparent); }
.dn-node[data-s="free"] { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-style: solid; }
.dn-node.is-today { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--primary); background: var(--bg-deep);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .14), 0 0 26px 2px rgba(var(--primary-rgb), .45); }
.dn-node.is-today::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); }
.dn-node.is-today svg { display: none; }
.dn-node.is-arrive::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--primary); pointer-events: none;
    animation: dn-arrive 1s cubic-bezier(.23,1,.32,1) 2; }
@keyframes dn-arrive { from { transform: scale(1); opacity: .7; } to { transform: scale(2.3); opacity: 0; } }
.dn-node:hover { transform: scale(1.12); }
.dn-node__lbl { position: absolute; transform: translate(-50%, -100%); font-size: 12.5px; color: var(--text-muted); white-space: nowrap; pointer-events: none; }
.dn-dcards { position: absolute; left: 0; right: 0; display: grid; gap: 10px; }
.dn-dcard { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--dn-line);
    background: var(--dn-panel-2); color: var(--text-main); text-align: left; cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease, transform .3s var(--dn-out), box-shadow .3s ease; }
.dn-dcard:hover { border-color: var(--dn-line-2); }
.dn-dcard:active { transform: scale(.97); }
.dn-dcard.is-sel { border-color: var(--dn-acc-line); background: var(--dn-soft); box-shadow: 0 14px 30px -20px rgba(var(--primary-rgb), .8); transform: translateY(-3px); }
.dn-dcard__ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--dn-line-2); color: var(--text-muted); }
.dn-dcard__ic svg.dn-i { width: 15px; height: 15px; }
.dn-dcard__t { min-width: 0; display: grid; gap: 1px; }
.dn-dcard__t b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-dcard__t small { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dn-dcard[data-s="future"], .dn-dcard[data-s="free"], .dn-dcard[data-s="open"] { opacity: .55; border-style: dashed; }
.dn-dcard[data-s="miss"] small { color: var(--danger); }
.dn-goal { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 12px 16px; border-radius: 13px; border: 1px solid var(--dn-line); background: var(--dn-panel-2); font-size: 14.5px; max-width: 560px; }
.dn-goal__bar { position: relative; flex: 1; height: 10px; border-radius: 6px; background: var(--dn-line); overflow: hidden; }
.dn-goal__bar i { position: absolute; inset: 0; border-radius: 6px; background: var(--primary); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--dn-out);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), .55); }
.dn-goal b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dn-today { display: flex; flex-direction: column; gap: 10px; }
.dn-today .dn-ph { margin-bottom: 0; }
.dn-live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; color: var(--text-main); background: var(--dn-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.dn-timer { display: flex; align-items: center; gap: 6px; }
.dn-timer .dn-ibtn { width: 36px; height: 36px; border-radius: 10px; }
.dn-timer .dn-ibtn svg.dn-i { width: 15px; height: 15px; }
.dn-timer .dn-ibtn.is-go { background: var(--primary); border-color: transparent; color: var(--dn-on-primary); }
.dn-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dn-legend li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.dn-legend li i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dn-legend li span { flex: 1; color: var(--text-main); }
.dn-legend li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dn-cta { display: flex; align-items: center; gap: 14px; width: 100%; height: 56px; padding: 0 10px; margin-top: auto; border-radius: 16px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, #fff), var(--primary)); color: var(--dn-on-primary); font-size: 16px; font-weight: 600;
    box-shadow: 0 16px 34px -18px rgba(var(--primary-rgb), .9); transition: transform .14s var(--dn-out), box-shadow .3s ease; }
.dn-cta:hover { box-shadow: 0 20px 40px -18px rgba(var(--primary-rgb), 1); }
.dn-cta:active { transform: scale(.975); }
.dn-cta__plus { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg-deep) 88%, transparent); color: var(--text-main); transition: transform .18s var(--dn-out), background-color .18s ease; }
@media (hover: hover) and (pointer: fine) {
    .dn-cta:hover .dn-cta__plus { transform: scale(1.06); background: color-mix(in srgb, var(--bg-deep) 96%, transparent); }
}
.dn-cta:active .dn-cta__plus { transform: scale(.94); }

.dn-ana__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dn-ana__lead { margin: 0; flex: 1 1 220px; color: var(--text-muted); font-size: 14px; max-width: 52ch; text-wrap: pretty; }
.dn-figs { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-bottom: 18px; }
.dn-fig { display: grid; gap: 2px; min-width: 0; }
.dn-fig span { font-size: 13px; color: var(--text-muted); }
.dn-fig b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-fig b[data-s="pos"] { color: var(--success); }
.dn-fig b[data-s="neg"] { color: var(--danger); }
.dn-fig small { font-size: 12px; color: var(--text-muted); }

.dn-wd__cols { display: grid; gap: 10px; height: 230px; }
.dn-wd__c { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-items: center; gap: 6px; min-width: 0; }
.dn-wd__c > b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dn-wd__track { position: relative; width: min(44px, 100%); border-bottom: 1px solid var(--dn-line-2); }
.dn-wd__bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; background: var(--primary); transition: height .6s var(--dn-out); }
.dn-wd__soll { position: absolute; left: -5px; right: -5px; height: 2px; margin-bottom: -1px; border-radius: 2px; background: var(--text-main); }
.dn-wd__d { font-size: 13px; }
.dn-wd__c > small { font-size: 11.5px; color: var(--dn-faint); font-variant-numeric: tabular-nums; }
.dn-wd__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 12.5px; color: var(--text-muted); }
.dn-wd__key span { display: inline-flex; align-items: center; gap: 7px; }
.dn-wd__key i.bar { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }
.dn-wd__key i.soll { width: 14px; height: 2px; border-radius: 2px; background: var(--text-main); }

.dn-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.dn-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--dn-line); font-size: 14px; min-width: 0; }
.dn-facts dt { color: var(--text-muted); white-space: nowrap; }
.dn-facts dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.dn-chart { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.dn-chart__y { position: relative; font-size: 11.5px; color: var(--dn-faint); font-variant-numeric: tabular-nums; }
.dn-chart__y span { position: absolute; right: 0; transform: translateY(-50%); }
.dn-chart__svg { width: 100%; height: 200px; display: block; touch-action: pan-y; overflow: visible; cursor: crosshair; }
.dn-chart__x { display: flex; justify-content: space-between; margin: 8px 0 0 50px; font-size: 11.5px; color: var(--dn-faint); }
.dn-chart__tip { position: absolute; left: 0; top: 0; pointer-events: none; background: linear-gradient(var(--bg-sidebar), var(--bg-sidebar)), var(--bg-deep); border: 1px solid var(--dn-line-2);
    border-radius: 10px; padding: 7px 10px; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .14s ease; will-change: transform; z-index: 2; }
.dn-chart__tip b { display: block; font-variant-numeric: tabular-nums; font-weight: 600; }
.dn-chart__tip span { color: var(--text-muted); }

.dn-vac { display: flex; flex-direction: column; gap: 12px; }
.dn-vac .dn-ph { margin-bottom: 0; }
.dn-vac__big { display: flex; align-items: baseline; gap: 10px; }
.dn-vac__big b { font-size: 44px; font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.dn-vac__big span { color: var(--text-muted); font-size: 15px; }
.dn-vac__bar { position: relative; height: 12px; border-radius: 6px; background: var(--dn-line); overflow: visible; }
.dn-vac__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; transition: width .8s var(--dn-out), left .8s var(--dn-out); }
.dn-vac__bar .t { border-radius: 6px 0 0 6px; background: var(--dn-vac, var(--holiday)); }
.dn-vac__bar .p { background: repeating-linear-gradient(135deg, var(--dn-vac, var(--holiday)) 0 3px, transparent 3px 6px); }
.dn-vac__bar .mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text-main); transition: left .8s var(--dn-out); }
.dn-vac__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-muted); }
.dn-vac__legend span { display: inline-flex; align-items: center; gap: 7px; }
.dn-vac__legend i { width: 10px; height: 8px; border-radius: 3px; }
.dn-vac__legend i.t { background: var(--dn-vac, var(--holiday)); }
.dn-vac__legend i.p { background: repeating-linear-gradient(135deg, var(--dn-vac, var(--holiday)) 0 2px, transparent 2px 4px); }
.dn-vac__legend i.m { width: 2px; height: 12px; background: var(--text-main); }
.dn-vac__rows { display: grid; }
.dn-vac__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--dn-line); }
.dn-vac__rows span { color: var(--text-muted); }
.dn-vac__rows b { font-weight: 500; text-align: right; }

.dn-ana__p[data-ana="dist"] { display: flex; flex-direction: column; gap: 12px; }
.dn-dist__total { display: flex; align-items: baseline; gap: 10px; }
.dn-dist__total b { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dn-dist__total span { color: var(--text-muted); font-size: 14px; }
.dn-dist__bar { position: relative; height: 14px; border-radius: 7px; overflow: hidden; background: var(--dn-line); }
.dn-dist__bar i { position: absolute; top: 0; bottom: 0; transition: left .6s var(--dn-io), width .6s var(--dn-io), background-color .3s ease; }
.dn-dist__leg { list-style: none; margin: 0; padding: 0; display: grid; }
.dn-dist__leg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 44px; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--dn-line); }
.dn-dist__leg li i { width: 10px; height: 10px; border-radius: 3px; }
.dn-dist__leg li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-dist__leg li small { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.dn-dist__leg li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-dist__leg li em { font-style: normal; color: var(--text-muted); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.dn-dist__leg li.dn-dist__empty { display: block; color: var(--text-muted); border-top: 0; }

.dn-cal { display: flex; flex-direction: column; }
.dn-cal__wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.dn-cal__month { display: flex; flex-direction: column; }
.dn-cal__day { display: none; min-width: 0; }
.dn-cal.is-day .dn-cal__day { display: flex; flex-direction: column; }
.dn-cal.is-day .dn-cal__month { display: none; }
.dn-cal__wd, .dn-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dn-cal__wd span { text-align: center; font-size: 12.5px; color: var(--text-muted); padding-bottom: 8px; }
.dn-cal__grid { flex: 1; row-gap: 3px; grid-auto-rows: minmax(52px, 1fr); }
.dn-cd { position: relative; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 0; border: 0; background: transparent; color: var(--text-main); font-size: 14px; cursor: pointer;
    border-radius: 12px; font-variant-numeric: tabular-nums; transition: background-color .18s ease, transform .14s var(--dn-out); }
.dn-cd span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background-color .18s ease, box-shadow .2s ease; }
.dn-cd small { font-size: 10.5px; color: var(--text-muted); line-height: 1; margin-top: -2px; }
.dn-cd:hover { background: var(--dn-panel-2); }
.dn-cd:active { transform: scale(.94); }
.dn-cd.is-out { color: var(--dn-faint); }
.dn-cd.is-out small { opacity: .6; }
.dn-cd.is-we { color: var(--text-muted); }
.dn-cd.is-today span { box-shadow: inset 0 0 0 1.5px var(--primary); background: var(--dn-soft); font-weight: 600; }
.dn-cd.is-sel span { background: var(--primary); color: var(--dn-on-primary); box-shadow: none; }
.dn-cd i { position: absolute; top: calc(50% - 22px); right: calc(50% - 21px); width: 6px; height: 6px; border-radius: 50%; }
.dn-cd i[data-k="entry"] { background: var(--success); }
.dn-cd i[data-k="holiday"] { background: var(--danger); }
.dn-cd i[data-k="vac"] { background: var(--text-muted); }
.dn-cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.dn-cal__legend span { display: inline-flex; align-items: center; gap: 7px; }
.dn-cal__legend i { width: 8px; height: 8px; border-radius: 50%; }
.dn-dayv__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dn-dayv__ttl { flex: 1; min-width: 0; }
.dn-dayv__head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.dn-dayv__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-muted); }
.dn-dayv__sum { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); padding: 2px 2px 12px; }
.dn-dayv__sum b { color: var(--text-main); font-variant-numeric: tabular-nums; margin-right: auto; }
.dn-dayv__list { display: grid; align-content: start; gap: 8px; max-height: 320px; overflow: auto; margin-bottom: 14px; }
.dn-dayv__add { width: 100%; justify-content: center; }
.dn-ent { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dn-line);
    background: var(--dn-panel-2); color: var(--text-main); text-align: left; cursor: pointer; transition: border-color .2s ease, transform .14s var(--dn-out); }
.dn-ent:hover { border-color: var(--dn-line-2); }
.dn-ent:active { transform: scale(.985); }
.dn-ent__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--dn-rgb, var(--primary-rgb)), .14); color: rgb(var(--dn-rgb, var(--primary-rgb))); }
.dn-ent__ic svg, .dn-ent__ic .mwl-icon { width: 16px; height: 16px; }
.dn-ent__t { min-width: 0; display: grid; gap: 2px; }
.dn-ent__t b { font-size: 14px; font-weight: 500; }
.dn-ent__t small { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-ent__h { font-weight: 600; font-variant-numeric: tabular-nums; }
.dn-empty { display: grid; justify-items: start; gap: 12px; padding: 14px 4px; color: var(--text-muted); font-size: 14.5px; }
.dn-pill { height: 26px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-pill[data-s="pos"] { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.dn-pill[data-s="neg"] { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.dn-pill[data-s="zero"] { color: var(--text-muted); background: var(--dn-panel-2); }
@container dnm (min-width: 680px) {
    .dn-cal__wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .dn-cal__day, .dn-cal.is-day .dn-cal__day { display: flex; flex-direction: column; padding-left: 22px; border-left: 1px solid var(--dn-line); }
    .dn-cal.is-day .dn-cal__month { display: block; }
    .dn-dayv__back { display: none; }
}

.dn-status { display: flex; align-items: center; gap: 18px; padding: 16px 16px 16px 20px; border-radius: var(--dn-r); position: relative; overflow: hidden;
    background: linear-gradient(100deg, rgba(var(--primary-rgb), .22), rgba(var(--primary-rgb), .08) 60%, rgba(var(--primary-rgb), .16)); border: 1px solid rgba(var(--primary-rgb), .28); }
.dn-status:empty { display: none; }
.dn-status__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--dn-panel); color: var(--primary); flex: none; }
.dn-status__t { flex: 1; min-width: 0; }
.dn-status__t b { display: block; font-size: 17px; font-weight: 600; }
.dn-status__t span { color: var(--text-muted); font-size: 14px; }
.dn-status .dn-btn { background: var(--dn-panel); border-color: transparent; }
.dn-status .dn-btn--quiet { background: transparent; color: var(--text-muted); }
.dn-status .dn-btn--quiet:hover { color: var(--text-main); background: var(--dn-soft); }

.dn-drawer { position: fixed; inset: 0; z-index: 200; }
.dn-drawer[hidden] { display: none; }
.dn-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .32s ease; }
.dn-drawer.is-open > .dn-drawer__scrim { opacity: 1; }
.dn-drawer__panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px)); overflow: auto; overscroll-behavior: contain;
    border-radius: 22px; border: 1px solid var(--dn-line-2); background: linear-gradient(var(--bg-sidebar), var(--bg-sidebar)), var(--bg-deep);
    box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .6); transform: translateX(calc(100% + 24px)); transition: transform .46s var(--dn-drawer); }
.dn-drawer.is-open .dn-drawer__panel { transform: none; }
.dn-drawer.is-drag .dn-drawer__panel { transition: none; }
.dn-drawer__panel .card.input-wrapper { border: 0; background: transparent; box-shadow: none; margin: 0; }
.dn-drawer__grip { display: none; }
.dn-x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--dn-line-2); background: transparent; color: var(--text-main); cursor: pointer;
    transition: background-color .2s ease, transform .14s var(--dn-out); }
.dn-x:hover { background: var(--dn-soft); }
.dn-x:active { transform: scale(.94); }
.dn-x svg { width: 18px; height: 18px; }
.dn-drawer__x { position: absolute; top: 18px; right: 18px; z-index: 2; }
.dn-drawer .entry-form__header { padding-right: 52px; }
.dn-drawer .timer-box { grid-template-columns: auto 1fr auto; gap: 0.625rem 0.75rem; padding: 0.75rem 1rem; }
.dn-drawer .timer-display { grid-column: 3; justify-self: end; }
.dn-drawer .timer-log-bar { grid-column: 1 / -1; }
.dn-drawer .btn-icon-row { grid-column: 1 / -1; justify-self: stretch; }
.dn-drawer .timer-btn { flex: 1; justify-content: center; }
.dn-drawer .timer-box__help { display: none; }
body.dn-locked { overflow: hidden; }
body.dn-locked .mobile-bottom-nav, body.dn-locked .mob-nav-handle { transform: translateY(140%); transition: transform .3s var(--dn-out); }

.dn-theme-anim, .dn-theme-anim * { transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease, stroke .35s ease !important; }

.dn-cal__grid.no-hours .dn-cd small { display: none; }

@container dnm (max-width: 760px) {
    .dn-week__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "rail" "body"; grid-template-rows: auto auto 1fr; }
    .dn-week:not(.is-ana) .dn-week__rail { display: none; }
    .dn-week.is-ana .dn-week__rail { display: flex; gap: 4px; padding: 0; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
    .dn-week.is-ana .dn-week__rail::-webkit-scrollbar { display: none; }
    .dn-week.is-ana .dn-day { flex: 1 0 auto; padding: 8px; font-size: 13.5px; text-align: center; }
    .dn-week.is-ana .dn-day small { display: none; }
    .dn-facts { grid-template-columns: minmax(0, 1fr); }
}
@container dnm (max-width: 520px) {
    .dn-dcard { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px; }
    .dn-dcard__ic { display: none; }
    .dn-dist__leg li { grid-template-columns: 10px minmax(0, 1fr) auto 40px; }
    .dn-dist__leg li small { display: none; }
    .dn-cd { height: 46px; }
    .dn-ph { flex-wrap: wrap; }
    .dn-week__head .dn-tile { display: none; }
    .dn-week__head .dn-ph__act { width: 100%; }
    .dn-week__head .dn-seg { flex: 1; }
    .dn-week__head .dn-seg button { flex: 1; }
    .dn-ana__bar .dn-seg { width: 100%; }
    .dn-ana__bar .dn-seg button { flex: 1; }
    .dn-figs { gap: 10px 24px; }
    .dn-fig b { font-size: 20px; }
    .dn-wd__cols { gap: 6px; height: 200px; }
}
@container dnm (min-width: 560px) {
    .dn-today { display: grid; grid-template-columns: 184px minmax(0, 1fr); grid-template-areas: "ph ph" "ring legend" "ring cta"; column-gap: 26px; row-gap: 14px; }
    .dn-today > .dn-ph { grid-area: ph; }
    .dn-today > .dn-ring { grid-area: ring; margin: 0; }
    .dn-today > .dn-legend { grid-area: legend; align-self: end; }
    .dn-today > .dn-cta { grid-area: cta; align-self: start; margin-top: 0; }
}

@container dn (max-width: 1320px) {
    .dn-lang .cmd-label { display: none; }
    .dn-top .dn-lang { padding: 0; width: 36px; justify-content: center; }
}
@container dn (max-width: 1060px) {
    .dn-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .dn-hero__cards > .dn-card { flex: 1; min-width: 0; }
    .dn-mod[data-size="s"], .dn-mod[data-size="m"] { grid-column: span 6; }
    .dn-mod[data-size="l"] { grid-column: span 12; }
}
@container dn (max-width: 700px) {
    .dn-date span, .dn-weather small, .dn-lang .cmd-label { display: none; }
    .dn-top .dn-date, .dn-top .dn-lang { padding: 0; width: 36px; justify-content: center; }
    .dn-menu__size { display: none; }
    .dn-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tools tools" "hello hello" "kw flex"; row-gap: 18px; column-gap: 0; }
    .dn-hero__cards { display: contents; }
    .dn-hello { grid-area: hello; }
    .dn-kw { grid-area: kw; }
    .dn-flex { grid-area: flex; }
    .dn-kw, .dn-flex { align-self: stretch; }
    .dn-top { grid-area: tools; justify-self: end; margin: 0; padding: 0; border-right: 0; }
    .dn-top__tools { margin: 0 !important; padding: 4px; border-radius: 14px; border: 1px solid var(--dn-line); background: var(--dn-panel); }
    .dn-top .dn-badge { box-shadow: 0 0 0 2px var(--dn-panel); }
    .dn-card { padding: 4px 16px; min-width: 0; }
    .dn-kw { padding-left: 0; }
    .dn-kw__top small { display: none; }
    .dn-mod[data-size] { grid-column: span 12; }
    .dn-modbar__btn[data-dn="mod-size"] { display: none; }
    .dn-panel { padding: 18px 16px; }
    .dn-status { flex-wrap: wrap; }
    .dn-status__t { flex-basis: calc(100% - 64px); }
    .dn-status .dn-btn { flex: 1 1 0; justify-content: center; }
    .dn-goal { gap: 12px; padding: 10px 12px; }
}
@container dn (max-width: 440px) {
    .dn-top__tools { gap: 0; padding: 3px; }
    .dn-top .dn-ibtn, .dn-top .dn-date, .dn-top .dn-lang { width: 32px; }
    .dn-top .dn-chip { padding: 0 8px; gap: 5px; }
    .dn-top .dn-date, .dn-top .dn-lang { padding: 0; }
    .dn-weather.is-setup b { display: none; }
}

@media (max-width: 700px) {
    .dn-drawer__panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(105%); padding-bottom: env(safe-area-inset-bottom); }
    .dn-drawer__grip { display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; position: sticky; top: 0; z-index: 3;
        background: linear-gradient(var(--bg-sidebar), var(--bg-sidebar)), var(--bg-deep); }
    .dn-drawer__grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--dn-line-2); }
    .dn-drawer__x { top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .dn *, .dn-drawer * { transition-duration: .01ms !important; animation: none !important; }
}

@container dn (min-width: 1900px) {
    .dn-mod[data-size="s"] { grid-column: span 3; }
    .dn-mod[data-size="m"], .dn-mod[data-size="l"] { grid-column: span 6; }
    .dn-mod[data-dn-mod="cal"][data-size="l"], .dn-mod[data-size="f"] { grid-column: span 12; }
}
