:root {
  --paper: #f4f0e8;
  --ink: #171410;
  --muted: #6f675c;
  --line: #1f1a14;
  --soft-line: #d8d0c4;
  --panel: #fffaf0;
  --field: #fbf7ef;
  --accent: #d94a2b;
  --accent-dark: #9f2d19;
  --quiet: #ece4d7;
  --ok: #226c42;
  --danger: #b63a2f;
  --shadow: 10px 10px 0 #171410;
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,20,16,.045) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(180deg, rgba(23,20,16,.035) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.brand {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, p { margin: 0; }
h1 {
  max-width: 680px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: .92;
  letter-spacing: 0;
  font-weight: 900;
}
h2 {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}
p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.btn,
button {
  min-height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover,
button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}
.btn:active,
button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--line);
}
.btn.ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn.full {
  width: 100%;
  height: 46px;
  background: var(--accent);
  color: #fffaf0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}
label span { color: var(--muted); }
input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  background: #fff;
  box-shadow: 4px 4px 0 var(--accent);
}
textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.5;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-x: hidden;
}
.login-stage {
  width: min(1080px, 100%);
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(320px, 1fr);
  align-items: stretch;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.login-plate {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: 26px;
  border-right: 2px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(23,20,16,.12) 49% 51%, transparent 51%),
    var(--quiet);
}
.plate-no {
  align-self: center;
  font-family: var(--mono);
  font-size: clamp(58px, 10vw, 132px);
  line-height: .82;
  font-weight: 900;
  letter-spacing: -.04em;
}
.plate-line {
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 30px);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.plate-copy {
  margin-top: 18px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .08em;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
}
.login-kicker {
  width: fit-content;
  margin-bottom: 22px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.login-card p {
  max-width: 360px;
  margin-top: 18px;
}
.login-card form {
  display: grid;
  gap: 15px;
  max-width: 380px;
  margin-top: 34px;
}
.error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.account-sheet {
  width: min(920px, calc(100% - 36px));
  margin: 42px auto;
}
.identity-head,
.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.identity-head h1,
.topline h1 {
  margin-top: 12px;
}
.id-ticket {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.ticket-code {
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-right: 2px solid var(--line);
  background: var(--accent);
  color: #fffaf0;
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 900;
}
.ticket-main {
  min-width: 0;
  padding: 30px 34px;
  border-bottom: 2px solid var(--line);
}
.ticket-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}
.ticket-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 6vw, 68px);
  line-height: .95;
  font-weight: 950;
}
.ticket-main em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-family: var(--mono);
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.ticket-grid dt,
.ticket-grid dd {
  margin: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}
.ticket-grid dt {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.ticket-grid dd {
  font-weight: 850;
  overflow-wrap: anywhere;
}
.quick-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}
.quick-strip span {
  color: var(--muted);
  font-size: 13px;
}

