:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #67615a;
  --line: #ded8cf;
  --accent: #d97819;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

.manager-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100svh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #111;
  color: #fff;
}

.brand {
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 44px;
  line-height: 0.9;
}

.brand span {
  color: #d8d1c8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 8px;
}

nav button,
.ghost,
.panel button,
.auth-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

nav button {
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 0 12px;
}

nav button.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.ghost {
  margin-top: auto;
  background: transparent;
  color: #fff;
}

.workspace {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.9;
  text-transform: uppercase;
}

.panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.panel h2,
.auth-card h1 {
  margin: 0 0 18px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
}

.switches,
.auth-actions,
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.switches label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switches input {
  width: auto;
  min-height: auto;
}

.panel button,
.auth-actions button {
  padding: 0 14px;
  background: #111;
  color: #fff;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(480px, 100%);
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.products-table,
.orders-list,
.hours-list {
  display: grid;
  gap: 10px;
}

.product-row,
.order-row,
.hour-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf8;
}

.product-row {
  grid-template-columns: 1.3fr 2fr 110px 120px auto;
  align-items: center;
}

.hour-row {
  grid-template-columns: 130px 1fr 1fr 120px;
  align-items: center;
}

.order-row {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.state {
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 860px) {
  .manager-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .grid,
  .product-row,
  .hour-row,
  .order-row {
    grid-template-columns: 1fr;
  }
}
