.login { max-width: 400px; margin: 12vh auto 0; }
.login h1 { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; margin-bottom: 8px; }
.login p { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.login .btn { width: 100%; margin-top: 12px; }

.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; width: fit-content; margin: 8px 0 28px; }
.tab { padding: 9px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tab.active { background: var(--ink); color: var(--bg); }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--brass); color: #1a1409; font-size: 12px; }

.panel-title { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; }
.panel-title::first-letter { text-transform: uppercase; }
.panel-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.admin-days .day { flex-basis: 70px; position: relative; }
.admin-days .day .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.admin-days .day.closed { opacity: .55; }
.admin-days .day.closed .dn { text-decoration: line-through; text-decoration-thickness: 1px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .4; cursor: not-allowed; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.item .time { font-weight: 700; font-variant-numeric: tabular-nums; width: 52px; }
.item .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .who small { display: block; color: var(--dim); font-size: 12px; }
.item.booked { border-color: rgba(212,169,95,.35); background: rgba(212,169,95,.06); }
.item.blocked .who { color: var(--dim); }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.pill.free { color: var(--green); background: rgba(127,183,126,.12); }
.pill.book { color: var(--brass-2); background: rgba(212,169,95,.14); }
.pill.block { color: var(--muted); background: var(--line); }
.btn-danger { color: #ef8a7e; border: 1px solid rgba(239,138,126,.35); }
.btn-danger:hover { background: rgba(239,138,126,.1); }

.note { font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }

.group-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 18px 0 8px; }
.group-date:first-child { margin-top: 0; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; }
.chk span { display: block; text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.chk input:checked + span { background: var(--brass); color: #1a1409; border-color: var(--brass); }
.chk input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.setting { margin-bottom: 28px; }
.setting h3 { font-size: 15px; margin-bottom: 4px; }
.setting p { color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--brass); color: #1a1409; }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.ranges { display: flex; flex-direction: column; gap: 8px; }
.range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.range span { color: var(--dim); font-size: 14px; }
.range input[type=time] { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; font-variant-numeric: tabular-nums; color-scheme: dark; }
.range input[type=time]:focus { outline: none; border-color: var(--brass); }
.range .rm { width: 36px; height: 36px; border-radius: 50%; color: var(--dim); font-size: 18px; }
.range .rm:hover { background: var(--bg-2); color: #ef8a7e; }
.preview { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); }
.preview-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.preview-times { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-times span { padding: 5px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.num { width: 110px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .25s; z-index: 10; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .top { gap: 10px; }
  .brand { min-width: 0; font-size: 15px; }
  .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs { width: 100%; margin: 4px 0 18px; }
  .tab { flex: 1; padding: 9px 6px; }
  .card { padding: 18px 14px; }
  .panel-title { font-size: 30px; }
  .item { gap: 10px; padding: 12px; }
  .item .time { width: 46px; }
  .item .pill { display: none; }
  .item.booked .who { color: var(--brass-2); font-weight: 600; }
  .range { flex-wrap: nowrap; gap: 6px; }
  .range input[type=time] { flex: 1; min-width: 0; padding: 10px 8px; }
  .seg { display: flex; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding: 9px 6px; }
}
