/*
Bezy Editorial is a subset of Liberation Serif.
Digitized data copyright (c) 2010 Google Corporation, with reserved font names Arimo, Tinos and Cousine.
Copyright (c) 2012 Red Hat, Inc., with reserved font name Liberation.
This Font Software is licensed under the SIL Open Font License,
Version 1.1.

This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

PREAMBLE The goals of the Open Font License (OFL) are to stimulate
worldwide development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to provide
a free and open framework in which fonts may be shared and improved in
partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves.
The fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works.  The fonts and derivatives,
however, cannot be released under any other type of license.  The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.



DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such.
This may include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components
as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting ? in part or in whole ?
any of the components of the Original Version, by changing formats or
by porting the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical writer
or other person who contributed to the Font Software.


PERMISSION & CONDITIONS

Permission is hereby granted, free of charge, to any person obtaining a
copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,in
   Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
   redistributed and/or sold with any software, provided that each copy
   contains the above copyright notice and this license. These can be
   included either as stand-alone text files, human-readable headers or
   in the appropriate machine-readable metadata fields within text or
   binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
   Name(s) unless explicit written permission is granted by the
   corresponding Copyright Holder. This restriction only applies to the
   primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
   Software shall not be used to promote, endorse or advertise any
   Modified Version, except to acknowledge the contribution(s) of the
   Copyright Holder(s) and the Author(s) or with their explicit written
   permission.

5) The Font Software, modified or unmodified, in part or in whole, must
   be distributed entirely under this license, and must not be distributed
   under any other license. The requirement for fonts to remain under
   this license does not apply to any document created using the Font
   Software.



TERMINATION
This license becomes null and void if any of the above conditions are not met.



DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT.  IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE.
.
*/
@font-face { font-family:"Bezy Editorial";src:url("assets/editorial.woff") format("woff");font-weight:400;font-style:normal;font-display:swap }
:root {
  color-scheme:light;
  --paper:#f6f5f0;
  --edge:#c7c3b4;
  --day-high:#f6c445;
  --panel:#fffefa;
  --rail:#f0eee6;
  --ink:#25221e;
  --dim:#686257;
  --line:#e0ddd1;
  --honey:#f6c445;
  --amber:#e8a928;
  --soft:#ffedb2;
  --hero:#f6edda;
  --pill:#eae6dc;
  --neutral:#d2cec4;
  --good:#547346;
  --danger:#a13722;
  --webfont:"Instrument Sans","Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
  --serif:"Bezy Editorial",Georgia,"Iowan Old Style","Liberation Serif",serif
}
:root[data-theme=dark] {
  color-scheme:dark;
  --paper:#201f1b;
    --edge:#686456;
  --panel:#2b2a25;
  --rail:#24231e;
  --ink:#faf5e6;
  --dim:#bbb6aa;
  --line:#48463e;
  --honey:#f6c445;
  --soft:#574a2a;
  --hero:#393120;
  --pill:#34332d;
  --neutral:#545249;
  --good:#a6cb93;
  --danger:#ffac93
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    color-scheme:dark;
    --paper:#201f1b;
    --edge:#686456;
    --panel:#2b2a25;
    --rail:#24231e;
    --ink:#faf5e6;
    --dim:#bbb6aa;
    --line:#48463e;
    --honey:#f6c445;
    --soft:#574a2a;
    --hero:#393120;
    --pill:#34332d;
    --neutral:#545249;
    --good:#a6cb93;
    --danger:#ffac93
  }
}

