/* The account, license and admin pages: Operate mode in the same dim room. Surfaces step up from the void;
   a lit point says what is active. */

.acct-title { margin-bottom: 0.5rem; }
.flash { min-height: 1.5rem; margin-bottom: 1rem; font-size: 0.9375rem; color: var(--text-2); }
.flash.ok { color: var(--text); }
.flash.bad { color: #ff9a9a; }
.top-gap { margin-top: 1rem; }

/* signed out */
#view-auth .lead { margin-bottom: 1.5rem; }
.auth-panel { max-width: 30rem; padding: 1.5rem; }
#auth-notice { max-width: 30rem; margin-bottom: 1rem; }
#auth-notice code { color: var(--now); }
.seg { display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1.25rem; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); }
.seg [role="tab"] { height: 2rem; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 400 0.8125rem/1 var(--sans); cursor: pointer; transition: background var(--t-state) var(--ease), color var(--t-state) var(--ease); }
.seg [role="tab"]:hover { color: var(--text); }
.seg [role="tab"][aria-selected="true"] { background: var(--raised); color: var(--now); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.form { display: grid; gap: 1.1rem; }
.form .actions { margin-top: 0.25rem; }
.sub-form { margin-top: 1.25rem; padding: 1.25rem; border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface); max-width: 32rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.row .input { flex: 1 1 14rem; min-width: 0; }
.input.code { max-width: 12rem; font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }

/* signed in */
#verify-notice { margin-bottom: 2rem; display: grid; gap: 0.75rem; }
.acct-grid { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.acct-toc { position: sticky; top: calc(var(--bar) + 1.5rem); display: grid; gap: 0.15rem; }
.acct-toc a { padding: 0.45rem 0.75rem; border-radius: 10px; color: var(--text-2); font-size: 0.875rem; text-decoration: none; }
.acct-toc a:hover { background: var(--raised); color: var(--text); }
.acct-main { min-width: 0; max-width: 48rem; }
.sec-block { padding: 0 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--hairline); scroll-margin-top: calc(var(--bar) + 1rem); }
.sec-block:last-child { border-bottom: 0; margin-bottom: 0; }
.sec-block > .title { margin-bottom: 1rem; }
.lic-intro { margin-bottom: 1.25rem; }

/* downloads */
.dl-list { list-style: none; margin: 1.25rem 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.dl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 1rem; padding: 0.35rem 0.35rem 0.35rem 0; }
.dl { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid var(--hairline); background: var(--float); color: var(--text); text-decoration: none; transition: background var(--t-state) var(--ease), border-color var(--t-state) var(--ease); }
.dl:hover { background: var(--raised); border-color: rgba(255, 255, 255, 0.2); color: var(--now-hover); }
.dl svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--now); }
.dl-text { display: grid; gap: 0.1rem; }
.dl-text b { font-weight: 600; font-size: 0.9375rem; }
.dl-text .dim { font-size: 0.8125rem; }
.sum { font-size: 0.8125rem; color: var(--text-2); max-width: 20rem; }
.sum summary { cursor: pointer; }
.sum code { display: block; margin-top: 0.35rem; font-size: 0.6875rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--text); }
.howto { margin-top: 1.5rem; border-top: 1px solid var(--hairline); padding-top: 1rem; }
.howto summary { cursor: pointer; font-weight: 500; }
.howto-body { display: grid; gap: 0.5rem; margin-top: 1rem; max-width: 60ch; font-size: 0.9375rem; line-height: 1.65; color: var(--text-2); }
.howto-body h3 { margin-top: 0.75rem; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.howto-body b { color: var(--text); font-weight: 600; }
.redeem { max-width: 34rem; }

/* a license */
.lic-list { display: grid; gap: 1.25rem; }
.lic { position: relative; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--hairline); background: var(--float); transition: border-color 0.3s var(--ease); }
.lic.is-new { border-color: rgba(244, 247, 255, 0.45); }
.lic.is-off .lic-plan { color: var(--text-2); }
.lic-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.lic-plan { font-family: var(--display); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--now); }
.lic-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.875rem; }
.lic-seats { text-align: right; font-size: 0.875rem; }
.lic-seats .num { font-family: var(--display); font-weight: 300; font-size: 2.25rem; line-height: 1; color: var(--now); }
.lic .kv { margin-bottom: 1.25rem; }
.reveal, .keybox, .confirm { display: grid; gap: 0.75rem; justify-items: start; margin: 0 0 1.25rem; padding: 1.1rem 1.2rem; border-radius: 12px; border: 1px solid var(--hairline-strong); background: var(--surface); }
.key-text { font-family: var(--mono); font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.25rem); letter-spacing: 0.06em; color: var(--now); overflow-wrap: anywhere; }
.key-text:focus { outline: none; }
.lic-actions { margin-bottom: 0.5rem; }
.confirm { margin-top: 0.75rem; }
.comp-title { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.comps { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.comps li { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0; border-top: 1px solid var(--hairline); }
.comps li:first-child { border-top: 0; }
.comps li.idle b { color: var(--text-2); }
.comp-info { display: grid; gap: 0.15rem; flex: 1; min-width: 0; }
.comp-info b { font-weight: 500; font-size: 0.9375rem; overflow-wrap: anywhere; }
.comp-info .dim { font-size: 0.8125rem; }
.claim { margin-top: 1.25rem; }
.alpha-keys { display: grid; gap: 0.6rem; justify-items: start; margin: 1rem 0 0.25rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--hairline-strong); background: var(--surface); }
#alpha-keys { white-space: pre-line; }

.buy-card { display: grid; gap: 0.75rem; justify-items: start; margin-top: 2rem; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--hairline); background: var(--float); }
.buy-title { font-family: var(--display); font-weight: 300; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--now); }
.buy-card .price { font-family: var(--display); font-weight: 300; font-size: 2rem; color: var(--now); font-variant-numeric: tabular-nums; }
.buy-card .price:empty { display: none; }

