:root  {
  color-scheme: dark;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
  background: #0b0a08;
  color: #eee3d0;
}

*  {
  box-sizing: border-box;
}

body  {
  margin: 0;
}

main  {
  max-width: 1360px;
  margin: auto;
  padding: 28px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 12px;
  color: #f2ce88;
  font-size: 26px;
}

p  {
  line-height: 1.8;
  color: #c2b7a2;
}

form  {
  display: grid;
  grid-template-columns: 120px minmax(160px, 1fr) minmax(150px, .9fr) minmax(200px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  border: 1px solid #715431;
  border-radius: 12px;
  background: #19140e;
}

@media (min-width: 761px) {
  #profile-form { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

label  {
  display: grid;
  gap: 10px;
}

input, select, button  {
  font: inherit;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #8d6b38;
  border-radius: 7px;
  background: #0d0b08;
  color: #eee3d0;
}

button  {
  background: #e5bb71;
  color: #211607;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: default;
}

button.ghost {
  background: transparent;
  color: #dfcba6;
}

input:focus-visible, select:focus-visible, button:focus-visible  {
  outline: 2px solid #ffe4ad;
  outline-offset: 3px;
}

.hint {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #bbaa8a;
}

.login-form {
  grid-template-columns: minmax(220px, 360px) auto;
  max-width: 560px;
}

main:has(.login-form:not([hidden])) {
  min-height: 100svh;
  max-width: 616px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main:has(.login-form:not([hidden])) .toolbar {
  justify-content: center;
}

#admin-status  {
  min-height: 29px;
}



@media (max-width: 760px)  {
  main  {
    padding: 18px 12px;
  }

  form  {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .login-form {
    grid-template-columns: 1fr;
  }

  .hint  {
    grid-row: auto;
  }

  

}

[hidden] { display: none !important; }
#profile-preview { padding: 22px; border: 1px solid #715431; border-radius: 12px; }
h2 { margin-top: 0; font-size: 20px; color: #f2ce88; }
.profile-card { display: flex; gap: 20px; align-items: center; }
.profile-card img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; }
.profile-card strong { font-size: 24px; overflow-wrap: anywhere; }
#image-placeholder { display: grid; place-items: center; width: 100px; height: 100px; padding: 10px; border: 1px dashed #715431; color: #bbaa8a; }

.vote-counts {
  margin-top: 24px;
}

.vote-counts-head,
.vote-counts-panel-head,
.vote-counts-summary,
.vote-editor-head,
.vote-editor-person,
.vote-editor-actions,
.vote-editor-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vote-counts-head {
  align-items: start;
  margin-bottom: 12px;
}

.vote-counts-summary {
  text-align: right;
  display: block;
}

.vote-counts-summary small,
.vote-counts-panel-head small {
  color: #a99c88;
  font-size: 13px;
}

.vote-counts-summary strong {
  display: block;
  font-size: 28px;
  color: #f2ce88;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

#vote-counts-status {
  min-height: 24px;
  color: #c2b7a2;
}

#vote-counts-retry {
  margin-bottom: 12px;
}

.vote-counts-panel {
  border: 1px solid #4c3c26;
  border-radius: 12px;
  background: #15110d;
  overflow: hidden;
}

.vote-counts-panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid #392d1e;
}

.vote-counts-panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.vote-counts-columns,
.vote-counts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 110px;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
}

.vote-counts-columns {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #201a12;
  color: #a99c88;
  font-size: 12px;
}

.vote-counts-row + .vote-counts-row {
  border-top: 1px solid #30271b;
}

.vote-counts-person {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
  min-width: 0;
}

.vote-counts-avatar,
.vote-editor-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3f3322, #211b13);
  border: 1px solid #685132;
  border-radius: 50%;
  color: #ebc580;
  font-size: 14px;
}

.vote-counts-person strong,
.vote-editor-person strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.vote-counts-person small,
.vote-editor-person small {
  color: #a99c88;
  font-size: 12px;
}

