/* Shared palette for the public site, login and seller workspace. */
:root {
  color-scheme: dark;
  --page: #131815;
  --surface: #1b231e;
  --surface-raised: #252f28;
  --surface-inset: #171e19;
  --navigation: #171e19;
  --header: #171e19;
  --ink: #e7eee8;
  --muted: #a3b1a5;
  --subtle: #8f9f92;
  --line: #354239;
  --line-strong: #526657;
  --accent: #b6d99d;
  --accent-hover: #c7e6b2;
  --accent-soft: #283d2b;
  --accent-line: #48654a;
  --button: #b6d99d;
  --button-hover: #c7e6b2;
  --button-text: #192719;
  --positive: #9fdbb3;
  --positive-soft: #20382c;
  --positive-line: #3d6650;
  --warning: #edca83;
  --warning-soft: #3a3020;
  --warning-line: #6f5933;
  --danger: #f0a39b;
  --danger-soft: #3b2525;
  --danger-line: #754741;
  --info: #a4c9e8;
  --info-soft: #25343e;
  --info-line: #465f73;
  --violet: #c9b5ea;
  --violet-soft: #332c42;
  --violet-line: #5b4c77;
  --selection: #405c39;
  --scrim: #070d0ac4;
  --dialog-shadow: 0 24px 90px #00000050;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f6f5ef;
  --surface: #ffffff;
  --surface-raised: #edf1e7;
  --surface-inset: #f8f9f5;
  --navigation: #eef1e9;
  --header: #fafaf6;
  --ink: #243c2f;
  --muted: #647468;
  --subtle: #71816d;
  --line: #d9dfd1;
  --line-strong: #b4c1ac;
  --accent: #294f39;
  --accent-hover: #183c27;
  --accent-soft: #e2edcf;
  --accent-line: #b7cba8;
  --button: #294f39;
  --button-hover: #183c27;
  --button-text: #ffffff;
  --positive: #256349;
  --positive-soft: #eaf3e9;
  --positive-line: #bfd5bf;
  --warning: #865b1c;
  --warning-soft: #fbf0d9;
  --warning-line: #dfc99a;
  --danger: #ac3e35;
  --danger-soft: #fcece9;
  --danger-line: #e6beb9;
  --info: #2e628a;
  --info-soft: #eaf2f9;
  --info-line: #bed1e1;
  --violet: #705199;
  --violet-soft: #f1ecf8;
  --violet-line: #d2c4e4;
  --selection: #d5e4ca;
  --scrim: #17291b80;
  --dialog-shadow: 0 24px 90px #15291a26;
}

html { background: var(--page); scrollbar-color: var(--line-strong) var(--page); }
::selection { background: var(--selection); color: var(--ink); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-raised); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.theme-toggle .theme-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-sun { display: block; }
[data-theme="light"] .theme-toggle .theme-moon { display: none; }
.site-actions { display: flex; align-items: center; gap: 12px; }
.site-actions > .button { padding: 11px 19px; font-size: 13px; }
.workspace-header .theme-toggle-label { display: none; }
.header-location { min-width: 0; }
.header-location strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { min-width: 0; flex-shrink: 0; }
#user-name-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
  .header-actions { gap: 12px; }
  .header-actions > .quiet-button, .header-location > a { display: none; }
  #user-name-text { max-width: 110px; }
}
@media (max-width: 1000px) {
  .site-header .theme-toggle-label { display: none; }
}
@media (max-width: 900px) {
  .site-header .nav { display: none; }
}
@media (max-width: 767px) {
  .theme-toggle { min-width: 42px; padding: 10px; }
  .theme-toggle-label { display: none; }
  .site-actions { gap: 8px; }
  .site-actions > .button { padding: 10px 12px; font-size: 12px; }
  .workspace-header { gap: 12px; }
  .header-actions { gap: 8px; }
  #user-profile-badge > span { min-width: 0; }
  #user-name-text { max-width: 95px; }
}
@media (max-width: 380px) {
  .site-actions > .button > span { display: none; }
  .header-inner .brand { gap: 7px; font-size: 17px; }
  .header-inner .brand-mark { width: 29px; height: 29px; font-size: 24px; }
  #user-name-text { max-width: 64px; }
  #user-profile-badge > span > .bg-amber-500\/20 { display: none; }
}
