/* Palette inspired by the supplied HY HANDTWOS logo. */
:root {
  --pink: #bb416b;
  --pink-dark: #963050;
  --teal: #24858a;
  --teal-dark: #17636a;
  --yellow: #ecd083;
  --peach: #e8ad8b;
  --ink: #423027;
  --cream: #fff9ef;
  --green: var(--teal-dark);
  --muted: #79665c;
  --border: #e7d7c7;
  --bg: #fbf4e9;
}
body { color: var(--ink); }
aside { background: var(--cream); border-right-color: var(--border); }
.brand { color: var(--pink); letter-spacing: -2px; }
.brand span { color: var(--ink); }
.brand::before {
  content: '✦';
  color: var(--teal);
  font-size: 26px;
  letter-spacing: 0;
}
.shop-label { color: #8b5c45; letter-spacing: 1.2px; }
nav button { color: #756052; }
nav button.active { background: #f7dce3; color: var(--pink-dark); box-shadow: inset 3px 0 var(--pink); }
nav button:hover:not(.active) { background: #f5e9d6; color: var(--ink); }
.status-dot { background: var(--teal); }
header { background: #fffdf8; border-top: 4px solid var(--pink); }
header b, .profile span { color: #705a4e; }
.profile { color: var(--pink-dark); }
.eyebrow { color: #8e5944; }
h1, h2 { color: var(--ink); }
.primary { background: var(--pink-dark); color: #fff; box-shadow: 0 3px 0 #6f243d; }
.primary:hover:not(:disabled) { background: #802740; }
.primary:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 0 #6f243d; }
.secondary { background: #fffdf8; color: var(--teal-dark); border-color: #d8c4af; }
.secondary:hover { background: #f5ead6; }
.hero {
  position: relative;
  isolation: isolate;
  background: #f5dfab;
  border: 1px solid #dfbd83;
  border-bottom: 5px solid var(--peach);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -75px;
  top: -125px;
  width: 410px;
  height: 410px;
  border: 10px solid #e8ad8b;
  border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, #24858a 0deg 22.5deg, #ecd083 22.5deg 45deg, #d56882 45deg 67.5deg, #e8ad8b 67.5deg 90deg);
  opacity: .28;
}
.hero > div:first-child { position: relative; max-width: 75%; }
.hero p { color: #71523c; }
.hero-art { color: var(--pink-dark); }
.hero-art::after { content: '✦'; color: var(--teal-dark); font-size: 32px; vertical-align: top; }
.stat, .panel, .card, .cart, .work-queue { background: #fffdf8; border-color: var(--border); }
.stat { border-top: 3px solid var(--pink); }
.stat:nth-child(2) { border-top-color: var(--teal); }
.stat:nth-child(3) { border-top-color: #cc9d35; }
.stat:nth-child(4) { border-top-color: #cd8966; }
.stat strong { color: var(--ink); }
.stat small, .sub, footer { color: #79665c; }
th { background: #f7eddc; color: #715b4b; }
td, th { border-bottom-color: #eee1d3; }
.badge { background: #dfefeb; color: #175d60; }
.badge.sold { background: #f4e3d5; color: #805339; }
input, select, textarea { background: #fffdfa; color: var(--ink); border-color: #d8c4af; outline-color: var(--teal); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.thumb svg, .card-art svg { stroke: #74533f; }
.cart-row button { border-color: #d8c4af; color: var(--teal-dark); background: #fff9ef; }
.shop-info { background: #dfeee8; border: 1px solid #bbd6cf; }
.shop-info p { color: #49665f; }
.shop-info a, .post-link { color: var(--teal-dark); }
.order-summary { background: #f8ecd9; }
.timeline div { border-top-color: var(--border); }
.defect-note { color: #925035; }
dialog { background: #fffdf8; color: var(--ink); border-top: 5px solid var(--pink); }
dialog::backdrop { background: #42302780; }
.icon-button { color: var(--ink); }
#toast { background: var(--teal-dark); }
.error { color: #a02b36; }
footer { background: var(--cream); }
@media (max-width: 1000px) {
  .brand { gap: 7px; }
  .brand::before { font-size: 18px; }
  .brand span { font-size: 10px; }
}
@media (max-width: 620px) {
  .hero > div:first-child { max-width: 100%; }
  .hero::after { right: -210px; opacity: .12; }
  nav button.active { box-shadow: inset 0 -3px var(--pink); }
  .brand span { font-size: 12px; }
}
@media print {
  dialog { background: #fff; border-top: 0; }
}

/* Keep navigation in a vertical sidebar; narrow screens use a side drawer. */
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  height: 100dvh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
}
aside nav { display: flex; flex-direction: column; gap: 5px; }
aside nav button { flex: none; width: 100%; text-align: left; padding: 13px 14px; font-size: 19px; }
aside nav button span { font-size: 14px; margin-left: 10px; }
aside nav button.active { box-shadow: inset 3px 0 var(--pink); }
aside .side-bottom { display: block; position: static; margin-top: auto; padding-top: 28px; }
aside .shop-label { display: block; margin-bottom: 25px; }
aside .brand { font-size: 34px; gap: 7px; }
aside .brand span { font-size: 12px; }
aside .brand::before { font-size: 20px; }
main { margin-left: 248px; min-width: 0; }
.overview-actions { display: flex; justify-content: flex-end; margin-bottom: 22px; }
.sidebar-toggle, .sidebar-overlay { display: none; }
@media (max-width: 760px) {
  aside { width: 248px; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  main { margin-left: 0; }
  header { gap: 12px; padding: 0 15px; }
  header > span { flex: 1; font-size: 11px; }
  .profile span { display: none; }
  .sidebar-toggle { display: block; padding: 7px 10px; font-size: 12px; }
  .sidebar-open aside { transform: translateX(0); visibility: visible; }
  .sidebar-open .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 25; background: #42302770; border: 0; }
  .sidebar-open { overflow: hidden; }
  .storefront aside nav { display: flex; }
  .storefront aside .side-bottom { display: none; }
}
@media (prefers-reduced-motion: reduce) { aside { transition: none; } }
@media print { .sidebar-toggle, .sidebar-overlay { display: none !important; } }

nav button[hidden] { display: none !important; }
.login-panel { max-width: 440px; margin: 35px auto; padding: 30px; background: #fffdf8; border: 1px solid var(--border); border-top: 5px solid var(--pink); border-radius: 12px; }
.login-panel h1 { font-size: 24px; }
.login-panel label { display: block; margin-top: 18px; font-size: 13px; }
.login-panel input { margin-top: 6px; }
.login-panel .primary { width: 100%; }
.login-panel > a { display: inline-block; margin-top: 22px; color: var(--teal-dark); }
.auth-screen aside nav, .auth-screen .side-bottom { display: none; }
.permissions-panel { padding: 24px; }
.permissions-panel p { margin-top: 12px; line-height: 1.8; }
.profile button { font-size: 11px; padding: 7px 10px; }
@media (max-width: 760px) { .profile span { display: none; } .auth-screen .sidebar-toggle { display: none; } }

.data-controls { background: #fffdf8; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; }
.data-controls form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.data-controls label { font-size: 12px; display: grid; gap: 5px; min-width: 140px; }
.data-controls input, .data-controls select { padding: 8px 10px; min-height: 40px; }
.data-controls button { min-height: 40px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.data-controls > .export-actions:first-child { margin-top: 0; }
.period-caption { font-size: 11px; margin-top: 14px; line-height: 1.8; }
.data-controls .error:empty { display: none; }
@media(max-width:620px) { .data-controls { padding: 15px; } .data-controls label { flex: 1; min-width: 125px; } .export-actions button { flex: 1; font-size: 12px; } }

aside .brand.has-logo { flex-direction: column; align-items: center; gap: 10px; letter-spacing: 1px; margin-bottom: 8px; }
aside .brand.has-logo::before { display: none; }
aside .brand.has-logo span { font-size: 13px; }
.shop-logo { width: 110px; height: 110px; object-fit: contain; border-radius: 50%; background: #fff; }
.login-logo { display: block; width: 120px; height: 120px; object-fit: contain; border-radius: 50%; margin: 0 auto 20px; }
.logo-panel { padding: 24px; max-width: 850px; }
.logo-panel > p { margin-top: 10px; }
.logo-panel label { display: block; margin-top: 18px; font-size: 13px; }
.logo-panel input { margin: 8px 0; }
.logo-preview { display: block; width: 120px; height: 120px; object-fit: contain; margin-top: 18px; }
