:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef2ff;
  background: #0d1226;
  --ink: #eef2ff;
  --muted: #a7b0d8;
  --line: #39477a;
  --green: #46e0fd;
  --accent-ink: #10130b;
  --pale: #232f57;
  --panel: #1a2242;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: #0d1226; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% -5%, #7c5cff30, transparent 60%),
    radial-gradient(800px 500px at -10% 25%, #46e0fd26, transparent 60%),
    radial-gradient(760px 620px at 55% 112%, #ff5da21f, transparent 62%),
    linear-gradient(180deg, #141b3a, #0d1226 55%, #0a0e20); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 22px 34px, #ffffffd9 50%, transparent 52%),
    radial-gradient(1px 1px at 130px 90px, #cfe9ffd9 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 190px 150px, #ffffffb3 50%, transparent 52%),
    radial-gradient(1px 1px at 70px 180px, #ffe9fbd9 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 240px 40px, #ffffffcc 50%, transparent 52%);
  background-size: 280px 220px; }
button, input, select, textarea { font: inherit; }
button, input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
input, select, textarea { min-width: 0; max-width: 100%; }
textarea { resize: vertical; }
a { color: #a8ecff; }
::selection { background: #46e0fd; color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0; line-height: 1.5; }
h1, h2 { margin: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(2rem, 5vw, 3.05rem); line-height: 1.06; }
h2 { font-size: 1.23rem; line-height: 1.2; }
form { margin: 0; }
main#main { width: min(100%, 1120px); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px) 48px; }
main#main:focus { outline: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.1rem; font-weight: 750; letter-spacing: -.03em; }
.brand img { display: block; width: 32px; height: 32px; border-radius: 9px; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: .88rem; font-weight: 650; }
.top-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.briefing { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: clamp(22px, 3.5vw, 38px);
  border: 1px solid #46538a; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(155deg, #26336a 0%, #1a2247 55%, #131a36 100%);
  box-shadow: 0 12px 40px #05070f80, inset 0 1px 0 #ffffff14, 0 0 44px #46e0fd14; }
.eyebrow { font-size: .84rem; color: var(--green); font-weight: 700; margin-bottom: 8px; letter-spacing: .02em; }
.briefing h1 { font-size: clamp(1.85rem, 4.8vw, 2.75rem); margin-bottom: 8px; }
.briefing > .actions { flex-shrink: 0; }
.hero-date { font-size: 1.02rem; font-weight: 650; margin-bottom: 6px; }
.hero-side { display: grid; gap: 12px; justify-items: end; min-width: min(100%, 250px); }
.clock { font-family: var(--mono); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--green); }
.month-progress { width: 100%; display: grid; gap: 5px; }
.month-progress small { color: var(--muted); font-size: .78rem; }
.progress-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.progress { height: 8px; border-radius: 99px; background: #2e3c63; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d9ec2, var(--green)); transition: width .3s ease; }
.pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-bottom: 14px; }
.pulse-chip { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 12px 14px;
  box-shadow: inset 0 1px 0 #ffffff08; }
.pulse-chip span { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pulse-chip strong { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.nav .button { min-height: 38px; }
.heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.heading h2 { font-size: 1.52rem; }
.heading p { color: var(--muted); margin-top: 4px; font-size: .88rem; }
.heading .actions { justify-content: end; }
.dashboard-grid, .assistant-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
#main .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#main .panel { min-height: 132px; }
#details { width: min(92vw, 820px); }
#details form { margin-top: 0; }
#details .capture form { margin-top: 18px; }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); padding: 19px 20px;
  box-shadow: 0 8px 28px #00000040, inset 0 1px 0 #ffffff07; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.panel h2 { margin: 0 0 8px; }
.panel > header h2 { margin: 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 0; min-height: 59px; border-bottom: 1px solid #1e2429; }
.row:last-child, .message:last-child { border-bottom: 0; }
.row-copy { display: grid; gap: 3px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-copy small { font-size: .82rem; line-height: 1.4; color: var(--muted); }
.row-copy strong { font-size: .93rem; line-height: 1.3; }
.row-copy.done strong { text-decoration: line-through; color: var(--muted); }
.task-row input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--green); margin: 0 3px 0 0; }
.event-time { flex: 0 0 63px; color: var(--green); font-family: var(--mono); font-size: .8rem; font-weight: 650; }
.message { border-bottom: 1px solid #1e2429; padding-bottom: 9px; }
.message .row { border: 0; }
.message .actions { margin-top: 7px; }
.pill { flex-shrink: 0; background: #46e0fd21; color: #a8ecff; font-size: .75rem; font-weight: 700; padding: 5px 8px; border-radius: 30px; }
.priority { background: #f5c54224; color: #f5c542; }
.status-paused { background: #f5c54224; color: #f5c542; }
.status-done { background: #ffffff14; color: var(--muted); }
.span-2 { grid-column: span 2; }
.goal { padding: 4px 0 10px; }
.goal .row { border-bottom: 0; min-height: 0; padding: 7px 0 5px; }
.goal .progress { margin: 2px 0 4px; }
.habit-row { display: grid; grid-template-columns: minmax(84px, 1fr) repeat(7, 30px) 30px; align-items: center;
  gap: 5px; padding: 8px 0; border-bottom: 1px solid #1e2429; }
.habit-row:last-child { border-bottom: 0; }
.habit-head { padding: 2px 0 4px; border-bottom: 0; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; }
.habit-name { font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.cell { width: 26px; height: 26px; margin: 0 auto; display: grid; place-items: center; border: 1px solid #3b4a7d;
  border-radius: 7px; background: #12161a; color: var(--accent-ink); font-size: .78rem; font-weight: 800; padding: 0; }
button.cell:hover { border-color: var(--green); }
.cell.done { background: var(--green); border-color: var(--green); }
.cell.today { box-shadow: 0 0 0 2px #0b0d0f, 0 0 0 4px var(--green); }
.cell.future { background: #131a36; border-style: dashed; }
.cell-remove { min-height: 30px; padding: 2px 4px; }
.stat-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: start; }
.stat-value { flex-shrink: 0; font-family: var(--mono); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.row.stat { flex-wrap: wrap; }
.row.stat .row-copy { flex: 1 1 132px; }
.row.stat .stat-value { flex: 1 1 auto; text-align: right; overflow-wrap: anywhere; }
#journal-form { display: grid; gap: 9px; margin: 6px 0 4px; }
#journal-form textarea { min-height: 74px; }
#journal-form .button { justify-self: start; }
.connection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px;
  border-bottom: 1px solid var(--line); padding: 14px 0; }
.unsupported { padding: 12px 0; }
.muted, .empty { color: var(--muted); font-size: .91rem; }
.panel > .muted, .empty { margin-top: 12px; }
.panel > .actions { margin-top: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; text-decoration: none;
  text-align: center; border: 1px solid transparent; border-radius: 9px; background: var(--green);
  padding: 7px 13px; color: var(--accent-ink); font-weight: 700; font-size: .86rem; }
.button:hover { background: #7deeff; }
.button.secondary { background: var(--pale); color: var(--ink); }
.button.secondary:hover, .button.quiet:hover { background: #262d33; }
.button.quiet { color: var(--green); background: transparent; }
.button.danger { background: #f8717120; color: #fca5a5; }
.button.danger:hover { background: #f8717133; }
.text-action { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; font-weight: 700; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
label { display: grid; gap: 5px; color: var(--ink); font-size: .89rem; font-weight: 650; }
input:not([type=checkbox]), select, textarea { padding: 9px 10px; min-height: 44px; width: 100%; border: 1px solid #3b4a7d;
  border-radius: 8px; color: var(--ink); background: #131a36; font-size: 1rem; font-weight: 400; }
textarea { min-height: 105px; }
.capture { text-align: center; }
.capture form { margin: 18px 0 0; text-align: left; }
.capture form .button { margin-top: 10px; }
.capture p { font-size: .9rem; color: var(--muted); }
.mic { width: 73px; height: 73px; background: #46e0fd1f; border: 1px solid #46e0fd59;
  border-radius: 50%; font-size: 1.65rem; margin: 0 0 10px; }
.mic[aria-label^=Stop] { background: #f8717130; border-color: #c97466; }
dialog { width: min(92vw, 510px); max-height: 87dvh; background: #14181c; color: var(--ink); padding: 24px;
  border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 22px 80px #000000a3; }
dialog::backdrop { background: #0000009e; }
dialog form { display: grid; gap: 11px; margin-top: 14px; }
dialog .filters { margin: 0; }
.form-error { color: #fca5a5; }
.form-error:empty { display: none; }
#status { position: fixed; z-index: 4; right: 18px; bottom: 18px; max-width: min(380px, calc(100vw - 36px));
  background: var(--green); color: var(--accent-ink); font-weight: 650; border-radius: 12px; padding: 12px 15px; box-shadow: 0 8px 24px #00000066; }
#status:empty { display: none; }
.entry { min-height: 100dvh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(ellipse at 20% 0%, #46e0fd1f, transparent 60%), radial-gradient(ellipse at 85% 10%, #4b9bf017, transparent 55%), #0b0d0f; }
.entry-card { max-width: 550px; padding: clamp(24px, 6vw, 52px); background: #131619; border: 1px solid var(--line);
  border-radius: 25px; box-shadow: 0 17px 60px #00000080; }
.entry-card h1 { margin: 30px 0 12px; }
.entry-card p { color: var(--muted); }
.entry-card form, .entry-card > button, .notice { margin-top: 19px; }
.notice { background: var(--pale); border-radius: 9px; padding: 12px; }
.briefing { position: relative; overflow: hidden; }
.briefing > * { position: relative; z-index: 1; }
.briefing::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 25px, #46e0fd14 25px 26px); pointer-events: none; }
.panel > header h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--green); margin-right: 9px; box-shadow: 0 0 10px #46e0fd88; vertical-align: 1px; }
.pulse-chip.live span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 6px; box-shadow: 0 0 8px var(--green); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.panel-summary { color: var(--muted); font-size: .8rem; font-weight: 650; margin-bottom: 6px; }
.fin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.fin-head span { font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.fin-head strong { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.donut-wrap { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.donut { width: 104px; height: 104px; flex-shrink: 0; }
.donut-num { font-size: 12.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.donut-cap { font-size: 6.5px; font-weight: 600; fill: var(--muted); text-anchor: middle; letter-spacing: .1em; }
.legend { display: grid; gap: 7px; font-size: .85rem; flex: 1; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 8px; }
.legend-row strong { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.acct-bars { display: grid; gap: 10px; }
.acct-top { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.acct-top span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acct-top strong { font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.acct-top .button { min-height: 30px; padding: 2px 8px; }
.bar-track { height: 7px; border-radius: 99px; background: #2e3c63; overflow: hidden; margin-top: 4px; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d9ec2, #46e0fd); }
.bar-fill.invested { background: linear-gradient(90deg, #6a5ae0, #8b7cf6); }
.bar-fill.crypto { background: linear-gradient(90deg, #d9a521, #f5c542); }
.bar-fill.debt { background: linear-gradient(90deg, #e05252, #f87171); }
.fin-activity { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.rings { display: flex; gap: 8px; justify-content: space-around; margin: 4px 0 8px; }
.ring { width: 96px; height: 96px; }
.activity { margin-top: 12px; }
.activity h3 { font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #ffffff0d; }
.act-type { font-weight: 650; font-size: .88rem; }
.act-meta { color: var(--muted); font-family: var(--mono); font-size: .72rem; text-align: right; }
.ring-num { font-family: var(--mono); font-size: 10.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.ring-cap { font-size: 6px; font-weight: 600; fill: var(--muted); text-anchor: middle; letter-spacing: .08em; }
.health-summary { color: var(--muted); font-size: .88rem; margin: 2px 0 10px; }
.week-bars { display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; }
.wbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.wbar-fill { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #46e0fd, #1d9ec2); }
.wbar-val { font-family: var(--mono); font-size: .6rem; color: var(--muted); }
.wbar-day { font-size: .68rem; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) {
  #main .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  main#main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 56px; }
  #main .dashboard-grid, .dashboard-grid, .assistant-layout { grid-template-columns: minmax(0, 1fr); }
  #main .panel { min-height: 0; }
  .briefing { align-items: start; flex-direction: column; gap: 12px; }
  .hero-side { justify-items: start; }
  .span-2 { grid-column: auto; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .habit-row { grid-template-columns: minmax(64px, 1fr) repeat(7, 27px) 26px; gap: 3px; }
  .cell { width: 23px; height: 23px; }
  #details { width: calc(100vw - 24px); }
  dialog { padding: 16px; }
}
@media (max-width: 420px) {
  .panel { padding: 14px; }
  .row { flex-wrap: wrap; }
  .row-copy { flex-basis: 115px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
}
#tile-grid { display: flex; gap: 14px; align-items: flex-start; }
.tile-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) {
  #tile-grid { flex-direction: column; align-items: stretch; }
  .tile-col { display: contents; }
  #tile-grid [data-tile] { order: var(--o, 0); width: 100%; min-width: 0; }
}
.week-strip { display: flex; gap: 6px; margin-bottom: 12px; }
.ws-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 5px;
  border: 1px solid var(--line); border-radius: 11px; background: #212c52; min-width: 0;
  font: inherit; color: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; }
.ws-day.selected { border-color: var(--green); background: #46e0fd24; box-shadow: 0 0 14px #46e0fd30; }
.ws-day span { font-size: .64rem; font-weight: 750; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.ws-day strong { font-family: var(--mono); font-size: .92rem; }
.ws-day small { font-size: .62rem; color: var(--muted); font-family: var(--mono); height: .8em; }
.ws-track { height: 26px; display: flex; align-items: flex-end; }
.ws-bar { width: 5px; border-radius: 3px; background: #46538a; }
.ws-day.today { border-color: #46e0fd66; background: #46e0fd0d; }
.ws-day.today strong, .ws-day.today span { color: var(--green); }
.ws-day.today .ws-bar { background: var(--green); box-shadow: 0 0 8px #46e0fd88; }
.allday-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.allday-row > span:first-child { font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.allday-chip { background: #8b7cf61f; border: 1px solid #8b7cf655; color: #cfc6ff; border-radius: 99px; padding: 4px 10px; font-size: .76rem; font-weight: 650; }
.tl { position: relative; margin-top: 2px; }
.tl-hour { position: absolute; left: 0; right: 0; border-top: 1px solid #ffffff14; }
.tl-hour span { position: absolute; top: -7px; left: 0; width: 44px; text-align: right; font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.tl-events { position: absolute; top: 0; bottom: 0; left: 54px; right: 0; }
.tl-ev { position: absolute; border-radius: 9px; border: 1px solid #46e0fd38; border-left: 3px solid var(--green);
  background: linear-gradient(180deg, #46e0fd17, #46e0fd0a); padding: 5px 8px; overflow: hidden; }
.tl-ev strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .78rem; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere; }
.tl-ev small { display: block; color: var(--muted); font-family: var(--mono); font-size: .62rem; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ev.snug strong { display: block; white-space: nowrap; text-overflow: ellipsis; }
.tl-ev.mini { padding: 3px 7px; }
.tl-ev.mini strong { display: block; white-space: nowrap; text-overflow: ellipsis; font-size: .74rem; line-height: 1.2; }
.tl-ev.mini small { display: none; }
.tl-ev.past { opacity: .48; }
.tl-ev.now { border-color: #46e0fd88; box-shadow: 0 0 16px #46e0fd30; background: linear-gradient(180deg, #46e0fd2b, #46e0fd12); }
.tl-now { position: absolute; left: -6px; right: 0; border-top: 2px solid #f87171; z-index: 3; }
.tl-now span { position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #f87171; box-shadow: 0 0 8px #f87171; }
.panel { background: linear-gradient(180deg, #1f2a52, #1a2242); box-shadow: inset 0 1px 0 #ffffff0d, 0 12px 32px #05070f66; }
.muse-add { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.dog-runway { flex: 1; position: relative; min-width: 64px; height: 56px; }
.dog { position: absolute; bottom: 0; left: 0; z-index: 3; width: 86px; height: 54px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition-property: left; transition-timing-function: cubic-bezier(.45,.02,.35,1); }
.dog-flip { position: relative; width: 100%; height: 100%; transition: transform .25s ease; }
.dog-shadow { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 72%; height: 7px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(2,6,20,.5), transparent 70%); }
.dog.excited .dog-shadow { animation: dog-shadow-jump .55s ease; }
.dog-heart { position: absolute; top: -9px; left: 1px; z-index: 3; color: #ff5da1; font-size: 13px; opacity: 0; pointer-events: none; }
.dog.look .dog-heart, .dog.excited .dog-heart { animation: heart-float 1.6s ease forwards; }
.dog svg { width: 100%; height: 100%; overflow: visible; display: block; }
.dog .d-body { animation: dog-breathe 1.6s ease-in-out infinite alternate; transition: transform .3s ease; }
.dog .d-tail { transform-box: fill-box; transform-origin: 90% 90%; animation: dog-wag .5s ease-in-out infinite alternate; }
.dog .d-ear { transform-box: fill-box; transform-origin: 50% 10%; animation: dog-ear 1.1s ease-in-out infinite alternate; }
.dog .d-head { transform-box: fill-box; transform-origin: 20% 88%; transition: transform .3s ease; }
.dog .d-leg { transform-box: fill-box; transform-origin: 50% 8%; }
.dog.moving .d-body { animation: dog-bob .34s ease-in-out infinite alternate; }
.dog.moving .d-leg { animation: dog-trot .34s ease-in-out infinite alternate; }
.dog.moving .d-leg.b { animation-delay: -.34s; }
.dog.moving .d-tail { animation-duration: .24s; }
.dog.running .d-body { animation-duration: .19s; }
.dog.running .d-leg { animation-duration: .17s; }
.dog.running .d-leg.b { animation-delay: -.17s; }
.dog.running .d-tail { animation-duration: .15s; }
.dog.sit .d-body { animation: none; transform: rotate(-8deg) translateY(2px); transform-box: fill-box; transform-origin: 16% 92%; }
.dog.sit .d-leg.rear { transform: scaleY(.45) rotate(24deg); transform-origin: 50% 100%; }
.dog.sit .d-tail { animation-duration: .3s; }
.dog.sniff .d-head { transform: rotate(17deg) translateY(2px); }
.dog.look .d-head { transform: translateY(-2.5px) rotate(-5deg); }
.dog.look .d-tail { animation-duration: .17s; }
.dog-bubble { position: absolute; top: -13px; right: -4px; z-index: 4; background: #eef2ff; color: #1a2242;
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; opacity: 0;
  transform: scale(.6) translateY(4px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.dog.excited .dog-bubble { opacity: 1; transform: scale(1) translateY(0); }
.dog.excited svg { animation: dog-jump .55s ease; }
.dog.excited .d-tail { animation-duration: .09s; }
@keyframes dog-wag { from { transform: rotate(-13deg); } to { transform: rotate(24deg); } }
@keyframes dog-bob { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
@keyframes dog-breathe { from { transform: translateY(0); } to { transform: translateY(-.7px); } }
@keyframes dog-trot { from { transform: rotate(9deg); } to { transform: rotate(-9deg); } }
@keyframes dog-ear { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
@keyframes dog-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-9px) rotate(-3deg); } 70% { transform: translateY(0); } 85% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes dog-shadow-jump { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; } 35% { transform: translateX(-50%) scaleX(.68); opacity: .55; } 70% { transform: translateX(-50%) scaleX(1); opacity: 1; } }
@keyframes heart-float { 0% { opacity: 0; transform: translateY(4px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-13px) scale(1.05); } }
@media (max-width: 610px) { .dog { width: 68px; height: 43px; } .dog-runway { height: 45px; min-width: 74px; } }
#tile-grid.arranging [data-tile] { position: relative; }
.tile-x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: #f87171; color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; }
.hidden-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.amt { font-weight: 600; white-space: nowrap; }
.amt small { color: var(--muted); font-weight: 400; }
.up { color: #f87171; }
.down { color: #34d399; }
.ask-panel { margin-bottom: 14px; }
.request-list { margin-top: 12px; }
.badge.warn { background: #f5c54226; color: #f5c542; }
.arrange-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-bottom: 10px; }
.dashboard-grid.arranging .panel { cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.panel.dragging { z-index: 9; box-shadow: 0 22px 48px #000000cc, 0 0 0 1.5px var(--green); cursor: grabbing; }
@media (max-width: 610px) {
  .nav { position: fixed; left: 18px; right: 18px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6;
    background: #161e3de0; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid #3b4a7d; border-radius: 18px; padding: 6px; margin: 0;
    justify-content: space-between; box-shadow: 0 14px 36px #000000b0, 0 0 24px #46e0fd14; }
  .nav .button { flex: 1; min-height: 46px; border-radius: 12px; padding: 6px 3px; font-size: .76rem; }
  .topbar { gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .top-actions .button { padding: 6px 9px; font-size: .8rem; white-space: nowrap; }
  .tl-events { left: 42px; }
  .tl-hour span { width: 34px; font-size: .58rem; }
  .tl-ev { padding: 4px 6px; }
  .tl-ev strong { font-size: .74rem; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  main#main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  #status { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
