:root {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;
  color: #233541;
  background: #f4f6f7;
  font-synthesis: none;
  line-height: 1.6;
  font-size: 14px;
  --ink: #142431;
  --muted: #62717b;
  --border: #dce3e7;
  --cyan: #a1e8e3;
  --focus: #087e91;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select {
  font: inherit;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color: transparent;
}

button,a,summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .6;
}

[hidden] {
  display: none!important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

h1,h2,h3,p {
  margin-top: 0;
}

h1,h2,h3 {
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -.035em;
}

h2 {
  font-size: 19px;
  margin-bottom: 12px;
}

h3 {
  font-size: 16px;
}

p {
  margin-bottom: 12px;
}

small,.small {
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: ui-monospace,SFMono-Regular,monospace;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  background: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 23px;
  letter-spacing: -.055em;
  font-weight: 650;
  color: #fff;
}

.brand svg {
  width: 29px;
  height: 29px;
}

.brand span {
  font-size: 12px;
  border-left: 1px solid #5c6c78;
  padding-left: 12px;
  margin-left: 8px;
  color: #c6d3dc;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: var(--ink);
  color: #b8c5cf;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  z-index: 4;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #c4d0d8;
}

.sidebar nav a:hover {
  background: #203542;
}

.sidebar nav a[aria-current="page"] {
  background: #2b414e;
  color: #fff;
  box-shadow: inset 3px 0 var(--cyan);
}

.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #a8bfcd;
}

.sidebar nav a[aria-current] .nav-icon {
  color: var(--cyan);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  border-top: 1px solid #354854;
  padding-top: 22px;
  min-width: 0;
}

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #344a57;
  color: #e4efef;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.sidebar-bottom div {
  min-width: 0;
}

.sidebar-bottom p {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #e6edf1;
}

.sidebar-bottom span:not(.avatar) {
  font-size: 12px;
  color: #9cb0be;
}

.workspace-content {
  margin-left: 230px;
  padding: 44px 52px 22px;
  max-width: 1670px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.primary,.secondary,.danger,.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 19px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.primary {
  background: var(--ink);
  color: #fff;
}

.primary:hover {
  background: #29424f;
}

.secondary {
  background: #fff;
  border-color: #7b909c;
  color: #344854;
}

.secondary:hover {
  background: #f1f5f7;
}

.danger {
  color: #fff;
  background: #a33132;
}

.text-button {
  background: transparent;
  border: 0;
  min-height: 44px;
  color: #276c7c;
  padding: 8px 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 14px;
  color: #3a6375;
  font-weight: 600;
  white-space: nowrap;
}

.wide {
  width: 100%;
}

.environment {
  display: flex;
  align-items: center;
  gap: 8px 13px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #536773;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 26px;
}

.environment p {
  margin: 0;
}

.environment p:last-child {
  margin-left: auto;
}

.surface {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 2px 4px #1f354105;
}

.overview-top {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 24px;
}

.credit-hero {
  background: var(--ink);
  color: #c1d2dd;
  border-radius: 12px;
  padding: 29px 32px 25px;
  position: relative;
  overflow: hidden;
}

.credit-hero>p:first-child {
  font-size: 13px;
  margin: 0 0 11px;
}

.balance {
  font-size: 64px;
  line-height: 1.14;
  letter-spacing: -.065em;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: #fff;
  overflow-wrap: anywhere;
}

.balance small {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 450;
  margin-left: 12px;
  color: #a5c0cf;
}

.hero-action {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
  margin-top: 20px;
}

.hero-action:hover {
  background: #c1f3ef;
}

.hero-action span {
  margin-left: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 27px 0 0;
  padding-top: 22px;
  border-top: 1px solid #3a4d59;
}

.hero-stats dt {
  font-size: 12px;
  color: #b8cbd6;
}

.hero-stats dd {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  margin: 5px 0 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.hero-stats dd small {
  font-size: 12px;
  margin-left: 5px;
  color: #bfd0da;
}

.overview-bottom {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  gap: 24px;
  margin-top: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 5px;
}

.section-heading p {
  margin: 0;
}

.empty {
  text-align: center;
  padding: 35px 18px;
  color: #5f7280;
  font-size: 14px;
}

.empty strong {
  display: block;
  color: #354b58;
  font-size: 14px;
  margin-bottom: 6px;
}

.empty p {
  margin: 0;
}

.activity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid #edf1f3;
}

.activity:last-child {
  padding-bottom: 0;
}

.service-mark {
  flex: none;
  height: 38px;
  width: 38px;
  border: 1px solid #dde8ea;
  border-radius: 9px;
  background: #f2f7f8;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #396777;
}

.activity-info {
  min-width: 0;
  flex: 1;
}

.activity-info strong {
  font-size: 14px;
  display: block;
  overflow-wrap: anywhere;
}

.activity-info p {
  font-size: 12px;
  color: #5f7280;
  margin: 2px 0 0;
}

.activity-value {
  text-align: right;
  flex: none;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.activity-value .badge {
  margin-top: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  white-space: normal;
}

#history-count {
  flex-shrink: 0;
  white-space: nowrap;
}

.badge.success {
  background: #e7f3ee;
  color: #25694e;
}

.badge.warning {
  background: #fff2d8;
  color: #86500b;
}

.badge.neutral {
  background: #edf1f4;
  color: #526672;
}

.badge.danger {
  background: #f9e8e6;
  color: #963c33;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #edf1f3;
  font-size: 14px;
}

.breakdown-row span {
  overflow-wrap: anywhere;
}

.breakdown-row strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.breakdown-note {
  margin: 22px 0 0;
  font-size: 12px;
}

.callout {
  border: 1px solid #dbe5e8;
  background: #edf4f5;
  color: #3a5967;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
}

.warning.callout {
  background: #fff5e2;
  border-color: #e2c791;
  color: #7c501a;
}

.callout:empty {
  display: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  margin-top: 24px;
}

.service-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}

