:root {
  color-scheme: light;
  --ink: #25262a;
  --muted: #70737c;
  --subtle: #8c8f97;
  --line: #eaebee;
  --surface: #fff;
  --canvas: #fff;
  --hover: #f7f8fa;
  --green: #218153;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
body[data-auth-required][hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; outline-offset: 3px; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #6687c4; }
input, select, textarea { min-width: 0; }
input[type="radio"] { accent-color: var(--ink); cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
select { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; padding: 12px 20px; background: var(--ink); color: #fff; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 16px; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

/* One horizontal navigation, aligned to the workspace. */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 680; letter-spacing: -.9px; line-height: 1; flex-shrink: 0; }
.brand svg { width: 22px; height: 25px; }
.brand-dot { color: var(--ink); }
.header-nav { flex: 1; display: flex; align-items: center; gap: 26px; padding-left: 32px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 450; }
.header-nav > a, .header-nav > button { padding-block: 5px; transition: color .15s; }
.header-nav [aria-current] { color: var(--ink); font-weight: 600; }
.header-nav > a:hover, .header-nav > button:hover { color: #111; }
.header-nav .account-button { margin-left: auto; padding: 0; }
.account-button { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.account-button > .icon { width: 14px; height: 14px; color: var(--subtle); margin-left: 2px; }
.account-avatar { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #e5e6e9; border-radius: 50%; background: #f7f7f8; color: #5c5f68; font-size: 11px; font-weight: 600; }
.account-menu { position: relative; margin-left: auto; }
.account-options { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; min-width: 160px; padding: 5px; border: 1px solid #e4e5e9; border-radius: 9px; background: #fff; box-shadow: 0 10px 30px #141c2c12, 0 2px 6px #141c2c08; }
.account-options > a, .account-options > button { display: block; width: 100%; min-height: 35px; padding: 8px 10px; border-radius: 5px; text-align: left; color: #535864; font-size: 12px; font-weight: 450; line-height: 1.5; }
.account-options > a:hover, .account-options > button:hover, .account-options > :focus-visible { color: #222833; background: #f3f4f7; outline: none; }
.account-options > button { margin-top: 3px; }

/* The introduction is part of the page, with support alongside it. */
main.container { padding-top: 54px; padding-bottom: 28px; }
.welcome-block { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; align-items: start; }
.welcome-copy { padding-top: 7px; }
h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.041em; font-weight: 580; }
.welcome-description { font-size: 14px; line-height: 1.85; color: #62656e; margin-top: 19px; }
.welcome-detail { font-size: 14px; line-height: 1.85; color: #62656e; }
.welcome-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.welcome-actions > span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.button .icon { width: 15px; height: 15px; }
.button-primary { background: #2b2d31; border-color: #222428; color: #fff; box-shadow: inset 0 1px 0 #ffffff15, 0 1px 2px #1418211a; }
.button-primary:hover { background: #41444a; border-color: #363940; }
.button-primary:active { transform: translateY(1px); box-shadow: none; }
.button-secondary { border-color: #dedfe4; background: #fff; box-shadow: 0 1px 2px #14182108; color: #4f525b; }
.button-secondary:hover { background: var(--hover); border-color: #c7cad2; }
.welcome-contacts { padding: 22px 23px 15px; border: 1px solid #eeeef1; border-radius: 10px; background: #fafafb; }
.welcome-contacts h2 { display: flex; align-items: baseline; gap: 7px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.welcome-contacts h2 > span { color: var(--muted); font-weight: 450; font-size: 13px; font-variant-numeric: tabular-nums; }
.welcome-contacts > p { max-width: 255px; font-size: 12px; line-height: 1.65; color: var(--muted); margin: 6px 0 14px; }
.contact-link { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-radius: 6px; }
.contact-icon { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; background: #fff; border: 1px solid #e6e7eb; border-radius: 8px; color: #646872; box-shadow: 0 1px 2px #18202c03; transition: border-color .15s; }
.contact-icon .icon { width: 17px; height: 17px; }
.contact-text { min-width: 0; }
.contact-link small { display: block; font-size: 11px; line-height: 1.4; letter-spacing: .005em; color: var(--muted); margin-bottom: 2px; }
.contact-link strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 500; letter-spacing: -.008em; }
.contact-link > .icon { width: 14px; height: 14px; color: #a0a3ab; margin-left: auto; transition: transform .18s, color .18s; }
.contact-link:hover > .icon { transform: translate(2px,-2px); color: var(--ink); }
.contact-link:hover .contact-icon { border-color: #c5c8d0; }
.contact-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Data has one baseline and one density, without a second card shell. */
.ports-panel { margin-top: 50px; }
.ports-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ports-heading h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.032em; font-weight: 580; }
.ports-heading .renew-all { margin-left: auto; flex-shrink: 0; }
.ports-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 5px; background: #f1f2f4; color: #737781; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid #e6e7eb; border-radius: 9px; scrollbar-width: thin; }
.ports-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 850px; }
.ports-table th { height: 40px; padding: 10px 16px; background: #fafafb; border-bottom: 1px solid var(--line); text-align: left; color: #777a84; font-size: 12px; font-weight: 450; line-height: 1.5; letter-spacing: 0; }
.ports-table th:nth-child(1) { width: 23%; padding-left: 20px; }
.ports-table th:nth-child(2) { width: 13%; }
.ports-table th:nth-child(3) { width: 15%; }
.ports-table th:nth-child(4) { width: 23%; padding-left: 40px; }
.ports-table th:nth-child(5) { width: 17%; }
.ports-table th:nth-child(6) { width: 9%; padding-right: 20px; text-align: right; }
.ports-table td { height: 77px; padding: 16px; border-bottom: 1px solid #eff0f2; vertical-align: middle; }
.ports-table td:first-child { padding-left: 20px; }
.ports-table td:last-child { padding-right: 20px; text-align: right; }
.ports-table tr:last-child td { border-bottom: 0; }
.ports-table tbody tr { transition: background .15s; }
.ports-table tbody tr:hover, .ports-table tbody tr:focus-within { background: #fcfcfd; }
.ports-table td > small, .carrier-text > small { display: block; margin-top: 3px; color: #727680; font-size: 12px; line-height: 1.5; letter-spacing: -.005em; }
.carrier { display: flex; align-items: center; gap: 11px; }
.carrier-mark { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; user-select: none; }
.carrier-mark.orange { background: #ff7900; color: #fff; font: 600 7px/1 Arial, sans-serif; letter-spacing: -.3px; align-items: flex-end; padding-bottom: 6px; box-shadow: inset 0 0 0 1px #00000004; }
.carrier-mark.play { background: #f5f2fa; border: 1px solid #ede7f5; overflow: hidden; }
.carrier-mark.play img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carrier-name { display: block; font-size: 14px; font-weight: 550; line-height: 1.5; }
.port-id { padding: 0; font-size: 14px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.port-id > span { color: #a2a5ad; margin-right: 2px; font-weight: 400; }
.port-id:hover { text-decoration: underline; text-underline-offset: 3px; }
.port-cell > small { font-size: 11px !important; letter-spacing: .005em !important; }
.remaining-days { font-size: 14px; font-weight: 450; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; font-size: 12px; font-weight: 450; white-space: nowrap; line-height: 1.4; border-radius: 5px; }
.status-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: #329968; flex-shrink: 0; }
.status-active { color: #298058; background: #eef7f2; box-shadow: inset 0 0 0 1px #22815108; }
.status-pending { color: #93652f; background: #fbf4e9; white-space: normal; }
.status-problem { color: #9a5c31; background: #fbf2e9; white-space: normal; }
.status-expired { color: #8c6161; background: #faf0f0; }
.status-changing { color: #4d6b99; background: #eef3fb; }
.status-unknown { color: #777e89; background: #f2f3f5; white-space: normal; }
.status-changing > .icon { width: 12px; height: 12px; animation: spin 1s linear infinite; }
.ip-cell { position: relative; display: flex; align-items: center; gap: 7px; padding-inline-start: 24px; font: 13px/1.5 var(--mono); letter-spacing: -.03em; white-space: nowrap; min-height: 24px; }
.ip-cell > span { flex-shrink: 0; }
.ip-loading { position: absolute; left: 3px; top: calc(50% - 5px); width: 10px; height: 10px; border: 1.5px solid #a0a8b4; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.ip-value { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.ip-reel { display: inline-flex; align-items: baseline; }
.ip-digit { display: inline-block; position: relative; overflow: hidden; width: 1ch; height: 1.5em; vertical-align: bottom; }
.ip-digit > span { position: absolute; inset: 0; }
.timer-indicator { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 2px; color: #8b929d; border-radius: 4px; cursor: help; }
.ip-cell:has(.ip-loading) .timer-indicator { visibility: hidden; }
.timer-indicator:hover { color: #434b5a; background: #ebedf2; }
.timer-indicator > .icon { width: 13px; height: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 6px; color: #8a8f99; flex-shrink: 0; transition: background .15s, color .15s; }
.icon-button:hover { background: #eff0f3; color: #333945; }
.copy-ip { width: 22px; height: 24px; opacity: 0; }
.copy-ip .icon { width: 13px; height: 13px; }
.ports-table tr:hover .copy-ip, .ports-table tr:focus-within .copy-ip { opacity: 1; }
.actions-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; min-height: 30px; border: 1px solid #e3e5e9; border-radius: 6px; color: #616774; background: #fff; font-size: 11px; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.actions-button > .icon { width: 14px; height: 14px; }
.more-button { width: 30px; padding: 0; border-color: transparent; background: transparent; color: #8c9099; }
.more-button > .icon { width: 19px; height: 19px; stroke-width: 1.2; }
.actions-button:hover, .actions-button[aria-expanded="true"] { color: #333945; border-color: #d9dce3; background: #fff; box-shadow: 0 1px 2px #17202d06; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 23px; color: #92959e; font-size: 11px; letter-spacing: .005em; }
.footer-credit { line-height: 1.6; }
.footer-attribution { white-space: nowrap; }
.footer-credit a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.admin-page > .page-footer { margin-bottom: 28px; }
.muted { color: var(--muted); font-size: 12px; }
.ports-table tbody[hidden] { display: none !important; }
.ports-table .empty-state-row { display: table-row; }
.ports-table .empty-state-cell { padding: 0; text-align: center; }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state p { font-size: 14px; color: var(--muted); margin: 0 0 23px; }

/* The same surface, type and control rules carry through every interaction. */
.row-menu { position: fixed; z-index: 40; min-width: 228px; padding: 5px; background: #fff; border: 1px solid #e4e5e9; border-radius: 9px; box-shadow: 0 10px 30px #141c2c12, 0 2px 6px #141c2c08; }
.row-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 5px; text-align: left; font-size: 13px; color: #535864; }
.row-menu button:hover, .row-menu button:focus-visible { background: #f3f4f7; color: #222833; outline: none; }
.row-menu .icon { width: 15px; height: 15px; color: #8a8f9a; }
.menu-separator { height: 1px; background: var(--line); margin: 4px 5px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); width: max-content; padding: 12px 16px; border: 1px solid #e2e4e9; border-radius: 9px; background: #fff; box-shadow: 0 4px 20px #17202d12; font-size: 12px; animation: toast-in .2s ease-out; }
.toast { pointer-events: none; }
.toast > .icon { color: var(--green); width: 16px; height: 16px; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 1px solid #e4e5e9; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #141c2c26, 0 4px 12px #141c2c0a; }
dialog::backdrop { background: #171b2740; backdrop-filter: blur(2px); }
dialog[open] { animation: modal-in .2s ease-out; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 24px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; font-weight: 580; line-height: 1.3; letter-spacing: -.035em; }
.dialog-header p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.dialog-header > .icon-button { margin: -3px -5px 0 0; }
.dialog-content { padding: 23px 24px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fbfbfc; }
.dialog-exit { margin-right: auto; align-self: center; }
.renew-options { display: grid; gap: 25px; }
.renew-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.renew-fieldset legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 500; color: #6a6f79; }
.renew-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.renew-period { display: grid; grid-template-columns: 16px 1fr; align-content: start; align-items: center; gap: 9px; min-height: 82px; padding: 15px 13px; border: 1px solid #e3e5e9; border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.renew-period > span { font-size: 14px; font-weight: 550; letter-spacing: -.02em; }
.renew-discount { grid-column: 2; width: fit-content; padding: 2px 6px; border-radius: 4px; background: #edf5ef; color: #35784c; font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.renew-payments { overflow: hidden; border: 1px solid #e3e5e9; border-radius: 8px; }
.renew-payment { display: flex; align-items: center; gap: 11px; padding: 14px; font-size: 13px; cursor: pointer; transition: background .15s; }
.renew-payment + .renew-payment { border-top: 1px solid var(--line); }
.renew-period:hover, .renew-payment:hover { background: #fafafb; }
.renew-period:has(input:checked) { border-color: #62656d; background: #f8f9fb; }
.renew-payment:has(input:checked) { background: #f8f9fb; }
.renew-period:has(input:focus-visible), .renew-payment:has(input:focus-visible) { outline: 2px solid #6687c4; outline-offset: -2px; }
.renew-period input:focus-visible, .renew-payment input:focus-visible { outline: none; }
.renew-payment-empty .text-button { margin-top: 8px; }
.renew-summary { padding-top: 20px; border-top: 1px solid var(--line); }
.renew-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; }
.renew-summary strong { font-size: 22px; font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.renew-summary p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.access-dialog { width: min(530px, calc(100% - 32px)); }
.access-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.access-dialog .dialog-header, .access-dialog .dialog-footer { flex-shrink: 0; }
.access-dialog .dialog-content { overflow-y: auto; overscroll-behavior: contain; }
.access-heading { display: flex; align-items: center; gap: 12px; }
.access-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #eee4cd; border-radius: 9px; background: #fcf8ef; color: #9a742e; }
.access-symbol .icon { width: 17px; height: 17px; }
.access-description { color: #666d78; font-size: 13px; line-height: 1.7; }
.access-resources { list-style: none; margin: 20px 0 22px; padding: 0; }
.access-resources > li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.access-resources > li:first-child { border-top: 1px solid var(--line); }
.access-resources > li > strong { font-size: 12px; font-weight: 550; line-height: 1.65; }
.access-resources > li > span { font-size: 12px; line-height: 1.65; color: #717783; }
.access-banks details { grid-column: 1 / -1; }
.access-banks summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: fit-content; max-width: 100%; list-style: none; color: #4d6085; cursor: pointer; font-size: 12px; line-height: 1.65; }
.access-banks summary::-webkit-details-marker { display: none; }
.access-banks summary .icon { width: 12px; height: 12px; transition: transform .15s; }
.access-banks details[open] summary .icon { transform: rotate(180deg); }
.bank-search { margin: 14px 0 8px; }
.bank-count { color: #7b818b; font-size: 10px; margin-bottom: 8px; }
.bank-list { max-height: 190px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.bank-list section + section { margin-top: 18px; }
.bank-list h3 { color: #777e89; font-size: 10px; font-weight: 550; line-height: 1.6; margin-bottom: 6px; }
.bank-list ul { list-style: none; padding: 0; }
.bank-list li { padding: 5px 0; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.bank-empty { font-size: 12px; color: var(--muted); }
.bank-source { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #8a909b; margin-top: 8px; }
.bank-source a { display: inline-flex; align-items: center; gap: 4px; color: #68758b; }
.bank-source .icon { width: 10px; height: 10px; }
.access-business { padding: 15px 16px; border: 1px solid #e8eaef; border-radius: 8px; background: #f8f9fb; }
.access-business h3 { font-size: 12px; font-weight: 550; line-height: 1.5; }
.access-business p { color: #717783; font-size: 12px; line-height: 1.7; margin: 6px 0 12px; }
.access-contacts { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.access-contacts a, .access-contacts button { display: inline-flex; align-items: center; gap: 6px; color: #53617b; font-size: 11px; padding: 0; }
.access-contacts .icon { width: 13px; height: 13px; }
@media (max-width: 420px) {
  .access-resources > li { grid-template-columns: 1fr; gap: 3px; padding-block: 13px; }
  .access-banks details { margin-top: 5px; }
  .access-dialog .dialog-footer { flex-wrap: wrap; }
  .access-dialog .dialog-footer .button { font-size: 11px; padding-inline: 9px; gap: 6px; }
}
.drawer { position: fixed; inset: 12px 12px 12px auto; margin: 0; width: 450px; max-width: calc(100% - 24px); height: calc(100dvh - 24px); max-height: none; border-radius: 12px; }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .22s ease-out; }
.drawer-content { padding: 24px; overflow: auto; flex: 1; }
.connection-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #3c7858; margin-bottom: 24px; }
.connection-status .muted { margin-left: auto; font-size: 11px; }
.connection-quick { margin-bottom: 24px; }
.connection-quick > span { display: block; color: #6a6f79; font-size: 12px; margin-bottom: 7px; }
.connection-quick > small { display: block; color: var(--muted); font-size: 11px; margin-top: 9px; }
.connection-fields { display: grid; grid-template-columns: 1fr 96px; gap: 16px 12px; margin-bottom: 22px; }
.connection-fields .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; margin-bottom: 18px; }
.field > span, .connection-field > span { display: block; font-size: 12px; font-weight: 450; color: #6a6f79; }
.connection-field > span { margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dedfe5; border-radius: 6px; background: #fff; font-size: 13px; box-shadow: 0 1px 2px #141c2c04; }
.field input:read-only { background: #f8f9fa; color: #8a8f99; }
.field input[aria-invalid="true"] { border-color: #bf4545; outline-color: #bf4545; box-shadow: 0 0 0 2px #bf454514; }
.order-quantity-field { margin-bottom: 18px; }
.order-quantity-field .field { margin-bottom: 0; }
.quantity-error { margin-top: 8px; color: #a93636; font-size: 12px; line-height: 1.65; }
.quantity-error a { text-decoration: underline; text-underline-offset: 3px; }
.copy-field { display: flex; align-items: center; gap: 5px; padding: 3px 4px 3px 10px; border: 1px solid #e3e5e9; border-radius: 6px; background: #fafafb; }
.copy-field input { min-width: 0; width: 100%; padding: 5px 0; background: transparent; border: 0; font: 12px/1.6 var(--mono); outline-offset: 1px; }
.copy-field .icon-button { width: 25px; height: 27px; }
.copy-field .icon { width: 13px; height: 13px; }
.full-width { width: 100%; white-space: normal; }
.drawer-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.drawer-section h3 { font-size: 14px; font-weight: 550; }
.drawer-section p { font-size: 12px; color: var(--muted); margin: 7px 0 14px; line-height: 1.65; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; font-size: 12px; color: #515b6f; font-weight: 450; }
.text-button > .icon { width: 13px; height: 13px; }
.text-button:hover { color: #232d41; text-decoration: underline; text-underline-offset: 3px; }
.drawer-section > .text-button { margin-top: 14px; font-size: 11px; }
.drawer-footer { display: flex; align-items: center; gap: 7px; padding: 17px 24px; border-top: 1px solid var(--line); font-size: 10px; color: #858a95; }
.drawer-footer > .icon { width: 15px; height: 15px; }
.drawer-footer a { display: flex; align-items: center; gap: 4px; margin-left: auto; color: #515b6f; }
.drawer-footer a .icon { width: 12px; height: 12px; }
.radio-option { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #e1e3e8; border-radius: 7px; margin-bottom: 10px; cursor: pointer; }
.radio-option:has(input:checked) { background: #f8f9fb; border-color: #a7afbd; }
.radio-option input { margin-top: 2px; }
.radio-option strong { font-size: 12px; font-weight: 550; }
.radio-option small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.timer-value { margin-top: 20px; }
.timer-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.timer-feedback { margin-top: 18px; font-size: 12px; line-height: 1.7; color: #934c4c; }
.timer-feedback[data-pending] { color: var(--muted); }
.form-note { font-size: 11px; line-height: 1.7; color: #7b818d; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-specs { display: flex; gap: 18px; margin-bottom: 24px; color: #6c7481; font-size: 11px; }
.order-summary { display: grid; grid-template-columns: auto 1fr; gap: 12px; border-block: 1px solid var(--line); padding: 18px 0; margin-top: 24px; font-size: 12px; }
.order-summary > span { color: var(--muted); }
.order-summary > strong { font-size: 11px; font-weight: 500; text-align: right; }
.order-loading { color: var(--muted); font-size: 13px; line-height: 1.7; padding-block: 8px; }
.order-unavailable h3 { max-width: 340px; font-size: 18px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; text-wrap: balance; }
.order-unavailable > p { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.order-contacts { display: flex; align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 24px; padding-bottom: 5px; }
.order-contacts .text-button { font-size: 12px; }
.order-feedback { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #ecdfd0; border-radius: 7px; background: #fcfaf6; color: #866744; font-size: 12px; line-height: 1.65; }
.invoice-empty { text-align: center; padding: 18px 15px 32px; }
.invoice-empty .icon { width: 30px; height: 30px; color: #9ba1ac; }
.invoice-empty h3 { font-size: 17px; margin-top: 16px; letter-spacing: -.025em; }
.invoice-empty p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.invoice-contact { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; font-size: 12px; line-height: 1.7; color: #515b6f; }
.invoice-contact .text-button { white-space: nowrap; }
.connection-status-pending > span:first-child { background: #b3a27a; }
.connection-status-pending > span:nth-child(2) { color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes drawer-in { from { opacity: .5; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1100px) {
  .welcome-block { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  h1 { font-size: 29px; }
  .welcome-description br { display: none; }
  .welcome-actions { gap: 13px; }
  .welcome-actions > span { max-width: 125px; font-size: 11px; }
  .ports-table th:nth-child(1) { width: 22%; }
  .ports-table th:nth-child(4) { width: 24%; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .welcome-block { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
  .welcome-contacts { padding-inline: 20px; }
  .welcome-copy { padding-top: 0; }
  h1 { max-width: 360px; font-size: 28px; }
  .welcome-description, .welcome-detail { font-size: 13px; }
  .welcome-actions { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 20px; }
  .welcome-actions > span { max-width: none; }
  .table-scroll { border-radius: 8px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 64px; gap: 20px; }
  .brand { font-size: 19px; gap: 6px; }
  .brand svg { width: 19px; height: 23px; }
  .header-nav { gap: 20px; padding-left: 20px; font-size: 12px; }
  .account-button { gap: 6px; }
  #account-name { display: none; }
  .account-button > .icon { margin-left: 0; width: 12px; }
  main.container { padding-top: 32px; }
  .welcome-block { grid-template-columns: 1fr; gap: 28px; }
  h1 { max-width: none; font-size: 29px; line-height: 1.23; }
  .welcome-description { margin-top: 17px; }
  .welcome-description, .welcome-detail { font-size: 13px; line-height: 1.85; }
  .welcome-actions { align-items: center; flex-direction: row; gap: 14px; margin-top: 23px; }
  .welcome-actions > span { max-width: 145px; font-size: 11px; }
  .welcome-contacts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding: 18px 20px 12px; }
  .welcome-contacts > h2, .welcome-contacts > p { grid-column: 1 / -1; }
  .welcome-contacts > p { max-width: none; margin-bottom: 8px; font-size: 11px; }
  .contact-link { gap: 9px; }
  .contact-icon { width: 30px; height: 30px; }
  .contact-link > .icon { width: 12px; }
  .ports-panel { margin-top: 34px; }
  .ports-heading { margin-bottom: 15px; }
  .ports-heading h2 { font-size: 20px; }
  .ports-table, .ports-table tbody { display: block; min-width: 0; }
  .ports-table thead { display: none; }
  .ports-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 20px; border-bottom: 1px solid var(--line); }
  .ports-table tr:last-child { border-bottom: 0; }
  .ports-table td { display: block; width: auto; height: auto; border: 0 !important; padding: 0 !important; }
  .ports-table td:last-child { text-align: left; }
  .ports-table .carrier-cell { grid-column: 1; grid-row: 1; }
  .ports-table .status-cell { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .ports-table .port-cell { grid-column: 1; grid-row: 2; }
  .ports-table .ip-td { grid-column: 2; grid-row: 2; }
  .ports-table .lease-cell { grid-column: 1; grid-row: 3; }
  .ports-table .actions-cell { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; }
  .ports-table td[data-label]:not(.carrier-cell):not(.status-cell)::before { content: attr(data-label); display: block; font: 10px/1.5 Inter, sans-serif; color: #8a8f99; margin-bottom: 5px; }
  .carrier-mark { width: 29px; height: 29px; }
  .carrier { gap: 9px; }
  .carrier-text > small { white-space: nowrap; font-size: 10px; }
  .port-id, .remaining-days { font-size: 13px; }
  .ip-cell { font-size: 11px; gap: 4px; padding-inline-start: 19px; }
  .ports-table .empty-state-row { display: block; padding: 0; }
  .ports-table .empty-state-cell { text-align: center; }
  .timer-indicator { padding: 1px; }
  .timer-indicator > .icon { width: 12px; height: 12px; }
  .copy-ip { width: 19px; height: 20px; opacity: 1; }
  .copy-ip > .icon { width: 12px; height: 12px; }
  .more-button { border-color: #e6e8ed; background: #fff; width: 32px; height: 30px; }
  .page-footer { margin-top: 20px; font-size: 10px; gap: 10px; }
}
@media (max-width: 540px) {
  .welcome-contacts { display: block; padding: 18px 19px 12px; }
  .welcome-contacts > p { max-width: 280px; }
  .contact-link { padding-block: 8px; gap: 11px; }
  .contact-link strong { font-size: 13px; }
  .contact-icon { width: 32px; height: 32px; }
  .header-inner { gap: 15px; }
  .header-nav { padding-left: 16px; gap: 17px; }
  .account-button > .icon { display: none; }
  .dialog-header { padding: 22px 20px 18px; }
  .dialog-content, .drawer-content { padding: 22px 20px; }
  .dialog-footer { padding: 16px 20px; }
  .drawer-footer { padding-inline: 20px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 12px; }
  .brand { font-size: 18px; gap: 4px; }
  .brand svg { width: 18px; }
  .header-nav { padding-left: 12px; gap: 14px; }
  .account-avatar { width: 24px; height: 24px; }
  h1 { font-size: 27px; }
  .welcome-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .welcome-actions > span { max-width: none; }
  .ports-table tr { padding: 18px 15px; gap: 20px 12px; }
  .ip-cell { font-size: 10px; gap: 2px; }
  .renew-period { padding: 13px 10px; gap: 8px; }
  .renew-period > span { font-size: 13px; }
  .renew-discount { grid-column: 1 / -1; }
  .carrier { gap: 7px; }
  .carrier-text > small { font-size: 9px; }
  .status { font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .order-specs { gap: 12px; font-size: 10px; }
  .drawer-footer { flex-wrap: wrap; }
}
@media (hover: none) { .copy-ip { opacity: 1; } }
.language-switcher { position: relative; flex-shrink: 0; line-height: 1; }
.header-nav > .language-switcher { margin-left: -8px; }
.events-nav { display: inline-flex; align-items: center; gap: 6px; }
.events-nav > .icon { width: 15px; height: 15px; }
.events-bell { transition: fill .2s, stroke .2s; }
.events-indicator { fill: #c74740; stroke: #fff; stroke-width: 1.8; opacity: 0; transition: opacity .2s; }
.events-nav.has-unread .events-bell { fill: #25262a; stroke: #25262a; }
.events-nav.has-unread .events-indicator { opacity: 1; }
@media (max-width: 540px) { .events-nav > span { display: none; } .events-nav { width: 24px; height: 32px; justify-content: center; flex-shrink: 0; } }
.language-trigger { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; color: #646b77; transition: background .15s, border-color .15s; }
.language-trigger:hover, .language-trigger[aria-expanded="true"] { background: #f8f9fb; border-color: #e5e7ec; }
.language-code { font-size: 11px; font-weight: 550; letter-spacing: .01em; }
.language-trigger > .icon { width: 12px; height: 12px; color: #959ba6; }
.language-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 60; width: 168px; padding: 5px; background: #fff; border: 1px solid #e4e5e9; border-radius: 9px; box-shadow: 0 10px 30px #141c2c12, 0 2px 6px #141c2c08; }
.language-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 35px; padding: 8px; border-radius: 5px; text-align: left; font-size: 12px; line-height: 1.5; color: #535864; }
.language-menu button:hover, .language-menu button:focus-visible { background: #f3f4f7; color: #222833; outline: none; }
.language-check { width: 14px; height: 14px; margin-left: auto; visibility: hidden; color: #667286; }
.language-menu [aria-checked="true"] .language-check { visibility: visible; }
@media (max-width: 760px) {
  .language-trigger { width: 32px; height: 30px; padding: 5px 6px; }
  .language-trigger > .icon { display: none; }
  .header-nav > .language-switcher { margin-left: 0; }
}
@media (max-width: 540px) {
  .header-inner { gap: 10px; }
  .header-nav { gap: 6px; padding-left: 0; border-left: 0; font-size: 11px; }
}
@media (max-width: 370px) {
  .header-inner { gap: 10px; }
  .header-nav { gap: 6px; }
  .brand { font-size: 17px; }
}
@media (max-width: 420px) { .site-header .brand > span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
