@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Noto+Sans+KR:wght@400;500;700&display=swap");

:root {
  --bg-1: #06070c;
  --bg-2: #0f1220;
  --bg-3: #071528;
  --surface: rgba(15, 20, 36, 0.86);
  --surface-strong: rgba(18, 25, 46, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text-main: #edf2ff;
  --text-sub: #97a7cd;
  --text-dim: #6f7da1;
  --primary: #4f8cff;
  --primary-soft: rgba(79, 140, 255, 0.2);
  --accent: #45d6a8;
  --success: #45d6a8;
  --danger: #ff6f8b;
  --warning: #f2c36a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(56rem 42rem at -2% -8%, rgba(79, 140, 255, 0.23), transparent 62%),
    radial-gradient(40rem 38rem at 100% 0%, rgba(69, 214, 168, 0.14), transparent 58%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 18px),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
  overflow-x: hidden;
}

.orb {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.orb-left {
  left: -14rem;
  top: -9rem;
  background: rgba(79, 140, 255, 0.34);
}

.orb-right {
  right: -15rem;
  bottom: -12rem;
  background: rgba(69, 214, 168, 0.28);
}

.shell {
  width: min(1180px, 100%);
}

.hero {
  text-align: center;
  margin-bottom: 1.45rem;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.55rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5.3vw, 3.3rem);
  letter-spacing: 0.13em;
  font-weight: 700;
  line-height: 1.05;
}

.lead {
  margin: 0.58rem 0 0;
  color: var(--text-sub);
  font-size: 1.01rem;
}

.card {
  width: min(1100px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 1.45rem;
}

.toggle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1.15rem;
  overflow: hidden;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 0.78rem;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab.active {
  color: var(--text-main);
  background: linear-gradient(130deg, rgba(79, 140, 255, 0.32), rgba(79, 140, 255, 0.17));
}

.panel,
#approvalShell {
  display: grid;
  gap: 0.72rem;
  animation: fadeIn 0.24s ease;
}

#adminShell {
  display: grid;
  gap: 0.8rem;
}

.admin-header {
  margin-bottom: 0.1rem;
}

.admin-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.admin-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.72rem;
  display: grid;
  gap: 0.62rem;
  background: rgba(3, 8, 22, 0.6);
  max-height: 340px;
  overflow: auto;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.78rem;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 0.54rem;
}

.admin-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-name {
  margin: 0;
  font-weight: 700;
}

.status-pill {
  border-radius: 999px;
  padding: 0.26rem 0.72rem;
  font-size: 0.72rem;
  border: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}

.status-pill.pending {
  color: var(--warning);
  background: rgba(242, 195, 106, 0.12);
  border-color: rgba(242, 195, 106, 0.32);
}

.status-pill.approved {
  color: var(--success);
  background: rgba(61, 213, 152, 0.12);
  border-color: rgba(61, 213, 152, 0.33);
}

.status-pill.rejected {
  color: #ff86a0;
  background: rgba(255, 111, 139, 0.12);
  border-color: rgba(255, 111, 139, 0.33);
}

.admin-meta {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.84rem;
}

.admin-actions {
  display: flex;
  gap: 0.45rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-main);
}

.admin-empty {
  margin: 0;
  color: var(--text-sub);
  text-align: center;
  font-size: 0.85rem;
  padding: 1.2rem 0.5rem;
}

label {
  font-size: 0.9rem;
  color: var(--text-sub);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.82);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  padding: 0.79rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.82);
  color: var(--text-main);
  border-radius: 11px;
  padding: 0.66rem 0.72rem;
  font-size: 0.94rem;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-top: 0.28rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary {
  background: linear-gradient(122deg, #4f8cff, #3b6dde);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-mini {
  margin-top: 0;
  padding: 0.34rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 9px;
}

.store-install-wrap {
  margin-top: 0.28rem;
  display: flex;
  justify-content: center;
}

.helper {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.5;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.01em;
}

.credit {
  margin: 0.3rem 0 0;
  color: rgba(234, 239, 255, 0.42);
  text-align: center;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-family: "Space Grotesk", sans-serif;
}

.centered {
  text-align: center;
}

.alert {
  min-height: 1.35rem;
  font-size: 0.88rem;
  color: var(--danger);
}

.alert.success {
  color: var(--success);
}

.status-title {
  margin: 0;
  font-size: 1.34rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
}

.status-message {
  margin: 0.55rem 0 0;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.03rem;
}

.status-sub {
  margin: 0.26rem 0 0;
  color: var(--text-sub);
  font-size: 0.95rem;
}

.status-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.overview-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.store-list {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.store-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.78rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  color: var(--text-main);
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-item:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.store-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.store-meta {
  margin: 0.35rem 0 0;
  color: var(--text-sub);
  font-size: 0.83rem;
  line-height: 1.35;
}

.store-meta.issue-focus {
  color: #ffd2de;
}

.store-right {
  display: flex;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.58rem;
  white-space: nowrap;
}

.badge.open {
  color: var(--success);
  background: rgba(69, 214, 168, 0.12);
  border-color: rgba(69, 214, 168, 0.33);
}

.badge.issue-urgent {
  color: #ff9bb1;
  background: rgba(255, 88, 127, 0.2);
  border-color: rgba(255, 88, 127, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 88, 127, 0.12);
}

.badge.issue-clear {
  color: #b9d0ff;
  background: rgba(109, 153, 255, 0.16);
  border-color: rgba(109, 153, 255, 0.36);
}

.badge.prep {
  color: var(--warning);
  background: rgba(242, 195, 106, 0.12);
  border-color: rgba(242, 195, 106, 0.33);
}

.feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.feature-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(79, 140, 255, 0.09), rgba(255, 255, 255, 0.02));
  color: var(--text-main);
  text-align: left;
  padding: 0.82rem 0.84rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 140, 255, 0.42);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.feature-btn h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.feature-btn p {
  margin: 0.3rem 0 0;
  color: var(--text-sub);
  font-size: 0.83rem;
  line-height: 1.4;
}

