:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #e4edf6;
  background: #0c1420;
  --surface: #141f2d;
  --surface-raised: #192738;
  --border: #2a394b;
  --text: #e4edf6;
  --muted: #9aabbd;
  --accent: #64a5ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.ticket-search-label {
  margin: 0;
}

.dashboard-actions input[type="search"] {
  width: min(28vw, 240px);
  min-width: 150px;
  padding: 8px 10px;
  font-size: 12px;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(43, 85, 131, .24), transparent 48%),
    #0c1420;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(16, 26, 39, .92);
  backdrop-filter: blur(12px);
}

body:has(#staff-panel:not(.hidden)) .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #1967d2;
  font-size: 16px;
}

.text-button {
  border: 0;
  padding: 9px 12px;
  color: #a9cfff;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.text-button:hover {
  color: #d0e5ff;
}

.topbar-actions {
  display: flex;
  align-items: center;
}

#deployment-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.layout {
  width: min(100% - 32px, 640px);
  margin: 58px auto 54px;
}

body:has(#staff-panel:not(.hidden)) .layout {
  width: min(100% - 40px, 1080px);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0 auto;
}

body:has(#staff-panel:not(.hidden)) {
  display: flex;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

body:has(#staff-panel:not(.hidden)) .topbar {
  flex: 0 0 72px;
}

body:has(#staff-panel:not(.hidden)) #staff-panel {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

body:has(#staff-panel:not(.hidden)) #staff-panel > .staff-dashboard-section {
  flex: 0 0 auto;
}

body:has(#staff-panel:not(.hidden)) .staff-dashboard-section {
  padding: 9px 16px;
}

body:has(#staff-panel:not(.hidden)) .staff-dashboard-heading {
  margin-bottom: 7px;
}

body:has(#staff-panel:not(.hidden)) .staff-dashboard-heading > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 12px;
}

body:has(#staff-panel:not(.hidden)) .staff-dashboard-heading .eyebrow {
  width: 100%;
  margin: 0;
  font-size: 9px;
}

body:has(#staff-panel:not(.hidden)) .staff-dashboard-heading h2 {
  font-size: 16px;
}

body:has(#staff-panel:not(.hidden)) .staff-identity {
  margin: 0;
  font-size: 11px;
}

body:has(#staff-panel:not(.hidden)) .staff-ticket-section {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 14px 20px;
}

body:has(#staff-panel:not(.hidden)) .ticket-list-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body:has(#staff-panel:not(.hidden)) .queue-summary {
  gap: 8px;
  margin-bottom: 0;
}

body:has(#staff-panel:not(.hidden)) .ticket-stat {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
}

body:has(#staff-panel:not(.hidden)) .ticket-stat-value {
  font-size: 18px;
}

body:has(#staff-panel:not(.hidden)) .ticket-stat-label {
  font-size: 15px;
}

body:has(#staff-panel:not(.hidden)) .ticket-filter-count {
  margin-bottom: 6px;
}

.ticket-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ticket-section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.intro {
  margin-bottom: 25px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #91a9c2;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  color: #f0f5fb;
  font-size: clamp(32px, 6vw, 42px);
  letter-spacing: -.04em;
  line-height: 1.12;
}

.intro > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #a0b0c0;
  font-size: 15px;
}

.response-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #2d4964;
  border-radius: 10px;
  color: #bbcee2;
  background: #17283a;
  font-size: 12px;
  line-height: 1.55;
}

.requester-mode-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
  background: var(--surface);
}

.mode-button {
  flex: 1;
  border: 0;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.mode-button.active {
  color: #eaf3ff;
  background: #234b75;
}

.note-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #367bbd;
  font-size: 11px;
  font-weight: 700;
}

.card {
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}

.card-heading h2 {
  margin: 0;
  color: #edf4fb;
  font-size: 21px;
  letter-spacing: -.02em;
}

.step-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #9bc8ff;
  background: #203852;
  font-size: 12px;
  font-weight: 700;
}