.service-card .service-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.service-card .service-top h2 {
  font-size: 17px;
  margin: 0;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.service-card>p {
  font-size: 14px;
  color: #637783;
  min-height: 38px;
}

.service-price {
  font-size: 22px!important;
  color: var(--ink)!important;
  font-weight: 600;
}

.service-price small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
}

.service-card button {
  width: 100%;
  margin: 10px 0 20px;
}

.service-card details {
  font-size: 12px;
  border-top: 1px solid #e8edef;
  padding-top: 16px;
}

.service-card details p {
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  color: #60747f;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #425a67;
  font-weight: 600;
}

input,select {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #7b909c;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: #273e4b;
}

input[type=checkbox],input[type=radio] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: none;
  accent-color: #245b6a;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.history-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #60717d;
  border-bottom: 1px solid var(--border);
  padding: 12px 10px;
}

.history-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #e8edef;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.history-table td:first-child {
  width: 40%;
}

.history-table strong {
  display: block;
  font-size: 14px;
}

.history-table .history-detail {
  font-size: 12px;
  color: #5f7280;
  margin: 5px 0 0;
}

.history-table .numeric {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.ledger-details {
  margin-top: 22px;
}

.ledger-row {
  font-size: 12px;
  border-bottom: 1px solid #e8edef;
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ledger-row p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #60717d;
}

.ledger-row strong {
  font-variant-numeric: tabular-nums;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 44px;
}

.product-options {
  border: 0;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.product-options legend {
  font-size: 12px;
  color: #607984;
  margin-bottom: 10px;
}

.product {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid #7b909c;
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
}

.product:has(:checked) {
  border: 2px solid #315c70;
  padding: 17px;
  background: #f2f8f9;
}

.product>span {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.product strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #243e4c;
}

.product small {
  font-size: 12px;
  font-weight: 450;
}

.product>span>span {
  font-size: 13px;
  color: #536d7c;
  white-space: nowrap;
}

.purchase-history {
  margin-top: 28px;
}

.purchase-row {
  border-top: 1px solid #e4ebee;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.purchase-row .purchase-info {
  flex: 1;
  min-width: 180px;
  overflow-wrap: anywhere;
}

.purchase-info strong {
  font-size: 14px;
}

.purchase-info p {
  font-size: 12px;
  color: #5f7280;
  margin: 4px 0 0;
}

.purchase-row details {
  width: 100%;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: #607784;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.purchase-row .button-row {
  justify-content: flex-end;
}

.purchase-row button,.purchase-row a {
  font-size: 12px;
  min-height: 40px;
  padding: 9px 12px;
}

summary {
  cursor: pointer;
  min-height: 40px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  color: #3c5a6b;
}

.settings-list {
  margin: 20px 0;
}

.settings-list>div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f3;
  font-size: 14px;
}

.settings-list dt {
  color: #5f7280;
}

.settings-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.settings-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0 10px;
}

@media(max-width:480px) {
  .settings-actions {
    flex-direction: column;
  }
}

.key-settings,.developer-tools {
  margin-top: 22px;
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 22px 0;
}