.feature-detail {
  margin-top: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.92rem;
  background: rgba(255, 255, 255, 0.02);
}

.staff-feature-grid {
  margin-top: 0.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.place-rank-shell {
  display: grid;
  gap: 0.6rem;
}

.place-rank-banner {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.place-rank-actions {
  display: grid;
  gap: 0.45rem;
}

.place-rank-status {
  margin: 0.15rem 0 0;
  color: var(--text-sub);
  font-size: 0.86rem;
}

.place-rank-progress {
  margin: 0;
  color: #f2e4a8;
  min-height: 1.1rem;
}

.place-rank-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  display: grid;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.place-rank-summary p {
  margin: 0;
  font-size: 0.87rem;
}

.place-rank-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.45rem;
}

.rank-table-head,
.rank-row {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 1fr 1fr 1.7fr;
  gap: 0.5rem;
  align-items: center;
}

.rank-table-head {
  color: var(--text-sub);
  font-size: 0.82rem;
}

.rank-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}

.rank-keyword {
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.rank-value {
  color: var(--text-main);
  font-size: 0.89rem;
}

.place-rank-state {
  border-radius: 999px;
  padding: 0.13rem 0.55rem;
  text-align: center;
  width: fit-content;
  font-size: 0.78rem;
}

.place-rank-state.ok {
  color: #a6f6cf;
  background: rgba(69, 214, 168, 0.14);
}

.place-rank-state.warn {
  color: #f2cf8a;
  background: rgba(242, 196, 106, 0.16);
}

.place-rank-state.error {
  color: #ff9ab5;
  background: rgba(255, 111, 139, 0.16);
}

.place-rank-error {
  margin: 0;
  color: #ff9ab5;
  border-left: 3px solid #ff6f8b;
  padding-left: 0.6rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 24, 0.68);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 1rem;
}

.modal-shell.hidden {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(79, 140, 255, 0.12), rgba(255, 255, 255, 0.02));
  padding: 1rem;
  box-shadow: var(--shadow);
}

.modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-family: "Space Grotesk", sans-serif;
}

.modal-sub {
  margin: 0 0 0.7rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkin-calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.checkin-calendar-toolbar .btn {
  min-width: 2.4rem;
  padding: 0.35rem 0.5rem;
}

#checkinCalendarMonth {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.46rem 0.55rem;
}

.checkin-calendar-header {
  margin: 0.1rem 0 0.45rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
}

.checkin-calendar-weekdays,
.checkin-calendar-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.checkin-calendar-weekdays {
  color: var(--text-sub);
  font-size: 0.76rem;
  margin-bottom: 0.24rem;
  text-align: center;
}

.checkin-calendar-weekdays span {
  padding: 0.15rem 0;
}

.checkin-calendar-cell {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.38rem 0.4rem;
  display: grid;
  gap: 0.16rem;
  align-content: start;
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
}

.checkin-calendar-item {
  display: grid;
  gap: 0.22rem;
  align-items: stretch;
  min-width: 0;
}

.checkin-calendar-cell.is-empty {
  border-color: transparent;
  background: transparent;
}

.checkin-calendar-cell.is-today {
  border-color: rgba(79, 140, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.1);
}

.checkin-calendar-cell.is-holiday {
  border-color: rgba(255, 129, 158, 0.7);
  background: rgba(255, 129, 158, 0.08);
}

.checkin-calendar-cell.is-short {
  box-shadow: inset 0 0 0 1px rgba(255, 129, 158, 0.45);
}

.checkin-calendar-day {
  font-size: 0.86rem;
  color: var(--text-main);
}

.checkin-calendar-cell.is-holiday .checkin-calendar-day {
  color: #ffc5d0;
}

.checkin-calendar-meta {
  margin-top: 0.1rem;
  display: grid;
  gap: 0.13rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkin-staff-need,
.checkin-staff-gap {
  font-size: 0.72rem;
  line-height: 1.2;
}

.checkin-staff-need {
  color: var(--text-sub);
}

.checkin-staff-gap {
  border-radius: 999px;
  padding: 0.02rem 0.38rem;
  border: 1px solid transparent;
}

.checkin-staff-gap.ok {
  color: #b8f5d0;
  border-color: rgba(95, 224, 173, 0.35);
  background: rgba(95, 224, 173, 0.09);
}

.checkin-staff-gap.danger {
  color: #ff9ab8;
  border-color: rgba(255, 132, 173, 0.35);
  background: rgba(255, 132, 173, 0.08);
}

.checkin-calendar-staff {
  display: grid;
  gap: 0.16rem;
}

.checkin-calendar-chip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.44rem;
  font-size: 0.72rem;
  color: var(--text-sub);
  display: inline-block;
  white-space: normal;
  overflow: hidden;
  text-overflow: initial;
  min-width: 0;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.checkin-calendar-chip-edit {
  text-align: left;
}

.checkin-calendar-chip-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.06rem 0.32rem;
  font-size: 0.68rem;
  color: var(--text-sub);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  width: 100%;
  justify-self: stretch;
  text-align: center;
}

