:root {
  --ink: #18201d;
  --muted: #66706b;
  --line: #dfe4e1;
  --soft: #f4f6f5;
  --surface: #ffffff;
  --dark: #202725;
  --green: #16845b;
  --green-dark: #0e6846;
  --green-soft: #e8f5ef;
  --orange: #db6f28;
  --red: #c54242;
  --red-soft: #fbecec;
  --yellow-soft: #fff5d8;
  --shadow: 0 10px 30px rgba(25, 36, 31, .08);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--soft); }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .88em; }

.app-shell { padding-left: 248px; background: var(--soft); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 40; display: flex; flex-direction: column; background: var(--dark); color: #fff; padding: 24px 16px 16px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--green); color: #fff; font: 800 18px/1 Inter, sans-serif; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 16px; }
.brand small { color: #9aa7a1; font-size: 11px; }
.main-nav { display: grid; gap: 5px; }
.main-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border-radius: 6px; color: #b9c3be; font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: #fff; background: #2b3431; }
.main-nav a.active { color: #fff; background: var(--green); }
.nav-icon, [data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg, [data-icon] svg { width: 18px; height: 18px; stroke-width: 2; }
.account-block { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; gap: 9px; align-items: center; margin-top: auto; padding: 15px 8px 2px; border-top: 1px solid #3a4340; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #dfebe5; color: var(--green-dark); font-weight: 800; }
.avatar.small { width: 30px; height: 30px; font-size: 12px; }
.account-copy { min-width: 0; display: grid; gap: 2px; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy small { color: #9aa7a1; font-size: 10px; }
.account-block .icon-button { color: #aeb9b3; }
.account-block .icon-button:hover { color: #fff; background: #333c39; }
.mobile-header { display: none; }
.sidebar-scrim { display: none; }
.main-content { min-height: 100vh; padding: 38px 42px 64px; max-width: 1600px; margin: 0 auto; }

.page-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 28px; }
.page-header.compact { margin-bottom: 24px; }
.page-header h1 { margin-bottom: 7px; font-size: 30px; line-height: 1.2; }
.page-header p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.eyebrow { margin-bottom: 7px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 0 17px; cursor: pointer; font-weight: 700; font-size: 13px; white-space: nowrap; }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.ghost { background: #fff; border-color: var(--line); }
.button.ghost:hover { border-color: #9aa49f; }
.button.wide { width: 100%; }
.button.tiny { min-height: 31px; padding-inline: 11px; font-size: 12px; }
.icon-button { width: 34px; height: 34px; min-width: 34px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; color: #52605a; }
.icon-button:hover { background: #edf1ef; color: var(--ink); }
.icon-button.danger:hover { color: var(--red); background: var(--red-soft); }
.icon-button svg { width: 17px; height: 17px; stroke-width: 2; }

.notice { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 20px; border: 1px solid #ead59c; border-radius: 6px; font-size: 13px; }
.notice.warning { background: var(--yellow-soft); }
.notice span { color: var(--muted); }
.notice a { margin-left: auto; color: #88630c; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { min-height: 142px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; display: flex; flex-direction: column; }
.metric > span { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric > strong { margin: auto 0 5px; font-size: 26px; overflow-wrap: anywhere; }
.metric > small { color: var(--muted); font-size: 11px; }
.metric.accent { color: #fff; background: var(--dark); border-color: var(--dark); }
.metric.accent > span, .metric.accent > small { color: #b5c0bb; }

.usage-band { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 21px 22px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 3px; font-size: 16px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.section-heading > a { color: var(--green); font-size: 12px; font-weight: 700; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 28px; }
.usage-item > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 11px; }
.usage-item span { color: var(--muted); }
.usage-item b { font-weight: 700; }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 4px; overflow: hidden; background: #e8ecea; }
progress::-webkit-progress-bar { background: #e8ecea; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.split-sections { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.plain-section { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 20px; }
.compact-list { display: grid; }
.compact-list > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 57px; border-top: 1px solid #edf0ee; }
.compact-list > a:first-child { border-top: 0; }
.compact-list strong, .compact-list small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.compact-list strong { font-size: 12px; margin-bottom: 3px; }
.compact-list small { color: var(--muted); font-size: 10px; }
.compact-list b { color: var(--muted); font-size: 10px; }
.file-glyph { width: 35px; height: 35px; display: grid; place-items: center; background: #e9f1ed; color: var(--green-dark); border-radius: 5px; font-size: 8px; font-weight: 800; overflow: hidden; padding: 3px; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 57px; border-top: 1px solid #edf0ee; }
.activity-list li:first-child { border-top: 0; }
.activity-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.activity-list .event-delete { background: var(--red); }
.activity-list .event-download { background: var(--orange); }
.activity-list strong, .activity-list small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.activity-list strong { font-size: 11px; margin-bottom: 3px; }
.activity-list small, .activity-list b { color: var(--muted); font-size: 10px; }
.empty-inline { padding: 26px 4px; color: var(--muted); font-size: 13px; text-align: center; }

.upload-zone { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 12px; margin-bottom: 20px; }
.upload-zone form { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 140px auto; gap: 12px; align-items: stretch; }
.drop-target { min-height: 88px; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 12px; padding: 13px 16px; border: 1px dashed #acb8b2; border-radius: 5px; cursor: pointer; background: #fafcfb; }
.drop-target.dragging { border-color: var(--green); background: var(--green-soft); }
.drop-target input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-icon { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 6px; background: var(--green-soft); color: var(--green); }
.drop-target strong { align-self: end; font-size: 13px; overflow-wrap: anywhere; }
.drop-target small { color: var(--muted); font-size: 10px; }
.upload-zone .button { min-width: 118px; }
.upload-select { display: grid; grid-template-rows: auto 40px; align-content: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.upload-select select { width: 100%; }
.table-section { padding: 0; overflow: hidden; }
.table-section > .section-heading { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 15px; color: var(--muted); background: #f8faf9; text-align: left; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 15px; border-top: 1px solid #e9edeb; vertical-align: middle; white-space: nowrap; }
td:first-child { white-space: normal; }
th.actions, td.actions { text-align: right; }
td.actions { display: flex; justify-content: flex-end; gap: 2px; }
td.actions form { display: inline-flex; }
.file-cell, .user-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; max-width: 360px; }
.file-cell > span:last-child, .user-cell > span:last-child { min-width: 0; }
.file-cell strong, .file-cell small, .user-cell strong, .user-cell small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-cell strong, .user-cell strong { margin-bottom: 3px; font-size: 12px; }
.file-cell small, .user-cell small { color: var(--muted); font-size: 9px; }
.cell-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.search-box { display: flex; align-items: center; gap: 7px; width: 210px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.search-box svg { width: 14px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; font-size: 11px; }
.empty-state { display: grid; justify-items: center; padding: 65px 20px; text-align: center; }
.empty-state h3 { margin: 12px 0 6px; font-size: 15px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-icon { width: 48px; height: 48px; color: #92a099; }
.empty-icon svg { width: 34px; height: 34px; }
.status { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.status.success { color: var(--green-dark); background: var(--green-soft); }
.status.muted { color: #69726e; background: #edf0ee; }
.status.danger { color: #9c3030; background: var(--red-soft); }
.status.warning { color: #8a5a0a; background: var(--yellow-soft); }
.copy-link { display: inline-flex; align-items: center; gap: 7px; max-width: 170px; border: 0; background: transparent; padding: 5px; cursor: pointer; color: var(--green-dark); }
.copy-link svg { width: 14px; }

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.plan { display: flex; flex-direction: column; min-height: 410px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.plan.current { border: 2px solid var(--green); padding: 19px; }
.plan-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.plan-mode { color: var(--green); font-size: 10px; font-weight: 800; }
.plan h2 { margin: 5px 0 0; font-size: 20px; }
.plan > p { min-height: 38px; margin: 14px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 19px; }
.price strong { font-size: 26px; }
.price span { color: var(--muted); font-size: 10px; }
.feature-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid #e8ecea; flex: 1; }
.feature-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0ee; font-size: 11px; }
.feature-list span { color: var(--muted); }
.orders-section { margin-top: 20px; }

.modal { width: min(540px, calc(100vw - 30px)); max-height: calc(100vh - 30px); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 24px 70px rgba(20, 28, 25, .3); }
.modal::backdrop { background: rgba(20, 28, 25, .55); }
.modal form { padding: 22px; }
.modal-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }
.modal-header h2 { margin-bottom: 4px; font-size: 20px; }
.modal-header small { color: var(--muted); overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .stack-form label, .unlock-form label { display: grid; gap: 7px; color: #43504a; font-size: 11px; font-weight: 700; }
input, select { min-width: 0; height: 40px; border: 1px solid #ccd4d0; border-radius: 5px; padding: 0 11px; background: #fff; color: var(--ink); outline: 0; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 132, 91, .1); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.toast-stack { position: fixed; top: 18px; right: 20px; z-index: 100; display: grid; gap: 8px; width: min(390px, calc(100vw - 32px)); }
.toast { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 6px; background: var(--dark); color: #fff; box-shadow: var(--shadow); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.toast.success { border-left: 4px solid #3fc78e; }
.toast.error { border-left: 4px solid #ef6868; }
.toast button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 18px; }

.auth-shell { background: #fff; }
.auth-main { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 44%) 1fr; }
.auth-panel { width: min(390px, calc(100% - 60px)); align-self: center; justify-self: center; padding: 30px 0; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 62px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { margin-bottom: 8px; font-size: 30px; }
.auth-heading > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.stack-form { display: grid; gap: 16px; }
.stack-form .button { margin-top: 5px; }
.auth-switch { margin: 22px 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: var(--green); font-weight: 700; }
.demo-account { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.demo-account span { color: var(--muted); font-size: 10px; }
.demo-account code { font-size: 11px; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; margin: 16px; padding: 48px; border-radius: 8px; background: var(--dark); color: #fff; }
.visual-copy { position: relative; z-index: 2; max-width: 500px; display: grid; gap: 13px; }
.visual-copy span { color: #74d8b1; font: 700 11px/1 monospace; }
.visual-copy strong { font-size: 29px; line-height: 1.35; font-weight: 650; }
.storage-rack { position: relative; z-index: 2; width: min(600px, 90%); margin: auto; display: grid; gap: 13px; }
.storage-rack > div { height: 82px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border: 1px solid #48534f; border-radius: 6px; background: #29322f; box-shadow: 0 12px 20px rgba(0,0,0,.15); }
.storage-rack i { width: 9px; height: 9px; border-radius: 50%; background: #44ca91; box-shadow: 0 0 12px #44ca91; }
.storage-rack i:nth-child(2) { background: #e7a14d; box-shadow: none; }
.storage-rack b { margin-left: auto; color: #69756f; font: 700 20px/1 monospace; }
.register-visual { background: #28302d; }
.meter-art { margin: auto 0; display: grid; gap: 25px; }
.meter-art > div { width: min(600px, 95%); height: 52px; padding: 7px; background: #323c38; border: 1px solid #48534f; border-radius: 6px; }
.meter-art span { display: block; width: var(--p); height: 100%; border-radius: 3px; background: #42b982; }

.share-page { width: min(650px, calc(100% - 40px)); margin: auto; text-align: center; }
.share-brand { display: inline-flex; align-items: center; gap: 9px; position: fixed; top: 25px; left: 28px; }
.share-file-icon { width: 90px; height: 104px; display: grid; place-items: center; margin: 0 auto 26px; background: var(--green-soft); color: var(--green-dark); border: 1px solid #cbe5d9; border-radius: 7px; }
.share-file-icon span { font-size: 12px; font-weight: 800; padding: 8px; overflow-wrap: anywhere; }
.share-page h1 { font-size: 27px; margin-bottom: 12px; overflow-wrap: anywhere; }
.share-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 11px; }
.share-meta i { width: 3px; height: 3px; border-radius: 50%; background: #9ca6a1; }
.share-download { min-width: 180px; margin-top: 30px; }
.unlock-form { width: min(390px, 100%); margin: 28px auto 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; text-align: left; }
.share-foot { display: block; margin-top: 55px; color: #8b9690; }
.error-page { margin: auto; text-align: center; width: min(560px, calc(100% - 30px)); }
.error-code { display: block; color: var(--green); font-size: 90px; font-weight: 800; }
.error-page h1 { font-size: 23px; }
.error-page p { color: var(--muted); font-size: 13px; }
.error-page .button { margin-top: 16px; }
.standalone-main { min-height: 100vh; padding: 50px 42px 64px; background: #fff; }
.standalone-main > .page-header, .standalone-main > .download-console { width: min(1120px, 100%); margin-right: auto; margin-left: auto; }
.state-page { width: min(620px, calc(100% - 40px)); min-height: calc(100vh - 114px); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: auto; padding: 70px 0 50px; text-align: center; }
.state-brand { position: absolute; top: 25px; left: 28px; display: inline-flex; align-items: center; gap: 9px; }
.state-page h1 { margin-bottom: 11px; font-size: 28px; overflow-wrap: anywhere; }
.state-page > p:not(.eyebrow) { max-width: 500px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.7; }
.state-visual { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.state-404 span { font-size: 98px; font-weight: 850; color: var(--dark); }
.state-404 i { width: 76px; height: 76px; margin: 0 8px; border: 16px solid var(--green-soft); border-radius: 50%; box-shadow: inset 0 0 0 2px #b8dcca; }
.state-icon { width: 92px; height: 92px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; }
.state-icon svg { width: 42px; height: 42px; }
.expired-icon { color: #9a6813; background: var(--yellow-soft); }
.quota-icon { color: var(--red); background: var(--red-soft); }
.state-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.state-hint, .state-foot { display: inline-flex; align-items: center; gap: 7px; margin-top: 45px; color: #89938e; font-size: 10px; }
.state-hint svg { width: 14px; }
.state-fact { width: min(360px, 100%); display: flex; justify-content: space-between; margin: 25px auto 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-size: 11px; }
.state-fact span { color: var(--muted); }
.quota-facts { width: min(460px, 100%); display: grid; gap: 16px; margin: 25px auto 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; }
.quota-facts > div > span, .quota-facts > div > strong { display: block; font-size: 11px; }
.quota-facts > div > span { margin-bottom: 4px; color: var(--muted); }
.quota-facts progress { margin-top: 8px; }
.download-console { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.download-object { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-content: start; padding: 34px; }
.download-file-mark { width: 88px; height: 104px; display: grid; place-items: center; border: 1px solid #cbe5d9; border-radius: 7px; background: var(--green-soft); color: var(--green-dark); }
.download-file-mark span { padding: 6px; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.download-name h2 { margin: 10px 0 7px; font-size: 23px; overflow-wrap: anywhere; }
.download-name p { color: var(--muted); font-size: 11px; }
.object-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.object-details > div { min-width: 0; padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); }
.object-details dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.object-details dd { margin: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-action-panel { padding: 28px; border-left: 1px solid var(--line); background: #f8faf9; }
.download-shield { display: flex; gap: 11px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.download-shield > span { width: 36px; height: 36px; flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.download-shield svg { width: 19px; }
.download-shield strong, .download-shield small { display: block; }
.download-shield strong { margin-bottom: 4px; font-size: 12px; }
.download-shield small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.remaining-list { display: grid; gap: 13px; padding: 20px 0; }
.remaining-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.remaining-list span { color: var(--muted); }
.download-primary { min-height: 46px; }
.download-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.5; }
.table-tools { display: flex; align-items: center; gap: 9px; }
.compact-select { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.compact-select select { width: 150px; height: 34px; font-size: 10px; }
.expiry-cell { display: block; max-width: 130px; color: var(--muted); font-size: 10px; white-space: normal; }
.row-expired { opacity: .67; }
.icon-button:disabled { cursor: not-allowed; opacity: .35; }
.bucket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bucket-card { padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.bucket-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; }
.bucket-icon { width: 42px; height: 42px; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.bucket-icon svg { width: 20px; }
.bucket-head h2 { margin-bottom: 4px; font-size: 15px; overflow-wrap: anywhere; }
.bucket-head p { margin: 0; color: var(--muted); font-size: 9px; }
.bucket-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; border-block: 1px solid var(--line); }
.bucket-metrics > div { padding: 13px 8px; border-left: 1px solid var(--line); }
.bucket-metrics > div:first-child { border-left: 0; padding-left: 0; }
.bucket-metrics span, .bucket-metrics strong { display: block; }
.bucket-metrics span { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.bucket-metrics strong { font-size: 12px; }
.bucket-actions { display: flex; align-items: center; gap: 7px; }
.bucket-actions form { margin-left: auto; }
.toggle-field { grid-template-columns: 20px 1fr; align-items: center; }
.toggle-field input { width: 17px; height: 17px; padding: 0; }
.toggle-field small { grid-column: 2; color: var(--muted); font-weight: 400; }
.api-keys-section { margin-top: 20px; padding: 0; overflow: hidden; }
.api-keys-section > .section-heading { padding: 20px 22px 0; }
.secret-reveal { margin: 16px 22px; padding: 14px; border: 1px solid #e4c982; border-radius: 6px; background: var(--yellow-soft); }
.secret-reveal > div { display: flex; align-items: center; gap: 10px; }
.secret-reveal > div > span { width: 32px; height: 32px; color: #94640d; }
.secret-reveal p, .secret-reveal strong, .secret-reveal small { display: block; margin: 0; }
.secret-reveal strong { font-size: 11px; }
.secret-reveal small { margin-top: 3px; color: #806b3d; font-size: 9px; }
.secret-reveal > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 11px; padding: 10px; border: 1px solid #dbc37d; border-radius: 5px; background: #fff; cursor: pointer; overflow: hidden; }
.secret-reveal code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret-reveal svg { width: 15px; }
.api-endpoints { display: flex; flex-wrap: wrap; gap: 7px; padding: 15px 20px; border-top: 1px solid var(--line); background: #f8faf9; }
.api-endpoints code { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 9px; }
.public-quota { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 15px 0 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 10px; }
.public-quota strong { margin-left: 5px; color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.balance-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green-dark); font-size: 12px; font-weight: 800; }
.balance-chip:hover { border-color: #9ab7a8; }
.balance-chip svg { width: 17px; height: 17px; }
.balance-chip.large { min-height: 48px; padding-inline: 16px; }
.balance-chip.large > span { display: grid; gap: 2px; color: var(--muted); font-size: 9px; }
.balance-chip.large strong { color: var(--ink); font-size: 15px; }
.limit-chip, .security-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #cfe1d8; border-radius: 5px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.limit-chip svg, .security-chip svg { width: 15px; height: 15px; }
.section-tabs { display: flex; gap: 5px; margin: -8px 0 20px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.section-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.section-tabs a:hover { color: var(--green); border-color: var(--green); }
.section-tabs a b { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 10px; background: #e9eeeb; color: #53605a; font-size: 9px; }
.section-tabs a b.attention { background: var(--yellow-soft); color: #8a5a0a; }
#plans, #orders, #recharges, #wallet-transactions { margin-top: 20px; scroll-margin-top: 18px; }
#users { scroll-margin-top: 18px; }
.file-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.file-summary > div { min-width: 0; padding: 15px 18px; border-left: 1px solid var(--line); }
.file-summary > div:first-child { border-left: 0; }
.file-summary span, .file-summary strong { display: block; }
.file-summary span { margin-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.file-summary strong { font-size: 14px; overflow-wrap: anywhere; }
.upload-progress { grid-column: 1 / -1; padding: 8px 4px 2px; }
.upload-progress > div { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 10px; }
.upload-progress span { color: var(--muted); }
.upload-progress progress { height: 8px; }
.form-error { grid-column: 1 / -1; margin: 0; padding: 9px 11px; border-radius: 5px; background: var(--red-soft); color: var(--red); font-size: 11px; }
.field-label { display: grid; gap: 7px; color: #43504a; font-size: 11px; font-weight: 700; }
.account-overview { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(120px, .65fr)); align-items: center; margin-bottom: 20px; background: var(--dark); color: #fff; border-radius: 7px; overflow: hidden; }
.account-identity { display: flex; align-items: center; gap: 14px; padding: 22px; }
.account-identity > div { min-width: 0; }
.account-identity strong, .account-identity span, .account-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity strong { margin-bottom: 4px; font-size: 16px; }
.account-identity span, .account-identity small { color: #aeb9b3; font-size: 10px; }
.account-identity small { margin-top: 4px; }
.avatar.large { width: 50px; height: 50px; font-size: 18px; }
.account-stat { min-height: 74px; padding: 12px 18px; border-left: 1px solid #3a4340; display: flex; flex-direction: column; justify-content: center; }
.account-stat span { margin-bottom: 6px; color: #9faba5; font-size: 9px; }
.account-stat strong { font-size: 15px; overflow-wrap: anywhere; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-section { padding: 22px; }
.compact-form { max-width: 480px; }
.compact-form label > small { color: var(--muted); font-weight: 400; line-height: 1.5; }
.compact-form input:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.compact-form .button { justify-self: start; min-width: 110px; }
.button:disabled { cursor: wait; opacity: .65; }
.section-kicker { margin: 0 0 5px !important; color: var(--green) !important; font: 800 9px/1.2 "Cascadia Code", Consolas, monospace !important; }
.wallet-overview { display: grid; grid-template-columns: minmax(320px, 1.55fr) repeat(2, minmax(180px, .72fr)); margin-bottom: 20px; overflow: hidden; border: 1px solid #313a37; border-radius: 7px; background: var(--dark); color: #fff; box-shadow: 0 14px 30px rgba(25, 36, 31, .1); }
.wallet-balance { min-height: 164px; display: flex; align-items: center; gap: 19px; padding: 27px; }
.wallet-balance > span { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 7px; background: var(--green); }
.wallet-balance > span svg { width: 25px; height: 25px; }
.wallet-balance small, .wallet-balance strong, .wallet-balance p { display: block; }
.wallet-balance small { color: #b8c2bd; font-size: 11px; }
.wallet-balance strong { margin: 7px 0 8px; font-size: 32px; }
.wallet-balance p { margin: 0; color: #929f99; font-size: 10px; }
.wallet-fact { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 23px; border-left: 1px solid #3a4340; }
.wallet-fact span, .wallet-fact small { color: #aeb9b3; font-size: 10px; }
.wallet-fact strong { margin: 9px 0 6px; font-size: 20px; }
.wallet-fact .wallet-income { color: #6fe0ae; }
.wallet-fact .wallet-expense { color: #ff9b9b; }
.wallet-workspace { display: grid; grid-template-columns: minmax(440px, 1.55fr) minmax(280px, .7fr); gap: 20px; }
.wallet-recharge-panel, .recharge-guide { padding: 23px; }
.wallet-recharge-panel > .section-heading, .recharge-guide > .section-heading { align-items: flex-start; }
.recharge-form { gap: 18px; }
.amount-field { max-width: 430px; }
.amount-input { display: grid; grid-template-columns: 42px 1fr; height: 48px; border: 1px solid #ccd4d0; border-radius: 6px; overflow: hidden; background: #fff; }
.amount-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 132, 91, .1); }
.amount-input b { display: grid; place-items: center; border-right: 1px solid var(--line); background: #f8faf9; color: var(--green-dark); font-size: 16px; }
.amount-input input { height: 46px; border: 0; border-radius: 0; box-shadow: none !important; font-size: 16px; font-weight: 700; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -10px; }
.amount-presets button { min-width: 65px; height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #53605a; cursor: pointer; font-size: 11px; font-weight: 700; }
.amount-presets button:hover, .amount-presets button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.payment-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.payment-fieldset legend { margin-bottom: 8px; color: #43504a; font-size: 11px; font-weight: 700; }
.payment-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.payment-options label { position: relative; min-height: 75px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-content: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; }
.payment-options label:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.payment-options input { position: absolute; opacity: 0; pointer-events: none; }
.payment-options [data-icon] { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 5px; background: var(--soft); color: var(--green-dark); }
.payment-options [data-icon] svg { width: 16px; height: 16px; }
.payment-options b { align-self: end; font-size: 11px; }
.payment-options small { align-self: start; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.recharge-form label > small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.5; }
.form-submit-row { display: flex; align-items: center; gap: 13px; padding-top: 2px; }
.form-submit-row small { color: var(--muted); font-size: 9px; }
.wallet-process-list { display: grid; margin: 0; padding: 0; list-style: none; }
.wallet-process-list li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; min-height: 72px; align-items: start; }
.wallet-process-list li:not(:last-child)::after { content: ""; position: absolute; top: 31px; bottom: 0; left: 17px; width: 1px; background: #cfe1d8; }
.wallet-process-list li > b { position: relative; z-index: 1; width: 35px; height: 28px; display: grid; place-items: center; border-radius: 5px; background: var(--green-soft); color: var(--green-dark); font: 700 9px/1 monospace; }
.wallet-process-list strong, .wallet-process-list small { display: block; }
.wallet-process-list strong { margin: 2px 0 5px; font-size: 12px; }
.wallet-process-list small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.guide-note { display: flex; gap: 10px; margin-top: 4px; padding: 13px; border: 1px solid #e6dbb8; border-radius: 6px; background: #fffaf0; }
.guide-note > span { width: 28px; height: 28px; flex: 0 0 auto; color: #986c16; }
.guide-note strong, .guide-note small { display: block; }
.guide-note strong { margin-bottom: 4px; font-size: 10px; }
.guide-note small { color: #7c704f; font-size: 9px; line-height: 1.5; }
.record-jumps { display: flex; gap: 9px; margin: 20px 0 0; }
.record-jumps a { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 700; }
.record-jumps a:hover { color: var(--green-dark); border-color: #a8cbb9; }
.record-jumps svg { width: 14px; }
.record-jumps b { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 9px; }
.wallet-table { margin-top: 12px; }
.segmented-filter { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.segmented-filter button { height: 27px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 700; }
.segmented-filter button.active { background: #fff; color: var(--green-dark); box-shadow: 0 1px 4px rgba(24, 32, 29, .08); }
.compact-empty { padding-block: 42px; }
.compact-empty .empty-icon { height: 40px; }
.table-money { font-size: 13px; }
.table-dash { color: #9da6a1; }
.money-change.income { color: var(--green-dark); }
.money-change.expense { color: var(--red); }
.admin-tabs { position: sticky; top: 0; z-index: 15; margin-top: -12px; padding-top: 8px; background: var(--soft); }
.metric-label { display: flex; align-items: center; gap: 7px; }
.metric-label i, .metric-label svg { width: 14px; height: 14px; }
.admin-attention { min-height: 68px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #cfe1d8; border-radius: 7px; background: #f3faf6; }
.admin-attention.has-pending { border-color: #e8d28c; background: #fffaf0; }
.attention-icon { width: 36px; height: 36px; border-radius: 6px; background: #dff1e8; color: var(--green-dark); }
.has-pending .attention-icon { background: #f8eac1; color: #8a5a0a; }
.admin-attention strong, .admin-attention small { display: block; }
.admin-attention strong { margin-bottom: 4px; font-size: 12px; }
.admin-attention small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-panel { scroll-margin-top: 62px !important; }
.admin-panel > .section-heading { min-height: 78px; }
.review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.review-summary > div { min-width: 0; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-summary > div:nth-child(even) { border-right: 0; }
.review-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.review-summary dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.review-summary dd { margin: 0; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.review-summary .review-amount { color: var(--green-dark); font-size: 16px; }
.review-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 11px; border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 9px; line-height: 1.55; }
.review-notice span { width: 20px; height: 20px; flex: 0 0 auto; color: var(--green); }
.danger-text { color: var(--red); }
.balance-presets { margin: -7px 0 0; }
.plan-account-strip { min-height: 76px; display: grid; grid-template-columns: 1.2fr 1fr .7fr auto; gap: 0; align-items: center; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.plan-account-strip > div { min-width: 0; padding: 14px 20px; border-right: 1px solid var(--line); }
.plan-account-strip > div:first-child { display: flex; align-items: center; gap: 11px; }
.plan-account-strip > div:first-child > span { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 6px; background: var(--green-soft); color: var(--green-dark); }
.plan-account-strip p { margin: 0; }
.plan-account-strip small, .plan-account-strip strong { display: block; }
.plan-account-strip small { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.plan-account-strip strong { font-size: 12px; overflow-wrap: anywhere; }
.plan-account-strip > .button { margin: 0 16px; }
.plan-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 15px; }
.plan-section-heading h2 { margin-bottom: 4px; font-size: 18px; }
.plan-section-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.plan-payment-note { min-height: 35px; display: flex; align-items: center; gap: 7px; margin: -8px 0 12px; padding: 8px 9px; border-radius: 5px; background: var(--green-soft); color: var(--green-dark); }
.plan-payment-note.insufficient { background: var(--yellow-soft); color: #8a5a0a; }
.plan-payment-note span { width: 17px; height: 17px; flex: 0 0 auto; }
.plan-payment-note small { font-size: 9px; }
.plan-payment-note strong { font-size: 10px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fbfcfb; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (max-width: 1150px) {
  .metric-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-sections { grid-template-columns: 1fr; }
  .auth-main { grid-template-columns: minmax(360px, 48%) 1fr; }
  .auth-visual { padding: 35px; }
  .visual-copy strong { font-size: 24px; }
  .account-overview { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .wallet-overview { grid-template-columns: 1.4fr 1fr 1fr; }
  .wallet-workspace { grid-template-columns: minmax(360px, 1.25fr) minmax(260px, .75fr); }
}

@media (max-width: 760px) {
  .app-shell { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(20, 28, 25, .45); }
  .sidebar.open + .mobile-header + .main-content + .sidebar-scrim, .sidebar.open ~ .sidebar-scrim { display: block; }
  .mobile-header { position: sticky; top: 0; z-index: 20; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-brand { font-weight: 800; }
  .main-content { padding: 25px 16px 45px; }
  .standalone-main { padding: 25px 16px 45px; }
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .page-header h1 { font-size: 25px; }
  .metric-grid, .plan-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 125px; padding: 16px; }
  .metric > strong { font-size: 20px; }
  .usage-grid { grid-template-columns: 1fr; gap: 18px; }
  .upload-zone form { grid-template-columns: 1fr; }
  .drop-target { min-height: 105px; }
  .upload-zone .button { min-height: 43px; }
  .upload-zone .button { grid-column: auto; }
  .section-heading { align-items: flex-start; }
  .table-section > .section-heading { flex-direction: column; }
  .search-box { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .auth-main { display: flex; align-items: center; }
  .auth-panel { width: min(390px, calc(100% - 36px)); }
  .auth-visual { display: none; }
  .auth-brand { margin-bottom: 42px; }
  .share-brand { position: absolute; }
  .share-page { padding-top: 90px; }
  .unlock-form { grid-template-columns: 1fr; }
  .file-summary { grid-template-columns: 1fr 1fr; }
  .file-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .file-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .account-overview { grid-template-columns: 1fr 1fr 1fr; }
  .account-identity { grid-column: 1 / -1; border-bottom: 1px solid #3a4340; }
  .account-stat:first-of-type { border-left: 0; }
  .settings-grid { grid-template-columns: 1fr; }
  .download-console { grid-template-columns: 1fr; }
  .download-action-panel { border-left: 0; border-top: 1px solid var(--line); }
  .bucket-grid { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
  .wallet-workspace { grid-template-columns: 1fr; }
  .wallet-overview { grid-template-columns: 1fr; }
  .wallet-fact { min-height: 75px; border-left: 0; border-top: 1px solid #3a4340; }
  .table-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .compact-select { width: 100%; }
  .compact-select select { width: 100%; }
  .admin-tabs { top: 58px; margin-inline: -16px; padding-inline: 11px; overflow-x: auto; }
  .admin-attention { grid-template-columns: 36px minmax(0, 1fr); }
  .admin-attention .button { grid-column: 1 / -1; width: 100%; }
  .record-jumps { overflow-x: auto; }
  .record-jumps a { flex: 0 0 auto; }
  .segmented-filter { width: 100%; }
  .segmented-filter button { flex: 1; }
  .plan-account-strip { grid-template-columns: 1fr 1fr; }
  .plan-account-strip > div:nth-child(2) { border-right: 0; }
  .plan-account-strip > div:nth-child(3) { border-top: 1px solid var(--line); }
  .plan-account-strip > .button { margin: 12px 16px; }
  .plan-section-heading { align-items: flex-start; flex-direction: column; }
  table.responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: grid; gap: 10px; padding: 10px; background: #f7f9f8; }
  .responsive-table tr { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .responsive-table tr[hidden] { display: none; }
  .responsive-table td, .responsive-table td:first-child { min-height: 43px; display: grid; grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid #edf0ee; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .responsive-table td:first-child { border-top: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 9px; font-weight: 700; text-transform: uppercase; }
  .responsive-table td > * { justify-self: end; }
  .responsive-table td code { max-width: 100%; overflow-wrap: anywhere; }
  .responsive-table .cell-sub { text-align: right; white-space: normal; }
  .responsive-table td.actions { display: grid; justify-content: initial; text-align: right; }
  .responsive-table td.actions > * { grid-column: 2; justify-self: end; }
  .responsive-table td.actions::before { grid-column: 1; grid-row: 1 / span 3; }
}

@media (max-width: 470px) {
  .metric-grid, .plan-grid { grid-template-columns: 1fr; }
  .metric { min-height: 116px; }
  .plan { min-height: 390px; }
  .notice { align-items: flex-start; flex-wrap: wrap; }
  .notice a { margin-left: 0; width: 100%; }
  .share-meta { display: grid; }
  .share-meta i { display: none; }
  .header-actions { align-items: stretch; flex-direction: column; }
  .limit-chip, .security-chip { justify-content: center; }
  .section-tabs { overflow-x: auto; }
  .account-overview { grid-template-columns: 1fr; }
  .wallet-overview { grid-template-columns: 1fr; }
  .wallet-fact { min-height: 75px; border-left: 0; border-top: 1px solid #3a4340; }
  .account-stat { min-height: 60px; border-left: 0; border-top: 1px solid #3a4340; }
  .account-stat:first-of-type { border-top: 0; }
  .state-page { width: 100%; min-height: calc(100vh - 70px); padding: 80px 0 35px; }
  .state-404 span { font-size: 70px; }
  .state-404 i { width: 58px; height: 58px; border-width: 12px; }
  .state-actions { align-items: stretch; flex-direction: column; }
  .wallet-balance { min-height: 146px; padding: 22px 19px; }
  .wallet-balance strong { font-size: 28px; }
  .wallet-recharge-panel, .recharge-guide { padding: 18px; }
  .payment-options { grid-template-columns: 1fr; }
  .payment-options label { min-height: 64px; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .form-submit-row .button { width: 100%; }
  .review-summary { grid-template-columns: 1fr; }
  .review-summary > div, .review-summary > div:nth-child(even), .review-summary > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-summary > div:last-child { border-bottom: 0; }
  .review-actions { align-items: stretch; flex-direction: column-reverse; }
  .review-actions .button { width: 100%; }
  .plan-account-strip { grid-template-columns: 1fr; }
  .plan-account-strip > div { border-right: 0; border-top: 1px solid var(--line); }
  .plan-account-strip > div:first-child { border-top: 0; }
  .plan-account-strip > .button { margin: 12px 16px 16px; }
  .download-object { grid-template-columns: 72px minmax(0, 1fr); padding: 22px; }
  .download-file-mark { width: 68px; height: 82px; }
  .object-details { grid-template-columns: 1fr; }
  .bucket-head { grid-template-columns: 42px minmax(0, 1fr); }
  .bucket-head > .status { grid-column: 2; justify-self: start; }
}
