@font-face {
  font-family: Chewy;
  src: url('./fonts/chewy-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dmsans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dmsans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'DynaPuff';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/dynapuff-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DynaPuff';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/dynapuff-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  --brand-font: Chewy, system-ui, sans-serif;
  --indigo: #414ca5;
  --blue: #b9cfe8;
  --yellow: #f4c460;
  --cream: #fff7e9;
  --ink: #292e49;
  --paper: #fffcf6;
  --black: #191c2c;
  --subtle: #fbf4e9;
  --body: #444b68;
  --muted: #5e647a;
  --line: #e7dece;
  --strong-line: #c9c3d0;
  --hover: color-mix(in srgb, var(--yellow) 17%, var(--cream));
  --selected: color-mix(in srgb, var(--yellow) 38%, var(--cream));
  --indigo-hover: color-mix(in srgb, var(--indigo) 80%, var(--ink));
  --focus-border: var(--indigo);
  --on-accent: var(--cream);
  --count-text: var(--paper);
  --accent-ink: var(--indigo);
  --accent-focus: var(--blue);
  --shadow-ink: var(--black);
  --clock-surface: color-mix(in srgb, var(--yellow) 54%, var(--cream));
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%235e647a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --card-shadow: 0 1px 2px color-mix(in srgb, var(--black) 5%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--black); background: var(--cream); }
:is(.atelier, .landing) {
  font-family: Fredoka, system-ui, sans-serif;
  --brand-font: DynaPuff, system-ui, sans-serif;
  --brand-weight: 600;
}
::selection { color: var(--black); background: var(--blue); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .42; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-border); outline-offset: 3px; }
.svg-library { display: none; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--accent-ink);
  font: var(--brand-weight, 600) 1.125rem / 1.1 var(--brand-font);
  text-align: start;
}
.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--on-accent);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .045em;
}
a.wordmark:hover .wordmark-mark { background: var(--indigo-hover); }

.button, .icon-button, .nav-item, .add-card {
  align-items: center;
  justify-content: center;
  display: inline-flex;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: .875rem;
  font-weight: 500;
  transition: transform 140ms var(--ease-out);
}
.button { min-height: 44px; padding: 9px 14px; text-align: center; line-height: 1.45; }
.button-primary { color: var(--on-accent); background: var(--indigo); }
.button-secondary { color: var(--black); background: var(--paper); border-color: var(--strong-line); box-shadow: var(--card-shadow); }
.icon-button { width: 36px; height: 36px; padding: 0; flex: none; color: var(--muted); }
.icon-button .icon { font-size: 1rem; }
.button:active, .icon-button:not(:disabled):active, .add-card:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--indigo-hover); }
  .button-secondary:hover { background: var(--hover); border-color: var(--strong-line); }
  .icon-button:where(:not(:disabled)):hover, .nav-item:hover, .add-card:hover { background: var(--hover); color: var(--ink); }
  .task:hover { border-color: var(--strong-line); }
}