.checkin-calendar-chip-action:hover {
  border-color: rgba(79, 140, 255, 0.65);
}

#checkinCalendarGrid {
  width: 100%;
  overflow: auto;
  padding-bottom: 0.1rem;
}

.checkin-shell {
  display: grid;
  gap: 0.82rem;
}

.checkin-toolbar {
  display: grid;
  gap: 0.62rem;
}

.checkin-toolbar .inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.checkin-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.checkin-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.checkin-subtitle {
  color: var(--text-sub);
  font-size: 0.84rem;
  margin: 0.4rem 0 0.65rem;
}

.checkin-form {
  display: grid;
  gap: 0.55rem;
}

.checkin-row {
  display: grid;
  gap: 0.45rem;
}

.checkin-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkin-row.three-col {
  grid-template-columns: 1.1fr 0.85fr 0.85fr auto;
  align-items: end;
}

.checkin-weekday-grid {
  margin-top: 0.15rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.42rem 0.38rem;
}

.checkin-weekday-grid label {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.42rem 0.52rem;
  background: rgba(6, 10, 22, 0.55);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.checkin-weekday-grid input[type="checkbox"] {
  margin: 0;
}

.checkin-row.four-col {
  grid-template-columns: 1.2fr 0.9fr 0.9fr auto;
  align-items: end;
}

.checkin-requirement-grid {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
}

.checkin-requirement-grid label {
  font-size: 0.74rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
}

.checkin-requirement-grid input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.42rem 0.5rem;
  background: rgba(4, 11, 27, 0.9);
  color: var(--text-main);
}

.checkin-holiday-setup {
  margin-top: 0.52rem;
  padding-top: 0.46rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.checkin-holiday-row {
  margin-top: 0.34rem;
  display: grid;
  gap: 0.33rem;
}

.checkin-holiday-list {
  margin-top: 0.46rem;
  display: grid;
  gap: 0.3rem;
}

.checkin-holiday-item {
  padding: 0.36rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.35rem;
}

.checkin-holiday-label {
  color: var(--text-sub);
  font-size: 0.76rem;
}

.checkin-holiday-date {
  font-size: 0.78rem;
  color: var(--text-main);
}

.checkin-holiday-delete {
  padding: 0.14rem 0.48rem !important;
  min-width: auto;
}

.checkin-row.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.checkin-note {
  margin: 0.2rem 0 0;
  color: var(--text-sub);
  font-size: 0.82rem;
}

.checkin-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.52rem;
}

.checkin-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem;
  background: rgba(5, 10, 22, 0.62);
  display: grid;
  gap: 0.45rem;
}

.checkin-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.checkin-pill {
  border: 1px solid var(--line);
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-sub);
}

.checkin-pill.ok {
  color: #adf6c8;
  border-color: rgba(69, 214, 168, 0.34);
}

.checkin-pill.warn {
  color: #ffe7a7;
  border-color: rgba(242, 195, 106, 0.37);
}

.checkin-pill.danger {
  color: #ff9ab5;
  border-color: rgba(255, 111, 139, 0.36);
}

.checkin-item-meta {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.4;
}

.checkin-empty {
  color: var(--text-sub);
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
}

.checkin-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}

.checkin-table-row {
  display: grid;
  grid-template-columns: 1fr 0.95fr 0.95fr 0.8fr;
  gap: 0.42rem;
  padding: 0.5rem 0.58rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: var(--text-main);
  font-size: 0.84rem;
}

.checkin-table-head {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-sub);
}

.checkin-table-row:last-child {
  border-bottom: none;
}

.checkin-summaries {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.checkin-summary-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.payroll-top-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payroll-employee-manual {
  margin-top: 0.35rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.payroll-edit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payroll-editor-panel,
.payroll-history-panel {
  margin-top: 0.7rem;
}

.payroll-calendar-shell {
  margin-top: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem;
  background: rgba(6, 11, 24, 0.7);
}

.payroll-calendar-header {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.payroll-calendar-weekdays,
.payroll-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.34rem;
}

.payroll-calendar-weekdays {
  color: var(--text-sub);
  font-size: 0.74rem;
  margin-bottom: 0.22rem;
  text-align: center;
}

.payroll-calendar-cell {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.38rem;
  display: grid;
  align-content: start;
  gap: 0.22rem;
  cursor: pointer;
}

.payroll-calendar-cell.is-empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.payroll-calendar-cell.is-selected {
  border-color: rgba(79, 140, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.18);
}

.payroll-calendar-day {
  font-size: 0.84rem;
  color: var(--text-main);
  font-weight: 600;
}

.payroll-records {
  display: grid;
  gap: 0.16rem;
}

.payroll-record-line {
  font-size: 0.72rem;
  line-height: 1.34;
  color: var(--text-sub);
}

.payroll-record-empty {
  font-size: 0.72rem;
  color: var(--text-sub);
}

.payroll-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.02rem 0.36rem;
  font-size: 0.66rem;
  margin-left: 0.25rem;
}

.payroll-status.settled {
  color: #c8cddc;
  background: rgba(178, 186, 203, 0.2);
  border: 1px solid rgba(178, 186, 203, 0.28);
}

.payroll-status.missing {
  color: #ffc0d2;
  background: rgba(255, 111, 139, 0.14);
  border: 1px solid rgba(255, 111, 139, 0.26);
}

.payroll-history-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.62rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.34rem;
}

