:root {
  color: #1d1d1f;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 960px; background: #f5f5f7; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
.auth-stage { min-height: 100vh; display: grid; place-items: center; padding: 48px; }
.auth-panel { width: 460px; padding: 38px 40px 40px; background: #fff; border: 1px solid #e4e4e8; border-radius: 22px; box-shadow: 0 16px 42px rgba(0, 0, 0, .06); }
.brand { margin: 0 0 28px; font-size: 24px; font-weight: 650; line-height: 1.2; }
.page-title { margin: 0 0 8px; font-size: 24px; font-weight: 650; }
.subtle { margin: 0 0 26px; color: #6e6e73; font-size: 14px; line-height: 1.5; }
.field { margin: 0 0 18px; }
label { display: block; margin-bottom: 8px; color: #515154; font-size: 14px; font-weight: 600; }
input { width: 100%; height: 44px; padding: 0 12px; color: #1d1d1f; background: #fff; border: 1px solid #c7c7cc; border-radius: 10px; outline: none; }
input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0, 102, 204, .14); }
.primary, .secondary { width: 100%; min-height: 44px; border-radius: 10px; font-weight: 600; }
.primary { border: 1px solid #0066cc; color: #fff; background: #0066cc; }
.secondary { border: 1px solid #9bc5ee; color: #0066cc; background: #fff; }
.text-action { display: inline-block; margin-top: 18px; padding: 0; border: 0; color: #0066cc; background: transparent; font-size: 14px; }
.field-message, .form-message { min-height: 20px; margin: 8px 0 0; color: #b42318; font-size: 14px; line-height: 1.4; }
.form-message[hidden], .field-message[hidden] { display: none; }
.form-message.success { color: #18794e; }
.app-shell { width: min(1040px, calc(100vw - 80px)); margin: 56px auto; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.app-header h1 { margin: 0; font-size: 24px; }
.account-name { color: #6e6e73; font-size: 14px; }
.logout { width: auto; min-height: 36px; padding: 0 14px; border: 1px solid #c7c7cc; border-radius: 8px; color: #1d1d1f; background: #fff; font-size: 14px; }
.invite-surface { background: #fff; border: 1px solid #e4e4e8; border-radius: 14px; }
.invite-body { padding: 30px 34px 34px; }
.invite-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.invite-form .primary { margin-top: 6px; }
.default-role { margin: -4px 0 20px; color: #6e6e73; font-size: 14px; }
.records-title { margin: 0 0 16px; font-size: 17px; }
.invite-records { border-top: 1px solid #e4e4e8; }
.invite-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(104px, 1fr) auto auto; gap: 12px; align-items: center; min-height: 68px; border-bottom: 1px solid #e4e4e8; font-size: 14px; }
.record-identity { display: grid; gap: 4px; min-width: 0; }
.record-identity-line { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.record-identity-label { color: #6e6e73; font-size: 12px; font-weight: 600; }
.record-identity-value { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.record-time { color: #6e6e73; }
.status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.invited { color: #0066cc; background: #edf6ff; }
.status.completed { color: #18794e; background: #ebf8f0; }
.status.expired { color: #8a5100; background: #fff5e5; }
.record-action { padding: 0; border: 0; color: #0066cc; background: transparent; font-size: 14px; }
.empty-records { padding: 18px 0; color: #6e6e73; font-size: 14px; }
.link-copy { width: auto; margin-top: 12px; padding: 0 14px; }
.restricted-message { padding: 28px 34px; color: #6e6e73; background: #fff; border: 1px solid #e4e4e8; border-radius: 14px; }
@media (max-width: 1080px) { .invite-layout { grid-template-columns: 1fr; gap: 30px; } }