.workspace { --sidebar-width: 222px; min-height: 100dvh; display: grid; grid-template: 56px 1fr / var(--sidebar-width) minmax(0, 1fr); background: var(--cream); }
.sidebar {
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--cream);
  padding: 0 15px 16px;
}
.sidebar > .wordmark { margin: 21px 8px 31px; }
.sidebar-content { flex: 1; min-height: 0; overflow: auto; padding: 3px; margin: -3px; }
.sidebar-links { display: grid; gap: 5px; }
.nav-item { position: relative; min-height: 42px; width: 100%; padding: 8px 10px; justify-content: flex-start; gap: 10px; text-align: left; color: var(--body); }
.sidebar-links [aria-current] { background: var(--selected); color: var(--ink); font-weight: 600; }
.sidebar-commissions { margin-top: 12px; }
.sidebar-commissions-heading {
  --sidebar-heading-line-height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding-inline: 10px 4px;
}
.sidebar-label { color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: var(--sidebar-heading-line-height); }
.sidebar-add {
  position: relative;
  flex: 0 0 var(--sidebar-heading-line-height);
  min-height: var(--sidebar-heading-line-height);
  padding: 0;
  border-radius: 50%;
  color: var(--on-accent);
  -webkit-tap-highlight-color: transparent;
}
.sidebar-add::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: var(--sidebar-heading-line-height);
  height: var(--sidebar-heading-line-height);
  border-radius: 50%;
  background: var(--indigo);
}
.sidebar-add .icon { position: relative; width: 14px; height: 14px; stroke-width: 3; }
@media (hover: hover) and (pointer: fine) {
  .sidebar-add:hover::before { background: var(--indigo-hover); }
}
@media (pointer: coarse) {
  .sidebar-add { flex-basis: 44px; min-height: 44px; }
}
.commission-list { display: flex; flex-direction: column; gap: 5px; }
.commission-link > :is(.commission-marker, .icon) { width: 18px; height: 18px; flex: none; object-fit: contain; }
.commission-link .nav-copy { min-width: 0; display: grid; gap: 1px; }
.commission-link .nav-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commission-link .nav-detail { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .75rem; font-weight: 400; }
.client-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; vertical-align: middle; }
.client-emoji { flex: none; width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -.2em; }
.client-color-mark { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--client-accent); }
[data-client-color="teal"] { --client-accent: #278177; --client-pastel: #d8efea; }
[data-client-color="blue"] { --client-accent: #3972a1; --client-pastel: #dcecf8; }
[data-client-color="violet"] { --client-accent: #7460a3; --client-pastel: #ebe3f7; }
[data-client-color="rose"] { --client-accent: #ab5a81; --client-pastel: #f8e0ed; }
[data-client-color="coral"] { --client-accent: #b4504a; --client-pastel: #f9e2db; }
[data-client-color="amber"] { --client-accent: #a96e2c; --client-pastel: #f7ead0; }
[data-client-color="olive"] { --client-accent: #627833; --client-pastel: #edf0d5; }
[data-client-color="slate"] { --client-accent: #5a7182; --client-pastel: #e4ecf1; }
.sidebar-settings { margin-top: 12px; }
.settings-trigger, .settings-item { -webkit-tap-highlight-color: transparent; }
.settings-trigger { width: 42px; height: 42px; }
.settings-trigger .icon { font-size: 1.125rem; }
.settings-trigger[aria-expanded="true"], .settings-item[aria-expanded="true"], .settings-item:active { background: var(--selected); color: var(--ink); }
.settings-menu, .settings-submenu {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--black);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--shadow-ink) 12%, transparent);
}
.settings-menu {
  position: fixed;
  inset: auto;
  width: 172px;
  margin: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(5px) scale(.97);
  transform-origin: bottom left;
  transition: transform 130ms var(--ease-out), opacity 130ms var(--ease-out), display 130ms allow-discrete, overlay 130ms allow-discrete;
}
.settings-menu:popover-open { opacity: 1; transform: none; transition-duration: 175ms; }
.settings-submenu {
  position: absolute;
  left: calc(100% + 7px);
  bottom: 0;
  width: 190px;
  opacity: 1;
  transform: none;
  transition: transform 145ms var(--ease-out), opacity 145ms var(--ease-out);
}
.settings-submenu::before { content: ''; position: absolute; inset: -8px 100% -8px auto; width: 9px; }
.settings-item { gap: 8px; min-height: 38px; }
.settings-item + .settings-item, .settings-submenu + .settings-item { margin-top: 3px; }
.settings-item[aria-current] { background: var(--selected); font-weight: 600; }
.settings-item:focus-visible { outline-offset: -2px; }
.settings-chevron, .settings-check { margin-left: auto; }
.settings-check { visibility: hidden; }
.settings-item[aria-checked="true"] .settings-check { visibility: visible; }
@starting-style {
  .settings-menu:popover-open { opacity: 0; transform: translateY(5px) scale(.97); }
  .settings-submenu:not([hidden]) { opacity: 0; transform: translateX(-4px); }
}
.settings-menu[data-instant], .settings-submenu[data-instant] { transition: none; }
.language-select { flex: none; min-height: 38px; padding: 5px 25px 5px 8px; border: 1px solid var(--strong-line); border-radius: 7px; background-color: var(--paper); color: var(--black); font-size: .8125rem; font-weight: 500; cursor: pointer; }
.language-picker { display: flex; width: 44px; height: 44px; }
.language-trigger.settings-trigger {
  width: 44px;
  height: 44px;
  border-color: color-mix(in srgb, var(--ink) 24%, var(--cream));
  background: transparent;
  color: var(--ink);
}
.language-trigger:is(:hover, [aria-expanded="true"]) { background: var(--selected); }
.language-menu.settings-menu {
  width: 9rem;
  transform-origin: top right;
}
.language-menu.settings-menu[data-side="top"] { transform-origin: bottom right; }
@starting-style {
  .language-menu:popover-open { transform: translateY(-4px) scale(.97); }
  .language-menu[data-side="top"]:popover-open { transform: translateY(4px) scale(.97); }
}

.session-badge {
  --badge-margin: 36px;
  --badge-gap: 8px;
  --badge-divider: color-mix(in srgb, var(--on-accent) 32%, transparent);
  position: relative;
  grid-area: 1 / 2;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: var(--badge-gap);
  max-width: calc(100% - 2 * var(--badge-margin));
  margin-inline: var(--badge-margin);
  padding: 1px 10px;
  border: 1px solid var(--indigo);
  border-radius: 999px;
  background: var(--indigo);
  color: var(--on-accent);
  font-size: .8125rem;
  line-height: 1.25;
}
.session-badge-link { display: flex; align-items: center; gap: var(--badge-gap); min-width: 0; }
.session-badge-link[href]::after { content: ''; position: absolute; inset: 0; border-radius: 999px; }
.session-badge-link:focus-visible { border-radius: 4px; outline-color: var(--accent-focus); }
.session-badge-client { min-width: 0; }
.session-badge .client-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-badge-timer {
  display: grid;
  flex: none;
  border-inline-start: 1px solid var(--badge-divider);
  padding-inline-start: var(--badge-gap);
  font-weight: 600;
  font-kerning: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.session-badge-timer::before, .session-badge-timer > span { grid-area: 1 / 1; }
.session-badge-timer::before { content: attr(data-width-sample); visibility: hidden; }
.session-badge-controls {
  --control-size: 44px;
  --control-gap: 4px;
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--control-gap);
}
.session-badge-controls::before {
  content: '';
  flex: 0 0 1px;
  block-size: 1lh;
  margin-inline-end: calc(var(--badge-gap) - var(--control-gap));
  background: var(--badge-divider);
}
.session-badge-control {
  display: grid;
  place-items: center;
  pointer-events: auto;
  flex: none;
  width: var(--control-size);
  height: var(--control-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.session-badge-control .icon { width: 16px; height: 16px; }
.session-badge-control:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--on-accent) 18%, transparent); }
.session-badge-control:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .session-badge-controls {
    --control-size: 28px;
    inline-size: 0;
    margin-inline-start: calc(-1 * var(--badge-gap));
    overflow: clip;
    opacity: 0;
    transition: inline-size 170ms var(--ease-out), margin-inline-start 170ms var(--ease-out), opacity 120ms var(--ease-out);
  }
  .session-badge:is(:hover, :has(:focus-visible)) .session-badge-controls {
    inline-size: calc(2 * var(--control-size) + var(--control-gap) + var(--badge-gap) + 1px);
    margin-inline-start: 0;
    opacity: 1;
  }
}
.main { grid-area: 2 / 2; min-width: 0; background: var(--paper); border: solid transparent; border-width: 1px 0 0 1px; border-radius: 22px 0 0; }
@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
  .main {
    --page-corner-radius: 22px;
    --page-right-corner-radius: 0px;
    --page-edge-x: 2px;
    --page-shape: shape(
      from var(--page-edge-x) calc(var(--page-corner-radius) + 2px),
      curve to calc(var(--page-edge-x) + var(--page-corner-radius)) 2px
        with var(--page-edge-x) calc(2px + var(--page-corner-radius) * .45) / calc(var(--page-edge-x) + var(--page-corner-radius) * .45) 2px,
      curve to 10% .505px with 7% 2.23px / 8% .16px,
      curve to 21% 3.955px with 14% .62px / 17% 4.53px,
      curve to 32% 1.0225px with 25% 3.7825px / 28% .62px,
      curve to 43% 3.4375px with 36% .965px / 39% 3.84px,
      curve to 55% .505px with 47% 3.955px / 51% .16px,
      curve to 66% 3.955px with 59% .62px / 62% 4.53px,
      curve to 77% 1.0225px with 70% 3.7825px / 73% .62px,
      curve to 88% 3.4375px with 81% .965px / 84% 3.84px,
      curve to calc(100% - var(--page-right-corner-radius)) 2px with 90% 3.955px / 92% 2px,
      curve to 100% calc(2px + var(--page-right-corner-radius))
        with calc(100% - var(--page-right-corner-radius) * .45) 2px / 100% calc(2px + var(--page-right-corner-radius) * .45),
      line to 100% 100%,
      line to var(--page-edge-x) 100%,
      curve to calc(var(--page-edge-x) * .3905) 92%
        with calc(var(--page-edge-x) * 1.115) 97% / calc(var(--page-edge-x) * .2065) 95%,
      curve to calc(var(--page-edge-x) * 1.8625) 83%
        with calc(var(--page-edge-x) * .4365) 89% / calc(var(--page-edge-x) * 2.0695) 86%,
      curve to calc(var(--page-edge-x) * .4595) 75%
        with calc(var(--page-edge-x) * 1.7475) 80% / calc(var(--page-edge-x) * .2755) 78%,
      curve to calc(var(--page-edge-x) * 1.713) 66%
        with calc(var(--page-edge-x) * .517) 72% / calc(var(--page-edge-x) * 1.943) 69%,
      curve to calc(var(--page-edge-x) * .563) 58%
        with calc(var(--page-edge-x) * 1.9085) 63% / calc(var(--page-edge-x) * .379) 61%,
      curve to calc(var(--page-edge-x) * 1.8625) 49%
        with calc(var(--page-edge-x) * .4365) 55% / calc(var(--page-edge-x) * 2.0695) 52%,
      curve to calc(var(--page-edge-x) * .3905) 41%
        with calc(var(--page-edge-x) * 1.7475) 46% / calc(var(--page-edge-x) * .2065) 44%,
      curve to calc(var(--page-edge-x) * 1.713) 32%
        with calc(var(--page-edge-x) * .517) 38% / calc(var(--page-edge-x) * 1.943) 35%,
      curve to calc(var(--page-edge-x) * .4595) 24%
        with calc(var(--page-edge-x) * 1.9085) 29% / calc(var(--page-edge-x) * .2755) 27%,
      curve to calc(var(--page-edge-x) * 1.8625) 15%
        with calc(var(--page-edge-x) * .4365) 21% / calc(var(--page-edge-x) * 2.0695) 18%,
      curve to var(--page-edge-x) calc(var(--page-corner-radius) + 2px)
        with calc(var(--page-edge-x) * 1.6325) 11% / var(--page-edge-x) 7%,
      close
    );
    position: relative;
    isolation: isolate;
    background: transparent;
  }
  .main::before {
    content: '';
    position: absolute;
    inset: -2px 0 0 calc(var(--page-edge-x) * -1);
    z-index: -1;
    pointer-events: none;
    background: var(--paper);
    clip-path: var(--page-shape);
  }
}
.main-content { padding: 32px 36px 48px; max-width: 1240px; margin: 0 auto; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(238px, 29%); align-items: center; gap: 24px; }
.overview:has(> .work-session[hidden]) { grid-template-columns: minmax(0, 1fr); }
.summary-panel { min-width: 0; padding: 4px 0; }
.summary-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
#commission-view .summary-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.summary-panel h1 { font-family: var(--brand-font); font-size: clamp(1.43rem, 2.7vw, 2rem); line-height: 1.23; font-weight: 600; letter-spacing: -.025em; }
.artist-name { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.summary-metric { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 23px 13px 21px 15px; background: var(--subtle); }
.summary-metric:nth-child(3n + 2) { border-radius: 14px 23px 14px 19px; }
.summary-metric:nth-child(3n) { border-radius: 21px 18px 23px 13px; }
.summary-metric dt { color: var(--muted); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.summary-metric dd { margin: 4px 0 0; font-size: clamp(.94rem, 1.8vw, 1.4rem); line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow-wrap: anywhere; }
#commission-view .summary-metric { padding-block: 8px; }
#commission-view .summary-metric dd { margin-top: 3px; }
#commission-view .share-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / -1;
  justify-self: start;
  min-width: min(100%, 11rem);
  max-width: 100%;
  padding-block: 4px;
}
#commission-view .share-actions { display: flex; gap: 2px; margin: 0; }
.share-actions .icon-button { width: 32px; height: 32px; border-radius: 50%; color: var(--accent-ink); }
@media (pointer: coarse) {
  .share-actions .icon-button { width: 44px; height: 44px; }
}
.history-metric { position: relative; }
.history-trigger {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  -webkit-tap-highlight-color: transparent;
}
.history-trigger .icon { align-self: center; color: var(--accent-ink); }
.history-trigger::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.history-trigger:focus-visible { outline: none; }
.history-metric:has(.history-trigger:focus-visible) { outline: 2px solid var(--focus-border); outline-offset: 3px; }
.history-metric:has(.history-trigger[aria-expanded="true"]) { border-color: var(--focus-border); }
@media (hover: hover) and (pointer: fine) {
  :is(.history-metric, .share-metric):hover { border-color: var(--strong-line); }
}
.profile-view { width: min(100%, 675px); }
.profile-form { margin-top: 18px; display: grid; gap: 14px; max-width: 525px; }
.profile-form .button { justify-self: start; }
.profile-form .form-error { margin: 0; }

:is(.work-session, .focus-session-paint) {
  --clock-paint-radius: 23% 27% 20% 17% / 25% 18% 26% 20%;
}
.work-session {
  color: var(--clock-text, var(--black));
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 22px;
  display: grid;
}
.work-session::before {
  content: '';
  position: absolute;
  inset: -4px -5px;
  z-index: -1;
  border-radius: var(--clock-paint-radius);
  clip-path: var(--clock-drop-outline, var(--clock-paint-outline, none));
  color: var(--clock-drop-color, var(--clock-surface));
  background: currentColor;
  pointer-events: none;
  transition: clip-path 95ms var(--ease-out), color 140ms var(--ease-out);
}
.work-session.is-target::before { color: color-mix(in srgb, var(--indigo) 22%, var(--clock-surface)); }
.work-session[data-drop-ripple]::before { transition: none; }
@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
  :is(.work-session, .focus-session-paint) {
    --clock-paint-radius: 0;
    --clock-paint-outline: shape(
      from 3% 23%,
      curve to 23% 5% with 4% 10% / 11% 1%,
      curve to 56% 3% with 36% 9% / 43% 1%,
      curve to 84% 3% with 66% 5% / 75% -1%,
      curve to 97% 15% with 91% 5% / 96% 8%,
      curve to 98% 43% with 99% 22% / 100% 31%,
      curve to 98% 74% with 96% 56% / 101% 67%,
      curve to 89% 92% with 97% 83% / 95% 90%,
      curve to 60% 95% with 80% 98% / 72% 92%,
      curve to 22% 98% with 48% 98% / 36% 101%,
      curve to 4% 91% with 13% 96% / 7% 99%,
      curve to 2% 61% with -1% 82% / 1% 74%,
      curve to 3% 23% with 4% 45% / 0% 35%,
      close
    );
  }
  .work-session::before {
    /* Extend the paint past the shape's reference box so the waves keep their full contour. */
    box-shadow: 0 0 0 24px currentColor;
  }
}
.session-content, .session-switch { grid-area: 1 / 1; min-width: 0; }
.session-content { display: flex; flex-direction: column; }
.session-content[inert] { visibility: hidden; }
.session-switch { align-self: center; display: grid; gap: 12px; text-align: center; font-size: .875rem; }
.session-switch .button { min-width: 78px; }
.work-session h2 { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .875rem; font-weight: 700; }
.work-session h2 .icon { color: var(--clock-text, var(--body)); }
.work-session h2 > [data-i18n="workSession"] { flex: none; white-space: nowrap; }
.session-client-caption { display: flex; align-items: center; gap: inherit; min-width: 0; }
.session-client-caption-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-details { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 4px; margin: 10px 0 13px; min-width: 0; text-align: center; }
:is(.session-timer, .focus-session-timer) { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.15; }
.session-timer { align-self: center; font-size: 2rem; }
.session-status { color: var(--clock-text, var(--body)); font-size: .8125rem; }
.work-session[data-active] .session-status { color: var(--clock-text, var(--ink)); }
.session-task-status { display: flex; align-items: center; justify-content: center; gap: .35em; white-space: nowrap; }
.session-task-status q { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.session-panel-actions { --session-control-size: 44px; display: flex; justify-content: center; gap: 7px; }
.session-panel-actions .button { min-height: var(--session-control-size); padding-block: 3px; font-size: .8125rem; line-height: 1.15; }
.session-panel-actions #session-action { min-width: 5.5rem; padding-inline: 12px; gap: 5px; }
.session-action-label { flex: none; white-space: nowrap; }
.work-session:not([data-active]) #session-action { width: min(100%, 12rem); }
.session-panel-toggle, .session-panel-focus { flex: 0 0 var(--session-control-size); padding: 0; }
.session-panel-toggle .icon, .session-panel-focus .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .session-panel-actions { --session-control-size: 38px; }
}
.session-panel-actions:has(#session-action[data-client-morph]) .session-panel-toggle { display: none; }
#session-action, .session-client, .session-panel-focus, .focus-session-close { -webkit-tap-highlight-color: transparent; }
#session-action.button-primary:not(:disabled):hover { background: var(--indigo); }
#session-action[data-client-morph] { background: var(--indigo); border-color: transparent; color: var(--on-accent); transform: none; transition: none; }

:root:has(.focus-session[open]) { overflow: hidden; }
.work-session[data-focus]::before,
.work-session[data-focus] .session-timer { visibility: hidden; }
.focus-session {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--clock-text, var(--black));
}
.focus-session::backdrop { background: transparent; }
.focus-session-paint {
  --focus-cover: translate(-18%, -18%) scale(1.36);
  position: absolute;
  inset: 0;
  transform: var(--focus-cover);
  transform-origin: top left;
  border-radius: var(--clock-paint-radius);
  clip-path: var(--clock-paint-outline, none);
  background: var(--clock-surface);
  pointer-events: none;
}
.focus-session-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}
.focus-session-timer {
  transform-origin: top left;
  font-size: clamp(3rem, min(14vw, 25dvh), 9rem);
  white-space: nowrap;
}
.focus-session-context { display: grid; justify-items: center; gap: 16px; width: min(100%, 34rem); }
.focus-session-client { max-width: 100%; font-size: clamp(1.15rem, 2.8vw, 1.65rem); font-weight: 500; }
.focus-session-task { width: min(100%, 22rem); padding: 12px 14px; color: var(--black); text-align: start; }
.focus-session-task h2 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.focus-session-task-notes { font-size: .8125rem; }
.focus-session-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: calc(12px + env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .focus-session-close:hover { background: color-mix(in srgb, currentColor 9%, transparent); color: inherit; }
}
.session-clients {
  --client-row-height: 44px;
  --client-corner-x: 100%;
  --client-corner-y: 0px;
  --client-direction: 1;
  --client-fold: translate(14px, calc(-14px * var(--client-direction))) scale(.022, .04);
  --client-unfold: translate(0px, 0px) scale(1, 1);
  --client-open-time: 265ms;
  --client-close-time: 195ms;
  --client-reveal: inset(
    max(0px, var(--client-corner-y)) max(0px, calc(100% - var(--client-corner-x)))
    max(0px, calc(100% - var(--client-corner-y))) max(0px, var(--client-corner-x)) round 12px
  );
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-accent);
  filter: drop-shadow(0 7px 13px color-mix(in srgb, var(--shadow-ink) 15%, transparent));
  overflow: visible;
  opacity: 0;
  transition: opacity 20ms linear calc(var(--client-close-time) - 20ms),
    display var(--client-close-time) allow-discrete, overlay var(--client-close-time) allow-discrete;
}
.session-clients:popover-open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition-property: display, overlay;
  transition-delay: 0ms;
  transition-duration: var(--client-close-time);
}
.session-clients::before, .session-clients::after {
  content: '';
  position: absolute;
  background: var(--indigo);
  pointer-events: none;
  transition: transform var(--client-close-time) var(--ease-in-out);
}
.session-clients::before {
  inset: 0;
  transform-origin: var(--client-corner-x) var(--client-corner-y);
  transform: var(--client-fold);
  clip-path: inset(0 round 40px);
  transition-property: transform, clip-path;
}
.session-clients::after {
  width: 40px;
  height: 40px;
  left: calc(var(--client-corner-x) - 20px);
  top: calc(var(--client-corner-y) - 20px);
  clip-path: path("M0 15 C12 15 20 8 20 0 H28 V11 C28 17 34 20 40 20 C30 20 25 28 25 40 H15 V31 C15 25 8 23 0 23 Z");
  transform: var(--client-fold) scaleY(var(--client-direction));
}
.session-clients-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 9px;
  opacity: 0;
  clip-path: var(--client-reveal);
  transition: opacity 105ms var(--ease-out), clip-path 195ms var(--ease-out);
}
.session-clients[data-expanded]::before {
  transform: var(--client-unfold);
  clip-path: inset(0 round 12px);
  transition-duration: var(--client-open-time);
  transition-timing-function: var(--ease-out);
}
.session-clients[data-expanded]::after {
  transform: var(--client-unfold) scaleY(var(--client-direction));
  transition-duration: var(--client-open-time);
  transition-timing-function: var(--ease-out);
}
.session-clients[data-expanded] .session-clients-content {
  opacity: 1;
  clip-path: inset(0 round 12px);
  transition: opacity 125ms var(--ease-out) 115ms, clip-path var(--client-open-time) var(--ease-out);
}
.session-clients:is([data-instant], [data-positioning]),
.session-clients:is([data-instant], [data-positioning])::before,
.session-clients:is([data-instant], [data-positioning])::after,
.session-clients:is([data-instant], [data-positioning]) .session-clients-content { transition: none; }
.session-clients-label { flex: none; padding: 2px 3px 6px; font-size: .8125rem; font-weight: 500; }
.session-clients-empty { padding: 4px 3px; font-size: .875rem; }
.session-client-list { min-height: 0; max-height: calc(var(--client-row-height) * 5); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--accent-focus) transparent; }
.session-client {
  display: block;
  width: 100%;
  height: var(--client-row-height);
  padding: 3px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--black);
  text-align: left;
  font-size: .875rem;
  font-weight: 500;
}
.session-client span {
  display: block;
  height: 100%;
  padding: 9px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
  background: var(--paper);
}
.session-client .client-emoji { margin-inline-end: 5px; }
.session-client:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .session-client:hover span { background: var(--hover); }
}
.session-client:active span { background: var(--selected); }

