:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #253e32;
  --muted: #6d756a;
  --green: #2d513f;
  --line: #dedfd4;
  --soft: #e9eddf;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a,
button,
input {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--focus, #ab7755);
  outline-offset: 5px;
}
::selection {
  background: var(--soft, #d7e1cb);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
}
button {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  z-index: 20;
  left: 15px;
  top: -80px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}
.site-header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.875rem;
  letter-spacing: -1.7px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1;
}
.brand-dot {
  margin-left: -10px;
}
.brand img {
  border-radius: 10px;
  flex-shrink: 0;
}
.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav {
  margin-left: 55px;
  font-size: 0.8125rem;
}
.main-nav a,
.login-link,
.back-link {
  padding: 10px 0;
}
.main-nav a:hover,
.login-link:hover,
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-actions {
  gap: 27px;
  font-size: 0.8125rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 550;
  font-size: 0.875rem;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: var(--green-hover, #203e2e);
}
.button:active {
  transform: translateY(1px);
}
.button span[aria-hidden] {
  font-size: 1.3125rem;
  line-height: 1;
}
.button-small {
  min-height: 43px;
  font-size: 0.75rem;
  padding: 10px 16px;
  gap: 20px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 40px;
  padding: 74px 0 69px;
  min-height: 690px;
}
.eyebrow {
  font-size: 0.625rem;
  letter-spacing: 1.7px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tiny-spark {
  font-size: 1.3125rem;
  line-height: 1;
  color: var(--muted, #879173);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.9375rem, 4.5vw, 4.1875rem);
  line-height: 1.06;
  letter-spacing: -2.9px;
  margin: 23px 0 27px;
}
.hero h1 em {
  display: inline-block;
  font-size: 0.86em;
  font-weight: 400;
  color: var(--muted, #788369);
  white-space: nowrap;
  letter-spacing: -2.8px;
}
.hero-copy > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink, #586353);
}
.hero-copy > .hero-detail {
  font-size: 0.8125rem;
  color: var(--muted, #737b6f);
  margin-top: 15px;
}
.hero-cta {
  margin-top: 29px;
}
.hero-footnote {
  font-size: 0.625rem;
  color: var(--muted, #7c8175);
  margin-top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot,
.mini-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #80946e;
  border-radius: 50%;
}
.hero-visual {
  position: relative;
  padding: 21px 0 42px 8px;
  min-width: 0;
}
.hero-visual:before {
  content: '';
  position: absolute;
  inset: 5px -25px 5px -20px;
  background: radial-gradient(
    ellipse,
    var(--soft, #e6e8db) 0,
    rgba(230, 232, 219, 0.35) 56%,
    transparent 73%
  );
  z-index: -1;
}
.visual-topline {
  font-size: 0.5rem;
  letter-spacing: 1.6px;
  color: var(--muted, #858b7c);
  display: flex;
  justify-content: space-between;
  margin: 0 3px 19px;
}
.visual-number {
  letter-spacing: 0.5px;
}
.preview-window {
  background: var(--surface, #fffefb);
  border: 1px solid var(--line, #dadfd2);
  border-radius: 13px;
  box-shadow: 0 24px 50px -25px #44533638;
  overflow: hidden;
  transform: rotate(-1deg);
}
.preview-top {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 19px;
  border-bottom: 1px solid var(--line, #e6e8df);
}
.preview-home {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.6875rem;
}
.mini-mark {
  font-size: 1.5625rem;
  font-weight: 300;
}
.preview-label {
  font-size: 0.5rem;
  padding: 2px 6px;
  background: var(--soft, #f0f2e9);
  border-radius: 4px;
  color: var(--muted, #747d68);
  margin-left: 3px;
}
.preview-avatar {
  font-size: 0.625rem;
  background: var(--soft, #e9ddcc);
  color: var(--muted, #816e50);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.preview-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 354px;
}
.preview-sidebar {
  background: var(--surface, #f7f8f2);
  padding: 23px 10px;
  position: relative;
  border-right: 1px solid var(--line, #e7e9df);
}
.small-label {
  font-size: 0.4375rem;
  letter-spacing: 1.1px;
  color: var(--muted, #8b907f);
  display: block;
  margin: 0 8px 16px;
}
.room-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 5px;
  font-size: 0.5625rem;
  text-align: left;
  min-height: 40px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.room-button > span {
  font-size: 1rem;
  color: var(--muted, #808875);
}
.room-button small {
  font-size: 0.4375rem;
  margin-left: auto;
  opacity: 0.7;
}
.room-button.active {
  background: var(--soft, #e4eadb);
  color: var(--ink, #32533c);
}
.room-button:hover {
  background: var(--soft, #edf0e5);
}
.sidebar-bottom {
  position: absolute;
  bottom: 22px;
  left: 18px;
  right: 16px;
  font-size: 0.5rem;
  line-height: 1.8;
  color: var(--muted, #9a9e8f);
}
.sidebar-bottom span {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 3px;
}
.preview-content {
  padding: 19px 20px 14px;
  min-width: 0;
}
.preview-breadcrumb {
  font-size: 0.5rem;
  color: var(--muted, #989d90);
  display: flex;
  gap: 9px;
}
.preview-breadcrumb > span:last-child {
  color: var(--muted, #626e5b);
}
.preview-heading {
  margin: 13px 0 16px;
}
.preview-heading h2 {
  font-family: var(--serif);
  font-size: 1.6875rem;
  letter-spacing: -0.7px;
  line-height: 1.2;
}
.room-count {
  font-size: 0.5rem;
  color: var(--muted, #969b8c);
}
.room-scene {
  position: relative;
  line-height: 0;
}
.room-scene > svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.scene-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.4375rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 4px;
  background: #fffdf4e8;
}
.scene-tag .dot {
  width: 4px;
  height: 4px;
}
.preview-item {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line, #e8eade);
  border-radius: 6px;
  padding: 9px;
  background: var(--surface, #fffef9);
}
.item-icon {
  height: 31px;
  width: 31px;
  border-radius: 5px;
  background: var(--soft, #ede6da);
  color: var(--muted, #927d66);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.preview-item strong {
  font-size: 0.5625rem;
  display: block;
  font-weight: 550;
}
.preview-item div > span {
  font-size: 0.4375rem;
  color: var(--muted, #929a88);
  display: block;
}
.item-arrow {
  margin-left: auto;
  color: var(--muted, #8c967f);
  font-size: 0.9375rem;
}
.preview-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.4375rem;
  color: var(--muted, #909882);
  margin-top: 12px;
}
.mini-dot {
  width: 4px;
  height: 4px;
}
.floating-note {
  position: absolute;
  bottom: 7px;
  right: -13px;
  border: 1px solid var(--line, #e5e3d6);
  background: var(--surface, #fffef9);
  border-radius: 9px;
  padding: 15px 20px;
  box-shadow: 0 8px 22px #43533212;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(3deg);
  font-size: 0.6875rem;
}
.note-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft, #e7eddc);
  color: var(--muted, #718961);
  font-size: 0.8125rem;
}
.floating-note small {
  display: block;
  font-size: 0.5625rem;
  color: var(--muted, #979a8a);
  margin-top: 2px;
}
.visual-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--muted, #8b917b);
  position: absolute;
  left: 21px;
  bottom: -30px;
  transform: rotate(-3deg);
}
.hand-arrow {
  font-size: 1.875rem;
  padding-right: 5px;
  vertical-align: middle;
}
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  gap: 30px;
}
.benefit-strip > div {
  display: flex;
  gap: 17px;
  align-items: center;
}
.benefit-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--soft, #edf0e3);
  border: 1px solid var(--line, #e2e6d7);
  border-radius: 12px;
  font-size: 1.625rem;
  color: var(--muted, #7b8968);
  flex-shrink: 0;
}
.benefit-strip strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 550;
}
.benefit-strip p > span {
  display: block;
  font-size: 0.625rem;
  color: var(--muted, #8a907f);
  margin-top: 4px;
}
.home-section {
  padding: 64px 0 67px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.home-section h2 {
  font-family: var(--serif);
  font-size: 1.9375rem;
  letter-spacing: -0.9px;
  line-height: 1.3;
  margin-top: 16px;
}
.home-section h2 em {
  color: var(--muted, #7e886f);
}
.home-section-copy p {
  font-size: 0.8125rem;
  color: var(--muted, #78816f);
  line-height: 1.8;
  max-width: 410px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 0.75rem;
  font-weight: 550;
  margin-top: 18px;
}
.release-note {
  display: block;
  font-size: 0.625rem;
  color: var(--muted, #8c937f);
  margin-top: 15px;
}
.site-footer {
  min-height: 96px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--muted, #8c927f);
  font-size: 0.625rem;
}
.brand-footer {
  font-size: 1.4375rem;
  color: var(--ink);
  letter-spacing: -1.4px;
  gap: 8px;
}
.footer-right {
  display: flex;
  gap: 13px;
  align-items: center;
}
.footer-right span {
  font-size: 1.4375rem;
  color: var(--muted, #889676);
}
.auth-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 33px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-size: 0.75rem;
  color: var(--muted, #74806a);
  display: flex;
  align-items: center;
  gap: 9px;
}
.auth-layout {
  max-width: 1120px;
  margin: 30px auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  padding: 0 35px;
}
.auth-story {
  padding: 22px 0;
}
.auth-story h1 {
  font: 400 3.8125rem/1.08 var(--serif);
  letter-spacing: -2.5px;
  margin: 26px 0 25px;
}
.auth-story h1 em {
  color: var(--muted, #81896e);
  font-size: 0.88em;
  white-space: nowrap;
}
.auth-story > p {
  color: var(--muted, #7c8572);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.auth-card {
  background: var(--surface, #fffefa);
  border: 1px solid var(--line, #e1e3d7);
  border-radius: 15px;
  padding: 37px 38px;
  box-shadow: 0 15px 45px -30px #25472e35;
}
.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-spark {
  font-size: 1.5625rem;
  color: var(--muted, #a2ab8e);
}
.auth-card h2 {
  font-family: var(--serif);
  font-size: 2.25rem;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 15px 0 10px;
}
.auth-description {
  font-size: 0.8125rem;
  color: var(--muted, #8b9182);
  margin-bottom: 28px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 550;
  margin-bottom: 7px;
}
.form-field input {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line, #dce0d2);
  background: var(--surface, #fcfcf7);
  color: var(--ink, #2e4737);
  border-radius: 6px;
  padding: 12px 13px;
  font-size: 0.875rem;
}
.form-field input::placeholder {
  color: var(--muted, #a4aa9a);
}
.form-field input:focus {
  outline: 2px solid var(--focus, #899b78);
  outline-offset: 1px;
  border-color: transparent;
}
.form-field small {
  display: block;
  font-size: 0.625rem;
  color: var(--muted, #929987);
  margin-top: 7px;
  line-height: 1.6;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 68px;
}
.password-wrap button {
  position: absolute;
  right: 4px;
  top: 3px;
  height: 43px;
  min-width: 52px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 0.6875rem;
  color: var(--muted, #63755a);
}
.submit-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 4px;
  min-height: 51px;
}
.auth-switch {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted, #8b9381);
  margin: 23px 0;
}
.auth-switch a {
  color: var(--accent, #36523d);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: 3px;
}
.auth-note {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e9ebdf);
  color: var(--muted, #88917a);
  font-size: 0.625rem;
  line-height: 1.7;
}
.auth-note > span {
  font-size: 1.375rem;
  line-height: 1.2;
}
.early-note {
  color: var(--muted, #939a88);
  font-size: 0.5625rem;
  line-height: 1.7;
  margin-top: 15px;
}
.auth-footer {
  text-align: center;
  padding: 15px 25px 30px;
  font-size: 0.625rem;
  color: var(--muted, #909985);
}
.nest-illustration {
  height: 200px;
  width: 230px;
  position: relative;
  margin: 26px 0 19px 30px;
}
.nest-roof {
  position: absolute;
  width: 140px;
  height: 140px;
  background: #e3e7d7;
  transform: rotate(45deg);
  left: 44px;
  top: 18px;
  border-radius: 13px;
}
.nest-house {
  position: absolute;
  width: 185px;
  height: 141px;
  top: 65px;
  left: 21px;
  background: #e3e7d7;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 16px 23px -20px #778569;
}
.nest-shelf {
  position: absolute;
  left: 23px;
  right: 23px;
  top: 34px;
  border-bottom: 7px solid #baa888;
  display: flex;
  align-items: flex-end;
  height: 26px;
  gap: 4px;
  padding: 0 8px;
}
.book {
  display: block;
  width: 12px;
  height: 36px;
  background: #ba8065;
  border-radius: 2px 2px 0 0;
}
.book.two {
  height: 44px;
  background: #f8f3e7;
}
.book.three {
  height: 32px;
  background: #889d7b;
  transform: rotate(-8deg);
  margin-left: 2px;
}
.little-pot {
  font-size: 2.625rem;
  color: #698264;
  position: absolute;
  right: 12px;
  bottom: 0;
  line-height: 1;
}
.nest-box {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 15px;
  height: 44px;
  background: #cbb48f;
  border-radius: 5px;
  display: grid;
  place-items: center;
  border-top: 6px solid #bba179;
}
.nest-box span {
  font-size: 0.5rem;
  background: #eee5d4;
  border-radius: 2px;
  padding: 2px 6px;
  color: #9b8767;
  font-family: var(--serif);
  font-style: italic;
}
.nest-spark {
  position: absolute;
  right: -24px;
  top: 22px;
  color: #b7ba98;
  font-size: 2.8125rem;
}
.story-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.625rem;
  color: var(--muted, #939a83);
  margin-top: 30px;
}
.form-error {
  background: var(--error-surface, #fbede6);
  border: 1px solid var(--error-border, #e7cabc);
  color: var(--danger-text, #924f36);
  font-size: 0.75rem;
  padding: 11px 13px;
  border-radius: 6px;
  margin: 14px 0;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.8125rem;
  min-width: 0;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: var(--soft, #e3e9d8);
  border-radius: 50%;
  font-size: 0.8125rem;
}
#account-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiet-button {
  min-height: 44px;
  border: 1px solid var(--line, #dce2d3);
  border-radius: 6px;
  padding: 8px 16px;
  background: transparent;
  font-size: 0.75rem;
  margin-left: 15px;
  white-space: nowrap;
}
.quiet-button:hover {
  background: var(--soft, #eaf0e1);
}
.dashboard-main {
  max-width: 1120px;
  margin: auto;
}
.dashboard-title {
  padding: 48px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-title h1 {
  font: 400 2.4375rem/1.2 var(--serif);
  letter-spacing: -1.4px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.dashboard-title p {
  font-size: 0.8125rem;
  color: var(--muted, #8c9480);
}
.stage-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line, #dce3d0);
  background: var(--soft, #edf0e5);
  border-radius: 20px;
  padding: 6px 12px;
  white-space: nowrap;
  font-size: 0.625rem;
}
.dashboard-tabs {
  display: flex;
  gap: 35px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted, #949b8a);
}
.dashboard-tabs > span {
  padding: 15px 0;
}
.dashboard-tabs .selected {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.dashboard-tabs small {
  font-size: 0.5rem;
  border: 1px solid var(--line, #e1e6d7);
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 6px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--soft, #f0f2e9);
  border: 1px solid var(--line, #e1e5d7);
  border-radius: 12px;
  padding: 30px 24px 43px;
  margin: 30px 0;
}
.empty-state h2 {
  font-family: var(--serif);
  font-size: 2.125rem;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 13px 0 16px;
}
.empty-state h2 em {
  color: var(--muted, #7d8b6c);
}
.empty-state > p {
  font-size: 0.8125rem;
  color: var(--muted, #7f8b72);
  line-height: 1.8;
}
.ready-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-size: 0.625rem;
  color: var(--muted, #728261);
}
.ready-note > span {
  height: 18px;
  width: 18px;
  display: grid;
  place-items: center;
  background: var(--soft, #e1e8d4);
  border-radius: 50%;
}
.empty-art {
  height: 118px;
  width: 150px;
  position: relative;
  margin-bottom: 24px;
}
.empty-box {
  position: absolute;
  left: 25px;
  top: 49px;
  width: 100px;
  height: 63px;
  background: #ccb68f;
  border-radius: 4px;
  transform: rotate(-5deg);
  box-shadow: 4px 9px 0 #e4e7d8;
}
.empty-box > div {
  position: absolute;
  top: -5px;
  left: -4px;
  width: 108px;
  height: 14px;
  background: #bba780;
  border-radius: 3px;
}
.empty-box > span {
  position: absolute;
  top: 27px;
  left: 15px;
  right: 15px;
  background: #eee7d7;
  font: italic 0.625rem var(--serif);
  padding: 3px;
}
.empty-spark {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 2.3125rem;
  color: var(--muted, #9ca982);
}
.empty-dot {
  position: absolute;
  left: 6px;
  top: 29px;
  border: 1px solid var(--line, #b0bd96);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 11px 0 43px;
}
.roadmap > div {
  position: relative;
  padding-left: 42px;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line, #dce3d0);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  color: var(--muted, #8d9a7d);
}
.roadmap h3 {
  font-size: 0.8125rem;
  font-weight: 550;
  margin-bottom: 7px;
}
.roadmap p {
  font-size: 0.6875rem;
  color: var(--muted, #8a947f);
  line-height: 1.7;
}
.coming-label {
  font-size: 0.5rem;
  letter-spacing: 1.1px;
  color: var(--muted, #a0a88f);
  display: block;
  margin-top: 14px;
}
@media (min-width: 1450px) {
  .hero {
    padding-top: 95px;
    padding-bottom: 90px;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .preview-body {
    min-height: 391px;
  }
  .preview-sidebar {
    width: 145px;
  }
  .preview-body {
    grid-template-columns: 145px 1fr;
  }
  .preview-content {
    padding: 22px 24px;
  }
  .preview-heading {
    margin-top: 18px;
  }
  .room-button {
    font-size: 0.625rem;
  }
  .preview-item strong {
    font-size: 0.625rem;
  }
  .preview-item div > span {
    font-size: 0.5rem;
  }
}
@media (max-width: 1100px) {
  .page-wrap {
    padding: 0 36px;
  }
  .main-nav {
    margin-left: 0;
    gap: 22px;
  }
  .hero {
    gap: 23px;
    padding-top: 60px;
    min-height: 610px;
  }
  .hero h1 {
    font-size: 3.3125rem;
  }
  .hero h1 em {
    font-size: 0.81em;
  }
  .hero-copy > p {
    font-size: 0.875rem;
  }
  .hero-copy > .hero-detail {
    font-size: 0.75rem;
  }
  .preview-body {
    grid-template-columns: 105px 1fr;
  }
  .preview-sidebar {
    padding: 20px 6px;
  }
  .room-button {
    padding: 9px 6px;
    font-size: 0.5rem;
    gap: 5px;
  }
  .room-button small {
    display: none;
  }
  .preview-content {
    padding: 17px 14px;
  }
  .preview-label {
    display: none;
  }
  .floating-note {
    right: -8px;
    bottom: 20px;
    font-size: 0.625rem;
    padding: 13px;
  }
  .visual-caption {
    font-size: 0.6875rem;
  }
  .benefit-strip {
    gap: 18px;
  }
  .benefit-strip > div {
    gap: 11px;
  }
  .benefit-strip strong {
    font-size: 0.6875rem;
  }
  .benefit-strip p > span {
    font-size: 0.5625rem;
  }
  .home-section {
    gap: 40px;
  }
  .auth-layout {
    gap: 55px;
    max-width: 980px;
  }
  .auth-story h1 {
    font-size: 3.3125rem;
  }
  .auth-card {
    padding: 30px;
  }
  .auth-header {
    padding: 30px 36px;
  }
}
@media (max-width: 800px) {
  .page-wrap {
    padding: 0 25px;
  }
  .site-header {
    height: 86px;
  }
  .brand {
    font-size: 1.6875rem;
  }
  .main-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 51px 0 57px;
    gap: 38px;
    text-align: center;
  }
  .hero-copy > .eyebrow {
    justify-content: center;
  }
  .hero h1 {
    font-size: 3.875rem;
    letter-spacing: -2.7px;
    line-height: 1.05;
    margin-top: 24px;
  }
  .hero h1 em {
    font-size: 0.82em;
  }
  .hero-copy > p {
    font-size: 1rem;
  }
  .hero-copy > .hero-detail {
    font-size: 0.8125rem;
  }
  .hero-footnote {
    justify-content: center;
  }
  .hero-visual {
    width: min(100%, 550px);
    margin: 0 auto 14px;
    padding: 15px 8px 47px;
    text-align: left;
  }
  .preview-body {
    grid-template-columns: 132px 1fr;
  }
  .preview-sidebar {
    padding: 22px 10px;
  }
  .room-button {
    font-size: 0.5625rem;
    padding: 10px 8px;
  }
  .room-button small {
    display: block;
  }
  .preview-content {
    padding: 20px;
  }
  .preview-label {
    display: block;
  }
  .floating-note {
    right: 0;
    bottom: 17px;
  }
  .visual-caption {
    left: 20px;
    bottom: -20px;
    font-size: 0.75rem;
  }
  .benefit-strip {
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 23px;
    max-width: 550px;
    margin: auto;
  }
  .benefit-strip > div {
    gap: 18px;
  }
  .benefit-strip strong {
    font-size: 0.8125rem;
  }
  .benefit-strip p > span {
    font-size: 0.75rem;
  }
  .home-section {
    padding: 42px 0;
    gap: 24px;
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: auto;
  }
  .home-section h2 {
    font-size: 1.9375rem;
  }
  .home-section-copy p {
    max-width: none;
  }
  .site-footer {
    flex-wrap: wrap;
    padding: 25px 0;
    min-height: 90px;
    gap: 15px;
  }
  .site-footer > .footer-right {
    width: 100%;
    justify-content: flex-end;
  }
  .auth-header {
    padding: 25px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 490px;
    padding: 0 24px;
    margin: 10px auto 24px;
    gap: 22px;
  }
  .auth-story {
    padding: 4px 0;
    text-align: center;
  }
  .auth-story > .eyebrow {
    justify-content: center;
    font-size: 0.5625rem;
  }
  .auth-story h1 {
    font-size: 2.3125rem;
    letter-spacing: -1.5px;
    margin: 14px 0 8px;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story h1 br:after {
    content: ' ';
  }
  .auth-story h1 em {
    display: block;
    font-size: 1em;
  }
  .auth-story > p,
  .nest-illustration,
  .story-footer {
    display: none;
  }
  .auth-card {
    padding: 27px;
  }
  .auth-card h2 {
    font-size: 2rem;
  }
  .auth-footer {
    padding-bottom: 23px;
  }
  .dashboard-title {
    padding-top: 32px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .dashboard-title h1 {
    font-size: 2.0625rem;
  }
  .dashboard-tabs {
    gap: 24px;
  }
  .dashboard-tabs small {
    display: block;
    margin: 3px 0 0;
  }
  .roadmap {
    gap: 20px;
  }
  .roadmap > div {
    padding: 37px 0 0;
  }
  .account-menu {
    gap: 8px;
  }
  #account-name {
    max-width: 130px;
    font-size: 0.6875rem;
  }
  .quiet-button {
    margin-left: 4px;
    padding: 7px 10px;
  }
  .dashboard-page .site-footer > a {
    font-size: 0.625rem;
  }
}
@media (max-width: 480px) {
  .page-wrap {
    padding: 0 20px;
  }
  .site-header {
    height: 77px;
    gap: 12px;
  }
  .brand {
    font-size: 1.5625rem;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .header-actions {
    gap: 17px;
  }
  .login-link {
    font-size: 0.75rem;
  }
  .button-small {
    font-size: 0.6875rem;
    padding: 8px 12px;
    gap: 10px;
    min-height: 42px;
  }
  .button-small span {
    font-size: 1.0625rem;
  }
  .hero {
    padding-top: 39px;
    gap: 34px;
  }
  .eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 1.2px;
  }
  .hero h1 {
    font-size: 3rem;
    letter-spacing: -2px;
    margin-bottom: 22px;
  }
  .hero h1 em {
    font-size: 0.81em;
    letter-spacing: -1.7px;
  }
  .hero-copy > p {
    font-size: 0.875rem;
  }
  .hero-copy > .hero-detail {
    font-size: 0.75rem;
  }
  .hero-footnote {
    font-size: 0.5rem;
    gap: 6px;
  }
  .hero-cta {
    font-size: 0.8125rem;
    margin-top: 25px;
  }
  .hero-visual {
    padding: 13px 0 40px;
  }
  .visual-topline {
    font-size: 0.375rem;
    letter-spacing: 1px;
    margin-bottom: 13px;
  }
  .preview-body {
    grid-template-columns: 84px 1fr;
    min-height: 287px;
  }
  .preview-top {
    height: 45px;
    padding: 0 11px;
  }
  .preview-home {
    font-size: 0.5625rem;
    gap: 6px;
  }
  .preview-label {
    font-size: 0.375rem;
    padding: 2px 4px;
  }
  .mini-mark {
    font-size: 1.25rem;
  }
  .preview-avatar {
    height: 22px;
    width: 22px;
    font-size: 0.5rem;
  }
  .preview-sidebar {
    padding: 17px 5px;
  }
  .small-label {
    font-size: 0.3125rem;
    letter-spacing: 0.5px;
    margin: 0 4px 12px;
  }
  .room-button {
    font-size: 0.40625rem;
    padding: 6px 4px;
    gap: 4px;
    min-height: 44px;
  }
  .room-button > span {
    font-size: 0.8125rem;
  }
  .room-button small {
    display: none;
  }
  .sidebar-bottom {
    font-size: 0.375rem;
    left: 9px;
    right: 8px;
    bottom: 17px;
  }
  .preview-content {
    padding: 14px 10px 12px;
  }
  .preview-breadcrumb {
    font-size: 0.375rem;
    gap: 5px;
  }
  .preview-heading {
    margin: 11px 0;
  }
  .preview-heading h2 {
    font-size: 1.375rem;
  }
  .room-count {
    font-size: 0.40625rem;
  }
  .scene-tag {
    font-size: 0.3125rem;
    padding: 5px;
    bottom: 6px;
    left: 6px;
  }
  .preview-item {
    gap: 7px;
    padding: 7px;
    margin-top: 9px;
  }
  .item-icon {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
  .preview-item strong {
    font-size: 0.4375rem;
  }
  .preview-item div > span {
    font-size: 0.34375rem;
  }
  .preview-bottom {
    font-size: 0.375rem;
    margin-top: 10px;
  }
  .floating-note {
    padding: 10px 12px;
    bottom: 14px;
    font-size: 0.5625rem;
    gap: 9px;
  }
  .floating-note small {
    font-size: 0.4375rem;
  }
  .note-icon {
    width: 25px;
    height: 25px;
    font-size: 0.6875rem;
  }
  .visual-caption {
    font-size: 0.625rem;
    bottom: -22px;
    left: 4px;
  }
  .hand-arrow {
    font-size: 1.5rem;
  }
  .hero-visual:before {
    inset: 0 -10px;
  }
  .home-section h2 {
    font-size: 1.75rem;
  }
  .home-section-copy p {
    font-size: 0.75rem;
  }
  .release-note {
    font-size: 0.5625rem;
  }
  .site-footer {
    font-size: 0.5rem;
    gap: 10px;
  }
  .brand-footer {
    font-size: 1.3125rem;
  }
  .site-footer > .footer-right {
    justify-content: flex-start;
    font-size: 0.5625rem;
  }
  .auth-header {
    padding: 22px 20px;
  }
  .back-link {
    font-size: 0.625rem;
  }
  .auth-layout {
    padding: 0 20px;
  }
  .auth-story h1 {
    font-size: 2.0625rem;
  }
  .auth-card {
    padding: 25px 22px;
  }
  .auth-card h2 {
    font-size: 1.9375rem;
  }
  .auth-card .eyebrow {
    font-size: 0.5rem;
  }
  .form-field input {
    font-size: 1rem;
    min-height: 50px;
  }
  .auth-description {
    font-size: 0.75rem;
    margin-bottom: 23px;
  }
  .early-note {
    font-size: 0.5625rem;
  }
  .dashboard-title h1 {
    font-size: 1.875rem;
  }
  .dashboard-title p {
    font-size: 0.75rem;
  }
  .dashboard-page #account-name {
    display: none;
  }
  .account-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.6875rem;
  }
  .quiet-button {
    font-size: 0.6875rem;
    padding: 7px 10px;
    min-height: 44px;
  }
  .dashboard-tabs {
    font-size: 0.6875rem;
    gap: 27px;
  }
  .empty-state {
    padding: 24px 15px 30px;
    margin-top: 23px;
  }
  .empty-state h2 {
    font-size: 1.75rem;
  }
  .empty-state > p {
    font-size: 0.75rem;
  }
  .empty-state .eyebrow {
    font-size: 0.5rem;
  }
  .empty-art {
    transform: scale(0.88);
    margin-bottom: 12px;
  }
  .ready-note {
    font-size: 0.5rem;
  }
  .roadmap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 3px;
  }
  .roadmap > div {
    padding: 0 0 0 43px;
  }
  .roadmap h3 {
    font-size: 0.8125rem;
  }
  .roadmap p {
    font-size: 0.6875rem;
  }
  .coming-label {
    margin-top: 6px;
  }
  .dashboard-page .site-footer {
    font-size: 0.5rem;
  }
}
@media (max-width: 350px) {
  .page-wrap {
    padding: 0 16px;
  }
  .header-actions {
    gap: 10px;
  }
  .brand {
    font-size: 1.4375rem;
  }
  .hero h1 {
    font-size: 2.5625rem;
  }
  .hero h1 em {
    letter-spacing: -1.5px;
  }
  .desktop-break {
    display: none;
  }
  .preview-body {
    grid-template-columns: 74px 1fr;
  }
  .room-button {
    font-size: 0.375rem;
    gap: 3px;
  }
  .preview-label {
    display: none;
  }
  .hero-footnote {
    font-size: 0.4375rem;
  }
  .auth-card {
    padding: 22px 18px;
  }
  .auth-card h2 {
    font-size: 1.75rem;
  }
  .dashboard-tabs {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.language-switch a {
  min-height: 44px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #8b9480);
}
.language-switch a[aria-current] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.language-switch > span {
  color: var(--muted, #bbc0b1);
}
.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
html[lang='hu'] .hero h1 {
  font-size: clamp(2.6875rem, 4.2vw, 3.875rem);
}
html[lang='hu'] .hero h1 em {
  font-size: 0.87em;
}
html[lang='hu'] .main-nav {
  margin-left: 0;
  gap: 24px;
}
html[lang='hu'] .header-actions {
  gap: 20px;
}
html[lang='hu'] .preview-item strong {
  font-size: 0.5rem;
}
html[lang='hu'] .preview-item div > span {
  font-size: 0.40625rem;
}
html[lang='hu'] .room-button {
  font-size: 0.5625rem;
}
html[lang='hu'] .auth-story h1 {
  font-size: 3.4375rem;
}
html[lang='hu'] .hero-footnote {
  font-size: 0.5625rem;
}
@media (max-width: 1100px) {
  .header-actions {
    gap: 17px;
  }
  .language-switch {
    gap: 1px;
  }
  html[lang='hu'] .main-nav {
    gap: 16px;
    font-size: 0.75rem;
  }
  html[lang='hu'] .header-actions {
    gap: 12px;
  }
  html[lang='hu'] .auth-story h1 {
    font-size: 3rem;
  }
}
@media (max-width: 800px) {
  html[lang='hu'] .hero h1 {
    font-size: 3.625rem;
  }
  html[lang='hu'] .auth-story h1 {
    font-size: 2.3125rem;
  }
  .auth-story h1 br {
    display: block;
  }
  .auth-story h1 {
    font-size: 2.1875rem;
  }
  .auth-story h1 br:first-of-type {
    display: none;
  }
  .auth-story h1 br:first-of-type:after {
    content: ' ';
  }
  .auth-story h1 em {
    margin-top: 2px;
  }
  .auth-story h1 {
    max-width: 100%;
  }
  .dashboard-page .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 86px;
    padding: 18px 0;
  }
  .account-menu {
    margin-left: auto;
  }
}
@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 92px;
    padding: 17px 0;
    row-gap: 6px;
  }
  .header-actions {
    gap: 13px;
  }
  .header-actions > .language-switch {
    position: absolute;
    top: 65px;
    right: 20px;
  }
  .site-header:has(.header-actions) {
    padding-bottom: 28px;
  }
  .header-actions > .language-switch a {
    min-height: 26px;
  }
  .language-switch {
    font-size: 0.5625rem;
  }
  .language-switch a {
    min-width: 27px;
  }
  .auth-header-actions {
    gap: 12px;
  }
  .auth-header .back-link {
    font-size: 0.5625rem;
  }
  .auth-header .brand {
    font-size: 1.4375rem;
  }
  .auth-header .brand img {
    width: 28px;
    height: 28px;
  }
  .auth-header {
    gap: 10px;
  }
  .auth-story h1,
  html[lang='hu'] .auth-story h1 {
    font-size: 1.9375rem;
  }
  html[lang='hu'] .hero h1 {
    font-size: 2.6875rem;
    letter-spacing: -2px;
  }
  html[lang='hu'] .hero h1 em {
    font-size: 0.89em;
    letter-spacing: -1.6px;
  }
  html[lang='hu'] .hero-footnote {
    font-size: 0.46875rem;
  }
  html[lang='hu'] .room-button {
    font-size: 0.40625rem;
  }
  html[lang='hu'] .preview-item strong {
    font-size: 0.41875rem;
  }
  html[lang='hu'] .preview-item div > span {
    font-size: 0.34375rem;
  }
  .dashboard-page .site-header {
    gap: 10px;
  }
  .dashboard-page .brand {
    font-size: 1.375rem;
  }
  .dashboard-page .brand img {
    width: 27px;
    height: 27px;
  }
  .dashboard-page .account-avatar {
    display: none;
  }
  .dashboard-page .account-menu {
    gap: 4px;
  }
  .dashboard-page .quiet-button {
    padding: 7px 8px;
  }
  .dashboard-page .language-switch a {
    min-width: 22px;
  }
}
@media (max-width: 350px) {
  html[lang='hu'] .hero h1 {
    font-size: 2.375rem;
  }
  .auth-header .back-link {
    max-width: 85px;
    line-height: 1.3;
  }
  .auth-header-actions {
    gap: 5px;
  }
  .dashboard-page .brand {
    font-size: 1.25rem;
  }
  .dashboard-page .quiet-button {
    font-size: 0.625rem;
  }
  .dashboard-page .site-header {
    gap: 6px;
  }
}
/* Keep real account controls and explanatory text readable on small screens. */
.auth-description,
.auth-switch,
.auth-note,
.early-note,
.form-field small,
.auth-footer,
.hero-footnote,
.home-section-copy p,
.release-note,
.dashboard-title p,
.empty-state > p,
.roadmap p {
  color: var(--muted, #6d7863);
}
.form-field input::placeholder {
  color: var(--muted, #7c8671);
}
.form-field input {
  color: var(--ink, #253e32);
}
.site-footer {
  color: var(--muted, #6d7863);
}
.language-switch a {
  color: var(--muted, #6d7863);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--line, #747775);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #1f1f1f);
  font:
    500 0.875rem/1.4 Arial,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}
.google-button:hover {
  background: var(--soft, #f2f2f2);
}
.google-button:focus-visible {
  outline: 3px solid var(--focus, #4f674b);
  outline-offset: 3px;
}
.google-button svg {
  flex-shrink: 0;
}
#google-signin .google-button {
  width: 100%;
}
.auth-divider {
  text-align: center;
  color: var(--ink, #606660);
  font-size: 0.8125rem;
  margin: 18px 0;
}
.google-account {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--line, #d8dccf);
  border-radius: 12px;
}
.google-account h2 {
  font-size: 1.375rem;
}
.google-account p {
  margin: 12px 0;
  line-height: 1.6;
}
.google-account [hidden] {
  display: none;
}

.privacy-content {
  max-width: 760px;
  margin: 32px auto 72px;
}
.privacy-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.875rem);
}
.privacy-content p {
  line-height: 1.75;
  margin: 24px 0;
}
.auth-footer a {
  margin-left: 16px;
  text-decoration: underline;
}

/* The inventory keeps the primary action short; optional details stay collapsed. */
.inventory-main {
  padding: 48px 0 72px;
}
.inventory-heading h1 {
  font:
    normal clamp(2.25rem, 5vw, 3.625rem) / 1.1 Georgia,
    serif;
  margin: 16px 0;
}
.inventory-heading p {
  color: var(--muted, #697168);
  margin-bottom: 32px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.breadcrumbs button {
  padding: 8px 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
.breadcrumbs > span {
  color: var(--muted, #aaa);
}
.inventory-toolbar,
.current-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.inventory-toolbar h2,
.current-heading h2 {
  font:
    normal 1.875rem Georgia,
    serif;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.inventory-toolbar > div {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.inventory-card {
  text-align: left;
  background: var(--surface, #fffefa);
  border: 1px solid var(--line, #e1e3d9);
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  color: var(--ink, #314639);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.inventory-card:hover {
  border-color: var(--line, #80937c);
  box-shadow: 0 5px 20px #233d3010;
}
.inventory-card strong {
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}
.card-photo {
  height: 150px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft, #eeeee4);
  display: grid;
  place-items: center;
}
.card-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo > span {
  font:
    3.375rem Georgia,
    serif;
  color: var(--muted, #718367);
}
.card-kind {
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 1.3px;
  color: var(--muted, #717c68);
}
.inventory-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--soft, #f0f0e7);
  border-radius: 20px;
  margin: 20px 0;
}
.inventory-empty > span {
  font-size: 3.125rem;
  color: var(--muted, #8a987d);
}
.inventory-empty h2 {
  font:
    normal 2rem Georgia,
    serif;
}
.inventory-empty p {
  color: var(--muted, #67725f);
  line-height: 1.7;
}
.current-entry {
  background: var(--surface, #fffefa);
  border: 1px solid var(--line, #e1e3d9);
  border-radius: 18px;
  padding: 22px;
  margin: 12px 0 32px;
}
.current-photos {
  display: flex;
  gap: 12px;
  overflow: auto;
  margin: 12px 0;
}
.current-photos img {
  max-width: 240px;
  width: 40%;
  height: 170px;
  object-fit: contain;
  background: var(--soft, #f1f0e9);
  border-radius: 10px;
}
.account-details {
  margin-top: 60px;
  border-top: 1px solid var(--line, #ddd);
  padding-top: 20px;
}
.account-details > summary,
.entry-details > summary {
  cursor: pointer;
  padding: 14px 0;
  min-height: 44px;
  color: var(--ink, #475a43);
}
.account-details .google-account {
  margin-top: 0;
}
.entry-dialog {
  border: 1px solid var(--line, #ddd);
  border-radius: 22px;
  background: var(--surface, #fbfaf6);
  color: var(--ink, #304334);
  padding: 28px;
  width: min(560px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 24px 90px #12291e30;
}
.entry-dialog::backdrop {
  background: #1c30285c;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dialog-top h2 {
  font:
    normal 2rem Georgia,
    serif;
  margin: 0;
}
.dialog-top h2[tabindex='-1']:focus {
  /* Initial title focus avoids opening the mobile keyboard. */
  outline: none;
}
.entry-location {
  font-size: 0.75rem;
  color: var(--muted, #687460);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.photo-button {
  border: 1px dashed var(--line, #b4bfaa);
  background: var(--soft, #f0f1e8);
  color: var(--ink, #41593e);
  border-radius: 12px;
  padding: 18px 10px;
  min-height: 90px;
  cursor: pointer;
  font: inherit;
}
.photo-button > span[aria-hidden] {
  display: block;
  font-size: 1.5625rem;
  margin-bottom: 8px;
}
.field-hint {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted, #68725f);
}
.entry-dialog label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin: 20px 0 9px;
}
.entry-dialog input:not([hidden]),
.entry-dialog textarea,
#relative-expiry-unit,
#inventory-sort,
#entry-category {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #d7ddcf);
  border-radius: 8px;
  background: var(--surface, #fffefb);
  color: var(--ink, #304334);
  padding: 13px;
  font: inherit;
  min-height: 48px;
}
.entry-dialog input[type='date'] {
  min-width: 0;
  max-width: 100%;
}
.entry-details {
  margin-top: 20px;
  border-top: 1px solid var(--line, #e0e4d8);
}
.details-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 15px;
}
.details-grid.no-expiry {
  grid-template-columns: 1fr;
}
.entry-dialog .expiry-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 8px;
  cursor: pointer;
}
.entry-dialog input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent, #47684a);
}
.dialog-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 26px;
  align-items: center;
}
.dialog-bottom .button {
  min-width: 140px;
  justify-content: center;
}
.danger-button {
  border: 0;
  background: transparent;
  color: var(--danger-text, #a14e42);
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  padding: 10px;
  margin-right: auto;
}
.photo-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.photo-previews img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.photo-previews .inventory-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--danger-text, #a03932);
  box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.inventory-main .form-error {
  margin: 12px 0;
}
.entry-dialog .form-error {
  margin-top: 18px;
}
dialog:not([open]) {
  display: none;
}
.inventory-card:focus-visible,
.photo-button:focus-visible {
  outline: 3px solid var(--focus, #80976f);
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-main {
    padding-top: 30px;
  }
  .inventory-heading h1 {
    font-size: 2.625rem;
  }
}
@media (max-width: 520px) {
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-photo {
    height: 125px;
  }
  .inventory-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .inventory-toolbar > div {
    width: 100%;
    justify-content: flex-end;
  }
  .inventory-toolbar h2 {
    font-size: 1.6875rem;
  }
  .inventory-heading h1 {
    font-size: 2.25rem;
  }
  .entry-dialog {
    padding: 20px;
    border-radius: 16px;
  }
  .dialog-top h2 {
    font-size: 1.75rem;
  }
  .current-entry {
    padding: 16px;
  }
  .current-photos img {
    width: 65%;
    height: 150px;
  }
  .current-heading h2 {
    font-size: 1.625rem;
  }
  .inventory-card strong {
    font-size: 0.9375rem;
  }
  .photo-button {
    font-size: 0.8125rem;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .inventory-heading p {
    line-height: 1.6;
  }
  .entry-dialog .button {
    padding: 15px 20px;
  }
}

.inventory-heading h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 12px;
}
.inventory-main {
  padding-top: 28px;
}
.dialog-top {
  position: sticky;
  top: -28px;
  z-index: 2;
  background: var(--surface, #fbfaf6);
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #e0e4d8);
  flex-wrap: wrap;
}
.dialog-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.dialog-top-actions .button {
  min-height: 44px;
}
@media (max-width: 520px) {
  .dialog-top {
    top: -20px;
  }
  .dialog-top h2 {
    font-size: 1.5rem;
  }
  .dialog-top-actions .button {
    padding: 10px 16px;
  }
}

.inventory-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  margin: 18px 0 8px;
  align-items: end;
}
.inventory-search label {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 7px;
  color: var(--ink, #56654e);
}
.inventory-search input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid var(--line, #cbd4c5);
  background: var(--surface, #fffefa);
  border-radius: 10px;
  color: var(--ink, #314639);
  font: inherit;
  padding: 10px 12px;
}
.inventory-recursive {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 0.875rem;
  cursor: pointer;
}
.inventory-recursive input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent, #476547);
}
.card-location {
  color: var(--muted, #6a7562);
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.inventory-card {
  position: relative;
}
.inventory-grid.thumbnails-only {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.thumbnails-only .inventory-card {
  padding: 5px;
  border-radius: 13px;
}
.thumbnails-only .card-photo {
  height: auto;
  aspect-ratio: 1;
}

#inventory-more {
  display: block;
  margin: 16px auto;
  min-height: 44px;
  border: 1px solid var(--line, #cbd4c5);
  border-radius: 10px;
  padding: 10px 24px;
}
@media (max-width: 800px) {
  .inventory-grid.thumbnails-only {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .inventory-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .inventory-recursive {
    grid-column: 1/-1;
  }
  .inventory-grid.thumbnails-only {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.inventory-view {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line, #cbd4c5);
  border-radius: 12px;
  background: var(--soft, #eeeee4);
}
.view-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #52654c);
  cursor: pointer;
}
.view-toggle[aria-pressed='true'] {
  background: var(--green, #314f3e);
  color: #fff;
  box-shadow: 0 1px 3px #243a3026;
}
.view-toggle:hover:not([aria-pressed='true']) {
  background: var(--soft, #dfe5d7);
}
.view-toggle:focus-visible {
  outline: 3px solid var(--focus, #80976f);
  outline-offset: 2px;
}

/* Keep navigation and search close to the inventory on every screen. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.dashboard-page .page-wrap {
  max-width: 1600px;
  padding: 0 24px;
}
.dashboard-page .site-header {
  height: 58px;
  min-height: 58px;
  padding: 0;
  flex-wrap: nowrap;
  gap: 12px;
}
.dashboard-page .brand {
  font-size: 1.5625rem;
}
.dashboard-page .brand img {
  width: 28px;
  height: 28px;
}
.dashboard-page .quiet-button {
  margin-left: 0;
}
.dashboard-page .inventory-main {
  padding: 0 0 24px;
}
.inventory-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.inventory-navigation {
  display: grid;
  grid-template-columns: minmax(0, 400px) 44px;
  align-items: center;
  gap: 6px;
}
.inventory-topbar .breadcrumbs {
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  gap: 5px;
  scrollbar-width: thin;
  align-items: stretch;
}
.inventory-topbar .breadcrumbs button {
  flex-shrink: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  padding: 4px 8px;
  height: calc(40px + 1rem);
  min-height: calc(40px + 1rem);
  line-height: 1rem;
  font-weight: 500;
}
.inventory-topbar .breadcrumbs button[aria-current='page'] {
  color: var(--ink);
  background: var(--soft);
  box-shadow: inset 0 -2px var(--primary, var(--ink));
}
.inventory-topbar .breadcrumb-item {
  display: grid;
  grid-template-rows: 28px 1rem;
  gap: 4px;
  justify-items: center;
}
.inventory-topbar .breadcrumb-item .breadcrumb-name {
  grid-row: 2;
}
.inventory-topbar .breadcrumb-item .breadcrumb-thumbnail,
.inventory-topbar .breadcrumb-item .breadcrumb-placeholder {
  grid-row: 1;
}
.breadcrumb-placeholder {
  color: var(--muted);
}
.inventory-topbar .breadcrumbs .breadcrumb-separator {
  display: flex;
  align-items: end;
  padding-bottom: 4px;
  line-height: 1rem;
}
.inventory-topbar .breadcrumb-add {
  align-self: stretch;
  align-items: stretch;
}
.inventory-topbar .breadcrumbs button:focus-visible {
  outline-offset: -2px;
}
.breadcrumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.breadcrumb-thumbnail {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--soft);
}
.breadcrumb-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-separator {
  padding-bottom: 8px;
}
.inventory-search {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: 0;
}
.inventory-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.inventory-search input {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 1rem;
}
.inventory-search.has-query input {
  padding-right: 44px;
}
.inventory-search.has-query .search-history.has-search-history > input {
  padding-right: 88px;
}
.inventory-search.has-query .search-history-toggle {
  right: 50px;
}
#inventory-search::-webkit-search-cancel-button {
  display: none;
}
#clear-inventory-search {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  background: transparent;
}
.inventory-list-title:not(.sr-only) {
  margin: 12px 0 8px;
  font-size: 1.125rem;
}
.inventory-toolbar {
  gap: 12px;
  min-height: 50px;
}
.inventory-toolbar > div {
  gap: 6px;
}
.inventory-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  gap: 12px;
}
.inventory-recursive {
  min-height: 44px;
  font-size: 0.75rem;
  gap: 5px;
  order: -1;
}
.inventory-recursive input {
  margin: 0;
}
.inventory-view {
  padding: 0;
  gap: 0;
  border-radius: 9px;
}
.view-toggle {
  width: 44px;
  height: 44px;
}
.inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.inventory-card {
  padding: 7px;
  border-radius: 10px;
  gap: 4px;
}
.inventory-card strong {
  font-size: 0.875rem;
  line-height: 1.35;
  padding-right: 24px;
}
.card-photo {
  height: auto;
  aspect-ratio: 4/3;
  border-radius: 6px;
}
.inventory-add-card .card-photo {
  border: 1px dashed var(--line);
}
.inventory-add-card .card-photo > span {
  font:
    400 2.75rem/1 system-ui,
    sans-serif;
  color: var(--ink);
}
.card-quantity {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-size: 0.6875rem;
  color: var(--muted, #64745d);
}
.card-location {
  font-size: 0.625rem;
  line-height: 1.35;
  padding-right: 24px;
}
.inventory-grid.thumbnails-only {
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
}
.current-entry {
  padding: 8px 10px;
  border-radius: 10px;
  margin: 10px 0;
}
.current-heading {
  gap: 10px;
}
.current-heading > .current-photo-thumbnail {
  flex: 0 0 48px;
}
.current-heading > .current-photo-thumbnail img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}
.current-title {
  flex: 1;
  min-width: 0;
}
.current-heading h2 {
  font: 600 1rem/1.3 var(--sans);
  margin: 0;
}
.current-title small {
  font-size: 0.6875rem;
  color: var(--muted);
}
.current-information {
  font-size: 0.75rem;
}
.current-information p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.current-photo-thumbnail {
  flex: 0 0 140px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.current-photo-thumbnail img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.current-photos {
  margin: 6px 0;
}
.account-details {
  margin-top: 20px;
  padding-top: 4px;
  font-size: 0.75rem;
}
.account-details > summary {
  padding: 8px 0;
}
.inventory-empty {
  padding: 24px 16px;
  margin: 12px 0;
  border-radius: 12px;
}
.inventory-empty > span {
  display: none;
}
.inventory-empty h2 {
  font: 500 1.125rem var(--sans);
}
.inventory-empty p {
  font-size: 0.8125rem;
  margin-top: 6px;
}
.photo-actions {
  margin-top: 12px;
  gap: 8px;
}
.photo-button {
  min-height: 60px;
  padding: 10px;
}
.photo-button > span[aria-hidden] {
  display: inline;
  font-size: 1.25rem;
  margin: 0 4px 0 0;
}
@media (max-width: 640px) {
  .dashboard-page .page-wrap {
    padding: 0 12px;
  }
  .dashboard-page .site-header {
    height: 54px;
    min-height: 54px;
  }
  .dashboard-page .account-avatar,
  .dashboard-page #account-name {
    display: none;
  }
  .dashboard-page .account-menu {
    gap: 6px;
  }
  .inventory-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }
  .inventory-navigation,
  .inventory-toolbar,
  .inventory-toolbar > .inventory-controls {
    display: contents;
  }
  .inventory-topbar .breadcrumbs {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .inventory-search {
    grid-column: 1;
    grid-row: 1;
  }
  .inventory-toolbar > div:not(.inventory-controls) {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    justify-content: flex-start;
    gap: 6px;
  }
  .inventory-view {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .inventory-recursive {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.6875rem;
    gap: 5px;
  }
  .inventory-toolbar .button-small,
  .inventory-toolbar .quiet-button {
    padding: 8px;
    font-size: 0.75rem;
    min-height: 44px;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }
  .inventory-grid.thumbnails-only {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-card strong {
    font-size: 0.8125rem;
  }
  .current-entry {
    margin: 8px 0;
    padding: 6px 8px;
  }
}
.thumbnails-only .inventory-card > :not(.card-photo) {
  display: none;
}

/* Groups have their own pages; item sharing remains a compact dialog. */
.groups-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}
#groups-count {
  position: absolute;
  right: -3px;
  top: -3px;
  border-radius: 20px;
  background: var(--green);
  color: white;
  font-size: 0.625rem;
  min-width: 17px;
  padding: 0 3px;
}
.groups-dialog {
  width: min(720px, calc(100vw - 24px));
}
.groups-dialog .dialog-top h2 {
  font: 600 1.25rem/1.35 var(--sans);
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}
:is(.groups-dialog, .groups-page) h3 {
  font-size: 0.875rem;
  margin: 18px 0 8px;
}
.group-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.group-copy {
  flex: 1;
  min-width: 140px;
  overflow-wrap: anywhere;
}
.group-copy strong,
.group-copy small {
  display: block;
}
.group-copy strong {
  font-size: 0.875rem;
}
.group-copy small,
.group-inherited small {
  font-size: 0.75rem;
  color: var(--muted);
}
.group-form,
.group-role-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.group-form .group-field {
  flex: 1;
  min-width: 140px;
}
:is(.groups-dialog, .groups-page) .group-field {
  margin: 0;
  font-size: 0.75rem;
}
.group-field > span {
  display: block;
  margin-bottom: 4px;
}
:is(.groups-dialog, .groups-page) input,
:is(.groups-dialog, .groups-page) select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #fffefa);
  padding: 8px;
  color: var(--ink);
  font: inherit;
}
.group-role-form {
  margin: 0;
}
.group-role-form .group-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.group-inherited {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
:is(.groups-dialog, .groups-page) .quiet-button {
  margin: 0;
}
:is(.groups-dialog, .groups-page) .danger-button {
  margin: 0;
  font-size: 0.75rem;
  padding: 8px;
}
:is(.groups-dialog, .groups-page) .field-hint {
  margin: 10px 0;
}
.groups-dialog[aria-busy='true'] #groups-body {
  pointer-events: none;
  opacity: 0.7;
}
.current-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.current-title small {
  display: block;
}
@media (max-width: 640px) {
  .dashboard-page .brand {
    font-size: 1.3125rem;
    gap: 6px;
  }
  .dashboard-page .account-menu {
    gap: 4px;
  }
  .dashboard-page .site-header {
    gap: 5px;
  }
  .current-heading {
    flex-wrap: wrap;
  }
  .current-actions {
    margin-left: auto;
  }
  .group-row .group-role-form {
    flex-basis: 100%;
  }
  .groups-dialog {
    padding: 16px;
  }
  .groups-dialog .dialog-top {
    top: -16px;
  }
  .groups-dialog .button {
    padding: 10px 14px;
    min-height: 44px;
  }
}

#move-target {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #fffefa);
  padding: 10px;
  color: var(--ink);
  font: inherit;
}

.build-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.6875rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.build-info code {
  font-size: inherit;
}

/* Compact persistent background-processing status. */
.card-photo {
  position: relative;
}
.recognition-badge {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--warning-surface, #fff9e8);
  color: var(--warning-text, #675220);
  font-size: 1.2rem;
  vertical-align: middle;
}
.card-photo .recognition-badge {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
}
.recognition-badge.is-pending {
  animation: recognition-pulse 1.5s ease-in-out infinite;
}
.recognition-details {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.recognition-details:empty {
  display: none;
}
.recognition-details p {
  margin: 0.3rem 0;
}
.recognition-details > .quiet-button {
  margin-top: 0.3rem;
}
@keyframes recognition-pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .recognition-badge.is-pending {
    animation: none;
  }
}

.card-photo .recognition-badge {
  font:
    1.2rem system-ui,
    sans-serif;
  color: var(--warning-text, #675220);
}
.photo-previews > div {
  position: relative;
}
.photo-previews .recognition-badge {
  position: absolute;
  left: 0.3rem;
  top: 0.3rem;
}

.ai-field-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--soft, #eef0e8);
  color: var(--ink, #526345);
  font:
    500 0.68rem/1.4 system-ui,
    sans-serif;
  vertical-align: middle;
  white-space: nowrap;
}
.ai-field-badge[hidden] {
  display: none;
}

.photo-dialog {
  width: min(1100px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #171b17;
  overflow: hidden;
}
.photo-dialog::backdrop {
  background: rgb(0 0 0 / 75%);
}
.photo-dialog > img {
  display: block;
  width: 100%;
  height: min(85dvh, 1000px);
  object-fit: contain;
}
.photo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line, #fff);
  border-radius: 50%;
  background: rgb(0 0 0 / 75%);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}
.photo-close:focus-visible {
  outline: 3px solid var(--focus, #fff);
  outline-offset: 3px;
}

.photo-evidence section {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 6px;
}
.photo-evidence h4 {
  margin: 4px 0;
}
.photo-evidence img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.photo-evidence p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#manual-entry {
  grid-column: 1 / -1;
  min-height: 44px;
}

/* Compact account navigation remains available on both desktop and mobile. */
.user-menu {
  position: relative;
  flex-shrink: 0;
}
.user-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.user-menu > summary::-webkit-details-marker {
  display: none;
}
.user-menu > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.dashboard-page .user-menu .account-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  color: var(--ink, #314639);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 10;
  width: min(230px, calc(100vw - 24px));
  padding: 8px;
  background: var(--surface, #fffefa);
  border: 1px solid var(--line, #dce2d3);
  border-radius: 12px;
  box-shadow: 0 10px 30px #31463922;
}
.dashboard-page .user-menu #account-name {
  display: block;
  max-width: none;
  padding: 8px 10px;
  font-size: 0.8125rem;
}
.user-menu-panel button,
.user-menu-panel a {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.user-menu-panel a:hover,
.user-menu-panel a:focus-visible,
.user-menu-panel button:hover,
.user-menu-panel button:focus-visible {
  background: var(--soft, #e3e9d8);
}
.settings-dialog {
  width: min(480px, calc(100vw - 24px));
}
.settings-dialog .google-account {
  margin-top: 20px;
}
.settings-dialog .google-account h2 {
  font: 600 1rem/1.4 var(--sans);
}

.entry-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 12px;
}
.entry-options .expiry-toggle-always {
  margin: 0;
}
.entry-options .recognition-details {
  margin: 0;
}
.entry-options .recognition-details.is-diagnostic {
  flex-basis: 100%;
}

.inventory-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 9px;
}
.inventory-icon svg {
  flex-shrink: 0;
}
.add-icon {
  background: var(--primary, var(--ink));
  color: #fff;
}

.breadcrumb-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.inventory-topbar .breadcrumbs .add-icon {
  background: var(--primary, var(--ink));
  color: #fff;
  padding: 0;
}

.user-menu-panel a {
  text-decoration: none;
  display: block;
}
.history-main {
  max-width: 880px;
  margin: 1rem auto 3rem;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.history-heading h1 {
  font-size: 1.6rem;
  margin: 0;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.item-history {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.item-history > summary {
  cursor: pointer;
  font: 600 1.125rem/1.4 var(--sans);
}
.history-entry {
  border-bottom: 1px solid var(--line, var(--line, #deded5));
  overflow-wrap: anywhere;
}
.history-entry summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
}
.history-entry summary::-webkit-details-marker {
  display: none;
}
.history-entry summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.history-entry details[open] > summary::after {
  transform: rotate(45deg);
}
.history-entry summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.history-summary-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-entry time {
  font-size: 0.75rem;
  color: var(--ink, #666);
  white-space: nowrap;
}
.history-detail {
  padding: 4px 0 12px;
}
.history-detail-title {
  margin: 0 0 4px;
  font-weight: 600;
}
.history-detail time {
  white-space: normal;
}
.history-entry dl {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.history-entry dt {
  font-weight: 600;
}
.history-entry dd {
  margin: 0.15rem 0 0.5rem;
  white-space: pre-wrap;
}
.history-old {
  color: var(--muted, #777);
}
@media (max-width: 480px) {
  .history-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .history-heading a {
    font-size: 0.85rem;
  }
}

.entry-options > #expiry-field {
  width: 100%;
}
.expiry-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.expiry-input-row input {
  flex: 1;
  min-width: 0;
}
.expiry-input-row button {
  flex-shrink: 0;
  font-size: 0.8rem;
}
.relative-expiry-dialog {
  width: min(420px, calc(100vw - 24px));
}
.relative-expiry-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.relative-expiry-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.move-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.move-choices {
  display: grid;
  gap: 6px;
}
.move-choice {
  border: 1px solid var(--line);
  background: var(--surface, #fffefb);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  overflow-wrap: anywhere;
  min-height: 44px;
  cursor: pointer;
}
.move-choice[aria-pressed='true'] {
  background: var(--soft, #e3eee2);
  border-color: var(--accent, #2d5a43);
  box-shadow: inset 3px 0 #2d5a43;
}

.history-summary-text a,
.history-item-link a {
  color: var(--accent, #2d5a43);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.history-summary-text a:focus-visible,
.history-item-link a:focus-visible {
  outline: 2px solid var(--focus, #a87852);
  outline-offset: 2px;
}

#move-results {
  display: flow-root;
}
.move-choices[aria-busy='true'] {
  opacity: 0.55;
}

.move-dialog {
  width: min(720px, calc(100vw - 24px));
}
.move-dialog #move-results {
  height: clamp(180px, 42dvh, 420px);
  min-height: 0;
  overflow-y: auto;
}
.move-dialog .move-actions {
  margin-top: 12px;
}

.groups-page {
  max-width: 960px;
  margin: 12px auto 40px;
}
.groups-heading,
.group-members-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.groups-heading h1 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  font: 600 1.5rem/1.3 var(--sans);
}
.group-members-heading {
  margin: 20px 0 10px;
}
.group-members-heading h2 {
  margin: 0;
  font: 600 1.125rem/1.4 var(--sans);
}
.group-members-heading .add-icon {
  margin-left: auto;
}
.groups-page #member-search {
  max-width: 460px;
  margin: 6px 0 10px;
}
.groups-page .member-search-field {
  max-width: 460px;
}
.groups-page .member-search-field .search-history {
  margin: 6px 0 10px;
}
.groups-page .member-search-field #member-search {
  margin: 0;
}
.groups-page .group-link {
  display: block;
  padding: 6px 0;
  color: var(--accent, var(--green));
  font-weight: 600;
  text-decoration: none;
}
.groups-page[aria-busy='true'],
#groups-page[aria-busy='true'] #groups-body {
  pointer-events: none;
  opacity: 0.7;
}
.group-member-list[aria-busy='true'] {
  opacity: 0.7;
}
.groups-page .group-row {
  padding: 8px 0;
}
.groups-page .group-role-form select {
  width: auto;
  min-width: 100px;
}
.group-create-dialog .button {
  margin-top: 16px;
}
.groups-button {
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 640px) {
  .groups-page .group-role-form {
    flex-basis: auto;
  }
  .groups-heading {
    gap: 8px;
  }
  .groups-heading h1 {
    font-size: 1.25rem;
  }
}

.delete-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.siteadmin-reauth {
  max-width: 480px;
}
.siteadmin-reauth form .button {
  margin: 12px 0;
}
#users-list[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}
#user-search {
  margin-top: 6px;
}
#user-edit-dialog[aria-busy='true'] form,
#user-edit-dialog[aria-busy='true'] #delete-user {
  pointer-events: none;
  opacity: 0.7;
}

.notification-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  right: 7px;
  top: 7px;
  border-radius: 50%;
  background: var(--accent, var(--green));
  animation: notification-pulse 1.8s ease-in-out infinite;
}
@keyframes notification-pulse {
  50% {
    transform: scale(1.45);
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notification-dot {
    animation: none;
  }
}
.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notification-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.notification-entry time {
  color: var(--muted);
  font-size: 0.75rem;
}
.notification-entry p {
  margin: 4px 0;
}
.notification-entry > a,
.notification-entry > span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.notification-unread {
  border-left: 3px solid var(--green);
  padding-left: 10px;
}

.trash-main > input,
.trash-main .search-history > input {
  width: 100%;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #fffefa);
  font: inherit;
}
.trash-main .search-history {
  margin: 12px 0;
}
.trash-main .search-history > input {
  margin: 0;
}
.trash-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}
.trash-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.trash-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.trash-label > * {
  display: block;
}
.trash-label time,
.trash-label small {
  font-size: 0.6875rem;
  color: var(--muted);
}
.trash-thumbnail {
  flex: 0 0 48px;
  padding: 0;
  overflow: hidden;
}
.trash-thumbnail img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
}
.trash-dialog {
  width: min(800px, calc(100vw - 24px));
}
.trash-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.trash-item p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.trash-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.trash-photos button {
  border: 0;
  padding: 0;
  background: none;
}
.trash-photos img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.ai-credit-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.65rem;
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.ai-credit-line small {
  font-size: 0.73rem;
}
.site-policy {
  margin-bottom: 1rem;
}

.site-policy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.site-policy .expiry-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.9rem;
}
.site-policy input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
}

.search-history {
  position: relative;
  width: 100%;
  min-width: 0;
}
.search-history > input {
  width: 100%;
}
.search-history.has-search-history > input {
  padding-right: 44px;
}
.search-history-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.375rem;
}
.search-history-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 6px;
  max-height: min(290px, 45vh);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 24px #24392b1a;
}
.search-history-panel > small {
  display: block;
  padding: 4px 8px;
  color: var(--muted);
}
.search-history-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.search-history-option:hover,
.search-history-option[aria-selected='true'] {
  background: var(--soft);
}
.site-policy .field-hint,
.site-policy .form-error {
  flex-basis: 100%;
  margin: 0;
}

.settings-dialog :is(#color-theme, #avatar-mode, #text-size) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface, #fffefa);
}

.settings-dialog :is(#color-theme, #text-size) {
  margin-bottom: 22px;
}

:root[data-theme='dark'] .hero-visual:before {
  background: radial-gradient(ellipse, #354636 0, transparent 73%);
}
:root[data-theme='dark'] .scene-tag {
  background: #202a23e8;
}
:root[data-theme='dark'] ::selection {
  background: #425b44;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-preview {
  width: 64px;
  height: 64px;
}
.avatar-settings {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}
.avatar-settings > div {
  min-width: 0;
  flex: 1;
}
.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.avatar-actions .avatar-upload {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
}
.avatar-upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.avatar-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.avatar-upload:focus-within {
  outline: 3px solid var(--focus, #ab7755);
  outline-offset: 2px;
}
.avatar-upload:has(input:disabled) {
  opacity: 0.65;
  cursor: wait;
}

.privacy-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.privacy-form .expiry-toggle {
  margin: 0;
}

.site-statistics {
  margin: 1rem 0 1.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}
.statistics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.statistics-heading h2 {
  margin: 0;
  font-size: 1rem;
}
.statistics-totals {
  display: flex;
  gap: 1.5rem;
  margin: 0.5rem 0;
}
.statistics-totals dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.statistics-totals dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.statistics-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.statistics-table :is(th, td) {
  padding: 0.4rem 0.15rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.statistics-table :is(th, td):first-child {
  text-align: left;
  width: 40%;
}
.statistics-table thead th {
  color: var(--muted);
  font-weight: 500;
}
.statistics-table tbody tr {
  border-top: 1px solid var(--line);
}
.site-statistics .field-hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
}
@media (max-width: 400px) {
  .site-statistics {
    padding: 0.65rem;
  }
  .statistics-table {
    font-size: 0.74rem;
  }
}

.notification-popup {
  position: fixed;
  z-index: 45;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 24px));
  padding: 16px 48px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 32px #12291e30;
}
.notification-popup p {
  margin: 0 0 10px;
  font-weight: 600;
}
.notification-popup .popup-close {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
}
.tips-dialog {
  width: min(440px, calc(100vw - 24px));
}
.tips-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
}
.tip-content h3 {
  font-size: 1.125rem;
  margin: 20px 0 10px;
}
.tip-content p {
  line-height: 1.5;
}
.tips-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}
.tips-dialog .expiry-toggle {
  font-size: 0.8125rem;
}
.tips-dialog .dialog-top > button {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}
.tips-actions button,
.notification-popup > a {
  font-size: 0.8125rem;
}

.inventory-navigation .inventory-filter-button {
  position: relative;
  width: 44px;
  height: 44px;
}
.inventory-filter-button[aria-pressed='true'] {
  background: var(--green);
  color: #fff;
}
.inventory-filter-count {
  position: absolute;
  right: 2px;
  top: 1px;
  font-size: 0.625rem;
  font-weight: 700;
}
.inventory-filter-dialog {
  width: min(420px, calc(100vw - 24px));
}
.inventory-filter-dialog .dialog-top {
  margin-bottom: 16px;
}
.inventory-filter-dialog .dialog-top > button {
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px;
}
.inventory-filter-dialog .expiry-toggle {
  min-height: 44px;
  font-size: 0.9375rem;
}
.filter-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.card-photo > .card-private {
  position: absolute;
  left: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface, var(--paper));
  color: var(--ink);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .inventory-filter-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .inventory-view {
    grid-row: 2;
  }
  .inventory-recursive {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
}

/* List mode keeps each entry in a compact row; card modes retain their layout. */
.card-list-only {
  display: none;
}
.inventory-grid.list-view {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.list-view .inventory-card {
  display: grid;
  grid-template-columns: 48px minmax(120px, 1fr) 120px 44px minmax(0, 2fr);
  align-items: center;
  gap: 4px 12px;
}
.list-view .card-photo {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
}
.list-view .inventory-card > strong {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-view .card-list-only {
  display: block;
  font-size: 0.75rem;
}
.list-view .card-expiry {
  grid-column: 3;
  grid-row: 1;
}
.list-view .card-quantity {
  position: static;
  grid-column: 4;
  grid-row: 1;
  font-size: 0.75rem;
}
.list-view .card-notes {
  position: relative;
  grid-column: 5;
  grid-row: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-view .card-notes:has(.ai-field-badge) {
  padding-right: 28px;
}
.list-view .card-notes > .ai-field-badge {
  position: absolute;
  right: 0;
  top: 0;
}
.list-view .card-location {
  grid-column: 2 / -1;
  grid-row: 2;
  padding: 0;
}
.list-view .card-private {
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
}
@media (max-width: 640px) {
  .inventory-topbar {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .inventory-view {
    grid-column: 1 / -1;
  }
  .list-view .inventory-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 2px 8px;
  }
  .list-view .card-photo {
    grid-row: 1 / span 4;
    width: 44px;
    height: 44px;
  }
  .list-view .inventory-card > strong {
    grid-column: 2 / -1;
  }
  .list-view .card-expiry {
    grid-column: 2;
    grid-row: 2;
  }
  .list-view .card-quantity {
    grid-column: 3;
    grid-row: 2;
  }
  .list-view .card-notes {
    grid-column: 2 / -1;
    grid-row: 3;
  }
  .list-view .card-location {
    grid-row: 4;
  }
}

.list-view .card-photo > span:not([class]) {
  font-size: 1.75rem;
  line-height: 1;
}

.move-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.move-toolbar .expiry-toggle {
  margin: 0;
  font-size: 0.8125rem;
}
.move-toolbar .inventory-view {
  margin-left: auto;
}
.move-choices.inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.move-choices .move-choice {
  padding: 0;
}
.move-choices .inventory-card > strong {
  padding: 6px 10px;
  font-size: 0.8125rem;
}
.move-choices .card-location {
  display: block;
  padding: 0 10px 8px;
  font-size: 0.6875rem;
}
.move-choices.list-view {
  grid-template-columns: 1fr;
}
.move-choices.list-view .inventory-card {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 6px;
}
.move-choices.list-view .card-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.move-choices.list-view .inventory-card > strong {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}
.move-choices.list-view .card-location {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
}

@media (max-width: 480px) {
  .move-choices.inventory-grid:not(.list-view) {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
}

.move-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
}
.move-dialog > :not(#move-results) {
  flex-shrink: 0;
}
.move-dialog #move-results {
  flex-shrink: 1;
}
.move-dialog .move-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
#move-breadcrumbs {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0;
  scrollbar-width: thin;
  align-items: end;
}
#move-breadcrumbs button {
  flex-shrink: 0;
  max-width: 160px;
  min-height: 44px;
  border: 0;
  padding: 6px;
}
#move-breadcrumbs button[aria-current='page'] {
  font-weight: 650;
  color: var(--ink);
}
#choose-move {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.8125rem;
}
#move-more {
  margin-top: 8px;
}

.photo-previews .photo-ai-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  gap: 0.25rem;
  margin: 8px 0 0;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}
.photo-previews .photo-ai-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--green);
}

@media (max-width: 480px) {
  .photo-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ai-field-action {
  cursor: pointer;
  border: 1px solid currentColor;
  min-height: 1.8rem;
  padding: 0.2rem 0.5rem;
}
.ai-field-action:disabled {
  opacity: 0.5;
}

.entry-field-label {
  display: flex;
  align-items: center;
  min-height: 1.8rem;
  margin: 20px 0 9px;
}
.entry-dialog .entry-field-label label {
  margin: 0;
}

.inventory-results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 12px 0 8px;
}
.inventory-results-heading .inventory-list-title {
  flex-basis: 100%;
  margin: 0;
}
.inventory-filter-summary {
  color: var(--muted);
  font-size: 0.875rem;
}
.inventory-results-heading .inventory-icon {
  min-width: 36px;
  min-height: 36px;
}

.expiry-expired,
.list-view .card-expiry.expiry-expired {
  color: var(--danger-text, #b42318);
}

/* Keep enough trailing space to align selected details even in short lists. */
.inventory-content:has(> #current-entry:not([hidden])) {
  min-height: 100vh;
  min-height: 100svh;
}