form {
  display: grid;
  gap: 9px;
}

.attachment-dropzone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding: 16px;
  border: 1px dashed #496782;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(25, 39, 56, .55);
  font-size: 13px;
}

.attachment-dropzone strong {
  width: 100%;
  color: var(--text);
}

.attachment-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(36, 83, 132, .28);
}

.attachment-picker {
  margin: 0;
  color: #a9cfff;
  cursor: pointer;
  text-decoration: underline;
}

.attachment-hint {
  width: 100%;
  font-size: 11px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.selected-attachments {
  display: grid;
  gap: 4px;
}

.selected-attachment,
.ticket-attachments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: #c1cfdd;
  font-size: 12px;
}

.selected-attachment > span,
.ticket-attachments a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.selected-attachment .text-button {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px;
  font-size: 11px;
}

.ticket-attachments {
  margin-top: 12px;
}

.ticket-attachments h4 {
  margin: 0;
  color: #b8d8ff;
  font-size: 11px;
}

.ticket-attachments ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ticket-attachments a {
  color: #a9cfff;
}

.attachment-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.attachment-actions button:first-child:not(:last-child) {
  font-weight: 700;
}

.attachment-size {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

label {
  margin-top: 8px;
  color: #c1cfdd;
  font-size: 13px;
  font-weight: 650;
}

.form-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #35465a;
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  color: #e4edf6;
  background: #101a27;
  font-size: 14px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
  color: #c1cfdd;
  cursor: pointer;
}

.check-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: #3989ed;
}

.choice-fieldset {
  min-width: 0;
  margin: 8px 0 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
}

.choice-fieldset legend {
  padding: 0 5px;
  color: #c1cfdd;
  font-size: 13px;
  font-weight: 650;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #5c9ee8;
  box-shadow: 0 0 0 3px rgba(72, 145, 222, .2);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #8193a6;
}

.primary-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: #2676dc;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}

.primary-button:hover {
  background: #3388f4;
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: .65;
}

.notice {
  margin: 0 0 17px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.notice.success {
  border: 1px solid #285b46;
  color: #a8e2c2;
  background: #142a23;
}

.notice.error {
  border: 1px solid #70413f;
  color: #ffb5ad;
  background: #321f22;
}

.requester-history-card {
  margin-top: 20px;
}

.requester-history-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.requester-history-ticket {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  background: var(--surface-raised);
}

.requester-history-ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.requester-history-ticket h3 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.requester-history-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  color: #d7e7f7;
  background: #34485f;
  font-size: 11px;
  font-weight: 700;
}

.requester-history-status-new {
  color: #b6f0cf;
  background: #173b2b;
}

.requester-history-meta,
.requester-history-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.requester-history-details {
  margin-top: 10px;
  font-size: 13px;
}

.requester-history-details summary {
  color: #a9cfff;
  cursor: pointer;
  font-weight: 600;
}

.requester-history-details > p:not(.requester-history-meta) {
  margin: 9px 0 0;
  color: #cfdae5;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.requester-history-fields {
  display: grid;
  grid-template-columns: minmax(110px, .4fr) 1fr;
  gap: 7px 12px;
  margin: 12px 0 0;
  font-size: 12px;
}

.requester-history-fields dt {
  color: var(--muted);
  font-weight: 600;
}

.requester-history-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

.staff-identity {
  margin: 5px 0 0;
  color: #9aabbd;
  font-size: 12px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-settings-section {
  width: min(100%, 640px);
  max-height: 100%;
  overflow: auto;
}

.settings-form-row {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  align-items: end;
  gap: 14px;
}

.settings-form-row > div {
  display: grid;
  gap: 9px;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.settings-checkbox input {
  width: auto;
}

.settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ticket-filter-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.dashboard-actions select {
  width: auto;
  min-width: 135px;
  padding: 8px 10px;
  font-size: 12px;
}

.ticket-filter-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.ticket-refresh-indicator {
  margin: -4px 0 8px;
  color: #80b4ed;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}

.ticket-update-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid #3989ed;
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  background: #1967d2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  animation: ticket-update-badge-pulse 1.6s ease-in-out infinite;
}

.ticket-update-badge:hover {
  background: #2577e3;
}

.ticket-update-badge::before {
  content: '●';
  color: #ffd166;
}

@keyframes ticket-update-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 137, 237, .45); }
  50% { box-shadow: 0 0 0 8px rgba(57, 137, 237, 0); }
}