.vote-counts-count {
  color: #f2ce88;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.vote-counts-count small {
  margin-left: 6px;
  color: #a99c88;
  font-size: 12px;
}

.vote-counts-row button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid #655035;
  border-radius: 7px;
  color: #e9c78b;
  background: #1c1710;
}

#vote-count-dialog {
  width: min(520px, calc(100vw - 24px));
  max-width: 520px;
  padding: 24px;
  border: 1px solid #4c3c26;
  border-radius: 12px;
  background: #15110d;
  color: #eee3d0;
}

#vote-count-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

#vote-count-dialog form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  grid-template-columns: none;
}

.vote-editor-head h2 {
  margin: 0;
  font-size: 19px;
}

.vote-editor-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: #dfcba6;
  border: 1px solid #655035;
}

.vote-editor-current,
.vote-editor-input-wrap,
.vote-editor-preview {
  padding: 12px 14px;
  border: 1px solid #392d1e;
  border-radius: 8px;
  background: #100e0b;
}

.vote-editor-current {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.vote-editor-current strong,
.vote-editor-preview strong {
  color: #f2ce88;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.vote-editor-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vote-editor-input-wrap input {
  flex: 1;
  min-width: 0;
}

.vote-editor-after {
  text-align: right;
}

.vote-editor-delta,
#vote-editor-message,
#vote-editor-loading {
  margin: 0;
  color: #c2b7a2;
  font-size: 14px;
}

.vote-editor-actions {
  justify-content: flex-end;
}

.vote-editor-actions button {
  min-height: 44px;
}

.auto-growth {
  margin-top: 24px;
}

.auto-growth-head,
.auto-growth-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.auto-growth-head {
  margin-bottom: 12px;
}

.auto-growth-head p {
  margin: 6px 0 0;
}

.auto-growth-summary {
  text-align: right;
}

.auto-growth-summary small {
  color: #a99c88;
  font-size: 13px;
}

.auto-growth-summary strong {
  display: block;
  font-size: 28px;
  color: #f2ce88;
  margin-top: 6px;
}

#auto-growth-status {
  min-height: 24px;
  color: #c2b7a2;
}

.auto-growth-toolbar {
  margin-bottom: 12px;
}

.auto-growth-row {
  padding: 20px 24px;
  border: 1px solid #4c3c26;
  border-bottom: 0;
  background: #15110d;
}

.auto-growth-row:first-child {
  border-radius: 12px 12px 0 0;
}

.auto-growth-row:last-child {
  border-bottom: 1px solid #4c3c26;
  border-radius: 0 0 12px 12px;
}

.auto-growth-row:only-child {
  border-radius: 12px;
}

.auto-growth-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-growth-status {
  margin-left: auto;
  color: #a99c88;
  font-size: 13px;
}

.auto-growth-status.on {
  color: #7dcea0;
}

.auto-growth-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}

.auto-growth-numbers label {
  color: #a99c88;
  font-size: 12px;
}

.auto-growth-numbers strong {
  display: block;
  font-size: 22px;
  color: #f2ce88;
  font-variant-numeric: tabular-nums;
}

.auto-growth-rule,
.auto-growth-countdown {
  color: #a99c88;
  font-size: 13px;
}

.auto-growth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.auto-growth-actions button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid #655035;
  border-radius: 7px;
  color: #e9c78b;
  background: #1c1710;
}

.auto-growth-actions button.primary {
  background: #e5bb71;
  color: #211607;
  border-color: #e5bb71;
}

.auto-growth-feed-panel {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid #4c3c26;
  border-radius: 12px;
  background: #15110d;
}

.auto-growth-feed-panel h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.auto-growth-event {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #30271b;
  color: #c2b7a2;
}

.auto-growth-event:first-child {
  border-top: 0;
}

.auto-growth-event time {
  color: #a99c88;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

#auto-growth-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: 560px;
  padding: 24px;
  border: 1px solid #4c3c26;
  border-radius: 12px;
  background: #15110d;
  color: #eee3d0;
}