.payroll-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.issue-shell,
.todo-shell {
  display: grid;
  gap: 0.7rem;
}

.issue-panel,
.todo-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem;
  background: rgba(7, 12, 26, 0.68);
  display: grid;
  gap: 0.5rem;
}

.issue-form-grid {
  display: grid;
  gap: 0.5rem;
}

.issue-label {
  margin: 0 0 0.24rem;
  color: var(--text-sub);
  font-size: 0.8rem;
}

.issue-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.issue-choice-btn,
.issue-star-btn {
  border-color: rgba(255, 255, 255, 0.16);
}

.issue-choice-btn.active,
.issue-star-btn.active {
  border-color: rgba(79, 140, 255, 0.65);
  background: rgba(79, 140, 255, 0.16);
  color: var(--text-main);
}

.issue-form-actions {
  display: flex;
  justify-content: flex-end;
}

.issue-list,
.todo-master-list,
.todo-today-list {
  display: grid;
  gap: 0.42rem;
}

.issue-item,
.todo-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.34rem;
}

.issue-item.is-done {
  opacity: 0.46;
}

.issue-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.issue-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.issue-source,
.issue-state,
.todo-item-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.03rem 0.4rem;
  font-size: 0.68rem;
  color: var(--text-sub);
}

.issue-source.customer {
  color: #a8d2ff;
  border-color: rgba(116, 180, 255, 0.42);
}

.issue-source.store {
  color: #ffd3a1;
  border-color: rgba(255, 188, 112, 0.45);
}

.issue-state.open {
  color: #ffd9a8;
  border-color: rgba(255, 190, 112, 0.38);
}

.issue-state.done {
  color: #c5cfdd;
  border-color: rgba(182, 191, 205, 0.35);
}

.issue-priority {
  font-size: 0.78rem;
  color: #ffdc86;
  letter-spacing: 0.02em;
}

.issue-text,
.todo-item-text {
  margin: 0;
  color: var(--text-main);
  line-height: 1.4;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.issue-actions,
.todo-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.issue-delete-btn {
  color: #ff9ab5;
  border-color: rgba(255, 111, 139, 0.35);
}

.todo-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
}

.todo-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.todo-day-head h3 {
  margin: 0;
}

.todo-item-main {
  display: grid;
  gap: 0.2rem;
}

.issue-empty,
.todo-empty {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.84rem;
}

.order-shell {
  display: grid;
  gap: 0.7rem;
}

.order-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem;
  background: rgba(7, 12, 26, 0.68);
  display: grid;
  gap: 0.55rem;
}

.order-filter-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.5rem;
}

.order-add-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 0.45rem;
  align-items: end;
}

.order-item-list {
  max-height: 460px;
  overflow: auto;
  padding-right: 0.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.order-category-divider {
  grid-column: 1 / -1;
  margin-top: 0.16rem;
  border-top: 1px dashed rgba(148, 170, 232, 0.34);
  padding-top: 0.24rem;
  color: #c9d7ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.order-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.32rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.2rem;
}

.order-item-head {
  display: grid;
  gap: 0.14rem;
  justify-items: start;
  text-align: left;
}

.order-item-name {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.18;
}

.order-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.order-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.02rem 0.3rem;
  font-size: 0.62rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
}

.order-item-last {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-sub);
  line-height: 1.2;
}

.order-qty-controls {
  display: grid;
  grid-template-columns: auto 50px auto auto;
  gap: 0.24rem;
  align-items: center;
}

.order-qty-btn {
  min-width: 1.7rem;
  padding: 0.22rem 0.26rem;
  font-size: 0.7rem;
}

.order-qty-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(4, 10, 24, 0.9);
  color: var(--text-main);
  padding: 0.2rem 0.25rem;
  text-align: center;
  font-size: 0.7rem;
}

.order-delete-btn {
  color: #ff9ab5;
  border-color: rgba(255, 111, 139, 0.35);
  padding: 0.22rem 0.34rem !important;
  font-size: 0.72rem;
}

.order-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.order-sheet-text {
  width: 100%;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 10, 24, 0.9);
  color: var(--text-main);
  padding: 0.58rem;
  font-size: 0.84rem;
  line-height: 1.42;
  resize: vertical;
}

.order-long-list {
  display: grid;
  gap: 0.32rem;
}

.order-long-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.34rem 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.81rem;
}

.order-long-item span:first-child {
  color: var(--text-main);
}

.order-long-item span:last-child {
  color: #ffd79f;
}

.order-history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.order-history-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.order-history-item {
  display: grid;
  gap: 0.34rem;
}

.order-history-head {
  margin: 0;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
}

.order-history-item pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.45;
}

.order-summary-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.3rem;
}

.order-summary-head {
  margin: 0 0 0.15rem;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.81rem;
  color: var(--text-sub);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.24rem;
}

.order-summary-row strong {
  color: var(--text-main);
  font-weight: 700;
}

.order-empty {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.84rem;
}


.feature-detail p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.5;
}

.feature-detail ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
}