.inline-form label {
  flex: 1;
}

.key-row,.developer-purchase {
  padding: 18px 0;
  border-top: 1px solid #e4ebee;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.key-row p {
  flex: 1;
  margin: 0;
}

.key-row small {
  display: block;
  color: #5f7280;
}

.developer-tools>summary {
  font-size: 14px;
}

.developer-tools section {
  padding: 20px 0;
  border-top: 1px solid #dce5e9;
  margin-top: 22px;
}

.developer-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin: 20px 0;
}

.developer-form button {
  align-self: end;
}

.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 20px 0;
}

#secret {
  display: block;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddc69d;
  border-radius: 6px;
  overflow-wrap: anywhere;
  margin: 16px 0;
  color: #5b391a;
}

.developer-purchase p,.postpaid-tools>div p {
  font-size: 12px;
}

#usage-history {
  overflow-wrap: anywhere;
}

.developer-purchase input {
  max-width: 160px;
  margin: 12px 0;
}

.developer-purchase button {
  margin: 5px 8px 5px 0;
}

.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #5f7280;
  font-size: 12px;
}

.workspace-footer p {
  margin: 0;
  color: #405d6e;
  font-weight: 600;
}

.workspace-footer p span {
  font-weight: 400;
  margin-left: 10px;
  color: #5f7280;
}

.message {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  max-width: none;
  width: auto;
  background: #fff;
  border: 1px solid #beced7;
  border-left: 4px solid #3f7786;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  margin: 0 0 22px;
  overflow-wrap: anywhere;
}

.message:has([data-kind=error]) {
  border-left-color: #a55820;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-side {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 365px;
}

.login-card .brand {
  color: var(--ink);
}

.login-card h1 {
  font-size: 28px;
  margin-top: 20px;
}

.login-card>p {
  font-size: 14px;
}

.login-card button {
  width: 100%;
  margin-top: 12px;
}

.login-card .callout {
  margin-top: 28px;
}

.login-card #login-mode {
  margin-top: 22px;
  font-size: 12px;
}

dialog {
  border: 1px solid #c6d5dd;
  border-radius: 12px;
  padding: 30px;
  width: min(440px,calc(100% - 32px));
  color: #233541;
  box-shadow: 0 12px 60px #14243133;
}

dialog::backdrop {
  background: #14243177;
}

dialog p {
  font-size: 13px;
}

dialog .button-row {
  justify-content: flex-end;
  margin-top: 24px;
}

@media(min-width:1500px) {
  .workspace-content {
    padding-right: 70px;
    padding-left: 70px;
  }
}

@media(max-width:1150px) {
  .sidebar {
    width: 200px;
    padding: 30px 18px;
  }
  .workspace-content {
    margin-left: 200px;
    padding: 34px 30px;
  }
  .overview-top {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }
  .credit-hero {
    padding: 26px;
  }
  .overview-bottom {
    gap: 18px;
  }
  .surface {
    padding: 23px;
  }
  .balance {
    font-size: 56px;
  }
}

@media(max-width:820px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px 24px;
    gap: 12px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .sidebar .brand svg {
    width: 25px;
    height: 25px;
  }
  .sidebar-label,.sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 10px;
    gap: 0;
    min-height: 44px;
  }
  .nav-icon {
    display: none;
  }
  .workspace-content {
    margin-left: 0;
    padding: 32px 24px;
  }
  .sidebar nav a[aria-current="page"] {
    box-shadow: inset 0 -2px var(--cyan);
  }
  .overview-top {
    grid-template-columns: minmax(0,1fr);
  }
  .page-header h1 {
    font-size: 26px;
  }
  .page-header {
    margin-bottom: 22px;
  }
  .overview-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .environment p:last-child {
    margin-left: 0;
  }
  .purchase-layout {
    gap: 25px;
  }
  .login-side {
    padding: 30px;
  }
  .balance {
    font-size: 50px;
  }
}