#auto-growth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

#auto-growth-dialog form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  grid-template-columns: none;
}

.growth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.growth-fields .growth-wide {
  grid-column: 1 / -1;
}

.growth-error {
  min-height: 20px;
  color: #e58b8b;
  margin: 0;
}

.lottery-config {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #715431;
  border-radius: 12px;
  background: #19140e;
  overflow-x: hidden;
}

.lottery-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 220px);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #3d2f1c;
}

.lottery-thumb {
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  background-image: url("/assets/lottery-prizes-hd.png");
  background-size: 300% auto;
  background-repeat: no-repeat;
  border-radius: 8px;
  border: 1px solid #715431;
}

.lottery-thumb.car { background-position: 0 12.766%; }
.lottery-thumb.phone { background-position: 50% 12.766%; }
.lottery-thumb.laptop { background-position: 100% 12.766%; }
.lottery-thumb.digital { background-position: 0 87.234%; }
.lottery-thumb.travel { background-position: 50% 87.234%; }
.lottery-thumb.cash { background-position: 100% 87.234%; }

.lottery-name {
  color: #eee3d0;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.lottery-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.lottery-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lottery-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.lottery-unit {
  color: #dfcba6;
}

.lottery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.lottery-actions button {
  min-width: 0;
}

#lottery-total,
#lottery-status {
  margin: 12px 0 0;
}

@media (max-width: 760px) {
  .lottery-row {
    grid-template-columns: 1fr;
  }

  .lottery-actions {
    flex-direction: column;
  }

  .lottery-actions button {
    width: 100%;
  }
}

.admin-nav {
  display: flex;
  gap: 30px;
  margin: 0 0 24px;
  border-bottom: 1px solid #3b3020;
  color: #827764;
  font-size: 14px;
}

.admin-nav button {
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 0 0 15px;
  font-weight: 400;
}

.admin-nav button.active {
  color: #f2ce88;
  border-bottom: 2px solid #e5bb71;
}

.ip-checkins {
  margin-top: 8px;
  border: 1px solid #715431;
  border-radius: 12px;
  background: #19140e;
  overflow: hidden;
}

.ip-checkins-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.ip-checkins-head h2 {
  margin: 0;
}

.ip-checkins-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ip-checkins-controls input {
  width: 230px;
}

.ip-checkins-controls select,
.ip-checkins-controls button {
  font-size: 13px;
}

.ip-timezone {
  margin: 8px 0 0;
  font-size: 12px;
  color: #aa9b84;
}

.ip-time-notice {
  margin: 0;
  padding: 0 24px 12px;
  font-size: 13px;
  color: #c8b48a;
}

.ip-time-notice:empty {
  display: none;
}

.ip-columns,
.ip-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) 0.55fr minmax(170px, 1fr) 105px;
  gap: 20px;
  align-items: center;
}

.ip-columns {
  background: #211a12;
  padding: 14px 24px;
  font-size: 12px;
  color: #b8a589;
}

.ip-item + .ip-item {
  border-top: 1px solid #30271c;
}

.ip-row {
  padding: 20px 24px;
}

.ip-checkins .ip {
  font-family: Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
  user-select: text;
}

.ip-nickname {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
  user-select: text;
}

.ip-checkins .count {
  color: #f2ce88;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ip-checkins .unit {
  color: #9e8e76;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 400;
}

.ip-checkins .time {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

.ip-checkins .time span {
  color: #b5a58c;
  margin-left: 10px;
}

.ip-checkins .mobile-label {
  display: none;
}

.ip-row button {
  min-height: 44px;
  padding: 10px 12px;
}

.ip-detail {
  margin: 0 24px 22px;
  padding: 20px;
  border: 1px solid #4b3a24;
  border-radius: 8px;
  background: #100e0b;
}

.ip-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #cbb892;
  font-size: 13px;
}

