:root {
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --ink: #111a27;
  --muted: #58616d;
  --blue: #2155d9;
  --orange: #ff6b2c;
  --line: #c9c5bc;
  --steel: #a9b3be;
  --green: #12805c;
  --red: #b8392f;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  background: var(--ink);
  color: white;
  padding: .8rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
button,
input,
select,
textarea {
  font: inherit;
}
.portal-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(245, 241, 232, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.logo {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -2px;
}
.logo span {
  color: var(--blue);
}
.portal-header nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 100px;
}
.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.page-title {
  font:
    800 clamp(54px, 7vw, 92px) / 0.88 "Barlow Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin: 14px 0 20px;
}
.page-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  margin-top: 55px;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.form-section,
.side-card,
.track-card,
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.form-section h2,
.side-card h2 {
  font: 700 30px "Barlow Condensed";
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  border-radius: 10px;
  outline: none;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 85, 217, 0.12);
}
.checks {
  display: grid;
  gap: 12px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.check input {
  margin-top: 3px;
}
.primary-btn,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  padding: 15px 22px;
  font-weight: 700;
  cursor: pointer;
}
.secondary-btn,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.primary-action span {
  color: var(--orange);
  font-size: 22px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.side-card {
  position: sticky;
  top: 100px;
  height: max-content;
}
.side-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 18px;
}
.side-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.side-list span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--blue);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.alert {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
}
.alert.error {
  background: #fbe7e2;
  color: var(--red);
}
.alert.success {
  background: #e4f4ed;
  color: var(--green);
}
.success-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 50px;
  max-width: 760px;
  margin: 55px auto 0;
  text-align: center;
}
.rma-badge {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  font: 700 26px "Barlow Condensed";
  letter-spacing: 0.08em;
  margin: 20px 0;
}
.track-search {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 15px;
  margin: 40px 0;
}
.track-search input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
}
.track-card {
  display: grid;
  gap: 22px;
}
.status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.status-pill {
  display: inline-flex;
  background: #e7edff;
  color: var(--blue);
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.progress {
  height: 8px;
  background: #e4e0d8;
  border-radius: 99px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
}
.timeline {
  display: grid;
  gap: 0;
}
.timeline-item {
  border-left: 2px solid var(--line);
  padding: 0 0 25px 25px;
  position: relative;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border: 4px solid var(--paper);
  border-radius: 50%;
  left: -8px;
  top: 2px;
}
.timeline-item h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.timeline-item p,
.timeline-item time {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.estimate-box {
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 20px;
}
.money {
  font: 700 38px "Barlow Condensed";
}
.estimate-lines {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.estimate-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.approval-actions {
  display: flex;
  gap: 12px;
}
.admin-body {
  background: #eef0f3;
}
.admin-header {
  height: 68px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.admin-header .logo span {
  color: #7fa2ff;
}
.admin-header nav {
  display: flex;
  gap: 8px;
}
.admin-header button {
  border: 0;
  background: transparent;
  color: #cbd1da;
  padding: 10px;
  cursor: pointer;
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}
.admin-sidebar {
  background: #161f2c;
  color: white;
  padding: 24px 16px;
}
.admin-sidebar h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8893a2;
  padding: 0 12px;
}
.filter-btn {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #d6dae0;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.filter-btn:hover,
.filter-btn.active {
  background: #253247;
  color: white;
}
.admin-main {
  padding: 30px;
  min-width: 0;
}
.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-toolbar input {
  width: min(420px, 100%);
  border: 1px solid #cdd2d8;
  border-radius: 9px;
  padding: 11px;
}
.ticket-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}
.ticket-table th,
.ticket-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5e7ea;
  text-align: left;
  font-size: 12px;
}
.ticket-table th {
  background: #f8f9fa;
  color: #697380;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.ticket-table tr {
  cursor: pointer;
}
.ticket-table tbody tr:hover {
  background: #f4f7ff;
}
.priority-urgent {
  color: var(--red);
  font-weight: 700;
}
.admin-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 20px;
}
.admin-card {
  border-color: #d9dde2;
}
.admin-card h2 {
  font: 700 27px "Barlow Condensed";
  text-transform: uppercase;
  margin: 0 0 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.detail-row small {
  display: block;
  color: #7b8490;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.detail-row strong {
  font-size: 13px;
}
.admin-form {
  display: grid;
  gap: 12px;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  border: 1px solid #ccd1d7;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
}
.line-editor {
  display: grid;
  grid-template-columns: 1fr 110px 40px;
  gap: 8px;
  margin-bottom: 8px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--ink);
  padding: 20px;
}
.login-card {
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: 18px;
  padding: 38px;
}
.login-card h1 {
  font: 700 45px "Barlow Condensed";
  text-transform: uppercase;
  margin: 25px 0;
}
.login-card form {
  display: grid;
  gap: 12px;
}
.login-card input {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.hidden {
  display: none !important;
}
@media (max-width: 900px) {
  .form-layout,
  .admin-detail {
    grid-template-columns: 1fr;
  }
  .side-card {
    position: static;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .ticket-table th:nth-child(4),
  .ticket-table td:nth-child(4) {
    display: none;
  }
}
@media (max-width: 620px) {
  .portal-header nav {
    display: none;
  }
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 45px;
  }
  .field-grid,
  .track-search,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-section {
    padding: 22px;
  }
  .status-top,
  .approval-actions,
  .admin-toolbar {
    flex-direction: column;
  }
  .ticket-table th:nth-child(3),
  .ticket-table td:nth-child(3) {
    display: none;
  }
  .admin-main {
    padding: 16px;
  }
}