@media(max-width:600px) {
  .sidebar {
    padding: 17px 18px 0;
    display: block;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-between;
    margin: 14px -6px 0;
    gap: 0;
  }
  .sidebar nav a {
    padding: 13px 8px;
    border-radius: 5px 5px 0 0;
    font-size: 12px;
    min-height: 48px;
  }
  .workspace-content {
    padding: 26px 18px 22px;
  }
  .page-header {
    align-items: flex-start;
    gap: 12px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .page-header button {
    font-size: 12px;
    padding: 9px 10px;
    min-height: 40px;
    max-width: 104px;
    flex: none;
  }
  .environment {
    font-size: 12px;
    row-gap: 5px;
    margin-bottom: 21px;
    align-items: flex-start;
  }
  .environment p {
    flex: 1;
    min-width: 210px;
  }
  .environment p:last-child {
    padding-left: 19px;
  }
  .overview-top,.overview-bottom,.service-grid,.purchase-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .credit-hero {
    padding: 25px 24px;
  }
  .balance {
    font-size: 56px;
  }
  .hero-stats {
    margin-top: 26px;
    gap: 8px;
  }
  .hero-stats dd {
    font-size: 21px;
  }
  .hero-stats dd small {
    font-size: 12px;
    margin-left: 3px;
  }
  .overview-bottom {
    margin-top: 20px;
  }
  .surface {
    padding: 21px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .section-heading .text-link {
    font-size: 12px;
  }
  .activity-value {
    font-size: 12px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .history-table,.history-table tbody {
    display: block;
  }
  .history-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding: 17px 0;
  }
  .history-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .history-table td:first-child {
    width: auto;
    grid-column: 1/-1;
  }
  .history-table td:nth-child(2) {
    font-size: 12px;
    color: #5f7280;
  }
  .history-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    font-size: 12px;
  }
  .history-table td:nth-child(3)::before {
    content: "消費 ";
    font-weight: 400;
    color: #5f7280;
  }
  .history-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2/4;
    align-self: end;
  }
  .product {
    padding: 16px 13px;
  }
  .product:has(:checked) {
    padding: 15px 12px;
  }
  .product strong {
    font-size: 20px;
  }
  .product small {
    font-size: 12px;
  }
  .product>span>span {
    font-size: 12px;
  }
  .purchase-history {
    margin-top: 20px;
  }
  .purchase-row .button-row {
    justify-content: flex-start;
    width: 100%;
  }
  .purchase-row .purchase-info {
    min-width: 0;
  }
  .settings-list>div {
    grid-template-columns: 100px 1fr;
    font-size: 12px;
  }
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .developer-form {
    grid-template-columns: 1fr;
  }
  .key-row {
    align-items: flex-start;
    gap: 12px;
  }
  .key-row button {
    font-size: 12px;
    padding: 10px 12px;
    flex: none;
  }
  .workspace-footer {
    font-size: 12px;
    margin-top: 30px;
  }
  .workspace-footer p span {
    display: block;
    margin: 3px 0 0;
  }
  .message {
    padding: 13px 15px;
    font-size: 12px;
  }
  .login-side {
    padding: 36px 25px;
  }
  .login-card .brand {
  color: var(--ink);
}

.login-card h1 {
    font-size: 25px;
  }
}

@media(max-width:350px) {
  .workspace-content {
    padding: 22px 12px;
  }
  .sidebar {
    padding: 16px 12px 0;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 12px 7px;
  }
  .credit-hero {
    padding: 23px 20px;
  }
  .balance {
    font-size: 48px;
  }
  .surface {
    padding: 18px;
  }
  .product>span {
    gap: 7px;
  }
  .product strong {
    font-size: 18px;
  }
  .product strong small {
    display: block;
    font-size: 12px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .hero-stats dd {
    font-size: 18px;
  }
  .settings-list>div {
    grid-template-columns: 82px 1fr;
  }
  .service-card {
    padding: 22px;
  }
  .service-top {
    flex-wrap: wrap;
  }
  .service-top .badge {
    margin-left: 51px;
  }
  .ledger-row {
    display: block;
  }
  .purchase-row {
    gap: 12px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  button,a,input,select {
    transition: background-color .15s,border-color .15s;
  }
  dialog[open] {
    animation: appear .15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (min-width: 821px) and (max-width: 1150px) {
  .sidebar .brand {
    font-size: 19px;
    gap: 8px;
  }
  .sidebar .brand svg {
    width: 25px;
    height: 25px;
  }
}

.message p {
  margin: 0;
  flex: 1;
}
.message button {
  flex: none;
  border: 0;
  background: transparent;
  color: #536773;
  width: 44px;
  height: 44px;
  font-size: 24px;
  margin: -8px -10px -8px 0;
}

.login-card .message {
  margin-top: 18px;
}

.hosted-panel {
  margin-top: 24px;
}
.hosted-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.hosted-row > div {
  flex: 1 1 180px;
  min-width: 0;
}
.hosted-row h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.hosted-row p {
  margin: 0;
}
.hosted-row button {
  flex-shrink: 0;
}
