:root {
  /* Gordan_Palette.pdf; the original logo is from gordan.ru. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--gordan-brown);
  background: var(--canvas);
  font-synthesis: none;
  --gordan-white: #ffffff;
  --gordan-orange: #fd6b2a;
  --gordan-red: #eb3701;
  --gordan-dark-red: #ba2900;
  --gordan-brown: #2c140c;
  --action: var(--gordan-dark-red);
  --muted: #766860;
  --line: #e9e1dc;
  --canvas: #faf8f6;
  --soft: #fff0e8;
  --focus: #ba2900
}

* {
  box-sizing: border-box
}

.requester-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px
}

.requester-fields input[readonly] {
  background: var(--canvas);
  color: var(--muted)
}

body {
  margin: 0
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

button:disabled {
  cursor: wait;
  opacity: .55
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gordan-orange);
  outline-offset: 3px
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  background: var(--action);
  color: white;
  font-weight: 600;
  transition: background .15s, box-shadow .15s, border-color .15s;
  min-height: 44px
}

button:hover {
  background: var(--gordan-brown)
}

a {
  color: var(--gordan-brown)
}

button.secondary {
  background: #fff;
  color: var(--gordan-brown);
  border: 1px solid var(--line)
}

button.secondary:hover {
  background: var(--soft)
}

button.ghost {
  background: transparent;
  color: var(--muted)
}

button.danger {
  color: #a2260b;
  background: var(--soft)
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 10px
}

h2 {
  font-size: 20px;
  letter-spacing: -.5px
}

h3 {
  font-size: 16px
}

p {
  line-height: 1.65
}

small,
.muted {
  color: var(--muted)
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 35px 20px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--gordan-brown);
  border-right: 0
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 9px
}

.brand img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #e3bda9;
  margin: 18px 9px 40px;
  padding-top: 19px;
  border-top: 1px solid #ffffff26
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: #ebd6cb;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  padding: 13px 15px
}

.nav button.active {
  background: var(--action);
  color: #fff
}

.nav button:hover:not(.active) {
  background: #ffffff12
}

.nav .icon {
  font-size: 19px;
  width: 22px;
  text-align: center
}

.sidebar-foot {
  margin-top: auto;
  padding: 15px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4dfd3;
  color: var(--gordan-dark-red);
  font-weight: 700
}

.person strong {
  font-size: 13px;
  display: block;
  color: var(--gordan-brown)
}

.person small {
  font-size: 11px
}

.main {
  padding: 0 46px 45px;
  min-width: 0;
  max-width: 1640px;
  width: 100%;
  margin: 0 auto;
  align-self: start
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  gap: 12px
}

.env {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: #fff0e8;
  border: 1px solid #f0d4c4;
  border-radius: 6px;
  color: #99411c;
  font-size: 11px
}

.env:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gordan-red)
}

.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin: 32px 0 26px
}

.pagehead p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8b6654;
  margin-bottom: 12px
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px
}

.stat {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--gordan-brown);
  text-align: left;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s
}

.stat:hover {
  background: var(--soft);
  border-color: var(--gordan-orange);
  box-shadow: 0 4px 14px #2c140c0d
}

.stat:focus-visible {
  outline: 3px solid var(--gordan-orange);
  outline-offset: 3px
}

.stat:first-child {
  background: var(--gordan-dark-red);
  border-color: var(--gordan-dark-red);
  color: #fff
}

.stat strong {
  display: block;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 12px 0 6px
}

.stat span {
  font-size: 12px;
  color: var(--muted)
}

.stat:first-child span {
  color: #fff5ee
}

.stat small {
  font-size: 11px
}

.stat:first-child small {
  color: #fff5ee
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden
}

.panel-head {
  padding: 23px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.panel-head h2 {
  margin: 0
}

.panel-head button {
  font-size: 12px;
  padding: 8px 10px
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.tabs button {
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px
}

.tabs button.active {
  background: var(--soft);
  color: var(--gordan-dark-red)
}

.filters {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap
}

.filters input {
  flex: 1;
  min-width: 180px
}

.filters select {
  width: auto;
  max-width: 240px
}

.tablewrap {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left
}

th {
  background: #faf8f6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  font-weight: 500;
  padding: 13px 24px;
  white-space: nowrap
}

td {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  font-size: 13px;
  vertical-align: middle
}

td strong {
  font-weight: 600;
  display: block;
  margin-bottom: 5px
}

td small {
  font-size: 11px;
  line-height: 1.5
}

.ticket-row {
  cursor: pointer
}

.ticket-row:hover {
  background: #fff8f3
}

.ticket-sub {
  max-width: 370px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.num {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px
}

.acceptance-notice {
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--gordan-orange);
  border-radius: 4px;
  background: var(--soft);
  color: var(--gordan-dark-red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
  color: #68554c;
  background: #f4eeea
}

.badge.warm {
  background: #fff2d8;
  color: #795913
}

.badge.hot {
  background: #fff0e8;
  color: #a72a09
}

.badge.green {
  background: #edf4ed;
  color: #39643e
}

.badge.gray {
  background: #f3f0ee;
  color: #72635b
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor
}

.sidecard {
  padding: 23px;
  border-radius: 15px;
  background: #fff0e8;
  margin-bottom: 16px
}

.sidecard p {
  font-size: 12px;
  color: #80543e;
  margin-bottom: 17px
}

.sidecard h3 {
  font-size: 17px;
  margin: 12px 0
}

.sidecard button {
  width: 100%
}

.sidecard .bigtime {
  font-size: 30px;
  margin: 12px 0;
  color: var(--gordan-brown);
  font-variant-numeric: tabular-nums
}

.pause-card {
  background: #f4efeb;
  border: 1px solid var(--line)
}

.pause-card p {
  color: #796558
}

.label {
  color: #8b6654;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px
}

.banner {
  background: #fff3df;
  border: 1px solid #efdaba;
  color: #795524;
  padding: 17px 20px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px
}

.banner strong {
  display: block;
  margin-bottom: 3px
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px
}

.detail-content {
  padding: 27px
}

.detail-content p {
  font-size: 14px;
  white-space: pre-wrap
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 25px 0
}

.meta-grid label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px
}

.meta-grid strong {
  font-size: 14px;
  font-weight: 500
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.actions button {
  font-size: 12px
}

.timeline {
  padding: 0 25px
}

.event {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px
}

.event:last-child {
  border-bottom: 0
}

.event small {
  font-size: 11px;
  display: block;
  margin-top: 6px
}

.event p {
  white-space: pre-wrap;
  font-size: 13px;
  margin: 9px 0 0
}

.photo-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0
}

.photo-grid img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 9px
}

.photo-grid a:focus {
  outline: 2px solid var(--focus)
}

.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh
}

.login-story {
  background: var(--gordan-brown);
  color: #fff;
  padding: 54px 11%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.login-story h1 {
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.12;
  max-width: 540px;
  margin-top: 90px;
  letter-spacing: -2px
}

.login-story p {
  color: #f6c8b3;
  max-width: 390px
}

.login-story .brand {
  padding: 0
}

.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px
}

.login-box {
  width: 100%;
  max-width: 440px
}

.login-box h2 {
  font-size: 28px
}

.login-box .muted {
  font-size: 14px
}

.demo-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px
}

.demo-roles button {
  font-size: 12px
}

.divider {
  border-top: 1px solid var(--line);
  margin: 28px 0
}

.form {
  display: grid;
  gap: 17px
}

.form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #68554c
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px
}

input,
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d9cec7;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--gordan-brown);
  min-width: 0
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px
}

textarea {
  min-height: 100px;
  resize: vertical
}

input[type=checkbox] {
  width: auto
}

input[type=file] {
  font-size: 12px
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 15px
}

.checks label {
  display: flex;
  align-items: center;
  gap: 7px
}

.error {
  background: #fff0e8;
  border-radius: 8px;
  padding: 11px 14px;
  color: #a72a09;
  font-size: 13px;
  line-height: 1.5
}

.error:empty {
  display: none
}

dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 620px;
  width: calc(100% - 28px);
  padding: 28px;
  box-shadow: 0 20px 100px #2c140c29;
  color: var(--gordan-brown);
  max-height: 92dvh
}

dialog::backdrop {
  background: #2c140c80;
  backdrop-filter: blur(3px)
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.dialog-head h2 {
  margin: 0
}

.dialog-head button {
  padding: 5px 10px;
  background: transparent;
  color: #766860;
  font-size: 23px
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  z-index: 10;
  background: var(--gordan-brown);
  color: #fff;
  border-radius: 12px;
  padding: 14px 22px;
  box-shadow: 0 8px 30px #2c140c22;
  font-size: 13px
}

.loading {
  display: grid;
  place-content: center;
  height: 100vh;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center
}

.loading span {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px
}

.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 15px;
  gap: 8px
}

.calendar .weekday {
  font-size: 11px;
  color: var(--muted);
  padding: 10px
}

.day {
  min-height: 110px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  min-width: 0
}

.day.today {
  border-color: var(--gordan-red);
  background: #fff4ed
}

.day .calendar-task {
  color: #705344;
  display: block;
  background: #f4eeea;
  padding: 5px;
  margin-top: 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere
}

.shift-audit {
  max-height: 250px;
  overflow: auto
}

.mobile-title {
  display: none
}

.unread {
  border-left: 3px solid var(--gordan-red)
}

.notice-button {
  background: transparent;
  color: var(--gordan-brown);
  text-align: left;
  border-radius: 0;
  width: 100%;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.notice-button:hover {
  background: #fff6ef
}

.notice-button small {
  display: block;
  margin-top: 8px;
  font-size: 11px
}

.help {
  padding: 12px 15px;
  background: #faf3ee;
  border-radius: 8px
}

.spacer {
  height: 20px
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px !important
}

@media(min-width:1500px) {
  .main {
    padding-left: 65px;
    padding-right: 65px
  }

  .pagehead {
    margin-top: 42px
  }

  .ticket-sub {
    max-width: 450px
  }
}

@media(max-width:1100px) {
  .shell {
    grid-template-columns: 200px 1fr
  }

  .main {
    padding: 0 25px 30px
  }

  .sidebar {
    padding: 26px 12px
  }

  .brand {
    font-size: 18px;
    letter-spacing: 1.8px
  }

  .brand-sub {
    margin-left: 9px
  }

  .split,
  .detail-grid {
    grid-template-columns: 1fr
  }

  .side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
  }

  .sidecard {
    margin: 0
  }

  .stats {
    gap: 10px
  }

  .stat {
    padding: 17px
  }

  .stat strong {
    font-size: 30px
  }

  td,
  th {
    padding: 15px
  }

  .ticket-sub {
    max-width: 240px
  }
}

@media(max-width:720px) {
  .shell {
    display: block
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0;
    height: auto;
    z-index: 5;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(15px)
  }

  .sidebar .brand,
  .brand-sub,
  .sidebar-foot {
    display: none
  }

  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 1px
  }

  .nav button {
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    font-size: 9px;
    flex: 1;
    max-width: 85px
  }

  .nav .icon {
    font-size: 18px
  }

  .main {
    padding: 0 16px 110px
  }

  .mobile-title {
    display: block;
    width: 142px
  }

  .mobile-title img {
    display: block;
    width: 100%;
    height: auto
  }

  .topbar {
    padding: 17px 0;
    flex-wrap: wrap
  }

  .topbar .desktop-only {
    display: none
  }

  .pagehead {
    margin: 27px 0 21px;
    gap: 12px;
    align-items: flex-start
  }

  .pagehead h1 {
    font-size: 27px
  }

  .pagehead p {
    font-size: 12px
  }

  .pagehead button {
    font-size: 12px;
    padding: 11px
  }

  .eyebrow {
    font-size: 9px
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px
  }

  .stat {
    padding: 15px
  }

  .stat strong {
    font-size: 30px;
    margin: 7px 0 4px
  }

  .stat span {
    font-size: 11px
  }

  .split {
    gap: 18px
  }

  .side-stack {
    grid-template-columns: 1fr
  }

  .sidecard {
    padding: 20px
  }

  .tablewrap {
    overflow: visible
  }

  .tickets-table thead {
    display: none
  }

  .tickets-table,
  .tickets-table tbody,
  .tickets-table tr,
  .tickets-table td {
    display: block
  }

  .tickets-table tr {
    padding: 16px;
    border-top: 1px solid var(--line);
    position: relative
  }

  .tickets-table td {
    padding: 3px 0;
    border: none
  }

  .tickets-table td:first-child {
    padding-right: 55px
  }

  .tickets-table td:nth-child(2) {
    font-size: 12px
  }

  .tickets-table td:last-child {
    position: absolute;
    right: 16px;
    top: 19px
  }

  .ticket-sub {
    max-width: 270px
  }

  .tickets-table .assignee-col {
    display: none
  }

  .panel-head {
    padding: 19px 18px
  }

  .panel-head h2 {
    font-size: 17px
  }

  .filters {
    gap: 8px
  }

  .filters select {
    flex: 1;
    max-width: none;
    font-size: 12px
  }

  .filters input {
    flex-basis: 100%
  }

  .detail-content {
    padding: 20px
  }

  .meta-grid {
    gap: 20px 12px
  }

  .login {
    display: block
  }

  .login-story {
    padding: 28px
  }

  .login-story h1 {
    margin-top: 30px;
    font-size: 32px
  }

  .login-story p {
    font-size: 13px;
    margin-bottom: 0
  }

  .login-form {
    padding: 30px 25px
  }

  .login-box {
    max-width: 440px
  }

  .calendar {
    gap: 3px;
    padding: 8px
  }

  .day {
    min-height: 85px;
    padding: 5px;
    font-size: 10px
  }

  .day .calendar-task {
    font-size: 8px;
    padding: 3px
  }

  .calendar .weekday {
    padding: 6px;
    font-size: 9px
  }

  .form .row {
    grid-template-columns: 1fr
  }

  .env {
    font-size: 9px
  }

  .shift-table {
    min-width: 580px
  }

  .shift-scroll {
    overflow: auto
  }

  .topbar button {
    font-size: 10px;
    padding: 6px
  }

  dialog {
    padding: 22px
  }
}

/* Compact dashboard columns keep all primary information visible. */
@media(min-width:721px) {
  .split .tickets-table {
    table-layout: fixed
  }

  .split .tickets-table th,
  .split .tickets-table td {
    padding: 15px
  }

  .split .tickets-table th:first-child {
    width: 50%
  }

  .split .tickets-table th:nth-child(2) {
    width: 32%
  }

  .split .tickets-table .assignee-col {
    display: none
  }

  .split .ticket-sub {
    max-width: 100%
  }

  .split .badge {
    white-space: normal
  }

  .split .tickets-table td:first-child strong {
    overflow-wrap: anywhere
  }
}

@media(max-width:720px) {
  .split .side-stack {
    grid-row: 1
  }

  .ticket-sub {
    max-width: 100%
  }

  .topbar>span:last-of-type {
    font-size: 10px
  }

  .calendar-task {
    color: #705344
  }
}

/* Brand components shared by login, work screens and mobile navigation. */
.icon svg { width: 21px; height: 21px; display: block }
.sidebar-foot { border-top: 1px solid #ffffff26; margin-top: auto; padding-top: 22px }
.sidebar-foot .person strong { color: #fff }
.sidebar-foot .person small, .sidebar-foot .ghost { color: #e3bda9 }
.sidebar-foot .avatar { color: var(--gordan-brown); background: var(--gordan-orange) }
.sidebar-foot .ghost:hover { color: #fff; background: #ffffff12 }
.stat { position: relative; overflow: hidden }
.stat:first-child::after {
  content: ""; position: absolute; right: -15px; bottom: -30px;
  width: 120px; height: 120px; background: url('/gordan-flame.svg') center / contain no-repeat;
  opacity: .35; pointer-events: none
}
.stat > * { position: relative; z-index: 1 }
.stat strong { font-weight: 700; font-variant-numeric: tabular-nums }
.stat small { color: var(--muted) }
.stat:first-child small, .stat:first-child span { color: #fff }
.tabs button.active { color: var(--gordan-dark-red); font-weight: 700 }
.topbar { min-height: 84px }
.topbar .secondary { min-height: 36px; font-size: 12px }
.topbar .date-label { white-space: nowrap }
.pagehead h1 { font-weight: 750 }
.ticket-row:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px }
button.danger:hover { background: #fbd9ca }
button.ghost:hover { background: var(--soft); color: var(--gordan-dark-red) }
.day .calendar-task:hover { background: #f6dfd0 }
input[type=checkbox] { accent-color: var(--gordan-dark-red) }
input::placeholder, textarea::placeholder { color: #89796f }
.login-story .brand img { max-width: 264px }
.login-story::after {
  content: ""; position: absolute; width: 370px; height: 370px;
  right: -90px; bottom: -100px; z-index: -1; opacity: .75;
  background: url('/gordan-flame.svg') center / contain no-repeat;
  transform: rotate(-12deg); pointer-events: none
}
.login-story .story-kicker { color: var(--gordan-orange); font-weight: 700; letter-spacing: 2px; font-size: 11px; margin-top: 22px }
.login-story h1 span { color: var(--gordan-orange) }
.login-story .story-description { font-size: 16px; line-height: 1.65; max-width: 345px }
.login-story .story-footer { margin-top: 55px; color: #e3bda9; font-size: 12px }
.login-form { background: #fff; padding: 40px }
.login-box h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 10px }
.login-box .eyebrow { color: var(--gordan-dark-red); font-weight: 700 }
.demo-entry { margin-top: 22px }
.demo-entry .note { margin: 12px 0 0 }
.demo-roles { margin-top: 16px; gap: 10px }
.demo-roles button { text-align: left; display: grid; gap: 5px; padding: 16px; min-height: 76px; border-radius: 12px }
.demo-roles strong { font-size: 14px }
.demo-roles small { font-size: 11px; font-weight: 400; line-height: 1.4; color: var(--muted) }
.demo-roles .demo-owner { background: var(--action); color: #fff; border: 1px solid var(--action) }
.demo-roles .demo-owner:hover { background: var(--gordan-brown) }
.demo-roles .demo-owner small { color: #fff }
.account-entry { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px }
.account-entry summary { cursor: pointer; padding: 7px 0; font-weight: 600; font-size: 14px; color: var(--gordan-brown) }
.account-entry summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px }
.account-entry[open] summary { margin-bottom: 16px }
.login-box > .note { margin-top: 22px }
@media (max-width: 1100px) and (min-width: 721px) {
  .topbar { flex-wrap: wrap; gap: 10px }
  .topbar .desktop-only { display: none }
  .login-story { padding: 40px }
}
@media (max-width: 720px) {
  .sidebar .nav button { color: var(--muted); min-height: 58px; padding: 7px 3px; font-size: 9px }
  .sidebar .nav button.active { background: var(--soft); color: var(--gordan-dark-red) }
  .sidebar .nav button:hover:not(.active) { background: #f7f2ee }
  .topbar { display: grid; grid-template-columns: 1fr auto; min-height: 0; gap: 12px 8px }
  .topbar .mobile-title { grid-column: 1; grid-row: 1 }
  .topbar .secondary { grid-column: 2; grid-row: 1; min-height: 36px; font-size: 11px; padding: 8px 10px }
  .topbar .env { grid-column: 1; grid-row: 2; width: fit-content; font-size: 8px; padding: 5px 7px }
  .topbar .date-label { grid-column: 2; grid-row: 2; font-size: 9px !important; text-align: right }
  .login-story { padding: 28px 25px 30px }
  .login-story .brand img { max-width: 182px }
  .login-story .story-kicker { font-size: 9px; margin: 15px 0 0 }
  .login-story h1 { margin-top: 26px; margin-bottom: 12px; font-size: 36px; letter-spacing: -1.3px }
  .login-story .story-description { max-width: 255px; font-size: 13px; margin: 0 }
  .login-story .story-footer { display: none }
  .login-story::after { width: 190px; height: 190px; right: -80px; bottom: -55px; opacity: .5 }
  .login-form { padding: 28px 24px 40px }
  .login-box h2 { font-size: 26px }
  .demo-roles button { padding: 13px 12px; min-height: 72px }
  .demo-roles strong { font-size: 13px }
  .demo-roles small { font-size: 10px }
  .pagehead { flex-wrap: wrap }
  .badge { font-size: 10px }
  .tickets-table td:first-child { padding-right: 70px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }

.shift-required { margin: 20px 0 0 }
.shift-required p { margin: 0 0 14px; font-size: 13px }
