:root{--ai-muted:#637895}.content{padding:38px 42px;min-height:calc(100vh - 76px)}.nav-caption{font-size:11px;letter-spacing:1.5px;margin:4px 14px 14px}.nav button{gap:12px;display:flex;align-items:center;text-align:left;line-height:1.4}.nav .ai-num{font-size:11px;opacity:.55;font-variant-numeric:tabular-nums;min-width:18px}.ai-side-note{padding:12px;font-size:12px;color:#d8e5ff;line-height:1.8}.ai-side-note p{font-size:11px;color:#a5bde9;margin:5px 0}.ai-live-dot{width:6px;height:6px;display:inline-block;background:#91b9ff;border-radius:50%;margin-right:7px}.top-actions{flex-wrap:wrap;gap:14px}.text-btn{white-space:nowrap}.old-entry{font-size:12px;color:#637895;text-decoration:none}.ai-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 26px}.ai-heading h1{margin:5px 0 10px;font-size:30px;color:#16355f}.ai-heading p{margin:0;color:var(--ai-muted);font-size:14px;max-width:650px}.ai-eyebrow{color:#5877a3;font-size:11px;letter-spacing:1.8px}.ai-label{font-size:12px;border:1px solid #d5e1f5;background:#eef4ff;padding:6px 10px;border-radius:6px;white-space:nowrap;color:#375f9d}.ai-grid{display:grid;grid-template-columns:minmax(300px,.88fr) minmax(360px,1.12fr);gap:24px;align-items:start;max-width:1500px}.ai-editor,.ai-result{background:#fff;border:1px solid #dae4f2;border-radius:14px;box-shadow:0 8px 28px #183c6d06;min-width:0}.ai-card-title{padding:20px 24px;border-bottom:1px solid #e8eef7;display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-card-title h2{margin:0;font-size:16px}.ai-step{font-size:11px;color:#6780a1}.ai-form{padding:22px 24px}.ai-form .field{margin:0 0 18px}.ai-form textarea{width:100%;resize:vertical;min-height:115px}.ai-form input,.ai-form select{width:100%}.ai-form .field small{line-height:1.7}.ai-form details{border-top:1px solid #e8eef7;padding-top:17px;margin-top:8px}.ai-form summary{cursor:pointer;font-size:13px;font-weight:600;margin-bottom:17px;color:#3a5b86;min-height:28px}.ai-inline{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ai-inline .field{min-width:0}.ai-submit{width:100%;margin-top:12px}.ai-help{font-size:12px;color:#70839b;line-height:1.8;margin:12px 0 0}.ai-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.ai-chip{background:#f4f7fc;border:1px solid #e2e9f4;border-radius:6px;color:#547094;font-size:12px;padding:7px 9px;cursor:pointer;min-height:36px}.ai-result{min-height:530px;position:sticky;top:20px}.ai-empty{padding:60px 30px 46px;text-align:center;color:#68809d}.ai-empty-icon{margin:0 auto 22px;width:62px;height:62px;border-radius:18px;background:#eef4ff;color:#3c6fd5;display:grid;place-items:center;font-size:26px}.ai-empty h3{font-size:17px;color:#29466f;margin:0 0 10px}.ai-empty p{font-size:13px;line-height:1.9;max-width:340px;margin:0 auto}.ai-expect{margin:28px auto 0;display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.ai-expect span{border:1px solid #e0e8f4;border-radius:5px;padding:4px 9px;font-size:11px;color:#7690af}.ai-output{padding:22px 26px;color:#2e486b;font-size:14px;line-height:1.95;overflow-wrap:anywhere;white-space:pre-wrap}.ai-output h3{white-space:normal;font-size:17px;color:#153762;margin:18px 0 10px}.ai-output p{margin:0 0 10px}.ai-result-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 24px 20px}.ai-source{margin:0 24px 24px;border-top:1px solid #e3ebf6;padding-top:16px;color:#6c819e;font-size:12px}.ai-source pre{white-space:pre-wrap;max-height:260px;overflow:auto;font-size:11px;overflow-wrap:anywhere}.ai-error{color:#a63845;background:#fff5f5;padding:14px;border:1px solid #f2d4d8;border-radius:8px;line-height:1.8;font-size:13px;margin:0 0 16px}.ai-error:empty{display:none}.ai-loader{height:4px;background:#e4edfc;border-radius:4px;overflow:hidden;margin:25px auto 20px;width:180px}.ai-loader:after{content:'';display:block;height:100%;width:45%;background:#477de4;animation:ai-load 1.5s ease-in-out infinite alternate}@keyframes ai-load{to{transform:translateX(125%)}}.ai-history-row{width:100%;display:flex;gap:14px;align-items:center;justify-content:space-between;padding:15px 0;border:0;border-bottom:1px solid #e8eef7;background:white;text-align:left;color:#36537b;cursor:pointer}.ai-history-row small{display:block;color:#8090a5;margin-top:4px}.ai-history-row strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.ai-history-row span{white-space:nowrap;font-size:11px}.dialog .dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog .dialog-head h2{margin:0}.dialog-body .field{margin-bottom:16px}.dialog-body input,.dialog-body textarea{width:100%}.ai-status{font-size:11px;color:#657e9e}.ai-foot{font-size:11px;color:#7b8da7;margin-top:23px;max-width:950px}.ai-completed{color:#197354}.ai-warn{color:#966215}.ai-form textarea:focus{min-height:130px}.ai-view{animation:ai-enter 220ms ease-out}@keyframes ai-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.content{padding:46px 60px}.ai-grid{gap:30px}.ai-form{padding:26px 28px}}@media(max-width:1100px){.content{padding:26px}.ai-grid{grid-template-columns:1fr}.ai-result{position:static;min-height:330px}.ai-empty{padding:35px}.top-actions{gap:8px}.old-entry{display:none}}@media(max-width:650px){.content{padding:22px 16px}.nav-caption,.ai-side-note{display:none}.nav button{flex:none;gap:6px}.nav .ai-num{display:none}.ai-heading{display:block;margin-bottom:20px}.ai-heading h1{font-size:25px}.ai-label{display:inline-block;margin-top:12px}.ai-card-title{padding:16px 18px}.ai-form{padding:18px}.ai-inline{grid-template-columns:1fr;gap:0}.ai-output{padding:18px;font-size:15px}.topbar{padding:12px 16px;height:auto;min-height:66px;flex-wrap:wrap;gap:6px}.crumb{font-size:12px}.top-actions{gap:14px}.ai-heading p{font-size:13px}.brand small{font-size:10px}.sidebar .side-bottom{display:none}.ai-empty{padding:30px 20px}.ai-result-actions{padding:0 18px 18px}.ai-source{margin:0 18px 18px}.ai-foot{line-height:1.8}}
@media(prefers-reduced-motion:reduce){.ai-view,.ai-loader:after{animation:none}.ai-loader:after{width:100%}}

.usage-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.usage-panel-head h2{margin:0 0 6px}
.usage-panel-head p{margin:0;color:#637895;font-size:13px;line-height:1.7}
.usage-search{display:grid;flex:0 1 280px;gap:6px;color:#4c6383;font-size:12px;font-weight:600}
.usage-search input{width:100%;min-height:40px;padding:8px 12px;border:1px solid #d9e3f1;border-radius:10px;background:#f7f9fd;color:#16355f;font:inherit;font-weight:400}
.usage-table-wrap{width:100%;overflow:auto;border:1px solid #e0e8f4;border-radius:12px;background:#fff}
.usage-table{width:100%;min-width:880px;border-collapse:collapse;font-size:13px}
.usage-table th{padding:11px 14px;background:#f6f9fe;color:#647a96;font-size:11px;font-weight:600;letter-spacing:.03em;text-align:left;white-space:nowrap}
.usage-table td{padding:14px;border-top:1px solid #e8eef7;color:#2b476c;vertical-align:middle}
.usage-table td>strong,.usage-table td>small{display:block}
.usage-table td>small{margin-top:4px;color:#7a8ca4;font-size:11px;line-height:1.5}
.usage-skills{display:flex;flex-wrap:wrap;gap:6px}
.usage-skill-tag{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#315eaa;font-size:11px;white-space:nowrap}
.usage-skill-tag small{color:#6e87ad;font-size:10px}
.usage-skill-more{display:inline-flex;align-items:center;padding:4px 7px;color:#71849d;font-size:11px}
.usage-empty-inline,.usage-empty,.usage-loading{margin:0;color:#7b8ea7;font-size:13px}
.usage-empty,.usage-loading{padding:20px;text-align:center}
.usage-detail-button{min-height:34px;padding:6px 11px;white-space:nowrap}
.usage-no-results td{text-align:center;color:#7b8ea7}
.usage-detail-dialog{width:min(980px,calc(100vw - 40px));max-height:calc(100vh - 40px);padding:24px;overflow:auto}
.usage-detail-dialog .dialog-head h2{font-size:21px}
.usage-detail-dialog .dialog-head p{margin:4px 0 0;color:#71839c;font-size:12px}
.usage-detail-dialog .dialog-body{padding:18px 0 0}
.usage-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.usage-kpis>div{display:grid;gap:5px;padding:14px;border:1px solid #e0e8f4;border-radius:11px;background:#f8fbff}
.usage-kpis span{color:#70839d;font-size:11px}
.usage-kpis strong{color:#173b71;font-size:18px;line-height:1.35}
.usage-detail-skills{margin-bottom:18px;padding:14px;border:1px solid #e0e8f4;border-radius:11px;background:#fbfdff}
.usage-detail-skills>strong{display:block;margin-bottom:9px;color:#2b4d7a;font-size:13px}
.usage-detail-skills>div{display:flex;flex-wrap:wrap;gap:7px}
.usage-status{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:4px 8px;border-radius:999px;background:#eef3fa;color:#5b6f89;font-size:11px;white-space:nowrap}
.usage-status-completed{background:#e8f7f0;color:#16724f}
.usage-status-failed{background:#fff0f1;color:#b53642}
.usage-status-running,.usage-status-queued{background:#edf4ff;color:#2357c6}
.usage-detail-table td>small{max-width:520px;white-space:normal;overflow-wrap:anywhere}
.usage-task-error{color:#b53642!important}
@media(max-width:720px){.usage-panel-head{align-items:stretch;flex-direction:column;gap:12px}.usage-search{flex-basis:auto}.usage-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.usage-detail-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0;padding:18px}}
.analysis-controls{max-width:1500px;margin:0 0 24px;padding:22px 24px;background:#fff;border:1px solid #dae4f2;border-radius:14px}.analysis-controls>label{display:block;font-size:14px;font-weight:600;color:#36537b;margin-bottom:10px}.smart-row{display:flex;gap:10px}.smart-row input{flex:1;min-width:0;padding:12px;font:inherit;border:1px solid #d0ddef;border-radius:7px}.smart-row button{flex:none}.smart-hint{font-size:12px;color:#6a819e;margin:10px 0 16px;line-height:1.7}.analysis-tabs{display:flex;gap:8px;flex-wrap:wrap}.analysis-tabs button{border:1px solid #dce5f2;background:#f6f8fc;color:#587195;padding:8px 16px;border-radius:7px;cursor:pointer;min-height:40px;font-size:13px}.analysis-tabs button.selected{background:#eaf1ff;border-color:#9cbaee;color:#164bc5;font-weight:600}.transfer-note{padding:12px;background:#eef4ff;border-radius:7px;margin:0 0 18px}@media(max-width:650px){.analysis-controls{padding:17px}.smart-row{flex-direction:column}.smart-row input{font-size:16px;width:100%}.analysis-tabs{display:grid;grid-template-columns:1fr 1fr}.analysis-tabs button{padding:8px}.smart-row button{width:100%}}

/* Compact insight workspace: one input, one primary action. */
.insight-simple .ai-heading{margin-bottom:18px}.insight-simple .ai-eyebrow,.insight-simple .ai-label{display:none}.insight-simple .ai-heading h1{font-size:27px;margin:0 0 6px}.compact-tabs{margin:0 0 22px;border-bottom:1px solid #dce5f2;padding-bottom:12px;gap:10px}.compact-tabs button{background:transparent;border-color:transparent;padding:10px 16px}.compact-tabs button.selected{background:#eaf1ff;border-color:#bdd0f5}.insight-simple .ai-grid{grid-template-columns:minmax(310px,.9fr) minmax(340px,1.1fr);gap:22px;align-items:stretch}.insight-simple .ai-form{padding-top:18px}.form-intro{font-size:13px;color:#637895;line-height:1.7;margin:0 0 18px}.insight-simple textarea[name=target]{min-height:82px;height:82px}.focus-picker{margin:0 0 14px}.field-label{font-size:13px;font-weight:600;color:#36537b}.ai-focus{border:1px solid #dce5f2;background:#f7f9fd;padding:7px 12px;border-radius:7px;color:#47658c;cursor:pointer;min-height:38px;font:inherit;font-size:13px}.ai-focus[aria-pressed=true]{background:#eaf1ff;border-color:#729df1;color:#164bc5}.ai-focus:focus-visible,.compact-tabs button:focus-visible{outline:2px solid #164bc5;outline-offset:3px}.insight-simple .ai-result{min-height:400px}.insight-simple .ai-empty{padding:42px 24px}.insight-simple .ai-card-title{padding:18px 22px}.insight-simple .ai-form details{padding-top:12px}.insight-simple .ai-form summary{margin-bottom:10px}.insight-simple .ai-submit{margin-top:6px}
@media(max-width:1050px){.insight-simple .ai-grid{grid-template-columns:1fr}.insight-simple .ai-result{position:static;min-height:260px}}
@media(max-width:650px){.compact-tabs{gap:6px;margin-bottom:16px}.compact-tabs button{padding:9px 5px;font-size:12px}.insight-simple .ai-heading h1{font-size:24px}.insight-simple .ai-form{padding:18px}.insight-simple .ai-card-title{padding:16px 18px}.insight-simple .ai-grid{min-width:0}.insight-simple input{min-width:0}}

.nav-category{width:100%;margin-bottom:8px}.nav .category-button{width:100%;font-weight:600}.category-chevron{margin-left:auto;opacity:.6}.nav-children{margin:4px 0 14px 25px;padding-left:10px;border-left:1px solid #ffffff35}.nav .nav-children button{width:100%;font-size:13px;padding:10px 12px;min-height:40px;margin-bottom:4px}.nav .category-current{color:white}.pending-panel{padding:32px;max-width:760px}.pending-panel h2{font-size:20px;margin:22px 0 12px}.pending-panel p{color:#637895;line-height:1.8}
@media(max-width:650px){.nav{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;overflow:visible!important}.nav-category{min-width:0;margin:0}.nav .category-button{font-size:13px;padding:10px 8px;gap:5px}.nav-children{margin:4px 0 4px 8px;padding-left:6px}.nav .nav-children button{font-size:12px;padding:8px 6px}.category-chevron{display:none}.pending-panel{padding:22px}}
.daily-form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) 160px;gap:18px;align-items:end}.daily-form .field{margin:0}.daily-form .ai-help,.daily-form .ai-error{grid-column:1/-1}.daily-results{position:static;min-height:260px;margin-top:24px}.daily-meta,.daily-actions{padding:20px 24px}.daily-meta p{font-size:12px;color:#637895;line-height:1.8}.daily-table-wrap{overflow:auto;margin:0 24px 20px}.daily-table-wrap table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.daily-table-wrap th,.daily-table-wrap td{padding:12px;border-bottom:1px solid #e3ebf6;text-align:left}.daily-table-wrap th{background:#f3f7fe}.daily-table-wrap .daily-title{min-width:200px;max-width:300px;white-space:normal;overflow-wrap:anywhere}.daily-table-wrap a{color:#164bc5}.daily-table-wrap small{display:block;color:#70839b;margin-top:5px}.daily-actions{display:flex;gap:12px;align-items:center}.daily-results>.ai-error{margin:20px}.nav .nav-children button{white-space:normal;overflow-wrap:anywhere}@media(max-width:650px){.daily-form{grid-template-columns:1fr}.daily-table-wrap{margin:0 12px 16px}.daily-meta,.daily-actions{padding:16px 18px}.daily-actions{flex-wrap:wrap}}
.ops-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:20px}.ops-stat,.ops-panel{padding:24px;margin-bottom:20px}.ops-stat{background:#fff;border:1px solid #d9e2f1;border-radius:16px;display:flex;flex-direction:column;gap:10px;min-width:0}.ops-stat strong{font-size:21px}.ops-stat span,.ops-stat small{font-size:13px;color:#64748b}.ops-panel h2{margin:0 0 16px}.ops-panel p{line-height:1.8}.ops-panel table small{display:block;overflow-wrap:anywhere}.ops-check{display:flex;align-items:center;gap:8px}.ops-check input{width:auto!important}.ops-toggles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 24px}.ops-panel input[type=number]{max-width:100px}.ops-panel pre{white-space:pre-wrap;overflow-wrap:anywhere}.ops-panel #opsSaved{margin-left:12px}@media(max-width:800px){.ops-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-toggles{grid-template-columns:1fr}.ops-stat,.ops-panel{padding:18px}}@media(max-width:460px){.ops-stats{grid-template-columns:1fr}}

.risk-copy{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:#f7f9fd;border:1px solid #dde6f2;border-radius:10px;line-height:1.9}.risk-word{color:#b42338;background:#fff0f1}.daily-meta .risk-copy{margin-bottom:18px}

#activationForm{width:min(460px,100%);padding:30px;background:#fff;border:1px solid #d9e3f5;border-radius:20px;box-shadow:0 14px 50px #12347a0b}#activationForm h1{font-size:26px;margin-bottom:14px}#activationForm label{display:block;margin:16px 0 8px;font-size:14px}#activationForm input{width:100%;min-height:46px;border:1px solid #ccd7eb;border-radius:9px;padding:10px 12px;font:inherit}#activationForm small{display:block;color:#637895;font-size:12px;margin-top:6px}#activationForm .btn{width:100%;margin:14px 0}#activateError,#inviteError{color:#b42338}#newInviteCodes{width:100%;font-family:monospace}.member-setting input[type=number]{max-width:130px}

/* Company artwork kept intact; frame removes surrounding transparent whitespace. */
.company-logo{display:inline-block;position:relative;width:42px;height:42px;flex:0 0 42px;overflow:hidden;border-radius:0;background:transparent;vertical-align:middle}
.company-logo img{position:absolute;width:90px;height:90px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%);object-fit:contain}
.login-mark{display:flex;align-items:center;gap:11px}
@media(max-width:650px){.sidebar .company-logo{width:34px;height:34px;flex-basis:34px}.sidebar .company-logo img{width:74px;height:74px}}

/* White logo on the blue sidebar; original artwork on light auth pages. */
.sidebar .company-logo img{filter:brightness(0) invert(1)}

/* Login landing footer. It disappears once the authenticated app shell is shown. */
.site-compliance {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 24px calc(8px + env(safe-area-inset-bottom));
  color: #71839d;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
}

body:not(.auth-pending) .site-compliance {
  display: none;
}

.site-compliance a {
  color: inherit;
  text-decoration: none;
}

.site-compliance a:hover {
  color: #315db0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-compliance span + span::before {
  content: "·";
  margin-right: 14px;
  color: #a2afbf;
}

@media (max-width: 650px) {
  .site-compliance {
    gap: 10px;
    min-height: 34px;
    padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
    font-size: 10.5px;
  }

  .site-compliance span + span::before {
    margin-right: 10px;
  }
}

.sidebar-points {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 3px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #c5d8ff;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}

.sidebar-points.invitation-points {
  white-space: nowrap;
}

.sidebar-points span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-points.invitation-points strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sidebar-points small {
  margin-left: auto;
  color: #c5d8ff;
  font-size: 10px;
  white-space: nowrap;
}

.sidebar-points:hover,
.sidebar-points:focus-visible {
  border-color: rgba(255, 255, 255, .46);
  background: rgba(255, 255, 255, .18);
  outline: none;
}

.sidebar-points:focus-visible {
  box-shadow: 0 0 0 2px #91b9ff;
}

.points-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.points-summary article {
  padding: 13px 14px;
  border: 1px solid #dce7f7;
  border-radius: 10px;
  background: #f7faff;
}

.points-summary span,
.points-summary small,
.points-summary strong {
  display: block;
}

.points-summary span {
  color: #6e83a0;
  font-size: 11px;
}

.points-summary strong {
  margin: 4px 0 3px;
  color: #174ec2;
  font-size: 24px;
  line-height: 1.1;
}

.points-summary small {
  color: #7b8da5;
  font-size: 10px;
  line-height: 1.45;
}

.points-meta {
  margin: 0 0 12px;
  color: #607793;
  font-size: 12px;
  line-height: 1.7;
}

.points-zero {
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #f2d8bd;
  border-radius: 9px;
  background: #fffaf3;
  color: #875b23;
  font-size: 12px;
  line-height: 1.7;
}

.points-section {
  margin-top: 16px;
}

.points-section h3 {
  margin: 0 0 9px;
  color: #27466e;
  font-size: 14px;
}

.points-rules {
  overflow: hidden;
  border: 1px solid #e1e9f4;
  border-radius: 9px;
}

.points-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-top: 1px solid #edf2f8;
  color: #435f84;
  font-size: 12px;
}

.points-rule:first-child {
  border-top: 0;
}

.points-rule strong {
  color: #174ec2;
  white-space: nowrap;
}

.points-record-list {
  display: grid;
  gap: 7px;
}

.points-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e3ebf6;
  border-radius: 9px;
  background: #fbfdff;
}

.points-record-main {
  min-width: 0;
}

.points-record-main strong,
.points-record-main small {
  display: block;
}

.points-record-main strong {
  color: #345579;
  font-size: 12px;
}

.points-record-main small {
  margin-top: 3px;
  color: #7a8ca4;
  font-size: 10px;
  line-height: 1.45;
}

.points-record-delta {
  flex: none;
  color: #a7464d;
  font-size: 12px;
  font-weight: 700;
}

.points-record-delta.positive {
  color: #167354;
}

.points-empty {
  padding: 16px;
  border: 1px dashed #cfdbea;
  border-radius: 9px;
  color: #74869e;
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
}

.sidebar .side-footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 0;
  align-items: center;
}

@media (min-width: 651px) {
  .sidebar .nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 2px;
  }

  .sidebar .side-bottom {
    flex: 0 0 auto;
  }
}

.sidebar-account-copy {
  display: contents;
}

.sidebar-account-copy > b {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.sidebar-account-copy .sidebar-points {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.sidebar-account-copy .sidebar-account-actions {
  grid-column: 2;
  grid-row: 3;
}

.sidebar .side-footer .avatar {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: center;
}

@media (max-width: 650px) {
  .points-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .points-summary article:last-child {
    grid-column: 1 / -1;
  }
}

.sidebar-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.sidebar-account-actions button {
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-account-actions button:hover,
.sidebar-account-actions button:focus-visible {
  background: rgba(255, 255, 255, .18);
}

.sidebar-account-actions .membership-action {
  border-color: #fff;
  background: #fff;
  color: #174ec2;
  font-weight: 700;
}

.sidebar-account-actions .membership-action:hover,
.sidebar-account-actions .membership-action:focus-visible {
  background: #edf4ff;
}

.member-order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.member-order-summary span {
  padding: 6px 10px;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  background: #f6f9fe;
  color: #567091;
  font-size: 12px;
}

.member-access-meta {
  margin-top: 5px !important;
  color: #607793 !important;
  font-size: 12px;
  line-height: 1.7;
}

.access-grant-dialog {
  width: min(680px, calc(100vw - 24px));
}

.access-user-summary {
  padding: 13px 15px;
  border: 1px solid #dce7f7;
  border-radius: 9px;
  background: #f7faff;
}

.access-user-summary strong {
  color: #27466e;
  overflow-wrap: anywhere;
}

.access-user-summary p {
  margin-top: 5px;
  color: #627995;
  font-size: 12px;
  line-height: 1.7;
}

.access-plan-fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.access-plan-fieldset legend {
  margin-bottom: 10px;
  color: #36537b;
  font-size: 13px;
  font-weight: 700;
}

.access-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.access-plan-choice {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dce5f2;
  border-radius: 9px;
  background: #fff;
  color: #36537b;
  cursor: pointer;
}

.access-plan-choice:has(input:checked) {
  border-color: #729df1;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px #bdd0f5;
}

.access-plan-choice:focus-within {
  outline: 2px solid #164bc5;
  outline-offset: 2px;
}

.access-plan-choice input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #164bc5;
}

.access-plan-choice span,
.access-plan-choice strong,
.access-plan-choice small {
  display: block;
  min-width: 0;
}

.access-plan-choice strong {
  font-size: 13px;
  line-height: 1.45;
}

.access-plan-choice small {
  margin-top: 4px;
  color: #6b809c;
  font-size: 11px;
  line-height: 1.55;
}

.access-custom-fields {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e0e8f4;
  border-radius: 9px;
  background: #fbfcff;
}

.access-custom-fields[hidden] {
  display: none;
}

.access-custom-fields label {
  color: #415b7d;
  font-size: 12px;
  font-weight: 600;
}

.access-custom-fields input {
  margin-top: 6px;
}

.access-grant-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid #dce7f7;
  border-radius: 9px;
  background: #f7faff;
}

.access-grant-summary span,
.access-grant-summary strong {
  display: block;
}

.access-grant-summary span {
  color: #70839b;
  font-size: 11px;
}

.access-grant-summary strong {
  margin-top: 3px;
  color: #174ec2;
  font-size: 15px;
}

.access-grant-summary p {
  grid-column: 1 / -1;
  color: #667d99;
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 650px) {
  .access-plan-grid,
  .access-grant-summary {
    grid-template-columns: 1fr;
  }
}

.member-order-row {
  display: grid;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid #e8eef7;
}

.member-order-row:first-of-type {
  padding-top: 0;
}

.member-order-row:last-child {
  border-bottom: 0;
}

.member-order-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-order-row strong {
  color: #27476f;
  font-size: 14px;
}

.member-order-row p {
  margin: 0;
  color: #71849f;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.member-order-status {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3fa;
  color: #5d7391;
  font-size: 11px;
  font-weight: 700;
}

.member-order-status.good {
  background: #ebf8f2;
  color: #177557;
}

.member-order-status.warn {
  background: #fff6e8;
  color: #966318;
}

.member-order-status.bad {
  background: #fff0f1;
  color: #a33a45;
}

.member-order-empty {
  padding: 34px 18px;
  border: 1px dashed #d5e1f2;
  border-radius: 10px;
  color: #6f829c;
  text-align: center;
  line-height: 1.8;
}

.member-order-empty p {
  margin: 6px 0 0;
}

.point-cost-hint {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 42px;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #dce7f7;
  border-radius: 9px;
  color: #5f7594;
  background: #f6f9fe;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.point-cost-hint strong {
  color: #164bc5;
  font-size: 15px;
  line-height: 1;
}

#createForm > #submitButton {
  width: 100%;
}

.daily-form .point-cost-hint {
  grid-column: 1 / -1;
  margin-top: 0;
}
