:root {
  --ink: #102f40;
  --muted: #5f756f;
  --line: #d9e6e2;
  --panel: #ffffff;
  --bg: #ffffff;
  --beach: #f4fbf8;
  --water: #1788bd;
  --accent: #1683b7;
  --accent-dark: #0e5f8c;
  --accent-2: #f3a51d;
  --danger: #9f2d2d;
  --shadow: 0 18px 48px rgba(16, 47, 64, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.58;
}
a { color: var(--accent); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 330px;
}
.brand img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: left center;
}
.brand span {
  display: grid;
  gap: 2px;
}
.brand strong {
  color: #123c4d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.08;
}
.brand small {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a {
  color: #1c4251;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
nav a:hover { color: var(--accent); }
.employee-link { color: var(--muted); }
main { width: min(1180px, calc(100% - 32px)); margin: 30px auto 72px; }
.embedded-public main {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 48px;
}
.embedded-login-link {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #5f756f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 3;
}
.embedded-login-link:hover { color: var(--accent); }
.embedded-admin-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
}
.embedded-admin-nav a,
.embedded-admin-nav button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f756f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}
.embedded-admin-nav a:hover,
.embedded-admin-nav button:hover {
  color: var(--accent);
  background: transparent;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: 44px;
  padding: clamp(34px, 6vw, 74px);
  background:
    radial-gradient(circle at 94% 14%, rgba(243, 165, 29, .22), transparent 26%),
    linear-gradient(135deg, #effaf8 0%, #ffffff 44%, #e8f7fb 100%);
  border: 1px solid #d2e8e5;
  border-radius: 0;
  box-shadow: var(--shadow);
}
h1, h2, h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}
h1 {
  max-width: 620px;
  font-size: clamp(42px, 6vw, 76px);
}
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 23px; }
p { margin: 0 0 14px; }
.hero p:not(.site-name) {
  max-width: 660px;
  color: #395f63;
  font-size: 19px;
}
.site-name {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 700;
}
.search-form, .stack, fieldset { display: grid; gap: 12px; }
.search-form {
  align-self: stretch;
  padding: 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #cfe3df;
  box-shadow: 0 12px 30px rgba(16, 47, 64, .08);
}
.search-form h2 {
  margin-bottom: 2px;
  font-size: 27px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid.compact { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.card, .panel, .metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(16, 47, 64, .06);
}
.panel h1 {
  max-width: none;
  font-size: clamp(30px, 3vw, 42px);
}
.cart-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: -4px 0 16px;
  border: 1px solid var(--line);
}
.table-thumb {
  display: block;
  width: 84px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.narrow { max-width: 720px; margin-inline: auto; }
label {
  display: grid;
  gap: 6px;
  color: #274953;
  font-size: 14px;
  font-weight: 700;
}
input, select, textarea, button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bed4d0;
  border-radius: 0;
  padding: 10px 11px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(23, 136, 189, .22);
  border-color: var(--accent);
}
textarea { min-height: 90px; resize: vertical; }
button {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #112f3d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
button:hover { background: #ffc148; border-color: #ffc148; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.button-link:hover { background: var(--accent-dark); color: #fff; }
nav button, .inline button { width: auto; min-height: 34px; padding: 6px 10px; }
.inline { display: inline; }
.muted { color: var(--muted); }
.compact-form {
  gap: 8px;
  min-width: 180px;
}
.compact-form input,
.compact-form select,
.compact-form textarea,
.compact-form button {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}
.compact-form textarea { min-height: 58px; }
fieldset { border: 1px solid var(--line); border-radius: 0; padding: 14px; }
legend { font-weight: 700; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; min-height: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--beach); color: #123c4d; }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; }
dt { font-weight: 700; }
dd { margin: 0; }
.receipt { margin: 12px 0 20px; }
.metric strong { display: block; font-size: 28px; }
.metric span { color: var(--muted); }
.bar-chart { display: grid; gap: 12px; }
.bar-row {
  display: grid;
  grid-template-columns: 90px minmax(160px, 1fr) 120px;
  gap: 12px;
  align-items: center;
}
.bar-track {
  min-height: 22px;
  background: #edf6f5;
  border: 1px solid var(--line);
}
.bar-fill {
  min-height: 20px;
  background: var(--water);
}
.alert, .empty, .notice, .policy {
  padding: 12px;
  border: 1px solid #ecd080;
  background: #fff9e6;
  border-radius: 0;
}
.alert { border-color: #e5aaaa; background: #fff1f1; color: var(--danger); }
.notice { border-color: #9fcfba; background: #eefaf4; color: #174634; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}
.authorize-form { margin-top: 24px; }
.settings-grid fieldset { align-self: start; }
.authorize-settings {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.authorize-settings legend,
.authorize-settings .policy,
.authorize-settings .receipt {
  grid-column: 1 / -1;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}
.form-actions button {
  width: auto;
  min-width: 190px;
  padding-inline: 22px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(18px, 4vw, 54px);
  background: #0f3343;
  color: #dceeed;
}
.site-footer img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: left center;
}
.site-footer p {
  max-width: 580px;
  margin-top: 12px;
  color: #dceeed;
}
.site-footer nav a { color: #ffffff; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { gap: 11px 14px; }
  nav a { font-size: 12px; }
  .brand { min-width: 0; }
  .brand img { width: 70px; height: 70px; }
  .brand strong { font-size: 17px; }
  .site-footer { flex-direction: column; }
  table { display: block; overflow-x: auto; }
  dl { grid-template-columns: 1fr; }
  .authorize-settings { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; }
}