.feature-detail li {
  color: var(--text-main);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body {
    padding: 1.1rem 0.72rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    letter-spacing: 0.1em;
  }

  .lead {
    font-size: 0.92rem;
  }

  .card {
    width: min(1100px, 100%);
    padding: 1rem;
  }

  .checkin-calendar-cell {
    min-height: 118px;
  }

  .checkin-calendar-chip {
    font-size: 0.68rem;
    padding: 0.08rem 0.36rem;
  }

  .overview-actions,
  .store-list,
  .feature-grid,
  .staff-feature-grid {
    grid-template-columns: 1fr;
  }

  .status-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .status-actions .btn {
    width: 100%;
  }

  .checkin-row.three-col,
  .checkin-row.four-col {
    grid-template-columns: 1fr;
  }

  .payroll-top-grid,
  .payroll-edit-grid,
  .payroll-employee-manual {
    grid-template-columns: 1fr;
  }

  .order-filter-grid,
  .order-add-grid,
  .order-history-toolbar,
  .todo-add-row {
    grid-template-columns: 1fr;
  }

  .order-item-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.26rem;
  }

  .order-category-divider {
    font-size: 0.62rem;
    padding-top: 0.16rem;
  }

  .order-item {
    padding: 0.28rem;
    gap: 0.16rem;
  }

  .order-item-name {
    font-size: 0.8rem;
  }

  .order-tag {
    font-size: 0.58rem;
    padding: 0.01rem 0.22rem;
  }

  .order-item-last {
    font-size: 0.62rem;
  }

  .order-qty-controls {
    grid-template-columns: auto 1fr auto;
    gap: 0.16rem;
  }

  .order-qty-btn {
    min-width: 1.4rem;
    padding: 0.16rem 0.2rem;
    font-size: 0.64rem;
  }

  .order-qty-input {
    font-size: 0.64rem;
    padding: 0.14rem 0.18rem;
  }

  .order-delete-btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.14rem 0.2rem !important;
    font-size: 0.62rem;
  }

  .order-qty-controls {
    grid-template-columns: auto 1fr auto auto;
  }

  .checkin-requirement-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkin-weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .checkin-calendar-toolbar {
    grid-template-columns: auto 1fr;
  }

  .checkin-holiday-item {
    grid-template-columns: 1fr;
  }

  .checkin-toolbar .inline-fields {
    grid-template-columns: 1fr;
  }

  .checkin-table-row {
    grid-template-columns: 1fr 1fr;
  }

  .payroll-calendar-cell {
    min-height: 92px;
  }

  .payroll-record-line,
  .payroll-record-empty {
    font-size: 0.68rem;
  }
}

/* order mobile dense override */
@media (max-width: 760px) {
  .feature-detail {
    padding: 0.52rem;
  }

  .order-shell {
    gap: 0.42rem;
  }

  .order-panel {
    padding: 0.4rem;
    gap: 0.34rem;
  }

  .order-filter-grid,
  .order-add-grid,
  .order-history-toolbar {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .order-item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.2rem !important;
    max-height: none;
    padding-right: 0;
  }

  .order-item {
    padding: 0.22rem !important;
    gap: 0.12rem !important;
    border-radius: 7px;
  }

  .order-item-head {
    gap: 0.07rem;
  }

  .order-item-name {
    font-size: 0.78rem;
    line-height: 1.12;
  }

  .order-tag-list {
    gap: 0.1rem;
  }

  .order-tag {
    font-size: 0.52rem;
    padding: 0 0.15rem;
  }

  .order-item-last {
    font-size: 0.56rem;
    line-height: 1.08;
  }

  .order-qty-controls {
    grid-template-columns: auto 1fr auto !important;
    gap: 0.1rem;
  }

  .order-qty-btn {
    min-width: 1.15rem;
    padding: 0.09rem 0.12rem;
    font-size: 0.58rem;
  }

  .order-qty-input {
    font-size: 0.58rem;
    padding: 0.06rem 0.08rem;
  }

  .order-delete-btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.08rem 0.1rem !important;
    font-size: 0.56rem;
  }

  .order-sheet-text {
    min-height: 118px;
    padding: 0.34rem;
    font-size: 0.7rem;
  }

  .order-long-item,
  .order-summary-row {
    font-size: 0.68rem;
  }

  .issue-panel,
  .todo-panel {
    padding: 0.5rem;
  }

  .issue-actions,
  .todo-item-actions {
    gap: 0.22rem;
  }
}

/* order mobile hard-fix: force 2 columns + tighter side spacing */
@media (max-width: 760px) {
  body {
    padding: 0.45rem 0.28rem !important;
  }

  .card {
    width: 100% !important;
    padding: 0.58rem !important;
    border-radius: 12px;
  }

  .feature-detail {
    margin-top: 0.5rem;
    padding: 0.36rem !important;
    border-radius: 10px;
  }

  .order-shell {
    gap: 0.3rem !important;
  }

  .order-panel {
    padding: 0.28rem !important;
    gap: 0.26rem !important;
    border-radius: 9px;
  }

  #orderItemList.order-item-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row dense;
    gap: 0.14rem !important;
    max-height: none !important;
    padding-right: 0 !important;
  }

  #orderItemList .order-item {
    min-width: 0;
    padding: 0.18rem !important;
    gap: 0.1rem !important;
    border-radius: 6px !important;
  }

  #orderItemList .order-item-name {
    font-size: 0.76rem !important;
    line-height: 1.06 !important;
  }

  #orderItemList .order-tag {
    font-size: 0.5rem !important;
    padding: 0 0.12rem !important;
  }

  #orderItemList .order-item-last {
    font-size: 0.54rem !important;
    line-height: 1.04 !important;
  }

  #orderItemList .order-qty-controls {
    grid-template-columns: auto 1fr auto !important;
    gap: 0.08rem !important;
  }

  #orderItemList .order-qty-btn {
    min-width: 1rem !important;
    padding: 0.07rem 0.1rem !important;
    font-size: 0.54rem !important;
  }

  #orderItemList .order-qty-input {
    padding: 0.04rem 0.06rem !important;
    font-size: 0.54rem !important;
  }

  #orderItemList .order-delete-btn {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.06rem 0.08rem !important;
    font-size: 0.52rem !important;
  }
}

