:root {
  --reader-bg: #0b0c0f;
  --reader-surface: #15171c;
  --reader-surface-light: #1d2027;
  --reader-border: rgba(255, 255, 255, 0.1);
  --reader-text: #ffffff;
  --reader-muted: #aeb3bd;
  --reader-primary: #f5a400;
  --reader-primary-hover: #d99100;
  --reader-danger: #e31b23;
  --reader-waiting: #5367e8;
  --reader-finished: #d6d8dc;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--reader-bg);
}

.reader-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(245, 164, 0, 0.12), transparent 32rem),
    var(--reader-bg);
  color: var(--reader-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reader-header.content-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
  min-height: 72px;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.reader-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 72px;
  padding: 10px 24px;
}

.reader-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.reader-header .reader-header__logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: 46px;
  margin: 0;
  object-fit: contain;
}

.reader-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: 10px;
  background: #146ee8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 110, 232, 0.24);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.reader-header__action:hover,
.reader-header__action:focus {
  background: #0d5dc9;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 110, 232, 0.32);
}

.reader-main {
  width: 100%;
  padding: 30px clamp(14px, 2.8vw, 44px) 50px;
}

.reader-overview {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}

.reader-overview__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.reader-overview__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--reader-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reader-overview__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--reader-text);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.reader-overview__clock {
  color: var(--reader-muted);
  font-size: 0.62em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.reader-overview__count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--reader-border);
  border-radius: 999px;
  background: var(--reader-surface);
  color: var(--reader-muted);
  font-size: 13px;
  font-weight: 700;
}

.reader-position-list {
  display: grid;
  gap: 12px;
}

.reader-position {
  --position-color: #30343d;
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(220px, 1.4fr) minmax(300px, 1.8fr);
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 17px 20px 17px 26px;
  overflow: hidden;
  border: 1px solid var(--reader-border);
  border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--position-color) 38%, #15171c), var(--reader-surface) 44%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.reader-position::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--position-color);
}

