/* /account (Мои лиценци). Uses the site look of /style.css. No inline styles: the page CSP allows styles from this site only. */
#acct { max-width: 860px; margin: 0 auto; padding: 24px 20px 48px; text-align: left; line-height: 1.5; }
#acct h2 { color: #e6e6e6; font-size: 1.6em; margin: .2em 0 .6em; }
#acct h3 { color: #e6e6e6; font-size: 1.2em; margin: 1.6em 0 .6em; border-bottom: 1px solid #444; padding-bottom: 4px; }
#acct section { padding: 0; }
/* One language at a time: html lang="mk" shows the .mk parts, lang="en" the .en parts (account.js sets it). */
html[lang="mk"] .en, html[lang="en"] .mk { display: none !important; }
.lang-switch { text-align: right; margin: 0 0 4px; }
.lang-switch button { min-height: 30px; padding: 2px 10px; font-size: .9em; }
.lang-switch button[aria-pressed="true"] { font-weight: bold; }
.status { min-height: 1.4em; }
.status.bad { color: #f0a0a0; }
.who { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #9a9a9a; }
button { min-height: 36px; padding: 4px 14px; font-size: 1em; cursor: pointer; }
button:disabled { cursor: default; }
.licence { border: 1px solid #555; border-radius: 6px; padding: 12px 16px; margin: 0 0 14px; }
.licence dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 16px; margin: 0; }
.licence dt { color: #b5b5b5; }
.licence dd { margin: 0; color: #e6e6e6; }
.key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key code { font-family: Consolas, 'Courier New', monospace; font-size: 1.05em; background: #111; color: #e6e6e6; padding: 4px 8px;
  border-radius: 4px; word-break: break-all; user-select: all; }
.state-active { color: #9fe0a8; }
.state-trial { color: #e6e6e6; }
.state-expired, .state-suspended, .state-revoked { color: #f0a0a0; }
.scroll { overflow-x: auto; }
#orders { border-collapse: collapse; width: 100%; font-size: .95em; }
#orders th, #orders td { border-bottom: 1px solid #444; padding: 6px 8px; text-align: left; vertical-align: top; }
#orders th { color: #b5b5b5; font-weight: normal; }
.mono { font-family: Consolas, 'Courier New', monospace; white-space: nowrap; }
#firm fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 8px 16px; align-items: center; }
#firm fieldset:disabled { opacity: .7; }
#firm input:not([type=checkbox]), #firm select { width: 100%; padding: 6px 8px; font-size: 1em; background: #111; color: #e6e6e6; border: 1px solid #555; border-radius: 4px; }
#firm label.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; }
#firm label.check input { width: 18px; height: 18px; margin-top: 3px; }
@media (max-width: 600px) {
  #acct { padding: 16px 12px 40px; }
  .licence dl, #firm fieldset { grid-template-columns: 1fr; }
}
/* Own licences (lane L4b): key shown one time, computers, offline activation, my data. */
.key.once { margin-top: 8px; padding: 8px; border: 1px solid #9fe0a8; border-radius: 4px; }
.status.bad, .small.bad { color: #f0a0a0; }
.state-grace { color: #f0d090; }
.state-closed { color: #f0a0a0; }
table.pcs { border-collapse: collapse; width: 100%; font-size: .95em; margin: 8px 0; }
table.pcs th, table.pcs td { border-bottom: 1px solid #444; padding: 4px 8px; text-align: left; vertical-align: top; }
table.pcs th { color: #b5b5b5; font-weight: normal; }
/* The file input is hidden but stays in the tab order; its label looks like a button and shows the page language. */
.own-offline input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick { position: relative; display: inline-block; margin-top: 6px; padding: 6px 14px; border: 1px solid #888; border-radius: 4px;
  background: #e6e6e6; color: #111; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid #9fe0a8; outline-offset: 2px; }
.offline-download { display: inline-block; margin-top: 6px; }
.licence dt, .licence dd { min-width: 0; }   /* a wide PC table scrolls in its box, it does not widen the page */
/* Test buy flow (test accounts only). */
#buy fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 8px 16px; align-items: center; }
#buy input, #buy select { width: 100%; padding: 6px 8px; font-size: 1em; background: #111; color: #e6e6e6; border: 1px solid #555; border-radius: 4px; }
#buy select:disabled { opacity: .5; }
.proforma { border: 1px dashed #f0d090; border-radius: 6px; padding: 12px 16px; margin: 12px 0; }
.proforma dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 6px 16px; margin: 8px 0; }
.proforma dt, .proforma dd { min-width: 0; margin: 0; }
.test-notice { color: #f0d090; font-weight: bold; }
@media (max-width: 600px) { #buy fieldset, .proforma dl { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden; }
  #proforma, #proforma * { visibility: visible; }
  #proforma { position: absolute; left: 0; top: 0; border: 0; color: #000; }
  #proforma button { display: none; }
}

/* One account system (2026-11-17): the beta part, Show my data and Delete my data. */
#beta .licence dl { margin-bottom: 8px; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; }
button.danger { border: 1px solid #f0a0a0; color: #f0a0a0; background: #2a1414; }
.my-data { white-space: pre-wrap; word-break: break-word; max-height: 28em; overflow: auto; background: #111; color: #e6e6e6;
  border: 1px solid #555; border-radius: 4px; padding: 8px; font-family: Consolas, 'Courier New', monospace; font-size: .9em; }