.queue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ticket-stat {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px 19px;
  background: var(--surface-raised);
}

.ticket-stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.ticket-stat-value {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.ticket-list-viewport {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ticket-list {
  display: grid;
  min-width: 1000px;
}

.ticket-list-header,
.ticket {
  display: grid;
  grid-template-columns: 220px minmax(180px, 1.5fr) minmax(160px, 1.15fr) 145px 115px 90px;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
}

.ticket-list-header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: #101a27;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ticket {
  border-bottom: 2px solid #4a5d73;
  background: var(--surface);
}

.ticket-status-new {
  background: #173b2b;
}

.ticket:last-child {
  border-bottom: 0;
}

.ticket-onboarding {
  background: #272315;
}

.ticket-joe-e {
  background: #3b3315;
  box-shadow: inset 4px 0 #e8c93e;
}

.ticket-joe-e .ticket-type-badge {
  border-color: #c7a827;
  color: #fff3c4;
  background: #6b5a1e;
}

.ticket-status-resolved {
  background: #172c26;
}

.ticket-status-completed {
  background: #16302c;
}

.ticket.ticket-status-closed {
  background: #353b45;
}

.ticket.ticket-priority-urgent {
  background: #4a2025;
}

.ticket-onboarding .ticket-type-badge {
  color: #ffe29a;
  background: #51421d;
}

.ticket-topline {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ticket-id {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ticket-urgent-badge {
  justify-self: start;
  border: 1px solid #8c333b;
  border-radius: 999px;
  padding: 3px 8px;
  color: #ffd2d5;
  background: #582329;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ticket-replied-badge {
  justify-self: start;
  border: 1px solid #2f6f4f;
  border-radius: 999px;
  padding: 3px 8px;
  color: #c3f2d3;
  background: #1a3d2c;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ticket-subject {
  min-width: 0;
  margin: 0;
  color: #e2edf8;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-meta {
  min-width: 0;
  margin: 0;
  color: #a1b1c1;
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-requester {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.ticket-requester-name {
  max-width: 100%;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-type-badge {
  display: inline-flex;
  margin-top: 0;
  border-radius: 20px;
  padding: 4px 8px;
  color: #b8d8ff;
  background: #203852;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ticket-category {
  color: var(--muted);
  font-size: 11px;
}

.onboarding-details {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-raised);
}

.onboarding-details summary {
  color: #b8d8ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.onboarding-details dl {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) 1fr;
  gap: 7px 12px;
  margin: 12px 0 2px;
  font-size: 11px;
  line-height: 1.45;
}

.onboarding-details dt {
  color: var(--muted);
  font-weight: 600;
}

.onboarding-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.asset-details {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(9, 18, 29, .45);
}

.asset-details summary {
  color: #a8e2c2;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.asset-record {
  display: grid;
  grid-template-columns: minmax(100px, .5fr) 1fr;
  gap: 5px 10px;
  margin: 10px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 9px;
  font-size: 13px;
}

.asset-record dt {
  color: var(--muted);
  font-weight: 600;
}

.asset-record dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.asset-empty {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ticket-description {
  margin: 10px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ticket-controls {
  display: contents;
}

.ticket-controls label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #91a3b6;
  font-size: 11px;
  text-transform: uppercase;
}

.ticket-controls select {
  min-width: 0;
  padding: 7px 6px;
  font-size: 12px;
}

.ticket-edit-button {
  margin: 0;
  padding: 8px 4px;
  white-space: nowrap;
  font-size: 14px;
}

.ticket-row-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-details {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 8px;
}

.ticket-details summary {
  color: #b8d8ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.public-directory-settings {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.directory-entry-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  background: rgba(16, 26, 39, .55);
}

.directory-entry-form h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.directory-entry-form .primary-button {
  justify-self: start;
  width: auto;
}

.directory-list {
  display: grid;
  gap: 6px;
}

.directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 8px 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.directory-row .text-button {
  flex: 0 0 auto;
}

.ticket-onboarding .ticket-details summary {
  color: #ffe29a;
}

.ticket-edit-dialog {
  width: min(100% - 32px, 560px);
  max-height: min(90vh, 850px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.ticket-edit-dialog::backdrop {
  background: rgba(3, 8, 14, .76);
  backdrop-filter: blur(3px);
}

.submission-dialog {
  width: min(100% - 32px, 440px);
  border: 1px solid #315b49;
  border-radius: 16px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.submission-dialog::backdrop {
  background: rgba(3, 8, 14, .76);
  backdrop-filter: blur(3px);
}

.submission-confirmation {
  display: grid;
  justify-items: center;
  padding: 32px 28px 28px;
  text-align: center;
}

.submission-check {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #a8e2c2;
  background: #1b4935;
  font-size: 25px;
  font-weight: 700;
}

.submission-confirmation h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.submission-confirmation > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.submitted-ticket-number {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-raised);
}

.submitted-ticket-number span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.submitted-ticket-number strong {
  color: #b8d8ff;
  font-size: 24px;
}

.submission-confirmation .primary-button {
  width: 100%;
  margin-top: 20px;
}

.ticket-edit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ticket-edit-heading h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 21px;
}

.ticket-edit-form {
  display: grid;
  gap: 8px;
}

.ticket-edit-form label {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.ticket-edit-form input,
.ticket-edit-form select,
.ticket-edit-form textarea {
  font-size: 13px;
}

.ticket-edit-form textarea {
  min-height: 90px;
}

.onboarding-edit-fields {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.onboarding-edit-fields .check-option {
  color: var(--text);
  font-size: 13px;
}

.ticket-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.ticket-edit-actions .primary-button {
  margin-top: 0;
}

.empty-state {
  padding: 25px 10px;
  color: #a0b1c1;
  text-align: center;
  font-size: 14px;
}

footer {
  padding: 0 16px 28px;
  color: #8292a3;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 900px) {
  .ticket-list {
    min-width: 0;
  }

  .ticket-list-header {
    display: none;
  }

  .ticket-list-header,
  .ticket {
    grid-template-columns: 1fr;
  }

  .ticket-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }

  .ticket-edit-button {
    justify-self: start;
    margin-top: 4px;
  }

  .ticket-row-actions {
    justify-self: start;
    margin-top: 4px;
  }
}

@media (max-width: 540px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }

  body:has(#staff-panel:not(.hidden)) .topbar {
    flex-basis: 64px;
  }

  .layout {
    margin-top: 36px;
  }

  body:has(#staff-panel:not(.hidden)) .layout {
    width: calc(100% - 16px);
    margin: 0 auto;
  }

  body:has(#staff-panel:not(.hidden)) #staff-panel {
    gap: 8px;
  }

  body:has(#staff-panel:not(.hidden)) .staff-dashboard-section,
  body:has(#staff-panel:not(.hidden)) .staff-ticket-section,
  body:has(#staff-panel:not(.hidden)) .staff-settings-section {
    padding: 12px;
  }

  .settings-form-row {
    grid-template-columns: 1fr;
  }

  body:has(#staff-panel:not(.hidden)) .ticket-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dashboard-actions input[type="search"] {
    width: 100%;
    min-width: 0;
    order: -1;
  }

  .card {
    padding: 20px;
  }

  .ticket-edit-dialog {
    padding: 20px;
  }

  .requester-mode-switch {
    flex-direction: column;
  }

  .onboarding-details dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .dashboard-actions {
    align-items: center;
    gap: 3px;
  }
}