.reader-position__time {
  color: #fff;
  font-size: clamp(18px, 1.6vw, 23px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.reader-position__type {
  min-width: 0;
}

.reader-position__type-main {
  display: block;
  color: #fff;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.2;
}

.reader-position__name {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 600;
}

.reader-position__note {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reader-position__note:empty::after {
  content: "Bez poznámky";
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.reader-position__people {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
}

.reader-person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.reader-person:hover,
.reader-person:focus {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.reader-person--started {
  background: var(--reader-danger);
  box-shadow: 0 6px 14px rgba(227, 27, 35, 0.24);
}

.reader-person--waiting {
  background: var(--reader-waiting);
  box-shadow: 0 6px 14px rgba(83, 103, 232, 0.22);
}

.reader-person--finished {
  background: var(--reader-finished);
  color: #25272c;
  cursor: default;
}

.reader-person--finished:hover,
.reader-person--finished:focus {
  color: #25272c;
  filter: none;
  transform: none;
}

.reader-person--empty {
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.74);
  cursor: default;
}

.reader-position__tasks {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin-top: 1px;
  padding: 13px 15px;
  border: 1px solid rgba(245, 164, 0, 0.34);
  border-radius: 11px;
  background: rgba(245, 164, 0, 0.12);
  color: #fff3d0;
  font-size: 13px;
  line-height: 1.45;
}

.reader-position__tasks-title {
  color: #ffc247;
  font-weight: 800;
}

.reader-position__task {
  position: relative;
  padding-left: 15px;
}

.reader-position__task::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--reader-primary);
}

.reader-empty-state {
  padding: 48px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: var(--reader-surface);
  color: var(--reader-muted);
  text-align: center;
}

.reader-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .reader-position {
    grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) minmax(260px, 1.7fr);
  }

  .reader-position__note {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-top: 2px;
  }

  .reader-position__people {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .reader-header__inner {
    min-height: 64px;
    padding: 9px 14px;
  }

  .reader-header .reader-header__logo {
    max-width: 125px;
    height: 40px;
  }

  .reader-header__action {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .reader-main {
    padding: 22px 12px 34px;
  }

  .reader-overview__heading {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .reader-overview__count {
    display: none;
  }

  .reader-overview__title {
    display: block;
  }

  .reader-overview__clock {
    display: block;
    margin-top: 7px;
    font-size: 16px;
  }

  .reader-position {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    min-height: 0;
    padding: 18px 16px 18px 22px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--position-color) 32%, #15171c), var(--reader-surface) 55%);
  }

  .reader-position__time {
    padding-right: 8px;
    font-size: 21px;
  }

  .reader-position__type {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .reader-position__note {
    order: 3;
    padding: 0;
  }

  .reader-position__people {
    order: 4;
  }

  .reader-position__tasks {
    order: 5;
  }

  .reader-person {
    flex: 1 1 190px;
  }
}

@media (max-width: 430px) {
  .reader-header__action-text {
    display: none;
  }

  .reader-header__action {
    width: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .reader-position__people {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reader-person {
    width: 100%;
  }
}

/* Přihlašovací stránka */
.reader-login-page,
.reader-login-page * {
  box-sizing: border-box;
}

.reader-login-page div,
.reader-login-page form,
.reader-login-page p,
.reader-login-page label,
.reader-login-page input,
.reader-login-page button,
.reader-login-page img,
.reader-login-page span,
.reader-login-page h1,
.reader-login-page h2 {
  overflow: visible;
}

.reader-login-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 164, 0, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 86%, rgba(20, 110, 232, 0.12), transparent 30rem),
    #090a0d;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reader-login-page::before,
.reader-login-page::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.reader-login-page::before {
  top: -190px;
  right: -100px;
}

.reader-login-page::after {
  bottom: -220px;
  left: -130px;
  width: 460px;
  height: 460px;
}

.reader-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  width: min(100%, 980px);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: #15171c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.reader-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(32px, 5vw, 62px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.34)),
    linear-gradient(145deg, #ffb400, #e78f00);
  color: #151515;
}

.reader-login-brand::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 70px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.reader-login-brand__logo-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(99, 59, 0, 0.16);
}

.reader-login-brand__logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: 48px;
  object-fit: contain;
}

.reader-login-brand__content {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: auto 0;
  padding: 42px 0;
}

.reader-login-brand__eyebrow,
.reader-login-form-head__eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.reader-login-brand__eyebrow {
  color: rgba(21, 21, 21, 0.65);
}

.reader-login-brand__title {
  display: block;
  margin: 0 0 18px;
  color: #151515;
  font-size: clamp(35px, 4vw, 54px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.reader-login-brand__text {
  max-width: 390px;
  margin: 0;
  color: rgba(21, 21, 21, 0.72);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.reader-login-brand__decoration {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: #151515;
}

.reader-login-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 62px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent 42%),
    #15171c;
}

.reader-login-form-head {
  margin-bottom: 32px;
}

.reader-login-form-head__eyebrow {
  color: var(--reader-primary);
}

.reader-login-form-head__title {
  display: block;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.reader-login-form-head__text {
  margin: 0;
  color: var(--reader-muted);
  font-size: 15px;
  line-height: 1.55;
}

.reader-login-form {
  display: grid;
  gap: 21px;
  width: 100%;
}

.reader-login-field {
  display: grid;
  gap: 9px;
}

.reader-login-field__label {
  display: block;
  margin: 0;
  color: #eef0f4;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.reader-login-field__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.reader-login-field__icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  color: #858b97;
  font-size: 15px;
  pointer-events: none;
}

.reader-login-field__input {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 17px 0 47px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: 0;
  background: #0f1115;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.reader-login-field__input--password {
  padding-right: 54px;
}

.reader-login-field__input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.reader-login-field__input:focus {
  border-color: var(--reader-primary);
  background: #111318;
  box-shadow: 0 0 0 4px rgba(245, 164, 0, 0.14);
}

.reader-login-field__input:-webkit-autofill,
.reader-login-field__input:-webkit-autofill:hover,
.reader-login-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #0f1115 inset;
  transition: background-color 9999s ease-out;
}

.reader-login-field__toggle {
  position: absolute;
  z-index: 3;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: transparent;
  color: #9298a4;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.reader-login-field__toggle:hover,
.reader-login-field__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.reader-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background: var(--reader-primary);
  color: #161616;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(245, 164, 0, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.reader-login-submit:hover,
.reader-login-submit:focus-visible {
  background: #ffb21c;
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(245, 164, 0, 0.28);
}

.reader-login-submit:active {
  transform: translateY(0);
}

.reader-login-note {
  margin: 25px 0 0;
  color: #7f8590;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 820px) {
  .reader-login-page {
    place-items: start center;
    padding: 18px;
    overflow-y: auto;
  }

  .reader-login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: auto 0;
    border-radius: 21px;
  }

  .reader-login-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px;
  }

  .reader-login-brand::before {
    right: -190px;
    bottom: -260px;
  }

  .reader-login-brand__logo-wrap {
    align-self: center;
    min-height: 60px;
    padding: 9px 13px;
    border-radius: 12px;
  }

  .reader-login-brand__logo {
    max-width: 138px;
    height: 38px;
  }

  .reader-login-brand__content {
    margin: 0;
    padding: 0;
  }

  .reader-login-brand__eyebrow,
  .reader-login-brand__text,
  .reader-login-brand__decoration {
    display: none;
  }

  .reader-login-brand__title {
    margin: 0;
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.15;
  }

  .reader-login-form-wrap {
    padding: 34px 24px 28px;
  }
}

@media (max-width: 480px) {
  .reader-login-page {
    padding: 12px;
  }

  .reader-login-shell {
    width: 100%;
    border-radius: 17px;
  }

  .reader-login-brand {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding: 20px;
  }

  .reader-login-brand__logo-wrap {
    min-height: 52px;
  }

  .reader-login-brand__logo {
    max-width: 130px;
    height: 34px;
  }

  .reader-login-brand__title {
    font-size: 23px;
  }

  .reader-login-form-wrap {
    padding: 29px 20px 23px;
  }

  .reader-login-form-head {
    margin-bottom: 25px;
  }

  .reader-login-form-head__title {
    font-size: 31px;
  }

  .reader-login-field__input,
  .reader-login-submit {
    min-height: 52px;
  }
}

@media (max-height: 660px) and (min-width: 821px) {
  .reader-login-page {
    align-items: start;
    overflow-y: auto;
  }

  .reader-login-shell {
    min-height: 520px;
  }
}

.position-form-page {
  min-height: calc(100vh - 72px);
  margin: -30px -20px 0;
  padding: clamp(24px, 4vw, 56px) clamp(14px, 4vw, 48px) 60px;
  overflow: visible;
  background:
    radial-gradient(circle at 12% 0, rgba(245, 164, 0, 0.15), transparent 30rem),
    radial-gradient(circle at 100% 25%, rgba(20, 110, 232, 0.1), transparent 32rem),
    var(--reader-bg);
  color: var(--reader-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.position-form-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.position-form-heading {
  margin-bottom: 24px;
}

.position-form-heading__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--reader-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.position-form-page .position-form-heading__title {
  display: block !important;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 850;
  line-height: 1.12;
}

.position-form-heading__text {
  max-width: 720px;
  margin: 11px 0 0;
  color: var(--reader-muted);
  font-size: 15px;
  line-height: 1.6;
}

.position-form-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--reader-border);
  border-radius: 20px;
  background: rgba(21, 23, 28, 0.96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.position-form-section {
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--reader-border);
}

.position-form-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.position-form-section__icon {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 164, 0, 0.14);
  color: var(--reader-primary);
  font-size: 17px;
}

.position-form-section__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.position-form-section__heading p {
  margin: 5px 0 0;
  color: var(--reader-muted);
  font-size: 13px;
  line-height: 1.45;
}

.position-form-grid,
.position-form-people {
  display: grid;
  gap: 18px;
}

.position-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.position-form-people {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.position-form-field {
  min-width: 0;
  text-align: left;
}

.position-form-field label {
  display: block;
  margin: 0 0 8px;
  color: #f7f8fa;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.position-form-field label span {
  color: #7f8692;
  font-size: 11px;
  font-weight: 650;
}

.position-form-control {
  display: block;
  width: 100% !important;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: 0;
  background: #0f1115;
  color: #fff;
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.position-form-control:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.position-form-control:focus {
  border-color: var(--reader-primary);
  background: #111318;
  box-shadow: 0 0 0 4px rgba(245, 164, 0, 0.13);
}

.position-form-control::placeholder {
  color: #6f7681;
  opacity: 1;
}

.position-form-control--textarea {
  min-height: 118px;
  resize: vertical;
}

.position-form-message {
  margin: 22px clamp(22px, 3vw, 32px) 0;
  padding: 13px 15px;
  border: 1px solid rgba(227, 27, 35, 0.35);
  border-radius: 11px;
  background: rgba(227, 27, 35, 0.12);
  color: #ffd5d7;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.position-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px clamp(22px, 3vw, 32px);
  background: rgba(0, 0, 0, 0.14);
}

.position-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  outline: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.position-form-button:hover,
.position-form-button:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.position-form-button--secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e8ed;
}

.position-form-button--secondary:hover,
.position-form-button--secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.position-form-button--primary {
  background: var(--reader-primary);
  color: #171717;
  box-shadow: 0 10px 24px rgba(245, 164, 0, 0.2);
}

.position-form-button--primary:hover,
.position-form-button--primary:focus-visible {
  background: #ffb21c;
  color: #171717;
  box-shadow: 0 13px 28px rgba(245, 164, 0, 0.28);
}

.position-form-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

@media (max-width: 900px) {
  .position-form-grid--three,
  .position-form-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .position-form-page {
    min-height: calc(100vh - 64px);
    margin-top: -30px;
    padding: 22px 12px 34px;
  }

  .position-form-heading {
    margin-bottom: 18px;
    padding: 0 3px;
  }

  .position-form-heading__text {
    font-size: 14px;
  }

  .position-form-card {
    border-radius: 16px;
  }

  .position-form-section {
    padding: 21px 17px;
  }

  .position-form-section__heading {
    gap: 11px;
    margin-bottom: 18px;
  }

  .position-form-section__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 15px;
  }

  .position-form-section__heading h2 {
    font-size: 17px;
  }

  .position-form-grid--three,
  .position-form-grid--two,
  .position-form-people {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .position-form-control {
    min-height: 52px;
  }

  .position-form-message {
    margin: 18px 17px 0;
  }

  .position-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    padding: 17px;
    background: rgba(15, 17, 21, 0.97);
    backdrop-filter: blur(12px);
  }

  .position-form-button {
    width: 100%;
    min-height: 52px;
  }

  .position-form-button--primary {
    order: -1;
  }
}
.reader-main-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 80px);
  padding: 24px;
  background: #111318;
}