/* order card layout override: name left, tags+last right, easier qty controls */
.order-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.22rem;
  align-items: start;
}

.order-item-meta {
  display: grid;
  gap: 0.08rem;
  justify-items: end;
  text-align: right;
}

.order-item-name {
  font-size: 1.02rem !important;
  line-height: 1.2 !important;
}

.order-item-meta .order-tag-list {
  justify-content: flex-end !important;
  align-items: flex-end !important;
}

.order-item-last {
  text-align: right;
}

.order-qty-controls {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.16rem !important;
}

.order-qty-main {
  display: grid;
  grid-template-columns: auto minmax(60px, 78px) auto;
  gap: 0.14rem;
  align-items: center;
}

.order-qty-btn {
  min-width: 2rem !important;
  padding: 0.24rem 0.3rem !important;
  font-size: 0.84rem !important;
  font-weight: 700;
}

.order-qty-input {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  padding: 0.2rem 0.12rem !important;
}

.order-delete-btn {
  grid-column: auto !important;
  width: auto !important;
  padding: 0.16rem 0.26rem !important;
  font-size: 0.62rem !important;
}

@media (max-width: 760px) {
  #orderItemList .order-item-top {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.12rem !important;
  }

  #orderItemList .order-item-meta {
    gap: 0.04rem !important;
  }

  #orderItemList .order-item-name {
    font-size: 0.9rem !important;
    line-height: 1.14 !important;
  }

  #orderItemList .order-item-meta .order-tag-list {
    justify-content: flex-end !important;
  }

  #orderItemList .order-item-last {
    font-size: 0.58rem !important;
    line-height: 1.08 !important;
  }

  #orderItemList .order-qty-controls {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.08rem !important;
  }

  #orderItemList .order-qty-main {
    grid-template-columns: auto minmax(48px, 1fr) auto !important;
    gap: 0.08rem !important;
  }

  #orderItemList .order-qty-btn {
    min-width: 1.28rem !important;
    padding: 0.08rem 0.1rem !important;
    font-size: 0.66rem !important;
  }

  #orderItemList .order-qty-input {
    font-size: 0.74rem !important;
    padding: 0.06rem 0.08rem !important;
  }

  #orderItemList .order-delete-btn {
    grid-column: auto !important;
    width: auto !important;
    padding: 0.06rem 0.12rem !important;
    font-size: 0.56rem !important;
  }
}

/* qty control touch-size boost */
.order-qty-main {
  grid-template-columns: 44px minmax(52px, 64px) 44px !important;
  gap: 0.18rem !important;
}

.order-qty-btn {
  min-width: 44px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 1.02rem !important;
  line-height: 1 !important;
}

.order-qty-input {
  min-height: 40px !important;
  padding: 0.16rem 0.1rem !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  #orderItemList .order-qty-main {
    grid-template-columns: 40px minmax(46px, 56px) 40px !important;
    gap: 0.1rem !important;
  }

  #orderItemList .order-qty-btn {
    min-width: 40px !important;
    min-height: 36px !important;
    font-size: 0.94rem !important;
    border-radius: 9px !important;
  }

  #orderItemList .order-qty-input {
    min-height: 36px !important;
    font-size: 0.92rem !important;
  }
}

/* mobile final fix: prevent delete/+ overlap */
@media (max-width: 760px) {
  #orderItemList .order-item {
    overflow: hidden;
  }

  #orderItemList .order-qty-controls {
    grid-template-columns: 1fr !important;
    gap: 0.1rem !important;
  }

  #orderItemList .order-qty-main {
    grid-template-columns: 40px minmax(40px, 1fr) 40px !important;
    gap: 0.08rem !important;
  }

  #orderItemList .order-delete-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 0.02rem;
    padding: 0.08rem 0.12rem !important;
  }
}

/* feedback/complaint compact redesign */
.issue-shell {
  gap: 0.48rem !important;
}

.issue-panel {
  padding: 0.52rem !important;
  border-radius: 14px !important;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(79, 140, 255, 0.12), rgba(79, 140, 255, 0) 56%),
    rgba(7, 12, 26, 0.76) !important;
}

.issue-form-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) minmax(0, 0.95fr) auto;
  gap: 0.4rem !important;
  align-items: end;
}

#feedbackTextInput {
  min-height: 86px;
  resize: vertical;
}

.issue-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem !important;
}

.issue-choice-row {
  gap: 0.28rem !important;
}

