@font-face {
  font-family: Manrope;
  src: url('/static/manrope-cyrillic.woff2?v=26') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url('/static/manrope-latin.woff2?v=26') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191-2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --blue: #10069f;
  --orange: #ff7500;
  --orange-text: #9b4300;
  --line: #dedee4;
  --muted: #62626c;
  --meta-font: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button {
  cursor: pointer;
  color: inherit;
  background: #fff;
  border: 1px solid #c9c9d1;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 17px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
button:hover { border-color: var(--blue); color: var(--blue); }
button:disabled { cursor: default; opacity: .56; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* A quiet header and a single compact editorial introduction. */
.top {
  max-width: 1430px;
  min-height: 92px;
  margin: 0 auto;
  padding: 22px 56px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 9px;
  color: #111;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand::before {
  content: '';
  align-self: center;
  width: 4px;
  height: 25px;
  margin-right: 2px;
  background: var(--orange);
  transform: skew(-18deg);
}
.brand span { font-size: 11px; letter-spacing: .17em; font-weight: 800; }
.dorm {
  color: #666;
  font: 600 10px/1.4 var(--meta-font);
  letter-spacing: .08em;
  white-space: nowrap;
}
.account { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.account-name { max-width: 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.account button { white-space: nowrap; }
main { max-width: 1430px; margin: 0 auto; padding: 66px 56px 30px; }
.heading { margin: 0 0 52px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 23px;
  color: var(--blue);
  font: 600 10px/1.5 var(--meta-font);
  letter-spacing: .07em;
}
.eyebrow::before { content: ''; flex: 0 0 24px; height: 2px; background: var(--orange); }
h1 { margin: 0; font-size: clamp(42px, 4.6vw, 68px); line-height: 1.06; font-weight: 800; letter-spacing: -.065em; }
.heading-accent { color: var(--blue); white-space: nowrap; }
.heading-dot { color: var(--orange); }
.intro { margin: 17px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; font-weight: 500; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.primary:hover { background: #08035e; border-color: #08035e; color: #fff; text-decoration: none; }
#submit { margin-top: 25px; }
#submit span { display: grid; place-items: center; width: 26px; height: 26px; margin: -4px -11px -4px 4px; border-radius: 50%; background: #fff; color: var(--blue); font-size: 16px; }

/* Status pills and a ruled list keep the board readable at any size. */
.tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 0 0 18px; border-bottom: 1px solid var(--line); scrollbar-width: thin; scroll-snap-type: x mandatory; }
.tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d1d1db;
  border-radius: 999px;
  background: #fff;
  color: #4e4d57;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  scroll-snap-align: start;
}
.tabs button[aria-selected=true] { color: #fff; background: var(--blue); border-color: var(--blue); }
.tabs button:not(:disabled):hover { border-color: var(--blue); color: var(--blue); }
.tabs button[aria-selected=true]:hover { color: #fff; }
.tabs span { display: inline-block; margin-left: 7px; color: #696879; font: 600 11px var(--meta-font); }
.tabs span:empty { display: none; }
.tabs button[aria-selected=true] span { color: #fff; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quiet { border: 0; min-height: 44px; background: none; padding: 9px 0 9px 12px; color: #5f5f69; font-size: 12px; white-space: nowrap; }
.quiet:hover { background: none; color: var(--blue); }
.list { margin-top: 24px; }
.ticket {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) minmax(130px,190px) 120px 38px;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 108px;
  padding: 23px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-weight: 400;
}
.ticket:hover { color: inherit; background: #f8f8fc; }
.ticket-number { align-self: center; color: var(--orange-text); font: 600 11px/1.4 var(--meta-font); }
.ticket-title { min-width: 0; overflow-wrap: anywhere; color: #111; font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -.025em; }
.ticket-note { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.ticket-worker { min-width: 0; overflow-wrap: anywhere; color: #24242a; font-size: 13px; font-weight: 650; line-height: 1.4; }
.ticket-worker small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }
.ticket-date { color: var(--muted); font-size: 11px; line-height: 1.4; white-space: nowrap; }
.arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #cfcfd8; border-radius: 50%; color: var(--blue); font-size: 17px; }
.ticket:hover .arrow { border-color: var(--orange); background: var(--orange); color: #111; }
.empty { padding: 64px 20px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; }
.empty strong { display: block; margin-bottom: 8px; color: #222; font-size: 18px; font-weight: 750; }
.more { display: block; margin: 24px auto; }
footer { display: flex; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
footer > span { margin-left: auto; text-align: right; }

/* Grid columns and explicit native-control sizing prevent iOS overlap. */
.filters { display: flex; align-items: end; gap: 12px; margin-top: 26px; }
.filters label { display: flex; flex: 0 1 142px; flex-direction: column; gap: 8px; min-width: 0; color: #55555f; font: 600 10px/1.35 var(--meta-font); }
.filters label:first-child { flex-basis: 220px; }
.filters input, .filters select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #c9c9d1;
  border-radius: 8px;
  background: #fff;
  color: #17171a;
  font: 600 14px/24px Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
}
.filters select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 39px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.5 6 3.5 3.5L11.5 6' stroke='%2310069f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.date-control { position: relative; display: block; min-width: 0; }
.date-placeholder { display: none; position: absolute; top: 50%; right: 34px; left: 13px; overflow: hidden; transform: translateY(-50%); background: #fff; color: #73737d; font: 600 14px/24px Manrope, -apple-system, BlinkMacSystemFont, sans-serif; white-space: nowrap; pointer-events: none; }
.date-control.is-empty:not(:focus-within) .date-placeholder { display: block; }
.date-control.is-empty:not(:focus-within) input::-webkit-datetime-edit { color: transparent; }
.filters input[type=date] { -webkit-appearance: none; appearance: none; }
.filters input:hover, .filters select:hover { border-color: #777783; }
.filters button { height: 46px; min-height: 46px; padding: 10px 17px; }
.error { padding: 14px 16px; border-left: 3px solid #c43d1c; background: #fff3ef; color: #882d16; font-size: 13px; line-height: 1.5; }
.skeleton { height: 100px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,#fff,#f5f5f9,#fff); background-size: 200%; animation: shimmer 1.8s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Detail, account and confirmation dialogs share the same visual system. */
dialog { width: min(640px, calc(100% - 32px)); min-width: 0; max-width: calc(100% - 32px); max-height: calc(100dvh - 40px); padding: 28px 32px; overflow: auto; border: 1px solid #d9d9e0; border-radius: 10px; background: #fff; color: #111; box-shadow: 0 24px 90px #10103024; }
dialog::backdrop { background: #0e0d27a3; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal-top span { color: var(--orange-text); font: 600 10px/1.5 var(--meta-font); letter-spacing: .04em; }
.modal-top button { min-width: 44px; min-height: 44px; padding: 7px; border: 1px solid #dedee4; border-radius: 50%; background: none; }
dialog h2 { margin: 0 0 22px; overflow-wrap: anywhere; font-size: 28px; line-height: 1.2; letter-spacing: -.05em; }
.detail-text { margin: 16px 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 15px; line-height: 1.7; }
.facts { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.facts span { font-size: 13px; font-weight: 700; }
.facts small { display: block; margin-bottom: 5px; color: var(--muted); font: 500 10px/1.5 var(--meta-font); }
.detail-section { margin: 25px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 12px; font-size: 13px; }
.photo { display: block; max-width: 100%; max-height: 450px; margin: 16px 0; object-fit: contain; border-radius: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.actions button { min-height: 46px; }
.danger { color: #a63118; border-color: #d5b8b0; }
.history { margin: 0; padding: 0; list-style: none; }
.history li { padding: 0 0 18px 15px; border-left: 2px solid #dddde6; font-size: 12px; line-height: 1.5; }
.history li:first-child { border-left-color: var(--orange); }
.history small { display: block; color: var(--muted); font-size: 11px; }
.history p { margin: 6px 0; overflow-wrap: anywhere; white-space: pre-wrap; color: #52525d; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; color: var(--muted); font-size: 13px; }
textarea { width: 100%; min-height: 110px; padding: 12px; resize: vertical; border: 1px solid #c9c9d1; border-radius: 8px; color: #111; font-size: 16px; line-height: 1.5; }
/* Keep the real, keyboard-accessible file input over the visible control. */
.file-control { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.file-control input[type=file] { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.file-control:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 999px; }
.file-action { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #c9c9d1; border-radius: 999px; color: #111; font-size: 12px; font-weight: 700; }
.file-control:hover .file-action { border-color: var(--blue); color: var(--blue); }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.hint { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-code { display: block; margin: 20px 0; color: var(--blue); font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: 8px; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team-row div { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.team-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
#toast { position: fixed; z-index: 5; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); max-width: calc(100% - 40px); padding: 13px 20px; border-radius: 8px; background: #111; color: #fff; font-size: 13px; }
@media(max-width: 760px) {
  .top { min-height: 74px; padding: 16px 20px; gap: 10px; }
  .brand { gap: 7px; font-size: 23px; }
  .brand::before { height: 22px; }
  .brand span { font-size: 9px; }
  .dorm { display: none; }
  .account { flex: 1; gap: 6px; }
  .account-name { max-width: 110px; font-size: 11px; }
  .account button { min-height: 40px; padding: 8px 11px; font-size: 11px; }
  main { padding: 42px 20px 24px; }
  .heading { margin-bottom: 35px; }
  #submit { margin-top: 22px; }
  .eyebrow { margin-bottom: 18px; font-size: 9px; }
  h1 { font-size: clamp(35px,9.6vw,48px); line-height: 1.12; letter-spacing: -.06em; }
  .intro { margin-top: 13px; font-size: 13px; }
  .primary { min-height: 48px; }
  .tabs { flex-wrap: wrap; gap: 7px; overflow: visible; margin-right: 0; padding-right: 0; scroll-snap-type: none; }
  .tabs button { min-height: 44px; padding: 9px 13px; font-size: 11px; }
  .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 14px 12px; margin-top: 24px; }
  .filters label, .filters label:first-child { min-width: 0; width: 100%; }
  .filters label:first-child { grid-column: 1 / -1; }
  .filters input, .filters select { min-width: 0; width: 100%; max-width: 100%; height: 48px; min-height: 48px; font-size: 16px; }
  .filters button { grid-column: 1 / -1; justify-self: end; height: 44px; min-height: 44px; }
  .date-placeholder { font-size: 16px; }
  .ticket { grid-template-columns: 36px minmax(0,1fr) 34px; gap: 8px 10px; min-height: 0; padding: 19px 0; }
  .ticket-number { grid-column: 1; grid-row: 1; align-self: start; padding-top: 3px; font-size: 10px; }
  .ticket-title { grid-column: 2; grid-row: 1; font-size: 15px; }
  .ticket-worker { grid-column: 2; font-size: 12px; }
  .ticket-worker small { display: none; }
  .ticket-date { grid-column: 2; font-size: 11px; }
  .ticket .arrow { grid-column: 3; grid-row: 1; width: 32px; height: 32px; font-size: 15px; }
  .empty { padding: 48px 14px; }
  footer { display: block; margin-top: 36px; }
  footer > span { display: block; margin-top: 8px; text-align: left; }
  dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
  dialog h2 { font-size: 24px; }
  .facts { gap: 16px; }
  .team-row { align-items: flex-start; }
  .team-row button { padding: 8px 12px; font-size: 11px; }
}
@media(max-width: 360px) {
  .top { padding-right: 14px; padding-left: 14px; }
  .brand { gap: 5px; font-size: 21px; }
  .account { gap: 4px; }
  .account button { padding: 8px 9px; font-size: 10px; }
  main { padding-right: 16px; padding-left: 16px; }
  .tabs { margin-right: 0; padding-right: 0; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