.reader-main-layout__commission {
  min-width: 0;
}

.reader-main-layout__positions {
  min-width: 0;
}

@media (max-width: 991px) {
  .reader-main-layout {
    display: block;
    padding: 16px;
  }

  .reader-main-layout__commission {
    display: none;
  }
}
.commission-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid #2c313a;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 170, 0, 0.06), transparent 42%),
    #171a20;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.commission-panel__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.commission-panel__icon {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffa900;
  color: #111318;
  font-size: 20px;
}

.commission-panel__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #ffa900;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commission-panel__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.commission-panel__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin: 0 0 24px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #1677ed;
  box-shadow: 0 9px 24px rgba(22, 119, 237, 0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.commission-panel__add:hover {
  background: #2787f7;
  box-shadow: 0 12px 30px rgba(22, 119, 237, 0.34);
  transform: translateY(-1px);
}

.commission-panel__add:focus {
  outline: 3px solid rgba(255, 169, 0, 0.3);
  outline-offset: 3px;
}

.commission-panel__search {
  padding-top: 20px;
  border-top: 1px solid #2c313a;
}

.commission-panel__label {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.commission-panel__help {
  margin: 0 0 12px;
  color: #9199a8;
  font-size: 12px;
  line-height: 1.45;
}

.commission-panel__input-wrap {
  position: relative;
}

.commission-panel__input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  color: #7c8492;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.commission-panel__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 43px;
  border: 1px solid #3b414b;
  border-radius: 11px;
  outline: none;
  background: #0f1116;
  color: #fff;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.commission-panel__input::placeholder {
  color: #707887;
}

.commission-panel__input:focus {
  border-color: #ffa900;
  box-shadow: 0 0 0 3px rgba(255, 169, 0, 0.14);
}

.commission-panel__results {
  margin-top: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.commission-panel__loading,
.commission-panel__modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 70px;
  color: #aeb5c1;
  font-size: 13px;
}

.commission-panel__error {
  padding: 12px 14px;
  border: 1px solid rgba(238, 52, 52, 0.35);
  border-radius: 10px;
  background: rgba(238, 52, 52, 0.1);
  color: #ffb4b4;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .reader-main-layout__commission {
    display: none;
  }
}
.commission-modal,
.commission-modal * {
  box-sizing: border-box;
}

