:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --ink: #17191f;
  --muted: #666d7a;
  --line: #dfe3ea;
  --honda-red: #c41230;
  --honda-red-dark: #930b20;
  --blue: #1f5f99;
  --amber: #b98013;
  --green: #207245;
  --shadow: 0 18px 50px rgba(20, 25, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #10131a;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--honda-red);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: #b7becb;
  font-size: 0.88rem;
}

.status-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d5dae3;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item strong {
  color: #fff;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9098a6;
}

.nav-dot.production {
  background: var(--blue);
}

.nav-dot.waiting {
  background: var(--amber);
}

.nav-dot.done {
  background: var(--green);
}

.nav-dot.all {
  background: var(--honda-red);
}

.content {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 44px) 46px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--honda-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connection-pill {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}

.connection-pill.connected {
  border-color: rgba(32, 114, 69, 0.24);
  color: var(--green);
}

.connection-pill.demo {
  border-color: rgba(185, 128, 19, 0.24);
  color: var(--amber);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px;
  gap: 12px;
  margin-bottom: 18px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search-field span {
  color: var(--muted);
  font-size: 1.1rem;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.status-message {
  min-height: 22px;
  margin: 10px 0 14px;
  color: var(--muted);
}

.status-message.error {
  color: var(--honda-red-dark);
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.art-card {
  display: flex;
  min-height: 312px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-status {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

h2 {
  margin: 10px 0 0;
  font-size: 1.12rem;
  line-height: 1.22;
}

.designer-badge {
  flex: 0 0 auto;
  max-width: 138px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.designer-badge.production,
.status-button.production.is-active {
  background: var(--blue);
}

.designer-badge.waiting,
.status-button.waiting.is-active {
  background: var(--amber);
}

.designer-badge.done,
.status-button.done.is-active {
  background: var(--green);
}

.briefing {
  display: -webkit-box;
  min-height: 62px;
  margin: 18px 0;
  overflow: hidden;
  color: #3c424d;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.45;
}

.meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.meta-list div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a {
  color: var(--honda-red);
  font-weight: 700;
}

.status-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.status-button {
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-button.is-active {
  border-color: transparent;
  color: #fff;
}

.status-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .brand {
    margin-bottom: 14px;
  }

  .status-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content {
    padding: 20px 14px 34px;
  }

  .topbar,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .status-buttons {
    grid-template-columns: 1fr;
  }

  .designer-badge {
    max-width: 112px;
  }
}