.service-sheet {
  width: min(1080px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 36px auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.service-mark {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: 26px;
  border-right: 2px solid var(--line);
  background: var(--quiet);
}
.service-code {
  align-self: center;
  font-family: var(--mono);
  font-size: clamp(48px, 8vw, 96px);
  line-height: .85;
  font-weight: 950;
  letter-spacing: -.05em;
}
.service-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 76px);
}
.service-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 900;
}
.service-main > p:not(.service-kicker) {
  max-width: 560px;
  margin-top: 18px;
}
.service-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  margin: 30px 0 0;
  border: 2px solid var(--line);
}
.service-grid dt,
.service-grid dd {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.service-grid dt {
  border-right: 1px solid var(--line);
  background: var(--quiet);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.service-grid dd {
  font-weight: 850;
}
.service-grid dt:nth-last-child(2),
.service-grid dd:last-child {
  border-bottom: 0;
}
.service-main .actions {
  margin-top: 24px;
}

.shell {
  width: min(1380px, calc(100% - 32px));
  margin: 26px auto 42px;
}
.admin-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.admin-head {
  grid-column: 1 / -1;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notice {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  font-weight: 850;
}
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.err { border-color: var(--danger); color: var(--danger); }
.notice.secret {
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}
.notice code {
  font-family: var(--mono);
  font-weight: 900;
}
.panel {
  min-width: 0;
  border: 2px solid var(--line);
  background: var(--panel);
  padding: 18px;
  box-shadow: 6px 6px 0 var(--line);
}
.password-panel {
  position: sticky;
  top: 18px;
}
.password-panel .grid-form {
  grid-template-columns: 1fr 1fr;
}
.password-panel .grid-form .btn {
  grid-column: 1 / -1;
  width: 100%;
}
.users-panel,
.apps-panel,
.logs-panel {
  grid-column: 2;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.grid-form .wide { grid-column: span 2; }
.app-form {
  grid-template-columns: 150px 220px minmax(260px, 1fr) auto;
}
.app-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.app-guide div {
  min-width: 0;
  border: 1.5px solid var(--line);
  background: var(--quiet);
  padding: 10px 12px;
}
.app-guide b,
.app-guide span {
  display: block;
}
.app-guide b {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 950;
}
.app-guide span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.integration-tutorial {
  margin-bottom: 16px;
  border: 2px solid var(--line);
  background: var(--field);
}
.tutorial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  background: var(--quiet);
}
.tutorial-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}
.tutorial-head span {
  color: var(--ok);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tutorial-grid > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tutorial-grid > div:nth-child(2n) {
  border-right: 0;
}
.tutorial-grid > div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.tutorial-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 950;
}
.tutorial-grid ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.tutorial-grid code {
  display: block;
  margin-top: 6px;
  padding: 7px 8px;
  border: 1px solid var(--soft-line);
  background: #fff;
  overflow-wrap: anywhere;
  white-space: normal;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}
.tutorial-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.app-cards {
  display: grid;
  gap: 14px;
}
.app-card {
  border: 2px solid var(--line);
  background: var(--field);
}
.app-card details {
  display: block;
}
.app-card summary {
  cursor: pointer;
  list-style: none;
}
.app-card summary::-webkit-details-marker {
  display: none;
}
.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 2px solid var(--line);
  background: var(--quiet);
}
.app-card-head b,
.app-card-head span {
  display: block;
}
.app-card-head b {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.app-card-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.app-badges .badge {
  margin-top: 0;
}
.toggle-badge {
  color: var(--ink);
  background: var(--panel);
}
.app-card details[open] .toggle-badge {
  color: var(--accent-dark);
}
.app-card details[open] .toggle-badge {
  font-size: 0;
}
.app-card details[open] .toggle-badge::after {
  content: "收起接入信息";
  font-size: 12px;
}
.app-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 2px solid var(--line);
}
.app-config > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-config > div:nth-child(2n) {
  border-right: 0;
}
.app-config > div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.app-config > .full-row {
  grid-column: 1 / -1;
  border-right: 0;
}
.app-config span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.app-config code {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}
.copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.copy-line button,
.app-config > .full-row > button {
  min-height: 32px;
  padding: 0 10px;
  background: var(--quiet);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
  white-space: nowrap;
}
.secret-code {
  color: var(--accent-dark);
}
.copy-textarea {
  min-height: 150px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
}
.app-edit-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
}
.table-wrap {
  overflow: auto;
  border: 2px solid var(--line);
  background: var(--panel);
}
table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}
.users-panel table {
  min-width: 720px;
}
.apps-panel table {
  min-width: 980px;
}
th,
td {
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}
th:last-child,
td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
td b { font-weight: 900; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1.5px solid currentColor;
  font-size: 12px;
  font-weight: 900;
}
.badge.active { color: var(--ok); background: #eef6ee; }
.badge.disabled { color: var(--muted); background: var(--quiet); }
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.row-actions form,
.redirect-form,
.access-form {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 0;
}
.redirect-form label {
  width: 100%;
}
.reset-form input {
  width: 132px;
  min-height: 34px;
}
.redirect-form textarea {
  width: min(520px, 100%);
  min-height: 64px;
  font-size: 12px;
}
.access-form textarea {
  width: min(230px, 22vw);
  min-height: 64px;
  font-size: 12px;
}
.redirect-form button,
.access-form button,
.row-actions button {
  min-height: 34px;
  padding: 0 11px;
  background: var(--quiet);
  color: var(--ink);
}
button.danger {
  background: var(--danger);
  color: #fffaf0;
}
small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .login-stage {
    grid-template-columns: 1fr;
  }
  .login-plate {
    min-height: 260px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .service-sheet {
    grid-template-columns: 1fr;
  }
  .service-mark {
    min-height: 240px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
  .users-panel,
  .apps-panel,
  .logs-panel {
    grid-column: auto;
  }
  .password-panel {
    position: static;
  }
  .grid-form,
  .app-form {
    grid-template-columns: 1fr 1fr;
  }
  .app-guide,
  .tutorial-grid,
  .app-config,
  .app-edit-row {
    grid-template-columns: 1fr;
  }
  .tutorial-head {
    flex-direction: column;
  }
  .tutorial-grid > div,
  .tutorial-grid > div:nth-child(2n),
  .tutorial-grid > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tutorial-grid > div:last-child {
    border-bottom: 0;
  }
  .app-config > div,
  .app-config > div:nth-child(2n),
  .app-config > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .app-config > div:last-child {
    border-bottom: 0;
  }
  .grid-form .wide {
    grid-column: 1 / -1;
  }
  .redirect-form,
  .access-form {
    flex-direction: column;
  }
  .redirect-form textarea,
  .access-form textarea {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 28px 28px;
  }
  .login-body {
    padding: 16px;
  }
  .login-stage,
  .id-ticket,
  .panel {
    box-shadow: 5px 5px 0 var(--line);
  }
  .login-card {
    padding: 28px 20px;
  }
  .identity-head,
  .topline,
  .quick-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .id-ticket {
    grid-template-columns: 1fr;
  }
  .service-sheet {
    width: min(100% - 24px, 100%);
    margin-top: 18px;
    box-shadow: 5px 5px 0 var(--line);
  }
  .service-main {
    padding: 26px 20px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid dt {
    border-right: 0;
  }
  .ticket-code {
    grid-row: auto;
    min-height: 96px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
  .ticket-main {
    padding: 24px 20px;
  }
  .ticket-grid {
    grid-template-columns: 1fr;
  }
  .ticket-grid dt,
  .ticket-grid dd {
    border-right: 0;
  }
  .grid-form,
  .app-form {
    grid-template-columns: 1fr;
  }
  .app-card-head,
  .app-edit-row .row-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-badges {
    justify-content: flex-start;
  }
  .shell,
  .account-sheet {
    width: min(100% - 24px, 100%);
    margin-top: 18px;
  }
}

.password-panel .grid-form {
  grid-template-columns: 1fr 1fr;
}
.password-panel .grid-form .btn {
  grid-column: 1 / -1;
  width: 100%;
}
.users-panel table {
  min-width: 720px;
}
.apps-panel table {
  min-width: 980px;
}

/* ===== Yi助手-记账本 管理页面 ===== */
.yi-api-panel { background: #f0f7ff; border: 1px solid #c8e1ff; }
.yi-api-list { display: flex; flex-direction: column; gap: 12px; }
.yi-api-list > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.yi-api-list > div > span { min-width: 120px; color: #555; font-size: 14px; }
.yi-api-list .copy-line { flex: 1; display: flex; gap: 8px; align-items: center; min-width: 300px; }
.yi-api-list code { background: #fff; padding: 6px 10px; border-radius: 6px; border: 1px solid #d0e3f7; flex: 1; font-size: 13px; word-break: break-all; }

.yi-form { max-width: 800px; }
.yi-form label { font-size: 14px; }
.yi-form input[type="text"], .yi-form input:not([type]), .yi-form textarea { width: 100%; padding: 8px 12px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 14px; }
.yi-form textarea { resize: vertical; font-family: inherit; }

.yi-ai-group { background: #fafbfc; border: 1px solid #e1e4e8; border-radius: 8px; padding: 16px; margin-bottom: 16px; grid-column: 1 / -1; }
.yi-ai-group h3 { margin: 0 0 12px 0; font-size: 15px; color: #24292f; }
.yi-ai-group label { margin-bottom: 8px; }

.yi-guide-panel { background: #fffbe6; border: 1px solid #ffe58f; }
.yi-guide-list { display: flex; flex-direction: column; gap: 12px; }
.yi-guide-list > div { display: flex; gap: 12px; align-items: flex-start; }
.yi-guide-list b { min-width: 100px; color: #614700; }
.yi-guide-list span { color: #874d00; font-size: 14px; line-height: 1.5; }

.yi-version-panel .muted, .yi-ai-panel .muted { font-size: 13px; color: #6a737d; }

/* ===== Kai 桌面助手授权管理 ===== */
.license-admin-shell { grid-template-columns: 1fr; }
.license-create-panel, .license-list-panel { grid-column: 1 / -1; }
.license-form { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.license-form .wide { grid-column: 1 / -1; }
.license-secret { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.license-secret code { padding: 8px 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.license-item { padding: 18px 0; border-top: 2px solid var(--line); }
.license-item:first-of-type { border-top: 0; }
.license-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.license-item-head h3 { margin: 0 0 5px; }
.license-actions { margin: 10px 0 14px; }
.license-item table { min-width: 900px; }
@media (max-width: 980px) {
  .license-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .license-form { grid-template-columns: 1fr; }
  .license-item-head { flex-direction: column; }
}