.commission-modal {
  z-index: 2000;
  color: #fff;
}

.commission-modal .modal-dialog {
  width: calc(100% - 28px);
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.commission-modal__content {
  overflow: hidden;
  border: 1px solid #383e48;
  border-radius: 20px;
  background: #15181e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  color: #fff;
}

.commission-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid #343a44;
  background:
    linear-gradient(135deg, rgba(255, 169, 0, 0.14), transparent 48%),
    #1c2027;
}

.commission-modal__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.commission-modal__heading-icon {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffa900;
  color: #121419;
  font-size: 20px;
}

.commission-modal__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #ffa900;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commission-modal__title {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.commission-modal__close {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #444b57;
  border-radius: 11px;
  outline: 0;
  background: #292e37;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.commission-modal__close:hover,
.commission-modal__close:focus {
  border-color: #e54848;
  background: #c92f36;
  color: #fff;
  transform: translateY(-1px);
}

.commission-modal__body {
  max-height: calc(100vh - 190px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #12151a;
}

.commission-form-section {
  padding: 24px 26px;
  border-bottom: 1px solid #2e333c;
}

.commission-form-section--last {
  border-bottom: 0;
}

.commission-form-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 19px;
}

.commission-form-section__heading > i {
  margin-top: 2px;
  color: #ffa900;
  font-size: 16px;
}