.commission-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.session-history {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--black);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--shadow-ink) 16%, transparent);
}
.history-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.history-heading .icon-button { margin: -4px -4px -4px 0; }
.session-history h2, .commission-progress h2, .commission-board h2 { font-size: 1rem; font-weight: 700; }
.history-empty { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.history-scroll { max-height: 208px; overflow: auto; margin-top: 8px; scrollbar-width: thin; }
.history-scroll table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; font-size: .875rem; }
.history-scroll th, .history-scroll td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-scroll th { position: sticky; top: 0; background: var(--paper); color: var(--muted); font-size: .8125rem; font-weight: 500; }
.history-scroll tr:last-child td { border-bottom: 0; }
.commission-progress { margin-top: 22px; }
.progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-heading p { color: var(--body); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-track { position: relative; height: 52px; }
.fixed-tips-field {
  --fixed-tips-width: min(100%, max(28px, var(--fixed-tips-progress, 0%)));
  --fixed-tips-spray-space: 31px;
  position: absolute;
  inset: 0 var(--fixed-tips-spray-space) 0 0;
}
.fixed-tips-mark {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  translate: 0 -50%;
  width: 100%;
  height: 32px;
  border: solid transparent;
  border-width: 0 14px;
  border-image: var(--slice-image) 0 28 fill / 0 14px / 0 stretch;
}
.fixed-tips-fill { width: var(--fixed-tips-width); }
.fixed-tips-droplet {
  position: absolute;
  left: var(--fixed-tips-width);
  top: 50%;
  translate: -50% -50%;
  border-radius: 68% 52% 64% 39%;
  background: var(--indigo);
}
.commission-board { min-width: 0; margin-top: 22px; }
.commission-board h2 { margin-bottom: 9px; }
.board-scroll { overflow-x: auto; overflow-anchor: none; padding: 4px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--strong-line) transparent; }
.board {
  --board-min-height: 288px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(197px, 1fr);
  align-content: start;
  gap: 16px;
  min-height: var(--board-min-height);
}
.column { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 2px 8px; border-radius: 18px; }
.column-heading { display: flex; align-items: center; gap: 7px; min-height: 38px; margin-block-end: 9px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--subtle); }
.column-heading .icon { color: var(--muted); }
.column h3 { font-size: .875rem; font-weight: 700; line-height: 1.45; min-width: 0; }
.column-count {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 20px;
  aspect-ratio: 1;
  margin-left: auto;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--count-text);
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.task-list { display: grid; gap: 8px; padding: 0; list-style: none; margin: 0; }
:is(.task, .focus-session-task) { min-width: 0; border: 1px solid var(--line); border-radius: 17px 10px 16px 12px; background: var(--paper); box-shadow: var(--card-shadow); }
.task {
  position: relative;
  min-height: 60px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: translate 165ms var(--ease-out), rotate 230ms cubic-bezier(.2, .8, .32, 1.24), opacity 130ms var(--ease-out);
}
.task-general { border-inline-start: 3px solid var(--client-accent, var(--strong-line)); background: var(--client-pastel, var(--paper)); }
.task-general:hover { border-inline-start-color: var(--client-accent, var(--strong-line)); }
.task-title { display: block; width: 100%; min-height: 58px; padding: 11px 32px 11px 11px; text-align: left; background: transparent; border: 0; border-radius: inherit; cursor: inherit; }
.task-title strong { display: block; font-size: .875rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.task-title small, .focus-session-task-notes { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.task-title small { font-size: .75rem; }
.shared-page { min-height: 100vh; background: var(--paper); }
.shared-topbar { background: var(--cream); }
.shared-topbar .main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding-block: 12px;
}
.shared-view-badge {
  justify-self: center;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent-ink);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
}
.shared-topbar .language-picker { justify-self: end; }
@media (max-width: 560px) {
  .shared-topbar .main-content { grid-template-columns: minmax(0, 1fr) auto; }
  .shared-topbar .language-picker { grid-column: 2; grid-row: 1; }
  .shared-view-badge { grid-column: 1 / -1; grid-row: 2; }
}
.shared-client { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.shared-session { gap: 5px; text-align: center; }
.shared-session .session-status { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.board.shared-board { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shared-card { cursor: auto; touch-action: auto; user-select: auto; }
.shared-card .task-title { padding-inline-end: 11px; }
@media (max-width: 735px) {
  .board.shared-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.shared-page .summary-panel h1,
.shared-page .shared-session .session-timer,
.shared-page .commission-progress h2,
.shared-page .commission-board h2 { font-family: var(--brand-font); }
.task-context { display: block; margin-top: 5px; color: var(--body); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.task-context .client-name { font-weight: 500; }
.task-grip { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: grid; color: var(--muted); pointer-events: none; }
.task-grip .icon { width: 17px; height: 17px; }
.task.is-dragging, .task.drag-footprint { opacity: .28; box-shadow: none; }
.task.is-dragging { transition-property: translate, rotate; }
.drag-slot, .drag-footprint { pointer-events: none; }
.task.drag-footprint { position: absolute; z-index: 1; list-style: none; }
.drag-ghost {
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
  list-style: none;
  transition: none;
  box-shadow: 0 9px 23px color-mix(in srgb, var(--shadow-ink) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--shadow-ink) 14%, transparent);
}
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
.add-card { position: relative; color: var(--muted); width: 100%; min-height: 41px; margin-top: 7px; justify-content: flex-start; padding: 7px; transition-property: transform, translate; }
.status-wrap { position: fixed; inset: auto 16px 20px; display: grid; justify-items: center; pointer-events: none; z-index: 6; }
.status { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(7px); transition: opacity 150ms var(--ease-out), transform 200ms var(--ease-out); background: var(--black); color: var(--cream); border-radius: 9px; padding: 10px 14px; font-size: .875rem; max-width: min(100%, 540px); box-shadow: 0 6px 20px color-mix(in srgb, var(--black) 15%, transparent); }
.status[data-visible] { opacity: 1; transform: translateY(0); }

.editor {
  width: min(510px, calc(100vw - 24px));
  max-height: min(85dvh, 720px);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 16px;
  color: var(--black);
  background: var(--paper);
  box-shadow: 0 20px 80px color-mix(in srgb, var(--shadow-ink) 19%, transparent);
  opacity: 0;
  transform: scale(.97) translateY(5px);
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out), display 150ms allow-discrete, overlay 150ms allow-discrete;
}
.editor[open] { opacity: 1; transform: none; transition-duration: 230ms; }
.editor::backdrop { background: color-mix(in srgb, var(--shadow-ink) 31%, transparent); opacity: 0; transition: opacity 150ms var(--ease-out), display 150ms allow-discrete, overlay 150ms allow-discrete; }
.editor[open]::backdrop { opacity: 1; transition-duration: 230ms; }
@starting-style {
  .editor[open] { opacity: 0; transform: scale(.97) translateY(5px); }
  .editor[open]::backdrop { opacity: 0; }
}
.editor[data-instant], .editor[data-instant]::backdrop { transition: none; }
.editor-heading, .editor-footer { padding: 15px 20px; display: flex; align-items: center; gap: 8px; }
.editor-heading { border-bottom: 1px solid var(--line); justify-content: space-between; }
.editor-heading h2 { font-size: 1.12rem; font-weight: 700; }
.editor-footer { border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.editor-body { padding: 19px 20px; display: grid; gap: 13px; }
.field { display: grid; gap: 4px; min-width: 0; font-size: .875rem; font-weight: 500; }
.field input, .field textarea, .field select { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--strong-line); padding: 8px 10px; border-radius: 7px; color: var(--black); background: var(--paper); font-size: 1rem; font-weight: 400; }
.field select, .language-select { appearance: none; background-image: var(--select-chevron); background-position: right 6px center; background-repeat: no-repeat; }
.field select { padding-right: 30px; }
.field :is(input, textarea, select):focus, .language-select:focus { outline: none; border-color: var(--focus-border); }
.field textarea { resize: vertical; min-height: 80px; }
.form-error { color: #96323b; margin: 0 20px 13px; font-size: .875rem; }
.client-design-field { min-width: 0; margin: 0; padding: 0; border: 0; -webkit-tap-highlight-color: transparent; }
.client-design-field legend { padding: 0; margin-bottom: 5px; font-size: .875rem; font-weight: 500; }
.client-emoji-controls { display: flex; align-items: flex-start; gap: 6px; }
.client-emoji-picker { min-width: 0; flex: 1; }
.client-emoji-picker summary { list-style: none; display: flex; justify-content: flex-start; width: 100%; }
.client-emoji-picker summary::-webkit-details-marker { display: none; }
.client-emoji-picker summary::after { content: ''; flex: none; width: 16px; height: 16px; margin-left: auto; background: var(--select-chevron) center no-repeat; }
.client-emoji-picker[open] summary::after { transform: rotate(180deg); }
.client-emoji-picker summary .client-emoji { width: 24px; height: 24px; }
.client-emoji-panel { display: grid; gap: 6px; padding: 8px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; }
.client-emoji-status { color: var(--muted); font-size: .8125rem; }
.client-emoji-status:empty { display: none; }
.client-emoji-results { max-height: 180px; padding: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.client-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 3px; }
.client-emoji-grid .icon-button { width: 100%; }
.client-emoji-grid [aria-pressed="true"] { background: var(--subtle); border-color: var(--strong-line); }
.client-emoji-results .button { margin-top: 6px; }
.client-color-options { display: flex; flex-wrap: wrap; gap: 4px; }
.client-color-choice { position: relative; display: grid; place-items: center; width: 32px; height: 36px; cursor: pointer; border: 1px solid transparent; border-radius: 8px; }
.client-color-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.client-color-choice span { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--client-accent, var(--strong-line)); background: var(--client-pastel, linear-gradient(135deg, transparent 46%, var(--muted) 50%, transparent 54%)); }
.client-color-choice:has(input:checked) { border-color: var(--client-accent, var(--strong-line)); background: var(--subtle); }
.client-color-choice:has(input:focus-visible) { outline: 2px solid var(--focus-border); outline-offset: 1px; }
@media (pointer: coarse) {
  .client-color-choice { min-width: 39px; min-height: 44px; }
  .client-emoji-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
  .client-emoji-grid .icon-button { height: 44px; }
}

.account-entry {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  padding-bottom: clamp(32px, 8vh, 76px);
}
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px clamp(16px, 4vw, 36px);
}
.account-form {
  display: grid;
  align-self: center;
  gap: 18px;
  width: min(25rem, calc(100% - 32px));
  margin: 24px auto 0;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px 20px 24px 22px;
  background: var(--paper);
}
.account-form h1 { font-family: var(--brand-font); font-size: 1.75rem; font-weight: 600; }
.account-form .form-error { margin: 0; }
.landing-main {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(20px, 5vw, 48px);
}
.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}
.landing-content .wordmark-mark { min-height: 38px; padding-inline: 15px; }
.landing-title {
  font-family: var(--brand-font);
  font-size: clamp(1.85rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.landing-actions { display: flex; align-items: center; gap: 8px; }
.landing-actions .button { min-width: 92px; }

@media (max-width: 1100px) {
  .workspace { --sidebar-width: 190px; }
  .session-badge { --badge-margin: 23px; }
  .main-content { padding-inline: 23px; }
  .board { grid-auto-columns: minmax(170px, 1fr); }
}

@media (max-width: 760px) {
  .workspace { display: flex; flex-direction: column; }
  .sidebar { z-index: 1; position: static; height: auto; display: grid; padding: 12px 16px 9px; }
  .sidebar > .wordmark { margin: 0; align-self: center; }
  .sidebar-content { grid-column: 1 / -1; grid-row: 2; margin: 8px -3px -3px; max-height: 178px; overflow: auto; scrollbar-width: thin; }
  .sidebar-links { gap: 4px; }
  .sidebar-links .nav-item { width: auto; min-height: 44px; flex: none; }
  .sidebar-links > .nav-item { justify-self: start; }
  .sidebar-commissions { margin-top: 4px; }
  .sidebar-settings { position: fixed; z-index: 2; left: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 0; }
  .settings-trigger { width: 44px; height: 44px; background: var(--paper); border-color: var(--line); box-shadow: var(--card-shadow); }
  .commission-link { max-width: 220px; }
  .session-badge { --badge-margin: 16px; margin-block-end: 8px; }
  .workspace:has(#session-action[data-client-morph]) > .session-badge { display: none; }
  .main {
    --page-corner-radius: 18px;
    --page-right-corner-radius: 18px;
    --page-edge-x: 0px;
    flex: 1;
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
  }
  .main-content { padding: 20px 16px calc(68px + env(safe-area-inset-bottom)); }
  .overview { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .summary-metric { padding: 10px 8px; }
  .summary-metric dt { font-size: .75rem; }
  .work-session { padding: 15px; }
  .session-content { gap: 7px; }
  .session-details { margin: 0; }
  .session-timer { font-size: 1.625rem; }
  .commission-progress { margin-top: 16px; }
  .commission-board { margin-top: 16px; }
  .board { grid-auto-columns: minmax(215px, 66vw); }
}

@media (max-width: 365px), (pointer: coarse) {
  .settings-menu { width: 190px; max-height: var(--settings-max-height); overflow-y: auto; }
  .settings-submenu { position: static; width: auto; margin-top: 4px; padding: 4px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .settings-submenu::before { display: none; }
  .settings-chevron { transform: rotate(90deg); }
  .settings-item[aria-expanded="true"] .settings-chevron { transform: rotate(-90deg); }
  .settings-item { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button:active, .icon-button:active, .add-card:active { transform: none; }
}
