:root {
  --paper: #ffffff;
  --paper-soft: #f6f6f6;
  --ink: #111111;
  --muted: #595959;
  --line: #151515;
  --line-soft: #8d8d8d;
  --card: #ffffff;
  --shadow: none;
  --record: #b10f16;
  --good: #176c2f;
  --warn: #6d5b12;
  --bad: #b10f16;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.page {
  width: min(1360px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.login-view {
  min-height: 100vh;
  width: min(720px, calc(100vw - 28px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.login-card {
  width: 100%;
  padding: clamp(24px, 5vw, 42px);
}

.login-card h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.8rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 0.92;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}

.card::after {
  content: none;
}

.suite-bar {
  margin-bottom: 18px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.suite-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.hero {
  margin-bottom: 18px;
  padding: 26px 24px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.app-switcher-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-button {
  appearance: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 7px;
}

.profile-button:hover,
.profile-button:focus-visible {
  transform: translateY(-1px);
}

.profile-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.hero h1,
.section-head h2,
.dialog-head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: none;
}

.subtitle,
.section-head p,
.footnote,
.feedback,
.meta-text,
.entry-meta,
.bar-meta,
.hero-note-text {
  margin: 0;
  color: var(--muted);
}

.subtitle {
  margin-top: 10px;
  font-size: 1.05rem;
  max-width: 72ch;
  line-height: 1.35;
}

.hero-note-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.capture-card {
  grid-column: span 8;
}

.compass-info-card {
  grid-column: span 4;
}

.compass-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.compass-info-card p + p {
  margin-top: 12px;
}

.compact-head {
  margin-bottom: 12px;
}

.section-wide {
  grid-column: 1 / -1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-title-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
}

.section-head h2 span {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82em;
  font-weight: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: baseline;
}

.section-head p {
  max-width: 28ch;
  text-align: right;
}

.round-tool-button {
  appearance: none;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 7px;
  flex: 0 0 auto;
}

.round-tool-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-settings-button {
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-settings-button:hover,
.tool-settings-button:focus-visible {
  transform: translateY(-1px);
}

.tool-settings-button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dialog-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.dialog-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.dialog-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.projection-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.field {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.field span {
  font-weight: 700;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.field-label-row label {
  font-weight: 700;
}

.inline-calc-button {
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.inline-calc-button:hover,
.inline-calc-button:focus-visible {
  transform: translateY(-1px);
}

.help-disclosure {
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
}

.help-disclosure-title {
  display: inline;
  cursor: help;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #b7b7b7;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.help-disclosure-title:hover,
.help-disclosure-title:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--line);
}

.help-disclosure-title::-webkit-details-marker {
  display: none;
}

.help-disclosure-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
}

.capture-flow .field span {
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px 16px;
  outline: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 53%,
    calc(100% - 16px) 53%;
  background-repeat: no-repeat;
  background-size: 7px 7px;
  padding-right: 46px;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.actions {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.button {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 12px 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    opacity 120ms ease,
    box-shadow 120ms ease;
}

.button:hover,
.icon-button:hover,
.entry-button:hover {
  transform: translate(-1px, -1px);
}

.button[disabled],
.entry-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button-strong {
  background: var(--ink);
  color: #fff;
}

.button-muted {
  background: var(--paper-soft);
}

.button-recording {
  background: var(--record);
  color: #fff;
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.32);
  transform: translateY(2px);
}

.button-recording:hover {
  transform: translateY(2px);
}

textarea[readonly] {
  background: #fcfcfc;
}

.capture-flow {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.record-step {
  display: grid;
  justify-items: center;
}

.record-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.record-button::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("system_icons/microphone.webp") center / contain no-repeat;
  filter: invert(1);
  flex: 0 0 auto;
}

.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.or-divider::before,
.or-divider::after {
  content: "";
  border-top: 2px solid var(--line);
}

.feedback {
  min-height: 1.3em;
  width: 100%;
  text-align: center;
}

.quota-hint,
.dev-login-link {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.dev-login-link a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.balance-meter {
  margin-bottom: 14px;
}

.entries-meter {
  margin: -4px 0 16px;
}

.compass {
  display: grid;
  gap: 7px;
  position: relative;
  z-index: 1;
  padding-top: 2px;
}

.compass-track {
  position: relative;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: visible;
  background: #fff;
}

.compass-track:hover {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.compass-large .compass-track {
  height: 30px;
}

.compass-zone {
  position: absolute;
  inset-block: 0;
  pointer-events: auto;
}

.compass-zone-deep {
  background: linear-gradient(
    90deg,
    rgba(23, 108, 47, 0.34) 0%,
    rgba(23, 108, 47, 0.28) 28%,
    rgba(23, 108, 47, 0.28) 100%
  );
}

.compass-zone-target {
  background: rgba(23, 108, 47, 0.52);
}

.compass-zone-soft {
  background: linear-gradient(
    90deg,
    rgba(23, 108, 47, 0.12) 0%,
    rgba(23, 108, 47, 0.12) 20%,
    rgba(177, 15, 22, 0.06) 100%
  );
}

.compass-zone-plus {
  background: linear-gradient(
    90deg,
    rgba(177, 15, 22, 0.06) 0%,
    rgba(177, 15, 22, 0.14) 72%,
    rgba(177, 15, 22, 0.18) 100%
  );
}

.compass-current {
  position: absolute;
  z-index: 2;
  transform: translateX(-50%);
}

.compass-current {
  inset-block: -7px;
  border-left: 5px solid var(--line);
  box-shadow: 0 0 0 3px #fff;
}

.compass-zero {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  width: 22px;
  transform: translateX(-50%);
  cursor: help;
}

.compass-zero::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.compass-end-marker {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 100%;
  color: var(--line);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.compass-end-minus {
  left: 7px;
}

.compass-end-plus {
  right: 7px;
}

.compass-tooltip {
  display: none;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 8px;
  z-index: 5;
}

.compass-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
  text-transform: uppercase;
}

.compass-tooltip p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.compass.tooltip-open .compass-tooltip {
  display: block;
}

.compass-summary-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: right;
  cursor: help;
}

.summary-label {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #b7b7b7;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.compass-summary-button:hover .summary-label,
.compass-summary-button:focus-visible .summary-label {
  text-decoration-color: var(--line);
}

.compass[data-status="deep"] .compass-current,
.compass[data-status="good"] .compass-current,
.compass[data-status="soft"] .compass-current {
  border-left-color: var(--good);
}

.compass[data-status="bad"] .compass-current {
  border-left-color: var(--bad);
}

.bar-kcal,
.entry-kcal {
  color: var(--ink);
}

.bar-kcal {
  font-weight: 900;
}

.tone-good,
.entry-kcal-negative {
  color: var(--good);
}

.tone-bad,
.entry-kcal-high {
  color: var(--bad);
}

.balance-status {
  margin-top: 16px;
  padding-top: 2px;
  padding-bottom: 4px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.balance-status[data-status="good"] {
  color: var(--good);
}

.balance-status[data-status="deep"],
.balance-status[data-status="soft"] {
  color: var(--good);
}

.balance-status[data-status="bad"] {
  color: var(--bad);
}

.entries-list,
.history-list {
  display: grid;
  gap: 18px 30px;
  position: relative;
  z-index: 1;
}

@media (min-width: 820px) {
  .entries-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .entries-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.empty-state {
  border: 2px dashed var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.empty-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.entry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 54px 16px 14px;
  background: linear-gradient(180deg, #fff, #fcfcfc);
  position: relative;
}

.entry-card.entry-enter {
  animation: entryIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.entry-card.entry-removing {
  pointer-events: none;
  animation: entryOut 240ms ease-in both;
}

.entry-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fff;
  flex-shrink: 0;
}

.entry-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.entry-main {
  min-width: 0;
}

.entry-title-row,
.history-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.entry-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.entry-kcal {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.entry-kcal-negative,
.entry-kcal-high {
  font-weight: 900;
}

.entry-meta {
  margin-top: 4px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
}

.entry-actions {
  position: absolute;
  top: -13px;
  right: -13px;
  display: grid;
  gap: 8px;
  z-index: 3;
}

.entry-button,
.icon-button {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 800;
}

.entry-icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.entry-icon-button img {
  width: 125%;
  height: 125%;
  object-fit: contain;
  transform: translateY(-3px);
}

.history-item {
  display: grid;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #fff;
  position: relative;
}

.history-month {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 8px 2px -2px;
  padding-top: 8px;
  border-top: 2px dashed var(--line-soft);
}

.history-month:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.history-month span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.history-month small {
  color: var(--muted);
  font-weight: 500;
}

.history-date {
  font-weight: 900;
}

.history-date-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #b7b7b7;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.history-date-button:hover,
.history-date-button:focus-visible {
  text-decoration-color: var(--line);
}

.history-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
}

.history-entry-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.history-entry-icon,
.history-entry-more {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  position: relative;
}

.history-entry-icon {
  appearance: none;
  padding: 4px;
}

.history-entry-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.app-tooltip {
  position: fixed;
  width: max-content;
  max-width: min(280px, calc(100vw - 20px));
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
  z-index: 30;
}

.app-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  width: 12px;
  height: 12px;
  background: #fff;
}

.app-tooltip[data-placement="above"]::after {
  bottom: -7px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

.app-tooltip[data-placement="below"]::after {
  top: -7px;
  border-left: 2px solid var(--line);
  border-top: 2px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

.app-tooltip strong,
.app-tooltip-body {
  display: block;
}

.app-tooltip strong {
  margin-bottom: 3px;
  font-weight: 900;
}

.app-tooltip-body {
  color: var(--muted);
  font-weight: 500;
}

.app-tooltip-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.app-tooltip-tag {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-tooltip-kcal {
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.footnote {
  padding: 18px 4px 0;
  font-size: 0.92rem;
}

.edit-dialog {
  width: min(640px, calc(100vw - 24px));
  border: 3px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 0;
}

.edit-dialog[open] {
  animation: dialog-pop 150ms ease-out;
}

.edit-dialog.dialog-closing {
  animation: dialog-away 120ms ease-in forwards;
}

.edit-dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.edit-form {
  padding: 22px;
  display: grid;
  gap: 14px;
  background: #fff;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.icon-button {
  font-size: 1.4rem;
  line-height: 1;
}

@keyframes dialog-pop {
  from {
    opacity: 0;
    transform: scale(0.975) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes dialog-away {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.985) translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .edit-dialog[open],
  .edit-dialog.dialog-closing {
    animation: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 940px) {
  .capture-card,
  .compass-info-card {
    grid-column: 1 / -1;
  }

  .section-head,
  .hero-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .section-head p {
    text-align: left;
  }

  .hero-grid {
    align-items: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100vw - 16px, 100%);
    padding-top: 10px;
  }

  .card {
    padding: 18px;
    border-radius: 24px;
  }

  .suite-bar {
    padding: 14px 16px;
  }

  .tool-settings-button {
    width: 100%;
    justify-content: center;
  }

  .card::after {
    inset: 9px;
    border-radius: 16px;
  }

  .entry-card {
    grid-template-columns: auto 1fr;
  }

  .entry-actions {
    top: -10px;
    right: -10px;
  }

  .entry-button {
    width: 38px;
  }

  .actions {
    align-items: stretch;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

}

@keyframes entryIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes entryOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 140px;
  }

  to {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
    max-height: 0;
    margin: -6px 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}
