.reservation-card { border: 1px solid #e5eaf1; border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 28px rgba(25, 40, 70, .06); padding: 25px 28px 28px; }
.reservation-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.reservation-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #96a0ae; }
.status-dot.is-free { background: #5c9473; }
.status-dot.is-busy { background: #d39a3d; }
.status-dot.is-error { background: #c85c4f; }
.status-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #647287; background: #eff2f6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-badge.is-free { color: #397148; background: #e2f1e5; }
.status-badge.is-busy { color: #a56615; background: #fff0d2; }
.status-badge.is-error { color: #a63d35; background: #f8e0dd; }
.reservation-detail { min-height: 22px; margin: 10px 0 0; color: #66758c; font-size: 14px; }
.viewer-reservation { min-height: 0; margin: 6px 0 0; color: #3f5f91; font-size: 13px; font-weight: 650; }
.viewer-reservation:empty { display: none; }
.reservation-divider { height: 1px; margin: 23px 0 17px; background: #e5eaf1; }
.identity-row { display: flex; align-items: baseline; gap: 9px; min-height: 31px; margin-bottom: 17px; color: #758196; font-size: 12px; }
.identity-row strong { color: #31435e; font-size: 14px; font-weight: 750; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.field { display: grid; gap: 7px; color: #56657c; font-size: 12px; font-weight: 700; }
.field input, .field select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d4dce7; border-radius: 6px; color: #1d2d45; background: #fff; font: inherit; font-size: 14px; font-weight: 500; outline: none; }
.field input:focus, .field select:focus { border-color: #6a8fdc; box-shadow: 0 0 0 3px rgba(46, 109, 246, .12); }
.field input:disabled, .field select:disabled { color: #8d98a7; background: #f4f6f8; cursor: not-allowed; }
.end-inputs { display: grid; grid-template-columns: minmax(88px, .52fr) minmax(0, 1fr); gap: 8px; }
.quick-durations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-durations button { min-width: 85px; padding: 8px 10px; border: 1px solid #d5dde8; border-radius: 5px; color: #52647b; background: #fff; font: inherit; font-size: 12px; cursor: pointer; transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease; }
.quick-durations button:hover, .quick-durations button.is-selected { border-color: #6a8fdc; color: #2e5cac; background: #f1f5ff; }
.quick-durations button:disabled { color: #a2aab5; background: #f5f6f8; cursor: not-allowed; }
.field-hint { margin: 12px 0 0; color: #8993a2; font-size: 12px; }
.duration-preview { margin: 8px 0 0; color: #3e5578; font-size: 13px; font-weight: 650; }
.duration-preview.is-invalid { color: #b14c42; }
.action-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .35fr); gap: 10px; margin-top: 18px; }
.apply-button, .cancel-button { min-height: 44px; border: 0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.apply-button { color: #fff; background: #2e6df6; }
.apply-button:hover { background: #245bd3; }
.apply-button:active { transform: scale(.99); }
.cancel-button { border: 1px solid #d6a6a0; color: #a34b42; background: #fff; }
.cancel-button:hover { border-color: #c88076; background: #fff5f3; }
.apply-button:disabled, .cancel-button:disabled { color: #9ba5b3; border-color: #e0e4ea; background: #e6eaf0; cursor: not-allowed; transform: none; }
.notice { margin-top: 22px; padding: 13px 15px; border-left: 3px solid #d39a3d; background: #fffaf0; }
.notice strong { color: #7d5a20; font-size: 12px; }
.notice ol { margin: 5px 0 0; padding-left: 18px; color: #78664a; font-size: 12px; line-height: 1.7; }
.notice li + li { margin-top: 2px; }
.guide-link { margin: 14px 0 0; font-size: 13px; }
.guide-link a { color: #2e6df6; text-decoration: none; }
.guide-link a:hover { text-decoration: underline; }
.feedback { min-height: 20px; margin: 13px 0 0; color: #397148; font-size: 13px; }
.feedback.is-error { color: #a63d35; }
dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 80px rgba(14, 28, 50, .28); }
dialog::backdrop { background: rgba(16, 27, 42, .35); }
.dialog-content { padding: 24px; }
.dialog-content h2 { margin: 0; color: #26364e; font-size: 18px; }
.dialog-content p { margin: 10px 0 20px; color: #66758c; font-size: 14px; line-height: 1.6; }
.dialog-content button { width: 100%; min-height: 40px; border: 0; border-radius: 6px; color: #fff; background: #2e6df6; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 640px) {
  .reservation-card { padding: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .reservation-heading h2 { font-size: 21px; }
  .quick-durations button { flex: 1 0 calc(50% - 8px); min-width: 0; }
  .action-row { grid-template-columns: 1fr; }
}