.issue-choice-btn {
  min-height: 34px;
  padding: 0.28rem 0.56rem !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.issue-choice-btn.active {
  color: #eaf2ff !important;
  border-color: rgba(79, 140, 255, 0.78) !important;
  background: linear-gradient(140deg, rgba(79, 140, 255, 0.3), rgba(79, 140, 255, 0.12)) !important;
}

.issue-star-btn {
  min-width: 46px;
  min-height: 34px;
  border-radius: 9px !important;
  padding: 0.18rem 0.32rem !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  color: #f9d67b;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(249, 214, 123, 0.28) !important;
}

.issue-star-btn.active {
  color: #141a2a !important;
  border-color: rgba(255, 220, 130, 0.96) !important;
  background: linear-gradient(155deg, #ffd36a, #ffb74a) !important;
  box-shadow: 0 6px 18px rgba(255, 188, 90, 0.25);
}

.issue-form-actions {
  justify-content: flex-end !important;
}

#feedbackAddBtn {
  min-height: 36px;
  padding: 0.36rem 0.78rem !important;
  font-size: 0.78rem;
}

.issue-list {
  gap: 0.32rem !important;
}

.issue-item {
  border-radius: 11px !important;
  padding: 0.46rem 0.52rem !important;
  gap: 0.28rem !important;
}

.issue-item-head {
  gap: 0.28rem !important;
}

.issue-source,
.issue-state {
  font-size: 0.62rem !important;
  padding: 0.02rem 0.34rem !important;
}

.issue-priority {
  font-size: 0.72rem !important;
  letter-spacing: 0;
}

.issue-text {
  font-size: 0.82rem !important;
  line-height: 1.36 !important;
}

.issue-actions {
  gap: 0.24rem !important;
}

.issue-actions .btn {
  min-height: 30px;
  padding: 0.16rem 0.48rem !important;
  font-size: 0.68rem !important;
}

.issue-item.is-done {
  opacity: 0.38 !important;
  filter: grayscale(0.25);
}

@media (max-width: 900px) {
  .issue-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.34rem !important;
  }

  .issue-form-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .issue-panel {
    padding: 0.42rem !important;
    border-radius: 11px !important;
  }

  .issue-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.28rem !important;
  }

  #feedbackTextInput {
    min-height: 72px;
  }

  .issue-choice-row {
    gap: 0.2rem !important;
  }

  .issue-choice-btn,
  .issue-star-btn {
    min-height: 30px;
    font-size: 0.66rem !important;
    padding: 0.12rem 0.34rem !important;
  }

  #feedbackAddBtn {
    width: 100%;
    min-height: 32px;
    padding: 0.2rem 0.42rem !important;
    font-size: 0.7rem;
  }

  .issue-item {
    padding: 0.34rem 0.4rem !important;
    gap: 0.2rem !important;
  }

  .issue-text {
    font-size: 0.74rem !important;
  }

  .issue-actions .btn {
    min-height: 26px;
    font-size: 0.62rem !important;
    padding: 0.08rem 0.26rem !important;
  }
}

/* feedback/complaint v2 refined layout */
.issue-shell-v2 {
  gap: 0.56rem !important;
}

.issue-shell-v2 .issue-panel {
  padding: 0.6rem !important;
  border-radius: 14px !important;
  background:
    linear-gradient(145deg, rgba(9, 16, 36, 0.94), rgba(6, 11, 25, 0.9)) !important;
  border-color: rgba(145, 170, 230, 0.18) !important;
}

.issue-shell-v2 .issue-panel-compose {
  background:
    radial-gradient(120% 170% at 0% 0%, rgba(94, 148, 255, 0.16), rgba(94, 148, 255, 0) 54%),
    linear-gradient(145deg, rgba(9, 16, 36, 0.94), rgba(6, 11, 25, 0.9)) !important;
}

.issue-shell-v2 .issue-field-text {
  display: grid;
  gap: 0.2rem;
}

.issue-shell-v2 .issue-label {
  margin: 0 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: rgba(194, 208, 242, 0.9) !important;
}

.issue-shell-v2 #feedbackTextInput {
  min-height: 92px;
  border: 1px solid rgba(146, 170, 232, 0.24);
  border-radius: 12px;
  background: rgba(4, 10, 23, 0.9);
  color: var(--text-main);
  padding: 0.52rem 0.62rem;
  line-height: 1.45;
}

.issue-shell-v2 .issue-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.34rem;
  align-items: end;
}

.issue-shell-v2 .issue-control-card {
  border: 1px solid rgba(146, 170, 232, 0.14);
  border-radius: 12px;
  background: rgba(9, 15, 32, 0.68);
  padding: 0.38rem;
  display: grid;
  gap: 0.24rem;
}

.issue-shell-v2 .issue-source-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem !important;
}

.issue-shell-v2 .issue-choice-btn {
  width: 100%;
  min-height: 38px;
  padding: 0.22rem 0.38rem !important;
  border-radius: 10px !important;
  font-size: 0.74rem !important;
  font-weight: 600;
}

.issue-shell-v2 .issue-priority-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.2rem !important;
}

.issue-shell-v2 .issue-star-btn {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border-radius: 10px !important;
  padding: 0.12rem 0.16rem !important;
  font-size: 0.7rem !important;
}

.issue-shell-v2 .issue-star-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.issue-shell-v2 .issue-star-num {
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.86;
}

.issue-shell-v2 .issue-form-actions {
  display: flex;
  align-items: stretch;
}

.issue-shell-v2 #feedbackAddBtn {
  min-width: 108px;
  min-height: 38px;
  border-radius: 10px;
  padding: 0.2rem 0.64rem !important;
  font-size: 0.74rem !important;
  font-weight: 700;
}

.issue-shell-v2 .issue-list {
  gap: 0.28rem !important;
}

.issue-shell-v2 .issue-item {
  border-radius: 12px !important;
  padding: 0.44rem 0.5rem !important;
  gap: 0.24rem !important;
}