* {
  box-sizing:border-box
}
html {
  font-family:var(--webfont);
  color:var(--ink);
  background:var(--paper);
  -webkit-text-size-adjust:100%
}
body {
  margin:0;
  line-height:1.45
}
button,input,select,textarea {
  font:inherit;
  color:inherit
}
button {
  cursor:pointer;
  background:none;
  border:0;
  padding:0
}
button:disabled {
  cursor:default;
  opacity:.52
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible {
  outline:3px solid #b97b0c;
  outline-offset:3px
}
.skip-link {
  position:fixed;
  left:8px;
  top:-80px;
  z-index:20;
  background:var(--panel);
  padding:8px
}
.skip-link:focus {
  top:5px
}
svg.ico {
  width:1.22em;
  height:1.22em;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
  vertical-align:-.2em
}

#shell {
  display:grid;
  grid-template-columns:218px minmax(0,1fr);
  min-height:100dvh
}
#rail {
  position:sticky;
  top:0;
  display:flex;
  flex-direction:column;
  height:100dvh;
  padding:32px 15px 20px;
  background:#292823;
  color:#faf6e9;
  overflow-y:auto
}
.brand { display:inline-flex;align-items:center;gap:11px;font-weight:730;font-size:1.55rem;letter-spacing:-.055em;line-height:1 }
.brand img { width:42px;height:42px;border-radius:11px }
.rail-brand { padding:0 9px 29px }
#rail nav { border-top:1px solid #4d4940;padding-top:22px }
.navbtn { display:flex;align-items:center;gap:13px;width:100%;min-height:46px;text-align:left;font-weight:560;font-size:.94rem }
#rail .navbtn { padding:10px 13px;color:#e1dccf;border-radius:8px }
#rail .navbtn+.navbtn { margin-top:4px }
.navbtn svg { width:19px;height:19px }
#rail .navbtn[aria-current=page] { background:#f6c445;color:#29251b;font-weight:730 }
#rail .navbtn:hover:not([aria-current]) { background:#3a3931;color:#fff9ed }
#rail .navbtn:focus-visible { outline-color:#ffdf85 }
.railfoot { margin-top:auto;padding-top:16px;border-top:1px solid #4d4940 }
.railfoot .navbtn { font-size:.87rem }
.workspace { width:100%;max-width:1510px;min-width:0;margin:0 auto;padding:0 clamp(24px,3.6vw,64px) 72px }
#top { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;border-bottom:1px solid var(--line) }
.top-date { display:inline-flex;align-items:center;gap:9px;color:var(--dim);font-size:.84rem;font-weight:550 }
.top-date svg { width:16px;height:16px }
.over,.kicker { font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--dim) }
.tiny,.muted { color:var(--dim) }
.tiny { font-size:.82rem }
.top-actions,.actions,.line,.form-actions { display:flex;gap:9px;align-items:center;flex-wrap:wrap }
.top-actions { flex-wrap:nowrap }
.mono,.metric b,.hex b,.focus-readout,.alarm-edit time { font-variant-numeric:tabular-nums }
.honey-chip { display:inline-flex;gap:7px;align-items:center;min-height:38px;padding:6px 13px;background:var(--soft);color:var(--ink);border:1px solid var(--edge);border-radius:24px;font-size:.84rem;font-weight:650;white-space:nowrap }
.iconbtn { display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:10px;background:transparent;flex-shrink:0 }
.iconbtn svg { width:17px;height:17px }
.top-actions .iconbtn { display:none }
.top-actions .quick-top { min-height:38px;border:0;background:transparent }
.mobile-brand,.home-date { display:none }
#main { outline:none }
.pagehead { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:26px 0 24px }
.pagehead h1 { font:400 clamp(2.8rem,4.6vw,4.4rem)/1.02 var(--serif);letter-spacing:-.055em;margin:0 }
.pagehead p { margin:7px 0 0;color:var(--dim);font-size:.94rem }
h2,h3,h4,p { overflow-wrap:anywhere }
h2,h3,h4 { line-height:1.2 }
h2 { margin:0;font-size:1.18rem;font-weight:675;letter-spacing:-.035em }
h3 { margin:0;font-size:1rem }
h4 { margin:0;font-size:.9rem }
p { margin:.5em 0 1em }

.btn,.seg button,.tagbutton {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:8px 13px;
  border-radius:8px;
  font-size:.86rem;
  font-weight:620;
  border:1px solid var(--line);
  background:var(--panel)
}
.btn.primary {
  background:var(--honey);
  border-color:#d5aa44;
  color:#292318
}
.btn.ink {
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink)
}
.btn.ghost {
  background:transparent
}
.btn.danger,.dangertext {
  color:var(--danger)
}
.btn:hover,.iconbtn:hover,.tagbutton:hover {
  filter:brightness(.96)
}
.textbtn {
  font-size:.86rem;
  font-weight:650;
  text-underline-offset:.22em;
  min-height:36px
}
.textbtn:hover {
  text-decoration:underline
}
.seg {
  display:inline-flex;
  gap:2px;
  background:var(--pill);
  padding:3px;
  border-radius:7px;
  max-width:100%;
  flex-wrap:wrap
}
.seg button {
  background:transparent;
  border:0;
  min-height:30px;
  padding:4px 10px;
  font-size:.78rem;
  color:var(--dim)
}
.seg button.active {
  background:var(--panel);
  color:var(--ink);
  box-shadow:0 1px 2px #0001
}
.grid {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr);
  gap:20px;
  align-items:start
}
.stack {
  display:grid;
  gap:16px;
  min-width:0
}
.panel {
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:14px;
  padding:clamp(15px,2vw,27px);
  min-width:0
}
.panel-head,.row,.split {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.panel-head {
  margin-bottom:15px
}
.panel-head .over {
  display:block;
  margin:0 0 4px
}
.row {
  padding:11px 0;
  border-bottom:1px solid var(--line);
  min-height:46px
}
.row:last-child {
  border-bottom:0
}
.row>div,.row>span {
  min-width:0
}
.row .maintext {
  flex:1;
  min-width:0;
  text-align:left
}
.row strong,.maintext {
  overflow-wrap:anywhere
}
.row .tiny {
  display:block
}
.row input[type=checkbox] {
  width:20px;
  height:20px
}
.empty {
  padding:8px 0 12px;
  color:var(--dim);
  font-size:.9rem;
  margin:0
}
.quietbox {
  border-left:3px solid var(--amber);
  background:var(--hero);
  padding:10px 13px;
  font-size:.88rem;
  color:var(--ink);
  margin:10px 0
}
.section-gap {
  margin-top:20px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(94px,1fr));
  gap:10px
}
.metric {
  padding:8px 0
}
.metric b {
  font-size:1.55rem;
  display:block;
  line-height:1.14;
  font-weight:670;
  letter-spacing:-.04em
}
.metric span {
  font-size:.75rem;
  color:var(--dim)
}