/* two-step */
.tf-state { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1rem; color: var(--text-2); }
.tf-state .lp { position: relative; top: -0.1rem; }
.steps { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--text-2); }
.steps li { padding-left: 0.25rem; }
.tf-qr-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin: 0.5rem 0 1.25rem; }
.tf-qr { padding: 0.5rem; border-radius: 12px; background: #fff; line-height: 0; }
.tf-key { display: grid; gap: 0.6rem; min-width: 0; }
.tf-secret { font-family: var(--mono); font-size: 1rem; letter-spacing: 0.08em; color: var(--now); overflow-wrap: anywhere; }
.codelist { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.codelist li { padding: 0.5rem 0.75rem; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); }
.codelist code { font-size: 0.9375rem; color: var(--now); }
.name-form { max-width: 32rem; }

@media (max-width: 860px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .acct-toc { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .acct-toc a { padding: 0.4rem 0.7rem; border: 1px solid var(--hairline); border-radius: 999px; font-size: 0.8125rem; }
}
@media (max-width: 560px) {
  .lic { padding: 1.1rem; }
  .lic-seats { text-align: left; }
  .comps li { flex-wrap: wrap; }
  .comp-info { flex-basis: calc(100% - 1.35rem); }
  .comps li .btn { margin-left: 1.35rem; }
  .dl-list li { grid-template-columns: minmax(0, 1fr); }
}

/* the license lookup page */
.lookup { margin: 2rem 0 1.5rem; padding: 1.5rem; }
@media (max-width: 560px) { .lookup { padding: 1.1rem; } }

/* checkout-test.html */
.co-card { display: grid; gap: 1.25rem; margin-top: 2rem; }
.co-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 0; }
.co-facts dt { color: var(--text-2); font-size: 0.875rem; }
.co-facts dd { margin: 0; color: var(--now); overflow-wrap: anywhere; }
@media (max-width: 30rem) { .co-facts { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } .co-facts dd { margin-bottom: 0.5rem; } }
.buy-card .test-flag { justify-self: stretch; }