.issue-shell-v2 .issue-text {
  font-size: 0.8rem !important;
  line-height: 1.34 !important;
}

.issue-shell-v2 .issue-actions .btn {
  min-height: 29px;
  padding: 0.12rem 0.4rem !important;
  font-size: 0.66rem !important;
  border-radius: 8px !important;
}

.issue-shell-v2 .issue-item.is-done {
  opacity: 0.33 !important;
}

@media (max-width: 760px) {
  .issue-shell-v2 .issue-panel {
    padding: 0.46rem !important;
    border-radius: 11px !important;
  }

  .issue-shell-v2 #feedbackTextInput {
    min-height: 78px;
    padding: 0.4rem 0.5rem;
    font-size: 0.76rem;
  }

  .issue-shell-v2 .issue-compose-row {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .issue-shell-v2 .issue-control-card {
    padding: 0.3rem;
    gap: 0.18rem;
  }

  .issue-shell-v2 .issue-choice-btn {
    min-height: 32px;
    font-size: 0.66rem !important;
    border-radius: 8px !important;
  }

  .issue-shell-v2 .issue-priority-row {
    gap: 0.14rem !important;
  }

  .issue-shell-v2 .issue-star-btn {
    min-height: 32px;
    padding: 0.08rem 0.1rem !important;
    font-size: 0.62rem !important;
    border-radius: 8px !important;
  }

  .issue-shell-v2 .issue-star-icon {
    font-size: 0.72rem;
  }

  .issue-shell-v2 .issue-star-num {
    font-size: 0.56rem;
  }

  .issue-shell-v2 #feedbackAddBtn {
    width: 100%;
    min-height: 34px;
    font-size: 0.68rem !important;
  }
}

/* feedback schedule status extension */
.issue-state.planned {
  color: #b6d2ff !important;
  border-color: rgba(116, 170, 255, 0.44) !important;
  background: rgba(116, 170, 255, 0.14);
}

.issue-state.missed {
  color: #ff9db5 !important;
  border-color: rgba(255, 111, 139, 0.48) !important;
  background: rgba(255, 111, 139, 0.16);
}

.issue-item.is-missed {
  box-shadow: inset 0 0 0 1px rgba(255, 111, 139, 0.3);
}

.issue-plan-text {
  margin: 0;
  color: #b8d5ff;
  font-size: 0.78rem;
}

/* work schedule calendar */
.work-schedule-shell {
  display: grid;
  gap: 0.65rem;
}

.work-schedule-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem;
  background: rgba(7, 12, 26, 0.68);
  display: grid;
  gap: 0.55rem;
}

.work-schedule-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.work-schedule-scope-tabs .work-scope-btn {
  margin-top: 0;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-sub);
  font-size: 0.82rem;
}

.work-schedule-scope-tabs .work-scope-btn.active {
  border-color: rgba(79, 140, 255, 0.58);
  background: rgba(79, 140, 255, 0.2);
  color: var(--text-main);
}

.work-schedule-top-controls {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 0.58rem;
  align-items: end;
}

.work-schedule-tip {
  color: var(--text-sub);
  font-size: 0.8rem;
}

.work-schedule-calendar {
  display: grid;
  gap: 0.3rem;
}

.work-schedule-weekdays,
.work-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.work-schedule-weekdays {
  color: var(--text-sub);
  font-size: 0.75rem;
  text-align: center;
}

.work-schedule-cell {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.34rem;
  display: grid;
  align-content: start;
  gap: 0.18rem;
  cursor: pointer;
  text-align: left;
}

.work-schedule-cell.is-empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.work-schedule-cell.is-selected {
  border-color: rgba(79, 140, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.16);
}

.work-schedule-day {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
}

.work-schedule-previews {
  display: grid;
  gap: 0.12rem;
}

.work-schedule-preview {
  margin: 0;
  font-size: 0.69rem;
  line-height: 1.22;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-schedule-preview.is-missed {
  color: #ffafc3;
}

.work-schedule-more {
  margin: 0;
  font-size: 0.64rem;
  color: var(--warning);
}

.work-schedule-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px) auto;
  gap: 0.4rem;
}

.work-schedule-priority-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.work-schedule-star-btn {
  margin-top: 0 !important;
  min-height: 34px;
  padding: 0.22rem 0.45rem !important;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-sub);
  font-size: 0.74rem !important;
  border-radius: 999px !important;
}

.work-schedule-star-btn.active {
  color: #eaf2ff !important;
  border-color: rgba(79, 140, 255, 0.78) !important;
  background: linear-gradient(140deg, rgba(79, 140, 255, 0.3), rgba(79, 140, 255, 0.12)) !important;
}

.work-schedule-day-list {
  display: grid;
  gap: 0.32rem;
}

.work-schedule-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.42rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.3rem;
}

.work-schedule-item.is-feedback {
  border-color: rgba(116, 170, 255, 0.38);
}

.work-schedule-item.is-missed {
  border-color: rgba(255, 111, 139, 0.42);
}

.work-schedule-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}

.work-schedule-item-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-main);
}

.work-schedule-item-state {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.04rem 0.36rem;
  font-size: 0.68rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.work-schedule-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.work-schedule-store,
.work-schedule-readonly {
  color: var(--text-sub);
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .work-schedule-top-controls,
  .work-schedule-add-row {
    grid-template-columns: 1fr;
  }

  .work-schedule-cell {
    min-height: 92px;
  }

  .work-schedule-preview {
    font-size: 0.64rem;
  }
}