/* Honeycomb */
.dashboard { display:grid;grid-template-columns:minmax(0,1.53fr) minmax(270px,1fr);gap:clamp(16px,1.7vw,26px);align-items:start }
.dashboard-main,.dashboard-side { display:grid;gap:16px;min-width:0 }
.dashboard .panel { padding:clamp(16px,1.65vw,26px) }
.calendar-panel { --tile:var(--paper);--hex:polygon(25% 0%,75% 0%,100% 50%,75% 100%,25% 100%,0 50%) }
.cal-head,.calendar-tools,.cal-directions { display:flex;align-items:center;justify-content:space-between;gap:8px }
.cal-head h2 { margin:0;font:400 clamp(1.65rem,2.7vw,2.55rem)/1.12 var(--serif);letter-spacing:-.045em }
.cal-head h2 span { color:var(--dim) }
.cal-directions { gap:3px }
.cal-directions .iconbtn { min-height:38px;width:38px;height:38px;border-radius:9px }
.calendar-tools { margin:10px 0 16px }
.calendar-tools .seg button { min-height:34px;min-width:58px }
.calendar-tools .today-link { background:transparent;border:0;min-height:38px;padding:5px 4px;gap:6px;color:var(--dim) }
.today-link svg { width:16px;height:16px }
.weekheads,.comb { width:min(100%,550px);margin-inline:auto }
.weekheads { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding-inline:2.27% }
.weekheads span { color:var(--dim);text-align:center;font-weight:650;font-size:.72rem }
.comb { position:relative;aspect-ratio:var(--aspect);margin-top:7px;margin-bottom:14px }
.hex { position:absolute;display:grid;place-items:center;left:var(--x);top:var(--y);width:18.1818%;height:var(--hexh);isolation:isolate;clip-path:var(--hex);transform:scale(.966);background:var(--edge);color:var(--ink);font:590 .94rem/1 var(--webfont);text-decoration:none;transition:background .12s ease-out }
.hex::before { content:"";position:absolute;inset:1.25px;background:var(--tile);clip-path:inherit;z-index:-1 }
.hex[data-level=high] { --tile:var(--day-high);color:#282318 }
.hex[data-level=partial] { --tile:var(--soft) }
.hex[data-level=low] { --tile:var(--neutral) }
.hex[data-level=rest] { --tile:repeating-linear-gradient(135deg,var(--panel),var(--panel) 4px,var(--neutral) 5px,var(--panel) 6px) }
.hex b { display:grid;place-items:center;min-width:1.72em;height:1.72em;font:inherit }
.hex.today { background:var(--ink) }
.hex.today::before { inset:2px }
.hex.today b { border-radius:50%;color:#fff6db;background:#332d22;font-weight:720 }
.hex.out { opacity:.29;pointer-events:none }
.hex.out::before { background:var(--panel) }
.hex:hover,.hex:focus-visible { background:var(--ink);outline:0 }
.hex:focus-visible::before { inset:3.7px }
.hex .event-dot { position:absolute;top:76%;width:5px;height:5px;border-radius:50%;background:currentColor }
.legend { display:flex;align-items:center;flex-wrap:wrap;gap:6px 13px;padding-top:13px;border-top:1px solid var(--line);color:var(--dim);font-size:.74rem }
.legend span { display:inline-flex;align-items:center;gap:5px }
.sw { display:inline-block;width:11px;height:10px;background:var(--edge);clip-path:var(--hex) }
.sw.high,.mini-grid .high { background:var(--day-high) }
.sw.partial,.mini-grid .partial { background:var(--soft) }
.sw.low,.mini-grid .low { background:var(--neutral) }
.sw.rest,.mini-grid .rest { background:repeating-linear-gradient(135deg,var(--edge),var(--edge) 2px,var(--panel) 2px,var(--panel) 4px) }
.sw.blank::after { content:"";display:block;clip-path:inherit;background:var(--panel);height:100%;transform:scale(.72) }
.sw.event { width:5px;height:5px;margin-inline:3px;clip-path:none;border-radius:50%;background:var(--ink) }
.yeargrid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0 14px }
.yeargrid button { display:block;border:1px solid var(--line);padding:7px 9px 8px;background:var(--paper);border-radius:8px;text-align:left;font-size:.82rem }
.yeargrid button[aria-current] { border-color:var(--ink) }
.yeargrid button:hover { border-color:var(--amber) }
.mini-grid { display:grid;grid-template-columns:repeat(7,1fr);gap:1px;margin-top:5px;max-width:100px }
.mini-grid i { height:clamp(4px,.6vw,8px);clip-path:var(--hex);background:var(--edge) }
.mini-grid .outside { visibility:hidden }
.focus-card { display:flex;position:relative;isolation:isolate;overflow:hidden;min-height:207px;padding:21px clamp(16px,1.7vw,26px);color:#342b1c;background:#f8da83;border:1px solid #e4c36e;border-radius:14px;align-items:center }
.focus-copy { width:61%;position:relative;z-index:1 }
.focus-copy h2 { display:flex;align-items:center;gap:6px;font-size:.83rem;font-weight:670;letter-spacing:0 }
.focus-copy h2 svg { width:16px;height:16px }
.focus-readout { margin:11px 0 3px;font:400 clamp(2.9rem,3.8vw,3.9rem)/.94 var(--serif);letter-spacing:-.055em;white-space:nowrap }
.focus-readout span { margin-left:5px;font:550 .99rem/1 var(--webfont);letter-spacing:0 }
.focus-readout.no-target,.focus-readout.running { font-size:clamp(1.7rem,3.1vw,2.8rem) }
.focus-copy p { margin:6px 0 14px;font-size:.8rem;line-height:1.4;color:#54442a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.focus-card .focus-start { min-height:40px;background:#332d23;color:#fffaec;border:1px solid #332d23;white-space:nowrap }
.focus-start svg { width:14px;height:14px }
.focus-art { position:absolute;z-index:0;right:3%;top:50%;transform:translateY(-50%);height:84%;max-width:47%;aspect-ratio:1;pointer-events:none;border-radius:50%;overflow:hidden;background:#f8efe5;border:1px solid #d8b15c }
.focus-art img { display:block;width:100%;height:100%;padding:4%;object-fit:contain }
.task-empty p { margin:0 0 13px;font-size:.88rem }
.soft-button { background:var(--paper);border-color:var(--edge) }
.home-report .metrics { gap:0;grid-template-columns:repeat(3,minmax(0,1fr)) }
.home-report .metric { border-left:1px solid var(--line);padding:2px 8px 1px 15px }
.home-report .metric:first-child { padding-left:0;border-left:0 }
.home-report .metric b { font:400 clamp(1.75rem,2.7vw,2.7rem)/1.05 var(--serif);margin-bottom:4px }
.home-report .metric span { line-height:1.3;display:block }
.agenda-row { width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;text-align:left }
.agenda-row + .agenda-row { border-top:1px solid var(--line) }
.agenda-row strong,.agenda-row small { display:block;overflow-wrap:anywhere }
.agenda-row strong { font-size:.92rem }
.agenda-row small { color:var(--dim);font-size:.8rem;margin-top:2px }
.agenda-row > svg { width:15px;color:var(--dim) }
.agenda-icon { display:grid;place-items:center;width:33px;height:33px;border-radius:8px;background:var(--paper);color:var(--dim) }
.agenda-icon svg { width:17px }
.agenda-add,.shelf-tools { display:flex;gap:6px 16px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:7px;margin-top:10px }
.btn.quiet-action { border:0;background:transparent;min-height:40px;padding:4px 0;color:var(--dim);gap:5px }
.agenda-add .btn:hover,.shelf-tools .btn:hover,.today-link:hover { color:var(--ink);text-decoration:underline;text-underline-offset:.23em }
.home-agenda .empty { padding:0 0 5px }
.allowance-row { display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap }
.allowance-row p { margin:0;font-size:.89rem;color:var(--dim) }
body[data-calendar=Amber] { --day-high:#eea442 }
body[data-calendar=Meadow] { --day-high:#abc591 }

.check {
  width:27px;
  height:27px;
  flex-shrink:0;
  border:1.5px solid var(--line);
  border-radius:6px;
  display:grid;
  place-items:center
}
.check.done {
  background:var(--honey);
  border-color:var(--amber);
  color:#25221e
}
.strike {
  text-decoration:line-through;
  color:var(--dim)
}
progress {
  width:100%;
  height:7px;
  accent-color:var(--amber)
}
.focusclock {
  font:500 clamp(2.6rem,6vw,5.6rem)/1 var(--mono);
  letter-spacing:-.08em;
  margin:16px 0
}
.tabsline {
  margin-bottom:20px;
  overflow-x:auto
}
.tabsline .seg {
  flex-wrap:nowrap;
  white-space:nowrap
}
.chip {
  display:inline-block;
  border:1px solid var(--line);
  border-radius:20px;
  padding:2px 9px;
  font-size:.74rem;
  color:var(--dim)
}
.form {
  display:grid;
  gap:14px
}
.form label,.field {
  display:grid;
  gap:5px;
  font-size:.85rem;
  font-weight:610
}
.form label.toggle {
  display:flex;
  align-items:center;
  gap:8px
}
.form input:not([type=checkbox]):not([type=range]),.form select,.form textarea,.search,.answer,.edit-title {
  font:inherit;
  width:100%;
  min-width:0;
  max-width:100%;
  padding:9px 10px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:6px
}
.form textarea {
  min-height:75px
}
.form .pair {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.form fieldset {
  margin:0;
  padding:8px 10px 11px;
  border:1px solid var(--line);
  border-radius:6px
}
.focus-protection .actions { margin-top:6px }
.form legend {
  font-size:.84rem;
  font-weight:620
}
.days {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}
.days label {
  display:inline-flex;
  gap:2px;
  align-items:center;
  font-size:.78rem
}
.form-actions {
  justify-content:flex-end;
  margin-top:6px
}
.form input[type=checkbox] {
  accent-color:var(--amber)
}
.rule {
  border:0;
  border-top:1px solid var(--line);
  margin:12px 0
}
dialog {
  width:min(560px,calc(100vw - 24px));
  max-height:min(87dvh,900px);
  padding:0;
  background:var(--panel);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:14px;
  overscroll-behavior:contain
}
dialog.wide {
  width:min(800px,calc(100vw - 24px))
}
dialog::backdrop {
  background:rgb(26 23 18/.45)
}
#sheet-inner {
  padding:22px
}
.sheet-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px
}
.sheet-head h2 {
  font:500 1.85rem/1.08 var(--serif);
  letter-spacing:-.04em
}
.sheet-head .iconbtn {
  width:34px;
  height:34px
}
.inline-error {
  color:var(--danger);
  font-weight:630;
  font-size:.9rem
}
#toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  max-width:85vw;
  z-index:15;
  background:var(--ink);
  color:var(--paper);
  border-radius:8px;
  padding:10px 15px;
  font-size:.87rem;
  pointer-events:none
}
#toast:empty {
  display:none
}
#tabs {
  display:none
}
.bee-float {
  position:fixed;
  z-index:4;
  right:21px;
  bottom:19px;
  width:59px;
  height:59px;
  border-radius:50%;
  background:var(--hero);
  border:2px solid var(--panel);
  box-shadow:0 2px 6px #0003;
  touch-action:none
}
.bee-float img {
  border-radius:50%;
  width:100%;
  height:100%;
  display:block
}
.bubble {
  position:fixed;
  z-index:5;
  right:18px;
  bottom:89px;
  max-width:min(290px,85vw);
  padding:15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:0 3px 12px #0002
}
.bubble p {
  font-family:var(--serif);
  font-size:1.2rem;
  line-height:1.25;
  margin:.3em 0
}
.bubble header {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.bubble button {
  min-height:30px
}
.bee-float[data-state=celebrating] img,.bee-float[data-state=waving] img {
  animation:wave .6s ease-in-out 2
}
.bee-float[data-state=thinking] img,.bee-float[data-state=studying] img {
  transform:rotate(-6deg)
}
.bee-float[data-state=sleeping] img,.bee-float[data-state=disappointed] img {
  filter:saturate(.55)
}
.bee-float[data-state=reminding] {
  border-color:var(--amber)
}
.bee-float[data-state=focused],.bee-float[data-state=working] {
  outline:2px solid var(--amber)
}
.bee-float.scarf {
  border:5px solid #af502e
}
.bee-float.sage {
  border:5px solid #72876b
}
.bee-float.bounce {
  animation:wave 1s ease-in-out 2
}
@keyframes wave {
  30% {
    transform:rotate(-9deg)
  }
  70% {
    transform:rotate(9deg)
  }
}
.editor {
  min-height:220px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:16px;
  overflow:auto;
  font-size:1rem;
  line-height:1.65;
  overflow-wrap:anywhere
}
.editor p {
  margin:0 0 .65em
}
.editor table {
  border-collapse:collapse;
  width:100%
}
.editor td,.editor th {
  border:1px solid var(--line);
  padding:4px
}
.editor.lined,.paper-lined {
  background-image:repeating-linear-gradient(transparent,transparent 25px,var(--line) 26px)
}
.editor.gridpage {
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:20px 20px
}
.editor.dotted {
  background-image:radial-gradient(var(--line) 1px,transparent 1px);
  background-size:13px 13px
}
.edit-title {
  font-size:1.25rem;
  margin:8px 0
}
.toolbar {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  margin:5px 0
}
.toolbar button {
  min-width:33px;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 7px
}
.note-grid,.shop-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:12px
}
.thumb {
  max-width:100%;
  max-height:200px;
  border:1px solid var(--line);
  border-radius:5px
}
.inkpad {
  border:1px solid var(--line);
  border-radius:6px;
  touch-action:none;
  width:100%;
  aspect-ratio:1.6;
  background:white
}
.checkline {
  display:flex;
  align-items:center;
  gap:7px
}
.bars {
  display:flex;
  gap:2px;
  height:55px;
  align-items:flex-end;
  border-bottom:1px solid var(--line);
  margin:12px 0
}
.bars i {
  background:var(--amber);
  flex:1;
  min-width:1px
}
.bars i.missing {
  background:var(--line)
}
.statlist {
  display:grid;
  gap:8px
}
.statlist>div {
  display:flex;
  justify-content:space-between;
  gap:12px
}
.legendtext {
  color:var(--dim);
  font-size:.8rem
}
.search {
  max-width:420px
}
.journaltext {
  white-space:pre-wrap
}
.date-mobile {
  display:none
}
.swatch {
  height:6px;
  border-radius:2px;
  margin:8px 0
}
.wrapped {
  padding:18px;
  background:var(--hero);
  border-radius:8px
}
.wrapped h3 {
  font-family:var(--serif);
  font-size:2rem;
  font-weight:500;
  margin:6px 0 14px
}

/* Notebooks, alarms and shared controls */
.hive-layout .panel { min-width:0 }
.shelf { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(165px,100%),1fr));gap:9px }
.shelf-item { display:flex;align-items:center;gap:10px;min-height:66px;padding:8px 10px;text-align:left;border:1px solid var(--line);background:var(--paper);border-radius:9px }
.shelf-item[aria-pressed=true] { border-color:var(--ink);box-shadow:inset 0 0 0 .5px var(--ink) }
.shelf-item strong,.shelf-item small { display:block;overflow-wrap:anywhere }
.shelf-item strong { font-size:.93rem;line-height:1.2 }
.shelf-item small { font-size:.77rem;color:var(--dim);margin-top:3px }
.book-mark { display:grid;place-items:center;flex-shrink:0;width:28px;height:35px;background:var(--cover);border-radius:2px 5px 5px 2px;border-left:3px solid #0003;color:#fffaf0 }
.book-mark svg { width:15px;height:15px }
.shelf-tools { margin-top:16px }
.search-wrap { display:flex;align-items:center;gap:8px;max-width:460px;background:var(--paper);border:1px solid var(--edge);border-radius:9px;padding:0 12px;color:var(--dim) }
.search-wrap svg { width:17px;height:17px }
.search-wrap .search { border:0;background:transparent;padding:11px 0;max-width:none }
.search-wrap:focus-within { outline:2px solid var(--amber);outline-offset:2px }
.search-wrap .search:focus-visible { outline:0 }
.note-empty p { color:var(--dim) }
.note-card { display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;background:var(--paper);border-radius:10px;border:1px solid var(--line);border-top:3px solid var(--cover);padding:15px }
.note-card strong { margin:2px 0;font-size:1.04rem;overflow-wrap:anywhere }
.note-source { display:flex;gap:5px;align-items:center;color:var(--dim);font-size:.76rem }
.note-source svg { width:13px;height:13px }
.note-excerpt { overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.85rem;color:var(--dim);text-align:left;overflow-wrap:anywhere }
.note-card .tiny { margin-top:auto;padding-top:4px }
.alarm-row { display:flex;align-items:center;gap:10px;justify-content:space-between;padding:12px 0 }
.alarm-row+.alarm-row { border-top:1px solid var(--line) }
.alarm-edit { text-align:left;min-width:0;flex:1 }
.alarm-edit time { display:block;font:400 clamp(2rem,3vw,3rem)/1.05 var(--serif);letter-spacing:-.045em }
.alarm-edit strong,.alarm-edit .tiny { display:block;overflow-wrap:anywhere;margin-top:4px }
.alarm-switch { display:flex;align-items:center;gap:6px;border-radius:8px;padding:4px 0;min-height:44px;font-size:.8rem;flex-shrink:0 }
.alarm-switch i { position:relative;width:35px;height:21px;border:1px solid var(--edge);border-radius:14px;background:var(--pill) }
.alarm-switch i::before { content:"";position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:var(--dim);transition:transform .15s }
.alarm-switch[aria-checked=true] i { background:#f6c445;border-color:#bf912b }
.alarm-switch[aria-checked=true] i::before { transform:translateX(14px);background:#332d22 }
.tabsline { border-bottom:1px solid var(--line);margin:0 0 22px;scrollbar-width:thin }
.tabsline .seg { flex-wrap:nowrap;background:transparent;border:0;border-radius:0;padding:0;gap:18px;max-width:none }
.tabsline .seg button { min-height:43px;padding:5px 1px;border-radius:0;font-size:.9rem;border-bottom:3px solid transparent }
.tabsline .seg button.active { background:transparent;box-shadow:none;border-bottom-color:var(--amber);color:var(--ink) }
.tabsline .seg button:focus-visible { outline-offset:-3px }
.brief-button { background:var(--panel) }
.form label { min-width:0 }
.form label.toggle,.days label { min-height:35px }
.form .days input { width:16px;height:16px }
.form input:not([type=checkbox]):not([type=range]),.form select,.form textarea,.answer,.edit-title { min-height:43px;border-radius:8px }
.form input:not([type=checkbox]):not([type=range]),.form select,.form textarea { font-weight:450 }
.form input[type=checkbox] { width:17px;height:17px;flex-shrink:0 }
#sheet { box-shadow:0 15px 56px #18150e30;border-radius:16px }
#sheet-inner { padding:clamp(17px,2.8vw,32px) }
.sheet-head { border-bottom:1px solid var(--line);padding-bottom:13px }
.sheet-head h2 { outline:none;overflow-wrap:anywhere }
.sheet-head .iconbtn { width:40px;height:40px }
.inline-error:not(:empty) { background:var(--paper);border-left:3px solid var(--danger);padding:10px 12px;margin-top:14px }
body:has(#sheet[open]) { overflow:hidden }
.form-actions { padding-top:10px;border-top:1px solid var(--line) }
#bee-message { width:min(280px,calc(100vw - 16px));max-height:min(330px,calc(100dvh - 80px));overflow:auto }
.btn,.iconbtn,.shelf-item,.note-card { transition:background-color .12s,border-color .12s }
.btn:focus-visible,.iconbtn:focus-visible,.navbtn:focus-visible { outline-offset:2px }

@media(min-width:1450px) {
  #shell { grid-template-columns:234px minmax(0,1fr) }
}
@media(max-width:1050px) {
  #shell { grid-template-columns:160px minmax(0,1fr) }
  #rail { padding-inline:10px }
  .rail-brand { padding-inline:4px }
  .rail-brand .brand { font-size:1.28rem;gap:8px }
  .rail-brand img { width:34px;height:34px }
  #rail .navbtn { padding-inline:8px;gap:9px }
  .workspace { padding-inline:22px }
  .grid { grid-template-columns:minmax(0,1.18fr) minmax(215px,.82fr);gap:14px }
  .panel,.dashboard .panel { padding:16px }
  .dashboard { grid-template-columns:minmax(0,1.44fr) minmax(218px,1fr);gap:13px }
  .dashboard-main,.dashboard-side { gap:13px }
  .focus-card { padding:16px;min-height:190px }
}
@media(max-width:820px),(max-height:540px) and (max-width:1000px) {
  #shell { display:block }
  #rail { display:none }
  .workspace { padding:0 19px calc(89px + env(safe-area-inset-bottom)) }
  .mobile-brand { display:inline-flex;font-size:1.2rem;gap:8px }
  .mobile-brand img { width:33px;height:33px;border-radius:9px }
  .top-date { display:none }
  #top { min-height:59px }
  .top-actions { gap:5px }
  .top-actions .iconbtn { display:inline-grid;width:40px;height:40px;border:0 }
  .top-actions .quick-top { font-size:0;gap:0;width:38px;padding:0 }
  .top-actions .quick-top svg { width:18px;height:18px }
  .pagehead { margin:20px 0 17px }
  .pagehead h1 { font-size:clamp(2.65rem,6.8vw,3.4rem) }
  .home-date { display:block }
  #tabs { display:flex;position:fixed;z-index:6;bottom:0;left:0;right:0;justify-content:space-evenly;border-top:1px solid var(--edge);background:var(--panel);padding:4px max(4px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)) }
  #tabs .navbtn { display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;padding:4px 0;color:var(--dim);font-size:.69rem;line-height:1.15 }
  #tabs .navbtn svg { width:21px;height:21px }
  #tabs .navbtn[aria-current] { color:var(--ink);font-weight:750;position:relative }
  #tabs .navbtn[aria-current]::before { content:"";position:absolute;top:2px;height:26px;width:41px;border-radius:10px;z-index:-1;background:var(--soft) }
  .bee-float { bottom:calc(72px + env(safe-area-inset-bottom));right:12px;width:48px;height:48px }
  .bubble { bottom:129px }
  #toast { bottom:calc(76px + env(safe-area-inset-bottom)) }
}
@media(max-width:670px) {
  .workspace { padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right)) }
  .grid { grid-template-columns:minmax(0,1fr) }
  .dashboard { display:grid;grid-template-columns:minmax(0,1fr);gap:13px }
  .dashboard-main,.dashboard-side { display:contents }
  .home-focus { order:1 }.home-calendar { order:2 }.home-tasks { order:3 }.home-agenda { order:4 }.home-report { order:5 }.home-usage { order:6 }
  .focus-card { min-height:152px;padding:15px 18px }
  .focus-readout { font-size:2.65rem;margin:7px 0 2px }
  .focus-copy p { margin:4px 0 8px }
  .focus-art { width:auto;height:90%;right:4% }
  .focus-card .focus-start { min-height:38px;padding:5px 12px }
  .pagehead .home-date,.pagehead p { font-size:.82rem }
  .brief-button { font-size:.8rem;padding:6px 9px }
  .calendar-tools { margin:7px 0 13px }
  .cal-directions .iconbtn { min-width:42px;min-height:42px }
  .calendar-tools .seg button,.calendar-tools .today-link { min-height:40px }
  .calendar-tools .seg button { padding:5px 11px }
  .cal-head h2 { font-size:1.95rem }
  .weekheads span { font-size:.73rem }
  .hex { font-size:.86rem }
  .legend { gap:6px 10px }
  .shelf { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .shelf-tools { gap:0 12px }
  .form .pair { gap:9px }
  .form input:not([type=checkbox]),.form select,.form textarea,.edit-title,.search-wrap .search { font-size:1rem }
  .row { gap:8px }
  #sheet { max-height:calc(100dvh - 20px - env(safe-area-inset-bottom));width:min(100% - 16px,560px) }
  #sheet.wide { width:calc(100% - 16px) }
}
@media(max-width:380px) {
  .workspace { padding-inline:10px }
  .top-actions { gap:1px }
  .brief-button .ico { display:none }
  .home-head { column-gap:6px }
  .pagehead h1 { font-size:2.4rem }
  .pagehead p { font-size:.8rem }
  .panel,.dashboard .panel { padding:13px }
  .panel-head,.split { flex-wrap:wrap }
  .panel-head > div,.row > * { min-width:0 }
  .btn { max-width:100% }
  .form .pair { grid-template-columns:1fr }
  .shelf-item { padding:7px;gap:6px }
  .tabsline .seg { gap:13px }
}
@media(max-height:540px) and (max-width:1000px) {
  #tabs .navbtn { min-height:36px;flex-direction:row;font-size:.75rem;gap:6px }
  #tabs .navbtn[aria-current] { background:var(--soft);border-radius:6px }
  #tabs .navbtn[aria-current]::before { display:none }
  .workspace { padding-bottom:67px }
  .bee-float { bottom:55px }
}
@media(max-width:340px) {
  #top { flex-wrap:wrap;gap:4px;padding-block:4px }
  .mobile-brand { font-size:1.04rem;gap:5px }
  .mobile-brand img { width:28px;height:28px }
  .top-actions { margin-left:auto;gap:2px }
  .honey-chip { padding-inline:8px }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
@media print {
  #rail,#tabs,#top,#companion,.actions,.toolbar,#toast,.sheet-head button,.form-actions,body.print-note #shell {
    display:none!important
  }
  body.print-note dialog {
    display:block;
    position:static;
    max-height:none;
    width:100%;
    border:0
  }
  body.print-note .editor {
    border:0
  }
  #shell {
    display:block
  }
  .workspace {
    padding:0
  }
  dialog::backdrop {
    background:white
  }
}