.commission-form-section__heading h5 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.commission-form-section__heading p {
  margin: 4px 0 0;
  color: #929aa8;
  font-size: 12px;
  line-height: 1.45;
}

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

.commission-form-grid--product {
  grid-template-columns: minmax(0, 3fr) minmax(150px, 1fr);
}

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

.commission-form-field {
  min-width: 0;
}

.commission-form-field label {
  display: block;
  margin: 0 0 8px;
  color: #f5f6f8;
  font-size: 13px;
  font-weight: 750;
}

.commission-form-field label span {
  color: #ffa900;
}

.commission-form-control {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #3a414d;
  border-radius: 11px;
  outline: 0;
  background: #0c0f14;
  color: #fff;
  color-scheme: dark;
  font: inherit;
  font-size: 15px;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.commission-form-control:hover {
  border-color: #586170;
}

.commission-form-control:focus {
  border-color: #ffa900;
  background: #10141a;
  box-shadow: 0 0 0 4px rgba(255, 169, 0, 0.14);
}

.commission-form-control::placeholder {
  color: #687181;
}

.commission-form-control--readonly {
  background: #252a32;
  color: #ffca5c;
  font-weight: 800;
}

.commission-form-control--textarea {
  min-height: 105px;
  resize: vertical;
}

.commission-form-price {
  position: relative;
}

.commission-form-price .commission-form-control {
  padding-right: 52px;
}

.commission-form-price > span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #929aa8;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.commission-form-error {
  margin: 20px 26px;
  padding: 13px 15px;
  border: 1px solid rgba(238, 62, 62, 0.4);
  border-radius: 10px;
  background: rgba(238, 62, 62, 0.12);
  color: #ffc5c5;
  font-size: 13px;
  font-weight: 700;
}

.commission-form-error.hide {
  display: none;
}

.commission-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 26px;
  border-top: 1px solid #343a44;
  background: #1c2027;
}

.commission-modal__number {
  color: #ffa900;
  font-size: 22px;
  font-weight: 800;
}

.commission-modal__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.commission-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.commission-modal__button--secondary {
  border-color: #454c58;
  background: #292e37;
  color: #e6e9ee;
}

.commission-modal__button--secondary:hover {
  background: #353b46;
  color: #fff;
}

.commission-modal__button--primary {
  background: #ffa900;
  color: #15171c;
  box-shadow: 0 9px 22px rgba(255, 169, 0, 0.22);
}

.commission-modal__button--primary:hover {
  background: #ffb82e;
}

@media (max-width: 650px) {
  .commission-modal .modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .commission-modal__content {
    border-radius: 15px;
  }

  .commission-modal__header {
    padding: 17px;
  }

  .commission-modal__heading-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .commission-modal__title {
    font-size: 19px;
  }

  .commission-modal__body {
    max-height: calc(100vh - 155px);
  }

  .commission-form-section {
    padding: 20px 17px;
  }

  .commission-form-grid--product,
  .commission-form-grid--two {
    grid-template-columns: 1fr;
  }

  .commission-modal__footer {
    display: block;
    padding: 15px 17px;
  }

  .commission-modal__number {
    margin-bottom: 10px;
    text-align: center;
  }

  .commission-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .commission-modal__button {
    width: 100%;
    min-height: 50px;
  }

  .commission-modal__button--primary {
    grid-row: 1;
  }
}
.commission-form-error--success {
  border-color: rgba(38, 190, 114, 0.45);
  background: rgba(38, 190, 114, 0.13);
  color: #baf4d6;
}
.commission-form-grid--dates {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.commission-modal__paid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(34, 190, 112, 0.38);
  border-radius: 10px;
  background: rgba(34, 190, 112, 0.13);
  color: #b8f4d4;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 650px) {
  .commission-form-grid--dates {
    grid-template-columns: 1fr;
  }
}