.ip-detail-status {
  margin: 0;
  color: #ab9d86;
  font-size: 14px;
}

.ip-history-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(160px, 1fr) minmax(120px, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #30271c;
  font-size: 14px;
}

.ip-history-row.labels {
  border: 0;
  padding-top: 0;
  color: #b8a589;
  font-size: 12px;
}

.ip-vote-time {
  font-variant-numeric: tabular-nums;
}

.ip-current-name {
  color: #b5a58c;
  font-size: 12px;
  margin-top: 4px;
}

.ip-detail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #a0927c;
  font-size: 13px;
}

.ip-empty {
  margin: 0;
  padding: 28px 24px 36px;
  color: #ab9d86;
  font-size: 14px;
}

.ip-checkins-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 24px 20px;
  color: #a0927c;
  font-size: 13px;
}

.ip-checkins-pager {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.ip-checkins-foot button {
  min-height: 38px;
  padding: 8px 12px;
}

@media (max-width: 960px) {
  .ip-columns {
    display: none;
  }

  .ip-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "ip count"
      "nickname nickname"
      "time action";
    padding: 16px;
    gap: 10px 16px;
  }

  .ip-row .ip { grid-area: ip; }
  .ip-row .ip-nickname { grid-area: nickname; }
  .ip-row .count { grid-area: count; justify-self: end; }
  .ip-row .time { grid-area: time; }
  .ip-row button { grid-area: action; justify-self: end; }

  .ip-checkins .mobile-label {
    display: block;
    color: #9e8e76;
    font-size: 12px;
    margin-bottom: 4px;
  }

  .ip-checkins .time span {
    margin-left: 0;
    display: block;
  }

  .ip-detail {
    margin: 0 16px 16px;
    padding: 16px;
  }

  .ip-history-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ip-history-row.labels {
    display: none;
  }
}

@media (max-width: 760px) {
  .admin-nav {
    gap: 16px;
  }

  .ip-checkins-head,
  .ip-checkins-controls,
  .ip-checkins-foot,
  .ip-checkins-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .ip-checkins-controls input,
  .ip-checkins-controls select,
  .ip-checkins-controls button,
  .ip-checkins-foot button {
    width: 100%;
  }

  .ip-checkins-pager {
    margin-left: 0;
  }

  .vote-counts-columns {
    display: none;
  }

  .vote-counts-row,
  .vote-counts-head,
  .vote-counts-panel-head,
  .vote-editor-preview,
  .vote-editor-actions {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: stretch;
  }

  .vote-counts-row button,
  .vote-editor-actions button {
    width: 100%;
    min-height: 44px;
  }

  .vote-counts-summary {
    text-align: left;
  }

  .auto-growth-head,
  .auto-growth-toolbar,
  .auto-growth-numbers,
  .growth-fields {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: stretch;
  }

  .auto-growth-summary {
    text-align: left;
  }

  .auto-growth-actions button,
  .auto-growth-toolbar button {
    width: 100%;
  }
}

.user-columns,
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(72px, .7fr)) minmax(120px, 1fr) minmax(148px, auto);
  gap: 12px;
  align-items: center;
}

.user-columns {
  padding: 14px 24px;
  background: #211a12;
  color: #b8a589;
  font-size: 12px;
}

.user-row {
  padding: 16px 24px;
}

.user-item + .user-item {
  border-top: 1px solid #30271c;
}

.user-name,
.user-time {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-actions button {
  min-height: 44px;
}

#checkin-days-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100vw - 32px));
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #5c4930;
  border-radius: 20px;
  background: #1c1913;
  color: #f2eee5;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 30px 100px #0009;
}

#checkin-days-dialog::backdrop {
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(5px);
}

#checkin-days-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  grid-template-columns: none;
  align-items: stretch;
}

#checkin-days-dialog .checkin-editor-head,
#checkin-days-dialog .checkin-editor-body,
#checkin-days-dialog .checkin-editor-actions {
  padding-left: 30px;
  padding-right: 30px;
  min-width: 0;
}

#checkin-days-dialog .checkin-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 27px;
  padding-bottom: 8px;
}

#checkin-editor-title {
  margin: 0;
  color: #f2eee5;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .4px;
}

#checkin-days-dialog .checkin-editor-subtitle,
#checkin-days-dialog .checkin-editor-label {
  margin: 7px 0 0;
  color: #999286;
  font-size: 12px;
  line-height: 1.5;
}

#checkin-days-dialog .checkin-editor-body {
  padding-bottom: 8px;
}

#checkin-days-dialog .checkin-editor-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0 8px;
}

#checkin-days-dialog .checkin-editor-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #685132;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f3322, #211b13);
  color: #ebc580;
}

#checkin-days-dialog .checkin-editor-name,
#checkin-days-dialog p,
#checkin-editor-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

#checkin-days-dialog .checkin-editor-name {
  font-size: 16px;
  color: #f2eee5;
}

#checkin-days-dialog .checkin-editor-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#checkin-days-dialog .checkin-editor-stats > div {
  min-width: 0;
  padding: 8px 0 4px;
}

#checkin-days-dialog .checkin-editor-value {
  margin-top: 4px;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

#checkin-days-dialog .checkin-editor-gold,
#checkin-days-dialog .checkin-editor-gold strong {
  color: #dfbb78;
}

#checkin-days-dialog .checkin-editor-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#checkin-days-dialog .checkin-editor-fields > label {
  margin-top: 8px;
  color: #f2eee5;
}

#checkin-days-dialog .checkin-editor-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 14px;
  border: 1px solid #5c4930;
  border-radius: 12px;
  background: #14120e;
}

#checkin-days-dialog .checkin-editor-input span {
  flex: 0 0 auto;
  color: #a8926d;
}

#checkin-editor-days {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

#checkin-days-dialog input,
#checkin-days-dialog textarea,
#checkin-days-dialog select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#checkin-days-dialog textarea {
  resize: vertical;
  min-height: 88px;
}

#checkin-days-dialog .checkin-editor-preview,
#checkin-days-dialog .checkin-editor-impact,
#checkin-days-dialog .checkin-editor-offset,
#checkin-editor-message {
  margin: 0;
  color: #c2b7a2;
  overflow-wrap: anywhere;
}

#checkin-days-dialog .checkin-editor-impact {
  white-space: pre-line;
}

#checkin-days-dialog .checkin-editor-links {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#checkin-days-dialog .checkin-editor-link-head,
#checkin-days-dialog .checkin-editor-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

#checkin-days-dialog .checkin-editor-link-head {
  color: #999286;
  font-size: 12px;
}

#checkin-days-dialog .checkin-editor-links h3 {
  margin: 8px 0 0;
  color: #f2eee5;
  font-size: 14px;
}

#checkin-days-dialog .checkin-editor-revoke {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

#checkin-days-dialog .checkin-editor-revoke input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 4px;
}

#checkin-days-dialog .checkin-editor-revoke span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#checkin-days-dialog .checkin-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 26px;
}

#checkin-days-dialog .checkin-editor-actions button {
  min-height: 44px;
}

@media (max-width: 760px) {
  #checkin-editor-title {
    font-size: 21px;
  }

  #checkin-days-dialog .checkin-editor-head,
  #checkin-days-dialog .checkin-editor-body,
  #checkin-days-dialog .checkin-editor-actions {
    padding-left: 22px;
    padding-right: 22px;
  }

  #checkin-days-dialog .checkin-editor-link-head,
  #checkin-days-dialog .checkin-editor-link-row,
  #checkin-days-dialog .checkin-editor-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  #checkin-days-dialog .checkin-editor-actions button,
  #checkin-editor-query {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .user-columns {
    display: none;
  }

  .user-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .user-actions,
  .user-actions button {
    width: 100%;
  }
}
