/* ============================================================
   IronCloud Registrar - Cloudflare-direction layer (CfHome / CfDomain / CfDns boards)
   Loaded after icui.css. Same palette; adds side/sel/link tokens, flat 8px cards,
   6px controls, a 56px header and a 248px sidebar. Breakpoint 860px.
   ============================================================ */

/* ---------------- tokens ---------------- */
:root, [data-theme="dark"] {
    --ic-bg: #0E0E10;
    --ic-side: #141416;
    --ic-sel: #26272B;
    --ic-link: #7AB0FF;
}
[data-theme="light"] {
    --ic-bg: #F7F7F8;
    --ic-side: #FAFAFA;
    --ic-sel: #EEF2F7;
    --ic-link: #0B5CD5;
}
:root {
    --ic-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Commissioner", "Segoe UI", system-ui, sans-serif;
    --ic-mono: ui-monospace, Menlo, monospace;
    --ic-r-card: 8px;
    --ic-r-input: 6px;
    --ic-radius: 6px;
}

/* ---------------- base ---------------- */
body.icbody { margin: 0; background: var(--ic-bg); color: var(--ic-text); font-family: var(--ic-font); font-size: 14px; line-height: 1.5; }
body.icbody a { color: var(--ic-link); text-decoration: none; }
body.icbody a:hover { text-decoration: underline; }
body.icbody a.ic-btn:hover, body.icbody .cfsidenav a:hover, body.icbody .cfbrand:hover, body.icbody .cfadd:hover,
body.icbody .cfmenu a:hover, body.icbody .cfsideback:hover { text-decoration: none; }
body.icbody a:focus-visible, body.icbody button:focus-visible, body.icbody input:focus-visible, body.icbody select:focus-visible {
    outline: 2px solid var(--ic-link); outline-offset: 1px;
}
body.icbody input[type="checkbox"] { accent-color: var(--ic-link); }
body.icbody h1, body.icbody .ic-h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.5; }
body.icbody .ic-h1-xl { font-size: 24px; letter-spacing: -0.3px; }
body.icbody .ic-h2, body.icbody .ic-card > h2, body.icbody .ic-card-title, body.icbody .icpanel h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
body.icbody .ic-h3, body.icbody .ic-card > h2.ic-h3, body.icbody .ic-card .ic-h3, body.icbody .ic-section-title { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ic-small { font-size: 13px; }
.ic-xsmall { font-size: 13px; }

/* ---------------- header ---------------- */
.cfhdr {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px; min-height: 57px; padding: 0 16px;
    border-bottom: 1px solid var(--ic-line); background: var(--ic-card); color: var(--ic-text);
}
.cfbrand { display: flex; align-items: center; gap: 8px; color: var(--ic-text) !important; }
.cfbrand svg { color: var(--ic-accent); }
.cfbrand svg.icmark { color: var(--ic-text); flex: 0 0 auto; } /* app mark: ic letters follow the theme */
.cfbrand b { font-size: 16px; }
.cficonbtn, .cfhdr .icthemetoggle {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 0; padding: 0;
    border: 1px solid var(--ic-line); border-radius: 6px; background: var(--ic-card); color: var(--ic-text); cursor: pointer;
}
.cfhdr .icthemetoggle { width: 36px; height: 36px; }
.cfmenubtn { display: none; width: 40px; height: 40px; }
/* Global search: wide, centred between the logo and the actions, 42px tall */
.cfsearch { position: relative; flex: 1 1 560px; max-width: 560px; min-width: 240px; margin: 0 auto; }
.cfsearch + .cfadd { margin-left: 0; }
.cfsearchicon { position: absolute; left: 12px; top: 12px; color: var(--ic-text); opacity: .75; display: flex; pointer-events: none; }
.cfsearch input {
    width: 100%; box-sizing: border-box; min-height: 42px; margin: 0; padding: 0 72px 0 40px;
    border: 1px solid var(--ic-line); border-radius: 8px; background: var(--ic-field); color: var(--ic-text);
    font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.cfsearch input:hover { border-color: var(--ic-muted); }
body.icbody .cfsearch input:focus, body.icbody .cfsearch input:focus-visible {
    outline: none; border-color: var(--ic-accent); box-shadow: 0 0 0 3px var(--ic-accent-soft); background: var(--ic-card);
}
.cfsearch input::-webkit-search-cancel-button { display: none; }
.cfsearch kbd {
    position: absolute; right: 10px; top: 10px; font-family: inherit; font-size: 12px; line-height: 1.5; padding: 1px 6px;
    border: 1px solid var(--ic-line); border-radius: 4px; color: var(--ic-muted); background: transparent; pointer-events: none;
}
.cfadd {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; margin-left: auto;
    border-radius: 6px; background: var(--ic-accent); color: var(--ic-on-accent) !important; font-weight: 600; font-size: 14px;
}
.cfadd svg { flex: 0 0 16px; }
.cfavatar {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; margin: 0;
    border: 0; border-radius: 50%; background: var(--ic-accent-soft); color: var(--ic-accent-text);
    font: inherit; font-weight: 700; cursor: pointer;
}
.cfmenu {
    position: absolute; top: 52px; right: 16px; z-index: 70; width: 260px; padding: 6px;
    display: flex; flex-direction: column; gap: 2px;
    background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}
.cfmenu[hidden] { display: none; }
.cfmenuhead { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--ic-line); margin-bottom: 4px; }
.cfmenuhead span { font-size: 13px; color: var(--ic-muted); overflow-wrap: anywhere; }
.cfmenuitem {
    display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 6px;
    color: var(--ic-text) !important; font-size: 14px; cursor: pointer; background: none; border: 0;
}
.cfmenuitem:hover { background: var(--ic-hover); }
.cfmenulang span { flex: 1 1 auto; }
.cfmenulang select { min-height: 30px; padding: 0 6px; border: 1px solid var(--ic-line); border-radius: 6px; background: var(--ic-card); color: var(--ic-text); font: inherit; font-size: 13px; }

/* ---------------- body: sidebar + main ---------------- */
.cfbody { flex: 1 1 auto; display: flex; min-height: calc(100vh - 57px); }
.ic-wrap.icshell, .cfbody.icshell { padding: 0; max-width: none; margin: 0; gap: 0; }
.cfside {
    flex: 0 0 248px; width: 248px; box-sizing: border-box; padding: 8px;
    display: flex; flex-direction: column; gap: 2px;
    border-right: 1px solid var(--ic-line); background: var(--ic-side);
}
.cfsidenav { display: flex; flex-direction: column; gap: 2px; }
.cfsidenav[hidden] { display: none; }
.cfsidehead { padding: 12px 12px 4px; font-size: 12px; font-weight: 600; color: var(--ic-muted); }
.cfsidehead2 { padding-top: 16px; }
.cfsidelink {
    display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: 6px;
    font-size: 14px; color: var(--ic-text) !important;
}
.cfsidelink svg { flex: 0 0 16px; }
.cfsidelink:hover { background: var(--ic-hover); }
.cfsidelink.menuactive, .cfsidelink[aria-current="page"] { background: var(--ic-sel); font-weight: 600; }
.cfsidelink.is-parent { background: var(--ic-sel); font-weight: 600; }
.cfsidesub { padding-left: 34px; }
.cfsideback { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; font-size: 13px; }
.cfsidedom { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.cfsidedom b { font-size: 15px; word-break: break-all; }
.cfsidedom span { font-size: 12px; color: var(--ic-muted); }
.cfsidefoot {
    margin-top: auto; padding: 24px 12px 8px; display: flex; flex-direction: column; gap: 2px;
    width: auto; align-items: flex-start; font-size: 11px; line-height: 1.45; color: var(--ic-muted); text-align: left; background: none; border: 0;
}
.cfsidefoot .icfootlinks { justify-content: flex-start; gap: 2px 10px; margin-top: 4px; }
.cfsidefoot a { color: var(--ic-muted) !important; }
.cfmain {
    flex: 1 1 auto; min-width: 0; max-width: none; box-sizing: border-box; padding: 24px 32px 48px;
    display: flex; flex-direction: column; gap: 20px;
}
.cfmain > .icfooter { display: none; }
#icPortalBanners { margin: 0; }
.ic-stack { gap: 20px; }
.icmaing { min-height: 0; }
.icwelcome { padding: 24px 0; }

/* Hub tabs (tabFrame.php): underline tabs; hidden where the sidebar / page buttons navigate */
ul.tabs { gap: 0 20px; border-bottom: 1px solid var(--ic-line); }
ul.tabs.tabssingle, ul.tabs.tabsnav { border-bottom: 0; }
ul.tabs > li > label, ul.tabs > li:first-child > label, ul.tabs > li:last-of-type > label, ul.tabs > li:first-child:last-of-type > label {
    background: none; padding: 0; border-radius: 0; margin: 0;
}
ul.tabs > li > label > span {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; border-radius: 0; background: none; box-shadow: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ic-muted); font-size: 14px; font-weight: 500;
}
ul.tabs > li > input[type="radio"]:checked + label > span {
    background: none; box-shadow: none; color: var(--ic-text); font-weight: 600; border-bottom-color: var(--ic-link);
}
ul.tabs .tab-content { margin-top: 20px; }
ul.tabs.tabsnav > li > label { display: none; }
ul.tabs.tabsnav .tab-content, ul.tabs.tabssingle .tab-content { margin-top: 0; }

/* Section tabs inside pages (role="tablist") */
.ic-tabs { gap: 0 20px; padding: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--ic-line); align-self: stretch; }
.ic-tab {
    min-height: 40px; padding: 0 2px; border-radius: 0; background: none !important; box-shadow: none !important;
    border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ic-muted); font-size: 14px;
}
.ic-tab[aria-selected="true"] { color: var(--ic-text); font-weight: 600; border-bottom-color: var(--ic-link); }
.cftabs-hidden { display: none; }

/* ---------------- page head ---------------- */
.cfhead { display: flex; flex-direction: column; gap: 6px; }
.cfcrumb { font-size: 13px; color: var(--ic-muted); }
.cfheadrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.cfheadtext { min-width: 0; }
.cfheadtext h1 { margin: 0; overflow-wrap: anywhere; }
.cfheadtext p { margin: 4px 0 0; color: var(--ic-muted); }
.cfheadactions { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-pagehead h1 { font-size: 24px; }

/* ---------------- components ---------------- */
.ic-card, .icpanel {
    border-radius: 8px; box-shadow: none; padding: 16px; gap: 12px;
    background: var(--ic-card); border: 1px solid var(--ic-line);
}
.ic-card-lg { padding: 20px; }
.ic-btn, .btnprimary, .btnsecondary, .icbtndanger {
    gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.5;
    background: var(--ic-card); color: var(--ic-text); border: 1px solid var(--ic-line);
}
body.icbody a.ic-btn, body.icbody a.btnsecondary { color: var(--ic-text); }
.ic-btn:hover, .btnsecondary:hover { opacity: 1; background: var(--ic-hover); }
.ic-btn-primary, .btnprimary, .ic-btn-icon.ic-btn-primary {
    min-height: 36px; background: var(--ic-accent); color: var(--ic-on-accent); border: 0; font-weight: 600;
}
body.icbody a.ic-btn-primary, body.icbody a.btnprimary { color: var(--ic-on-accent); }
.ic-btn-primary:hover, .btnprimary:hover { background: var(--ic-accent); opacity: 0.9; }
.ic-btn-secondary, .ic-btn-outline { background: var(--ic-card); border: 1px solid var(--ic-line); color: var(--ic-text); }
.ic-btn-soft { background: var(--ic-accent-soft); border-color: transparent; color: var(--ic-accent-text); }
.ic-btn-danger, .icbtndanger { background: none; border: 1px solid var(--ic-bad-text); color: var(--ic-bad-text); }
body.icbody a.ic-btn-danger { color: var(--ic-bad-text); }
.ic-btn-sm, .btnsmall { min-height: 34px; padding: 0 12px; }
/* <button> controls are 2px shorter than link buttons (border inside the box), as on the boards */
button.ic-btn { min-height: 36px; }
button.ic-btn-sm { min-height: 32px; padding: 0 14px; }
.ic-btn-lg { min-height: 40px; padding: 0 18px; font-size: 14px; }
.ic-btn-icon { width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 6px; }
.ic-btn-link { color: var(--ic-link); }
.ic-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.ic-pill, .icbadge, .icbadgesmall, .cfpill {
    display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 4px;
    font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.cfpill, .icdnsbadge.cfpill { letter-spacing: 0; line-height: 18px; text-transform: none; border: 0; min-height: 0; }
.ic-pill::before, .icbadge::before, .icbadgesmall::before { display: none; }
.cfpill-ok { background: var(--ic-ok-soft); color: var(--ic-ok-text); }
.cfpill-warn { background: var(--ic-warn-soft); color: var(--ic-warn-text); }
.cfpill-bad { background: var(--ic-bad-soft); color: var(--ic-bad-text); }
.cfpill-muted { background: var(--ic-seg); color: var(--ic-muted); }
.ic-tag { border-radius: 4px; }
.ic-chip { border-radius: 4px; min-height: 26px; }

.ic-switch { gap: 8px; min-height: 36px; color: var(--ic-text); font-size: 13px; }
.ic-switch-track { flex: 0 0 34px; width: 34px; height: 20px; }
.ic-switch-knob { top: 2px; left: 2px; width: 16px; height: 16px; box-shadow: none; }
.ic-switch[aria-checked="true"] .ic-switch-knob { left: 16px; }

.ic-seg { gap: 6px; padding: 0; border-radius: 0; background: none; }
.ic-seg-btn, .cffilter {
    min-height: 32px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer;
    border: 1px solid var(--ic-line); background: var(--ic-card); color: var(--ic-muted); box-shadow: none;
}
.ic-seg-btn[aria-pressed="true"], .ic-seg-btn[aria-selected="true"], .ic-seg-btn.is-on, .cffilter[aria-pressed="true"] {
    border-color: var(--ic-link); background: var(--ic-sel); color: var(--ic-text); font-weight: 600; box-shadow: none;
}

.ic-attn { border-radius: 8px; padding: 12px 16px; gap: 8px 16px; border: 1px solid var(--ic-line); }
.ic-attn-bad { border-color: var(--ic-bad-text); }
.ic-attn-warn { border-color: var(--ic-warn-text); }
.ic-attn-ok { border-color: var(--ic-ok-text); }
.ic-attn-title { font-size: 14px; }
.ic-note, .alertbox, .icpayseghint { border-radius: 8px; padding: 12px 16px; }

.ic-input, .ic-select, .ic-textarea, .fldinput, .fldselect, textarea.fldinput, #popup_prompt {
    min-height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--ic-line);
    background: var(--ic-card); font-size: 14px;
}
.ic-textarea, textarea.fldinput { padding: 8px 10px; }
.fldlabel, .ic-label { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.ic-field { gap: 4px; }
.fldinput:focus, .fldselect:focus, .ic-input:focus, .ic-select:focus, .ic-textarea:focus, .ic-search input:focus {
    border-color: var(--ic-link); box-shadow: none;
}
.ic-search { flex: 0 1 320px; min-width: 200px; }
.ic-search svg { left: 10px; top: 10px; color: var(--ic-muted); }
.ic-search input {
    min-height: 36px; padding: 0 10px 0 34px; border-radius: 6px; border: 1px solid var(--ic-line);
    background: var(--ic-card); font-size: 14px;
}
.ic-choice, .icbillprofilerow, .icpaysegopt { border-radius: 8px; }
.icpaysegment { border-radius: 8px; }
.icpaymentorderhead { border-radius: 8px; }
.ic-dl { font-size: 14px; gap: 10px 24px; }
.ic-dl dd strong { font-weight: 600; }
.ic-tile { border-radius: 8px; }
.ic-actionlink { border-radius: 6px; }
.ic-stat { border-radius: 8px; }
#popup_container { border-radius: 8px !important; }
#popup_ok, #popup_cancel { border-radius: 6px !important; min-height: 36px !important; }

/* Tables (DataTables + .ictable) */
.cftablecard { padding: 0; gap: 0; overflow: hidden; }
.cftoolbar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--ic-line);
}
.cffilters { display: flex; flex-wrap: wrap; gap: 6px; }
.ictable th, .icdatatablewrap table.dataTable thead th {
    font-size: 12px; font-weight: 600; color: var(--ic-muted); background: var(--ic-field);
}
.cftablecard .icdatatablewrap, .cftablecard .ic-dtcustom { margin: 0; padding: 0; border: 0; background: none; }
.cftablecard table.dataTable, .cftablecard table.ictable { width: 100% !important; margin: 0 !important; border-collapse: collapse; table-layout: fixed; }
.cftablecard table.dataTable > thead > tr > th, .cftablecard table.ictable > thead > tr > th {
    box-sizing: border-box; padding: 8px 0 8px 12px !important; line-height: 1.5; text-align: left;
    border-bottom: 1px solid var(--ic-line) !important; border-top: 0;
}
.cftablecard table.dataTable > tbody > tr > td, .cftablecard table.ictable > tbody > tr > td {
    box-sizing: border-box; padding: 4px 0 4px 12px !important; height: 49px; vertical-align: middle;
    border-top: 0 !important; border-bottom: 1px solid var(--ic-line) !important; background: transparent;
}
.cftablecard table > thead > tr > th:first-child, .cftablecard table > tbody > tr > td:first-child { padding-left: 16px !important; }
.cftablecard table > thead > tr > th:last-child, .cftablecard table > tbody > tr > td:last-child { padding-right: 16px !important; }
.cftablecard table > tbody > tr:hover > td { background: var(--ic-hover) !important; }
.cftablecard table.dataTable tbody tr.is-expired td { background: transparent; }
.cftablecard .dt-layout-row { margin: 0 !important; padding: 0 !important; }
.cftablecard .dt-layout-cell { padding: 0 !important; margin: 0 !important; }
.cftablecard .dt-container { margin: 0 !important; padding: 0 !important; }
.cftablecard .dt-layout-row:first-child:not(.dt-layout-table) { display: none; }
.cftablecard .dt-layout-row.dt-layout-table { padding: 0; }
.cftablecard .dt-layout-row:last-child:not(.dt-layout-table) {
    display: flex; padding: 10px 16px !important; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 13px; color: var(--ic-muted);
}
.icdatatablewrap .dt-info, .icdatatablewrap .dt-paging { margin: 0 !important; }
.icdatatablewrap .dt-info { padding: 0 !important; font-size: 13px; color: var(--ic-muted); }
.icdatatablewrap .dt-layout-row:last-child:not(.dt-layout-table) { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.icdatatablewrap .dt-paging { display: flex; gap: 6px; padding: 0 !important; }
.icdatatablewrap .dt-paging nav { display: flex; gap: 6px; }
.icdatatablewrap .dt-paging .dt-paging-button, .icdatatablewrap .dt-paging .dt-paging-button.disabled,
.icdatatablewrap .dt-paging .dt-paging-button.disabled:hover, .icdatatablewrap .dt-paging .dt-paging-button:hover {
    display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 0; margin: 0 !important;
    padding: 0 14px !important; border-radius: 6px !important; border: 1px solid var(--ic-line) !important;
    background: var(--ic-card) !important; color: var(--ic-text) !important; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5;
    box-shadow: none !important; opacity: 1; cursor: pointer;
}
.icdatatablewrap .dt-paging .dt-paging-button.disabled { cursor: default; color: var(--ic-text) !important; }
.icdatatablewrap div.dt-container .dt-paging .dt-paging-button.disabled, .icdatatablewrap div.dt-container .dt-paging .dt-paging-button.disabled:hover { color: var(--ic-text) !important; }
.icdatatablewrap .dt-paging .dt-paging-button.current { display: none; }

/* Selectable tiles: link-blue outline + selection tint (payment method, billing profile, MFA method) */
.ic-choice, .icbillprofilerow, .icbillprofilepickcard.icbillprofilerow { border: 1px solid var(--ic-line); border-radius: 8px; background: var(--ic-card); box-shadow: none; }
.ic-choice.is-on, .ic-choice[aria-pressed="true"], .ic-choice:has(input:checked),
.icbillprofilerow.icbillprofilerowselected { border: 1px solid var(--ic-link); border-left: 1px solid var(--ic-link); background: var(--ic-sel); box-shadow: none; padding: 10px 16px; }
.icpaysegment { padding: 0; gap: 8px; background: none; }
.icpaysegopt { border: 1px solid var(--ic-line); border-radius: 8px; background: var(--ic-card); padding: 8px 16px; }
.icpaysegopt.icpaysegselected { border: 1px solid var(--ic-link); background: var(--ic-sel); padding: 8px 16px; }
.icpaysegopt:focus-within, .icpaysegopt.icpaysegselected:focus-within { outline: 2px solid var(--ic-link); }
.icbillprofilerow-pip { border-color: var(--ic-muted); }
.icbillprofilerowselected .icbillprofilerow-pip { border-color: var(--ic-link); background: radial-gradient(var(--ic-link) 40%, transparent 46%); }
.icpaymentorderhead, .icpayseghint { border-radius: 8px; background: var(--ic-field); }
.icdomainbar { padding: 3px 3px 3px 12px; border-radius: 6px; border: 1px solid var(--ic-line); background: var(--ic-card); }
.icdomainbar:focus-within { border-color: var(--ic-link); }
.icdomainbar input, .icdomainbar input:focus { border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; font-size: 14px; }
.icdomainbar .ic-btn { min-height: 32px; }
.icsearchtitle { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }

/* ---------------- Domains (CfHome) ---------------- */
.cfstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.cfstat { display: block; padding: 14px 16px; }
.cfstat > span { display: block; font-size: 12px; color: var(--ic-muted); }
.cfstat > b { display: block; font-size: 22px; font-weight: 600; }
.cfalert { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.cfalert-bad { border-color: var(--ic-bad-text); background: var(--ic-bad-soft); }
.cfalert b { font-weight: 700; }
.cfdomcell { display: flex; flex-direction: column; min-width: 0; }
.cfdomname { font-weight: 600; overflow-wrap: anywhere; }
.cfsubtxt { font-size: 12px; color: var(--ic-muted); }
.cfrowlink { font-size: 13px; font-weight: 600; }
table[data-ic-table="domains_list"] th:nth-child(2) { width: 122px; }
table[data-ic-table="domains_list"] th:nth-child(3) { width: 162px; }
table[data-ic-table="domains_list"] th:nth-child(4) { width: 182px; }
table[data-ic-table="domains_list"] th:nth-child(5) { width: 118px; }
table[data-ic-table="domains_list"] td:nth-child(5) { text-align: right; }
.ichome .ic-td-date { line-height: 1.5; }
.ichome .ic-td-date small { font-size: 12px; }
.ichome .ic-td-date small { color: var(--ic-muted); }
.ichome .ic-td-date small.ic-text-warn { color: var(--ic-warn-text); }
.ichome .ic-td-date small.ic-text-bad { color: var(--ic-bad-text); }

/* ---------------- Domain page (CfDomain) ---------------- */
.cftiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.cftile { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.cftilelabel { font-size: 12px; color: var(--ic-muted); }
.cftilevalue { font-size: 18px; }
.cftilens { font-size: 14px; }
.cftilesub { font-size: 13px; color: var(--ic-muted); }
.cftile > a { font-size: 13px; font-weight: 600; align-self: flex-start; }
.cfgrid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 12px; align-items: start; }
.cfsection { display: block; padding: 0; }
.cfsection > h2 { margin: 0; padding: 14px 16px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--ic-line); }
.cfsection > .ic-dl { padding: 16px; }
.cfsection > p { padding: 0 16px 16px; }
.cfsetrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--ic-line); }
.cfsetrow:last-of-type { border-bottom: 0; }
.cfsetrow .ic-switch { flex: 0 0 auto; }
.cfsetrow .ic-btn[disabled] { opacity: 0.55; }
.cfsetrow .ic-btn { white-space: normal; text-align: center; }
.icdomaindetail [role="tabpanel"] > .ic-card + .ic-card { margin-top: 0; }

/* ---------------- DNS (CfDns) ---------------- */
.cfbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 16px; font-size: 13px; }
.icdnspicker[hidden] { display: none; }
#icdnsformhome:has(> .icdnsform[style*="none"]) { display: none; }
.cfpresets { gap: 12px; }
.cfpresetslbl { font-size: 14px; font-weight: 600; }
.cfpreset {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--ic-line); border-radius: 999px;
    background: transparent; color: var(--ic-text); font: inherit; font-size: 13px; cursor: pointer;
}
.cfpreset:hover { background: var(--ic-hover); }
/* Columns follow the board grid: 80px | 1fr | 2.4fr | 90px | 100px, 12px gaps, 16px side padding */
.icdnstable .icdnscoltype { width: 96px; }
.icdnstable .icdnscolname { width: 21.3%; }
.icdnstable .icdnscolttl { width: 102px; }
.icdnstable .icdnscolact { width: 128px; }
.icdnsactwrap { display: flex; justify-content: flex-end; }
.icdnstypepill {
    display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px; background: var(--ic-sel); color: var(--ic-text);
    font-family: var(--ic-mono); font-size: 12px; font-weight: 600; line-height: 1.5;
}
.icdnsname { font-family: var(--ic-mono); font-size: 13px; overflow-wrap: anywhere; }
.icdnsrec { min-width: 0; }
.icdnsrec .icdnscontentcell { display: block; margin: 0; font-family: var(--ic-mono); font-size: 13px; color: var(--ic-text); word-break: break-all; }
.icdnshint { display: block; font-size: 12px; color: var(--ic-muted); }
.icdnsrec .icdnscontentcell { line-height: 1.5; }
.icdnshint { line-height: 18px; }
.icdnsttl { color: var(--ic-muted); white-space: nowrap; }
.icdnsactions { white-space: nowrap; overflow: visible; }
.icdnsactions .ic-btn { margin: 0; }
.icdnsactions .ic-btn svg { transition: transform .15s ease; }
.icdnsrow.is-open .icdnsactions .ic-btn svg { transform: rotate(180deg); }
.icdnsform { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--ic-link); border-radius: 8px; background: var(--ic-card); }
.icdnsform[style*="display:none"], .icdnsform[style*="display: none"] { display: none !important; }
.icdnsform > h2 { margin: 0; font-size: 15px; }
.icdnsform.is-inline { border: 0; border-radius: 0; background: var(--ic-field); }
.icdnsform.is-inline > h2 { display: none; }
.cftablecard table > tbody > tr.icdnsformrow > td { padding: 0 !important; height: auto; }
.cftablecard table > tbody > tr.icdnsformrow:hover > td { background: transparent !important; }
.icdnsformgrid { display: grid; grid-template-columns: 120px 1fr 2fr 130px; gap: 10px; align-items: end; }
.icdnsformgrid .fldwrap { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: none; }
.icdnsformgrid .fldlabel { margin: 0; }
.icdnsformgrid .fldinput, .icdnsformgrid .fldselect { width: 100%; box-sizing: border-box; }
.icdnsform .icsearchhint { margin: 0; font-size: 13px; color: var(--ic-muted); }
.icdnsformactions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.icdnsformactions > .ic-row { margin-left: auto; }
.icdnsformactions [hidden] { display: none; }

/* ---------------- phones and narrow windows ---------------- */
@media (max-width: 860px) {
    .cfdesk { display: none !important; }
    .cfmenubtn { display: flex; }
    .cfhdr { position: static; }
    .cfbody { flex-direction: column; min-height: 0; }
    .cfside { display: none; width: auto; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--ic-line); }
    body.cf-menuopen .cfside { display: flex; }
    .cfsidefoot { display: none; }
    .cfmain { padding: 16px; max-width: none; }
    .cfmain > .icfooter { display: flex; }
    .cfmenu { right: 8px; }
    .icdnsformgrid { grid-template-columns: 1fr 1fr; }

    /* Stacking rows: two columns, name across the top */
    .cftablecard table > thead { display: none; }
    .cftablecard table, .cftablecard table > tbody { display: block; width: 100%; }
    .cftablecard table.ictable > tbody > tr:not(.icdnsformrow), .cftablecard table.dataTable > tbody > tr:not(.icdnsformrow) {
        display: grid; grid-template-columns: 1fr 1fr; row-gap: 4px; column-gap: 12px; align-items: center;
        padding: 12px; border-top: 0; border-bottom: 1px solid var(--ic-line);
    }
    .cftablecard table.ictable > tbody > tr > td, .cftablecard table.dataTable > tbody > tr > td,
    .cftablecard table.ictable > tbody > tr > td:first-child, .cftablecard table.ictable > tbody > tr > td:last-child,
    .cftablecard table.dataTable > tbody > tr > td:first-child, .cftablecard table.dataTable > tbody > tr > td:last-child {
        display: block; width: auto !important; height: auto; padding: 0 !important; border: 0 !important; text-align: left;
    }
    .cftablecard .ic-dtcustom table.dataTable > tbody > tr:last-child > * { border-bottom: 0 !important; }
    .cftablecard table > tbody > tr > td::before { display: none !important; }
    table[data-ic-table="domains_list"] > tbody > tr > td:first-child { grid-column: 1 / -1; }
    .cftablecard .ic-td-end { display: flex; justify-content: flex-end; }
    .cftablecard .icdnstable > tbody > tr > td.icdnsrec { grid-column: 1 / -1; }
    .cftablecard table.ictable > tbody > tr.icdnsformrow, .cftablecard table.ictable > tbody > tr.icdnsformrow > td { display: block; }
    .cftablecard .dt-layout-row:last-child { gap: 8px; }
}
@media (min-width: 861px) {
    .cftablecard .ic-dtcustom table.dataTable > tbody > tr:last-child > * { border-bottom: 1px solid var(--ic-line) !important; }
}
.icdomainbar input:focus-visible { outline: 0; }
.icbillprofilerowselected .icbillprofilerow-pip::after, .icbillprofilerow.icbillprofilerowselected .icbillprofilerow-pip::after { background: var(--ic-link); }
/* checker round 2 */
body.icbody .ic-card.cfsection > h2 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.cfrowlink { line-height: normal; }
.cffilter { line-height: 1.4; }
@media (max-width: 860px) {
    .cfmenubtn, .cfhdr .icthemetoggle { padding: 1px 6px; }
    .cfadd { padding: 0 13px; }
    .cftablecard .dt-layout-row:last-child:not(.dt-layout-table) { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; }
    .cftablecard .dt-layout-row:last-child:not(.dt-layout-table) > .dt-layout-cell { flex: 0 1 auto; }
}

/* ============================================================
   Design components (docs/design/cloudflare, src/ds.css section 2).
   Same class names as the design file; its container queries are the
   860px / 520px media queries here.
   ============================================================ */
:root, [data-theme="dark"] {
    --ic-info-text: #7AB0FF; --ic-info-soft: rgba(122, 176, 255, 0.12); --ic-skeleton: #26262A;
    --ic-inverse: #E6E6EA; --ic-on-inverse: #1D1D1F; --ic-inverse-link: #A03C00;
}
[data-theme="light"] {
    --ic-info-text: #0B5CD5; --ic-info-soft: rgba(11, 92, 213, 0.08); --ic-skeleton: #ECECF0;
    --ic-inverse: #2F2F33; --ic-on-inverse: #F5F5F7; --ic-inverse-link: #FFA05C;
}
:root {
    --ic-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
    --ic-e-1: 0 8px 28px rgba(0, 0, 0, 0.16); --ic-e-2: 0 24px 64px rgba(0, 0, 0, 0.28);
    --ic-focus: 2px solid var(--ic-link);
    --ic-dur-fast: 0.12s; --ic-dur: 0.15s; --ic-dur-slow: 0.2s; --ic-ease: ease;
}
.ico { display: inline-flex; flex: 0 0 auto; }
.ico svg { display: block; }
.ic-sr, .cfsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfheadmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--ic-muted); }
.ic-btn-ghost { background: none; border-color: transparent; color: var(--ic-link); padding: 0 8px; }
body.icbody a.ic-btn-ghost { color: var(--ic-link); }
.ic-btn-ghost:hover { background: var(--ic-hover); }
.ic-btn-block { width: 100%; }
.ic-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ic-row.end { justify-content: flex-end; }
.ic-row.between { justify-content: space-between; }

/* pills: icon + word, muted pill uses the text colour (4.5:1) */
.cfpill .ic-icon { margin-left: -2px; flex: 0 0 auto; }
.cfpill-info { background: var(--ic-info-soft); color: var(--ic-info-text); }
.cfpill-muted { color: var(--ic-text); }

/* alerts (also the .alertbox fragments that calc*.php return) */
.cfalert { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--ic-line); border-radius: 8px; background: var(--ic-card); color: var(--ic-text); box-shadow: none; margin: 0; font-size: 14px; }
.cfalert .cfalerttxt { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.cfalert .cfalerttxt > .ic-icon { margin-top: 2px; flex: 0 0 auto; }
.cfalert .cfalerttxt > div { min-width: 0; overflow-wrap: anywhere; }
.cfalert b, .cfalert strong { font-weight: 700; color: inherit; }
.cfalert-info { border-color: var(--ic-info-text); background: var(--ic-info-soft); } .cfalert-info .cfalerttxt > .ic-icon { color: var(--ic-info-text); }
.cfalert-warn { border-color: var(--ic-warn-text); background: var(--ic-warn-soft); } .cfalert-warn .cfalerttxt > .ic-icon { color: var(--ic-warn-text); }
.cfalert-bad { border-color: var(--ic-bad-text); background: var(--ic-bad-soft); } .cfalert-bad .cfalerttxt > .ic-icon { color: var(--ic-bad-text); }
.cfalert-ok { border-color: var(--ic-ok-text); background: var(--ic-ok-soft); } .cfalert-ok .cfalerttxt > .ic-icon { color: var(--ic-ok-text); }
.cfalert.cfalert-line { flex-wrap: nowrap; padding: 8px 12px; }
.cfalert.cfalert-line .cfalerttxt { flex: 1 1 auto; align-items: center; }
.cfalert.cfalert-line .cfalerttxt > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfalert.cfalert-line .ic-row { flex-wrap: nowrap; }
.cfalertx { border: 0; background: none; color: var(--ic-muted); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cfalertx:hover { background: var(--ic-hover); }
/* Dismissable alerts (icUiAlertDismissOpts): hidden for 7 days; the ✕ keeps a 44px hit area at every width */
.cfalert[hidden] { display: none; }
.cfalertx.icalertdismiss { position: relative; flex: 0 0 auto; }
.cfalertx.icalertdismiss::before { content: ""; position: absolute; inset: -6px; }
.cfalertx:focus-visible { outline: 2px solid var(--ic-link); outline-offset: 2px; }

/* forms */
.ic-help { font-size: 12px; color: var(--ic-muted); }
.ic-err { font-size: 12px; color: var(--ic-bad-text); display: flex; gap: 4px; align-items: center; }
.ic-input.is-error, .ic-select.is-error, .ic-textarea.is-error, .fldinput.is-error { border-color: var(--ic-bad-text); }
.ic-formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.ic-formgrid .span2 { grid-column: 1 / -1; }
.ic-check { display: flex; gap: 8px; align-items: flex-start; min-height: 24px; cursor: pointer; }
.ic-check input { accent-color: var(--ic-link); width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; }
.ic-radio { display: flex; gap: 8px; align-items: center; }
.ic-radio input { accent-color: var(--ic-link); width: 16px; height: 16px; margin: 0; }
.ic-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.icdrop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 16px; border: 1.5px dashed var(--ic-line); border-radius: 8px; color: var(--ic-muted); text-align: center; }
.ic-otp { display: flex; gap: 8px; }
.ic-code { font-family: var(--ic-mono); font-size: 13px; padding: 10px 12px; background: var(--ic-field); border: 1px solid var(--ic-line); border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.ic-segc { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--ic-seg); }
.ic-segc button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ic-text); font: inherit; font-size: 13px; cursor: pointer; }
.ic-segc button[aria-pressed="true"] { background: var(--ic-seg-on); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.ic-tab .cnt { font-size: 12px; padding: 0 6px; border-radius: 999px; background: var(--ic-seg); color: var(--ic-text); }

/* generic tables (non-DataTables) and pager */
.cft { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cft th { padding: 8px 0 8px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--ic-muted); background: var(--ic-field); border-bottom: 1px solid var(--ic-line); }
.cft td { padding: 4px 0 4px 12px; height: 49px; vertical-align: middle; border-bottom: 1px solid var(--ic-line); min-width: 0; overflow-wrap: anywhere; }
.cft th:first-child, .cft td:first-child { padding-left: 16px; }
.cft th:last-child, .cft td:last-child { padding-right: 16px; }
.cft tr:last-child td { border-bottom: 0; }
.cft tbody tr:hover td { background: var(--ic-hover); }
.cft td.end, .cft th.end { text-align: right; }
.cft .lbl { display: none; }
.cfsubtxt.warn { color: var(--ic-warn-text); } .cfsubtxt.bad { color: var(--ic-bad-text); }
.cfsubtxt .ic-icon { vertical-align: -2px; margin-right: 3px; }
.cfpager { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--ic-muted); border-top: 1px solid var(--ic-line); }
.cfpager .ic-row { flex-wrap: nowrap; }

/* sections */
.cfsection > .cfsecbody { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cfsplit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cfsplit > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cfstat > b { display: flex; align-items: center; gap: 6px; }
.cfstat > b.warn { color: var(--ic-warn-text); } .cfstat > b.bad { color: var(--ic-bad-text); }

/* empty / error / skeleton */
.cfempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; }
.cfempty > .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--ic-sel); color: var(--ic-muted); align-items: center; justify-content: center; }
.cfempty h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cfempty p { margin: 0; color: var(--ic-muted); max-width: 420px; }
.cfempty.err > .ico { background: var(--ic-bad-soft); color: var(--ic-bad-text); }
.sk { display: block; border-radius: 4px; background: var(--ic-skeleton); height: 12px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); animation: icshimmer 1.4s infinite; }
@keyframes icshimmer { to { transform: translateX(100%); } }
.sk.h22 { height: 22px; } .sk.h16 { height: 16px; } .sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; } .sk.w25 { width: 25%; }
.sklist { display: flex; flex-direction: column; gap: 10px; }

/* modal, menu, toast (jquery.alerts #popup_container keeps its ids and gets the modal elevation) */
.cfmodal { width: 100%; max-width: 520px; background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px; box-shadow: var(--ic-e-2); display: flex; flex-direction: column; }
.cfmodal.wide { max-width: 720px; }
.cfmodalhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ic-line); }
.cfmodalhead h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cfmodalbody { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cfmodalfoot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ic-line); }
#popup_container { box-shadow: var(--ic-e-2) !important; border: 1px solid var(--ic-line) !important; }
.cfmenusep { height: 1px; background: var(--ic-line); margin: 4px 0; }
.cfmenu { box-shadow: var(--ic-e-1); }
.cftoast { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: flex; gap: 12px; align-items: center; max-width: min(420px, calc(100% - 32px)); padding: 12px 14px; border-radius: 8px; background: var(--ic-inverse); color: var(--ic-on-inverse); box-shadow: var(--ic-e-1); }
.cftoast a { color: var(--ic-inverse-link) !important; font-weight: 600; margin-left: auto; white-space: nowrap; }
.cftoast .ic-icon.ok { color: var(--ic-ok); } .cftoast .ic-icon.bad { color: #FF7A72; }

/* auth / public / error layouts (no sidebar) */
.cfauth { min-height: 100vh; display: flex; flex-direction: column; }
.cfauthtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 57px; padding: 0 16px; border-bottom: 1px solid var(--ic-line); background: var(--ic-card); box-sizing: border-box; }
.cfauthmain { flex: 1 1 auto; display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px 40px; }
.cfauthcard { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.cfauthcard.wide { max-width: 560px; }
.cfauthcard h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.cfauthcard .lead { color: var(--ic-muted); margin: -8px 0 0; }
.cfauthalt { text-align: center; font-size: 13px; color: var(--ic-muted); margin: 0; }
.cfor { display: flex; align-items: center; gap: 10px; color: var(--ic-muted); font-size: 12px; }
.cfor::before, .cfor::after { content: ""; flex: 1; height: 1px; background: var(--ic-line); }
.cfpubhero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 16px 24px; }
.cfpubhero h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.cfpubhero p { margin: 0; color: var(--ic-muted); max-width: 560px; }
.cfpubwrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px 48px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.cferr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 80px 16px; }
.cferr .code { font-size: 64px; font-weight: 700; letter-spacing: -2px; color: var(--ic-accent-text); line-height: 1; }
.cferr h1 { margin: 0; font-size: 24px; font-weight: 600; }
.cferr p { margin: 0; color: var(--ic-muted); max-width: 460px; }
.cffoot { display: none; padding: 20px 16px 28px; border-top: 1px solid var(--ic-line); font-size: 12px; color: var(--ic-muted); text-align: center; }
.cffoot a { margin: 0 6px; }
.cfauth .cffoot { display: block; }

/* support thread, steps, summary, prose, result rows */
.cfthread { display: flex; flex-direction: column; gap: 12px; }
.cfmsg { padding: 12px 16px; border: 1px solid var(--ic-line); border-radius: 8px; background: var(--ic-card); max-width: 720px; overflow-wrap: anywhere; }
.cfmsg.staff { border-left: 3px solid var(--ic-accent); align-self: flex-end; }
.cfmsg .who { font-size: 12px; color: var(--ic-muted); margin-bottom: 4px; }
.cfsteps { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.cfsteps li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--ic-muted); font-size: 13px; }
.cfsteps li b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ic-line); display: flex; align-items: center; justify-content: center; font-size: 12px; box-sizing: border-box; }
.cfsteps li.done b { background: var(--ic-ok-soft); border-color: transparent; color: var(--ic-ok-text); }
.cfsteps li.on { color: var(--ic-text); font-weight: 600; }
.cfsteps li.on b { background: var(--ic-accent); border-color: var(--ic-accent); color: var(--ic-on-accent); }
.cfsum { display: flex; flex-direction: column; gap: 8px; }
.cfsum .ln { display: flex; justify-content: space-between; gap: 12px; }
.cfsum .tot { border-top: 1px solid var(--ic-line); padding-top: 8px; font-weight: 700; font-size: 16px; }
.cfprose { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.cfprose h2 { font-size: 16px; font-weight: 600; margin: 8px 0 0; }
.cfprose p, .cfprose li { color: var(--ic-text); margin: 0; }
.cfresult { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--ic-line); }
.cfresult:last-child { border-bottom: 0; }
.cfresult .nm { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.cfresult .pr { font-weight: 600; }

@media (max-width: 860px) {
    .cfsplit { grid-template-columns: 1fr; }
    .cffoot { display: block; }
    .cft thead { display: none; }
    .cft, .cft tbody { display: block; width: 100%; }
    .cft tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ic-line); }
    .cft tbody tr:last-child { border-bottom: 0; }
    .cft td, .cft td:first-child, .cft td:last-child { display: block; height: auto; padding: 0; border: 0; text-align: left; }
    .cft td.wide { grid-column: 1 / -1; }
    .cft td.m-hide { display: none; }
    .cft td.end { text-align: right; justify-self: end; }
    .cft .lbl { display: inline; color: var(--ic-muted); font-size: 12px; margin-right: 6px; }
    .cfstats { grid-template-columns: 1fr 1fr; }
    .cfstat { padding: 12px 14px; }
    .cfstat > b { font-size: 20px; }
}
@media (max-width: 520px) {
    .cfheadactions { width: 100%; }
    .cfheadactions .ic-btn { flex: 1 1 auto; }
    .cftoolbar .ic-search { flex: 1 1 100%; min-width: 0; }
    .ic-dl { grid-template-columns: 1fr; gap: 2px; }
    .ic-dl dd { margin-bottom: 8px; }
    .cfsetrow { flex-wrap: wrap; }
    .cfmodalfoot .ic-btn { flex: 1 1 auto; }
    .cftoast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .cfpubhero h1 { font-size: 26px; }
    .cfauthmain { padding-top: 32px; }
    .cferr { padding: 56px 16px; }
    .cferr .code { font-size: 52px; }
    .cfmenu { left: 8px; right: 8px; width: auto; }
}
/* 44px touch targets on touch devices and narrow windows */
@media (pointer: coarse), (max-width: 860px) {
    .ic-btn, button.ic-btn, button.ic-btn-sm, .ic-btn-sm, .cfadd, .cfsidelink, .cfmenuitem, .ic-input, .ic-select, .fldinput, .fldselect,
    .cffilter, .cfpreset, .ic-tab, .ic-switch, .icdatatablewrap .dt-paging .dt-paging-button { min-height: 44px; }
    .cficonbtn, .cfmenubtn, .cfhdr .icthemetoggle { width: 44px; height: 44px; }
    .cfadd { min-width: 44px; }
    .cfalertx { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { body.icbody *, body.icbody *::after { transition: none !important; animation: none !important; } }

/* ---------------- Domains group (design 21002-1) ---------------- */
#icPortalBanners { display: flex; flex-direction: column; gap: 8px; }
#icPortalBanners[hidden], #icPortalBanners:not(:has(.cfalert)) { display: none; }
#icPortalBanners .cfalert[hidden] { display: none; }
@media (max-width: 860px) {
    .cfalert.cfalert-line { flex-wrap: wrap; padding: 12px 16px; }
    .cfalert.cfalert-line .cfalerttxt { align-items: flex-start; }
    .cfalert.cfalert-line .cfalerttxt > div { white-space: normal; }
}
.cffilter[aria-pressed="true"]::before {
    content: ""; width: 12px; height: 12px; flex: 0 0 12px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cffilter { display: inline-flex; align-items: center; gap: 6px; }
table[data-ic-table="domains_list"] th:nth-child(2) { width: 196px; }
.ichome .ic-td-date { display: flex; flex-direction: column; }
.ichome .ic-td-date .lbl { display: none; }
.ichome .ic-td-date small .ic-icon { vertical-align: -2px; margin-right: 3px; }
.ichome .cfheadactions .ic-btn .ic-icon { width: 16px; height: 16px; }
@media (max-width: 860px) {
    /* two lines per domain: name + status, then expiry + action; auto-renew stays on the domain page */
    table[data-ic-table="domains_list"] > tbody > tr > td:first-child { grid-column: 1; }
    table[data-ic-table="domains_list"] > tbody > tr > td:nth-child(2) { grid-column: 2; justify-self: end; }
    table[data-ic-table="domains_list"] > tbody > tr > td:nth-child(3) { grid-column: 1; }
    table[data-ic-table="domains_list"] > tbody > tr > td:nth-child(4) { display: none !important; }
    table[data-ic-table="domains_list"] > tbody > tr > td:nth-child(5) { grid-column: 2; justify-self: end; align-self: center; }
    .ichome .ic-td-date .lbl { display: block; font-size: 12px; color: var(--ic-muted); }
    .ichome .cfheadactions .ic-btn { flex: 1 1 0; }
}
/* Domain page sections (design 21002-1d / -1s / -1r): the domain head gives way to the section head */
.icdomaindetail:has(> .icdomsec:not([hidden])) > .cfhead { display: none; }
.cfsetrow > div { min-width: 0; flex: 1 1 160px; }
.cfsetrow > div > b { display: block; font-weight: 600; }
.cfsetrow > div > span.d { display: block; font-size: 13px; color: var(--ic-muted); overflow-wrap: anywhere; }
.icdomaindetail .cfsetrow > .ic-switch, .icdomaindetail .cfsetrow > .cfpill, .icdomaindetail .cfsetrow > .ic-btn, .icdomaindetail .cfsetrow > a { flex: 0 0 auto; }
.cfsetrowhead { background: var(--ic-field); padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
.icresultslot:empty { display: none; }
.cfsection .fldwrap { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: none; }
.cfsection .fldwrap .fldinput, .cfsection .fldwrap .fldselect { width: 100%; box-sizing: border-box; }
.cftilesub .ic-icon { vertical-align: -2px; }
.cfheadactions .ic-btn .ic-icon, .cfsetrow .ic-btn .ic-icon { width: 16px; height: 16px; }
@media (max-width: 860px) {
    .cftiles { grid-template-columns: 1fr 1fr; }
    .cftile { padding: 12px 14px; }
    .cftilevalue { font-size: 16px; }
    .icdomaindetail .cfheadactions .ic-btn:first-child { flex: 0 0 auto; }
}
/* Domain search (design 21001-1, also the public search P01) */
.icsearchcard { gap: 8px; }
.icsearchcard .ic-label { margin: 0; }
.icdomainbar { display: flex; align-items: center; gap: 6px; }
.icdomainbar .icdomainbar-icon { color: var(--ic-muted); flex: 0 0 auto; }
.icdomainbar input.icdomainbar-input { flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 0; }
.icdomainbar .icdomainbar-btn { flex: 0 0 auto; width: auto; }
.icsearchchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.icsearchchip.cffilter { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ic-line); background: var(--ic-card); color: var(--ic-muted); font-size: 13px; font-weight: 400; }
.icsearchchip.cffilter.icsearchchip-active { border-color: var(--ic-link); background: var(--ic-sel); color: var(--ic-text); font-weight: 600; }
.icsearchchip.cffilter.icsearchchip-active::before {
    content: ""; width: 12px; height: 12px; flex: 0 0 12px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.icsearchhint { font-size: 12px; color: var(--ic-muted); margin: 0; }
#icsearchresults { display: flex; flex-direction: column; gap: 16px; }
#icsearchresults:empty { display: none; }
.icsearchresultsblock .cftoolbar .icsearchresults-head { margin: 0; font-size: 14px; font-weight: 700; }
.icsearchsuggestblock { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px; overflow: hidden; }
.icsearchsuggestblock .icsearchresults-head { margin: 0; padding: 12px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ic-line); }
.icsearchsuggestblock .icsearchlane-head { margin: 0; padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--ic-muted); background: var(--ic-field); border-bottom: 1px solid var(--ic-line); }
.icresult.cfresult { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; margin: 0; border: 0; border-bottom: 1px solid var(--ic-line); border-radius: 0; background: transparent; box-shadow: none; }
.icresult.cfresult:last-child { border-bottom: 0; }
.icresult.cfresult .icresultmain { flex: 1 1 200px; min-width: 0; }
.icresult.cfresult .icresultname { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.icresult.cfresult .icresultace { font-size: 12px; color: var(--ic-muted); }
.icresult.cfresult .icresultactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.icresult.cfresult .icresultprice { font-weight: 600; font-size: 14px; color: var(--ic-text); }
.icresult.cfresult .icstatus.cfpill { margin: 0; }
.icresult.cfresult .icstatus.cfpill::before { display: none; }
.icresult.cfresult .icsuggesttld { display: none; }
@media (max-width: 520px) {
    .icresult.cfresult { display: grid; grid-template-columns: 1fr auto; }
    .icresult.cfresult .icresultactions { display: contents; }
    .icresult.cfresult .icstatus.cfpill { grid-column: 2; grid-row: 1; justify-self: end; }
    .icresult.cfresult .icresultprice { grid-column: 1; }
}
.icresult.cfresult .icstatus.cfpill { padding: 1px 8px; border-radius: 4px; font-size: 12px; min-height: 0; }
/* Payment method tiles + billing profiles (shared checkout, design 21002-1r / 21002-2 / 21007-1) */
.icpaysegment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.icpaysegopt { position: relative; display: grid; grid-template-columns: 16px 18px minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 10px 14px; cursor: pointer; text-align: left; }
.icpaysegopt.icpaysegselected { padding: 10px 14px; }
.icpaysegopt > input.icpaymethodradio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.icpaysegopt .icpayseg-pip { grid-row: 1 / span 2; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ic-muted); box-sizing: border-box; }
.icpaysegopt.icpaysegselected .icpayseg-pip { border-color: var(--ic-link); background: radial-gradient(var(--ic-link) 40%, transparent 46%); }
.icpaysegopt .icpayseg-ico { grid-row: 1 / span 2; color: var(--ic-muted); }
.icpaysegopt .icpayseglabel { grid-column: 3; font-weight: 600; font-size: 14px; }
.icpaysegopt .icpaysegsub { grid-column: 3; font-size: 12px; color: var(--ic-muted); }
.icpaymentsection .icsectiontitle { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.icpaymentsection .icsectionhint { margin: 0 0 8px; font-size: 13px; }
.icbillprofilelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px; }
.icregcheck > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ic-link); min-height: 32px; display: flex; align-items: center; }
.icregcheck[open] > summary { margin-bottom: 8px; }
.icregcheck .icsearchwrap { display: flex; flex-direction: column; gap: 8px; }
.icregaside { position: sticky; top: 72px; }
@media (max-width: 860px) { .icregaside { position: static; } }
/* Transfer (design 21002-3) */
.ictransfers .ic-tabs { margin-bottom: 0; }
.icfoldbtn > summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid var(--ic-line); border-radius: 6px; background: var(--ic-card); font-weight: 600; cursor: pointer; }
.icfoldbtn > summary::-webkit-details-marker { display: none; }
.icfoldbtn[open] > summary { margin-bottom: 12px; }
.icinvitecard.is-highlight { border-color: var(--ic-link); }
.ic-formgrid .fldwrap, .icformgrid.ic-formgrid .fldwrap { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: none; min-width: 0; }
.ic-formgrid .fldinput, .ic-formgrid .fldselect { width: 100%; box-sizing: border-box; }
.ic-formgrid .ic-field { gap: 4px; }
.icregprice.cfsum { background: none; padding: 0; border: 0; font-size: 14px; }

/* ---------------- DNS group (design 21004-1/2/3) ---------------- */
.ic-checkswitch { position: relative; cursor: pointer; }
.ic-checkswitch > input.ic-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ic-checkswitch > input:checked + .ic-switch-track { background: var(--ic-ok); }
.ic-checkswitch > input:checked + .ic-switch-track .ic-switch-knob { left: 16px; }
.ic-checkswitch > input:focus-visible + .ic-switch-track { outline: 2px solid var(--ic-link); outline-offset: 2px; }
.icdnsheader .cfpill .ic-icon, .cfsection > h2 .cfpill { flex: 0 0 auto; }
.icdnsempty .cfempty { padding: 32px 20px; }
.icnscard .cftoolbar { justify-content: flex-start; gap: 4px 16px; }
#icnstable td { height: auto; padding-top: 8px; padding-bottom: 8px; }
#icnstable .fldinput { width: 100%; box-sizing: border-box; font-family: var(--ic-mono); font-size: 13px; }
@media (max-width: 860px) {
    /* DNS records: type + name + action on the first line, content full width below, TTL hidden */
    .cftablecard table.ictable.icdnstable > tbody > tr.icdnsrow:not(.icdnsformrow) { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; }
    .cftablecard .icdnstable > tbody > tr.icdnsrow > td:nth-child(1) { grid-column: 1; grid-row: 1; }
    .cftablecard .icdnstable > tbody > tr.icdnsrow > td:nth-child(2) { grid-column: 2; grid-row: 1; }
    .cftablecard .icdnstable > tbody > tr.icdnsrow > td:nth-child(5) { grid-column: 3; grid-row: 1; }
    .cftablecard .icdnstable > tbody > tr.icdnsrow > td.icdnsrec { grid-column: 1 / -1; grid-row: 2; }
    .cftablecard .icdnstable > tbody > tr.icdnsrow > td.icdnsttl { display: none !important; }
    /* Nameservers: one block per row, the three inputs stacked with their labels */
    #icnstable tr:first-child { display: none; }
    #icnstable tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: stretch; padding: 12px 16px; }
    #icnstable tbody tr > td:first-child { grid-column: 1 / -1; }
    #icnstable tbody tr > td + td::before { display: none !important; }
    #icnstable td::before { content: attr(data-label); display: block !important; font-size: 12px; font-weight: 600; color: var(--ic-muted); margin-bottom: 2px; }
}
.cfsection > h2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------------- Invoices (design 21007-1) ---------------- */
table[data-ic-table="orders_list"] th:nth-child(1) { width: 140px; }
table[data-ic-table="orders_list"] th:nth-child(3) { width: 104px; text-align: right; }
table[data-ic-table="orders_list"] th:nth-child(4) { width: 150px; }
table[data-ic-table="orders_list"] th:nth-child(5) { width: 108px; }
table[data-ic-table="orders_list"] th:nth-child(6) { width: 200px; }
.icorderacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ic-td-end { display: flex; justify-content: flex-end; text-align: right; }
.icorderspending:not(:empty) { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px; padding: 16px; }
@media (max-width: 860px) {
    table[data-ic-table="orders_list"] > tbody > tr > td:nth-child(1) { grid-column: 1; }
    table[data-ic-table="orders_list"] > tbody > tr > td:nth-child(3) { grid-column: 2; justify-self: end; }
    table[data-ic-table="orders_list"] > tbody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    table[data-ic-table="orders_list"] > tbody > tr > td:nth-child(4) { grid-column: 1; }
    table[data-ic-table="orders_list"] > tbody > tr > td:nth-child(5) { display: none !important; }
    table[data-ic-table="orders_list"] > tbody > tr > td:nth-child(6) { grid-column: 2; justify-self: end; }
}

/* ---------------- SSL (design 21010-1 / 21010-2 / M01 / M02) ---------------- */
table[data-ic-table="ssl_certs_list"] th:nth-child(2) { width: 200px; }
table[data-ic-table="ssl_certs_list"] th:nth-child(3) { width: 170px; }
table[data-ic-table="ssl_certs_list"] th:nth-child(4) { width: 220px; }
.icsslpage .ic-td-date { display: flex; flex-direction: column; }
.icsslcatalogpage { display: flex; flex-direction: column; gap: 20px; padding: 0; border: 0; background: none; }
.icsslsectionheading { margin: 0; font-size: 16px; font-weight: 600; }
.icsslfeaturedgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.icsslfeaturedcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px; box-shadow: none; }
.icsslfeaturedcard .icsslproductname { font-size: 18px; font-weight: 600; }
.icsslfeaturedcard .icsslcardtype { font-size: 13px; color: var(--ic-muted); }
.icsslfeaturedcard .icsslcatalogpageprice { font-size: 20px; font-weight: 600; }
.icsslfeaturedcard .ic-btn { align-self: flex-start; }
.icsslbadge, .icssltypebadge { display: inline-flex; align-self: flex-start; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 18px; }
.icsslbadge--free { background: var(--ic-ok-soft); color: var(--ic-ok-text); }
.icsslbadge--featured { background: var(--ic-info-soft); color: var(--ic-info-text); }
.icssltypebadge { background: var(--ic-sel); color: var(--ic-text); }
.icsslcatalogtoolbar { display: flex; padding: 12px 16px; background: var(--ic-card); border: 1px solid var(--ic-line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.icsslcatalogtoolbar .fldinput { max-width: 320px; width: 100%; }
.icsslcatalogtable { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 0 0 8px 8px; border-collapse: separate; border-spacing: 0; }
.icsslcatalogtable th { padding: 8px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--ic-muted); background: var(--ic-field); border-bottom: 1px solid var(--ic-line); }
.icsslcatalogtable td { padding: 8px 12px; border-bottom: 1px solid var(--ic-line); vertical-align: middle; }
.icsslcatalogtable tr:last-child td { border-bottom: 0; }
.icsslcatalogtable .btnprimary.btnsmall { min-height: 32px; background: var(--ic-card); color: var(--ic-text); border: 1px solid var(--ic-line); }
/* modal shell (#icsslmodal) in the design's modal look */
.icsslmodal .icsslmodalbackdrop { background: var(--ic-overlay); }
.icsslmodal .icsslmodalpanel { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px; box-shadow: var(--ic-e-2); }
.icsslmodal .icsslmodalhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--ic-line); background: var(--ic-card); }
.icsslmodal .icsslmodaltitle { margin: 0; font-size: 16px; font-weight: 600; }
.icsslmodal .icsslmodaltitleicon { color: var(--ic-accent); }
.icsslmodal .icsslmodalclose { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--ic-muted); font-size: 22px; cursor: pointer; }
.icsslmodal .icsslmodalclose:hover { background: var(--ic-hover); }
.icsslmodal .icsslmodalbody { padding: 16px; }
.icsslmodal .icsslmodalfooter { border-top: 1px solid var(--ic-line); padding-top: 12px; }
@media (max-width: 860px) {
    table[data-ic-table="ssl_certs_list"] > tbody > tr > td:nth-child(1) { grid-column: 1; }
    table[data-ic-table="ssl_certs_list"] > tbody > tr > td:nth-child(2) { grid-column: 2; justify-self: end; }
    table[data-ic-table="ssl_certs_list"] > tbody > tr > td:nth-child(3) { grid-column: 1; }
    table[data-ic-table="ssl_certs_list"] > tbody > tr > td:nth-child(4) { grid-column: 2; justify-self: end; }
    .icsslcatalogtable thead { display: none; }
    .icsslcatalogtable, .icsslcatalogtable tbody { display: block; width: 100%; }
    .icsslcatalogtable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--ic-line); }
    .icsslcatalogtable td { display: block; padding: 0; border: 0; }
    .icsslcatalogtable td:nth-child(2), .icsslcatalogtable td:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
    .icsslmodal .icsslmodalpanel { border-radius: 12px 12px 0 0; }
}
.icsslfeaturedcard { position: relative; }
.icsslbadge { position: static; margin-left: 6px; }
.icsslfeaturedcard .icsslbadge { margin-left: 0; }
@media (max-width: 860px) {
    .icsslcatalogtable td:nth-child(4) { display: none; }
    .icsslcatalogtable td:nth-child(1) { grid-column: 1; }
    .icsslcatalogtable td:nth-child(5) { grid-column: 2; justify-self: end; }
    .icsslcatalogtable td:nth-child(6) { grid-column: 2; justify-self: end; }
}

/* ---------------- Support (design 21006-1 / 21006-2) ---------------- */
.icsectiontitle2 { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.icsupport .ic-formgrid .span2, .icsupport .fldwrap.span2 { grid-column: 1 / -1; }
.icsupport textarea.fldinput, .icticketview textarea.fldinput { width: 100%; box-sizing: border-box; min-height: 110px; }
table[data-ic-table="tickets_list"] th:nth-child(1) { width: 140px; }
table[data-ic-table="tickets_list"] th:nth-child(3) { width: 150px; }
table[data-ic-table="tickets_list"] th:nth-child(4) { width: 150px; }
.icticketview .icbacktolist { align-self: flex-start; }
.cfmsg.staff { border-left: 3px solid var(--ic-accent); }
@media (max-width: 860px) {
    table[data-ic-table="tickets_list"] > tbody > tr > td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; font-weight: 600; }
    table[data-ic-table="tickets_list"] > tbody > tr > td:nth-child(1) { grid-column: 1; }
    table[data-ic-table="tickets_list"] > tbody > tr > td:nth-child(3) { grid-column: 2; justify-self: end; }
    table[data-ic-table="tickets_list"] > tbody > tr > td:nth-child(4) { display: none !important; }
    .cfmsg.staff { align-self: stretch; }
}
span.cfrowlink { color: var(--ic-link); }

/* ---------------- Guide (design 21011-1) ---------------- */
.icguidebar { max-width: none; }
.icguidebody.ic-card { gap: 0; padding: 0 16px; }
.icguidebody .icguidesection { padding: 16px 0; border-bottom: 1px solid var(--ic-line); margin: 0; background: none; border-radius: 0; box-shadow: none; }
.icguidebody .icguidesection:last-child { border-bottom: 0; }
.icguidebody .icguidesection.is-catoff { display: none !important; }
.icguidebody .icguidesectionhead { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.icguidebody .icguidesectionhead h2 { margin: 0; font-size: 16px; font-weight: 600; }
.icguidebody .icguidesectionicon { display: none; }
.icguidebody .icguidesectionbody { max-width: 760px; color: var(--ic-text); }
.icguidebody .icguidesteps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.icguidebody .icguidesteps li { display: flex; gap: 10px; align-items: flex-start; }
.icguidebody .icguidestepnum { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ic-line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ic-muted); }
.icguidebody .icguidecallout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--ic-info-text); background: var(--ic-info-soft); border-radius: 8px; margin-top: 8px; }
.icguidebody .icguidecallout.icguidecalloutwarn { border-color: var(--ic-warn-text); background: var(--ic-warn-soft); }
.icguidebody .icguidecallout p { margin: 0; }
.icguidebody .icguidemenugrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.icguidebody .icguidemenutile { border: 1px solid var(--ic-line); border-radius: 8px; padding: 10px 12px; background: var(--ic-card); box-shadow: none; }
.icguidebody .icguidemenutileicon { display: none; }

/* ---------------- Servers (design 21012-1) ---------------- */
.ichostservers #ichtableservers td.end, .ichostservers #ichtableservers th.end { text-align: right; }
.ichostservers #ichtableservers .icorderacts { justify-content: flex-end; }

/* ---------------- Profile (design 21009-1/2/3/4) ---------------- */
.icproftabs { margin-top: -4px; }
.icmfamethodcard.ic-choice { position: relative; }
.icmfamethodcard.ic-choice > input.icmfamethodradio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icmfamethodcard.ic-choice.icsslcardselected { border-color: var(--ic-link); background: var(--ic-sel); }
.icmfamethodcard.ic-choice.icsslcardselected .pip { border-color: var(--ic-link); background: radial-gradient(var(--ic-link) 40%, transparent 46%); }
.icmfamethodcard.ic-choice:focus-within { outline: 2px solid var(--ic-link); }
.icprofile .ictogglerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icbillprofiletable { display: block; }
.icbillprofiletable .icbillprofilecard.cfsetrow { border: 0; border-bottom: 1px solid var(--ic-line); border-radius: 0; margin: 0; background: none; box-shadow: none; padding: 14px 16px; cursor: pointer; }
.icbillprofiletable .icbillprofilecard.cfsetrow:last-child { border-bottom: 0; }
.icbillprofiletable .icbillprofilecard.cfsetrow:hover { background: var(--ic-hover); }
.icbillprofilecard-head { min-width: 0; display: flex; flex-direction: column; }
/* Payment picker cards: the body is a column, so the head keeps its own height (no 260px basis) */
.icbillprofilepickcard .icbillprofilecard-head { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.icbillprofilecard-head .d { font-size: 13px; color: var(--ic-muted); }
.icbillprofilecard-pills { display: flex; gap: 6px; flex: 0 0 auto; }
.icbillprofileacts { flex: 0 0 auto; justify-content: flex-end; }
.icprofile .icdangerzone .fldwrap textarea { width: 100%; box-sizing: border-box; }
.ic-choice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-align: left; }
.ic-choice .pip { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ic-muted); box-sizing: border-box; }
.ic-choice.is-on .pip { border-color: var(--ic-link); background: radial-gradient(var(--ic-link) 40%, transparent 46%); }
.ic-choice b { display: block; font-weight: 600; } .ic-choice span.d { display: block; font-size: 13px; color: var(--ic-muted); font-weight: 400; }
.icmfamethodgrid .icmfamethodcard.ic-choice { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 12px; padding: 12px 16px; min-height: 0; }
.icmfamethodgrid .icmfamethodcard.ic-choice > div { min-width: 0; }
.icbillprofiletable .icbillprofilecard.cfsetrow { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; text-align: left; min-height: 0; height: auto; }
.icbillprofiletable .icbillprofilecard.cfsetrow > * { flex-grow: 0; }
.icbillprofiletable .icbillprofilecard.cfsetrow > .icbillprofilecard-head { flex: 1 1 260px; }
.icbillprofiletable .icbillprofilecard.cfsetrow, .icbillprofiletable .icbillprofilecard-head { text-align: left; align-items: flex-start; }
.icbillprofiletable .icbillprofilecard.cfsetrow { align-items: center; }
.icbillprofiletable .icbillprofileacts { flex-wrap: nowrap; }
.icbillprofiletable .icbillprofileacts .ic-btn { white-space: nowrap; }
@media (max-width: 520px) { .icbillprofiletable .icbillprofileacts { flex-wrap: wrap; } }
.icbillprofiletable .icbillprofilecard.cfsetrow > .icbillprofileacts { flex: 0 0 auto; }
.icbillprofiletable .icbillprofilecard-pills { flex: 0 0 auto; }
@media (max-width: 860px) {
    .cftablecard table.ictable > tbody > tr > td.m-hide, #ichtableservers td.m-hide { display: none !important; }
    .cftablecard table.icapikeytable > tbody > tr > td.wide { grid-column: 1 / -1; }
    .cftablecard table.icapikeytable > tbody > tr > td.end { grid-column: 2; justify-self: end; }
}

/* ---------------- Auth (design A01-A09) ---------------- */
.cfauth.icloginwrap { background: var(--ic-bg); padding: 0; align-items: stretch; justify-content: flex-start; }
.cfauthtop .cfbrand b { font-size: 16px; }
.cfauthtop .ic-row { flex-wrap: nowrap; }
.cfauthtop select { min-height: 34px; width: auto; padding: 0 28px 0 10px; border: 1px solid var(--ic-line); border-radius: 6px; background-color: var(--ic-card); color: var(--ic-text); font: inherit; font-size: 13px; }
.cfauthmain.icloginmain { padding: 56px 16px 40px; }
.cfauthcard.icloginbox { width: 100%; max-width: 400px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.cfauthbrand { display: flex; align-items: center; gap: 10px; color: var(--ic-accent); }
.cfauthbrand > span { display: flex; flex-direction: column; color: var(--ic-text); }
.cfauthbrand b { font-size: 20px; font-weight: 700; line-height: 1.2; }
.cfauthbrand .ic-muted { font-size: 12px; }
.cfauthcard .icloginsub { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.3px; text-align: left; }
.cfauthcard .lead { margin: -8px 0 0; color: var(--ic-muted); }
.cfauthcard form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cfauthcard .fldwrap { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: none; }
.cfauthcard .fldinput { width: 100%; box-sizing: border-box; }
.cfauthcard .icpwwrap { position: relative; }
.cfauthcard .icpwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ic-link); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.cfauthcard .ic-btn-block { margin-top: 4px; }
.cfauthcard .cfauthalt { margin: 0; text-align: center; }
.cfauthcard .icauthgoogle { margin: 0; }
.gbtn, .btngoogle.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; border: 1px solid var(--ic-line); border-radius: 6px; background: var(--ic-card); color: var(--ic-text) !important; font-weight: 600; text-decoration: none !important; }
.btngoogle-disabled.gbtn { opacity: .5; cursor: not-allowed; }
.cfauthcard .icauthdivider.cfor { margin: 0; }
.cfauthcard .iccheckbox-label.ic-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.cfauth .icfooter { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; padding: 20px 16px 28px; border-top: 1px solid var(--ic-line); font-size: 12px; color: var(--ic-muted); text-align: center; background: none; }
.cfauth .icfooter .icfootlinks { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; justify-content: center; }
@media (max-width: 520px) { .cfauthmain.icloginmain { padding-top: 32px; } }

/* ---------------- Public (design P01 / P02) + Errors (E01-E07) ---------------- */
.icmarketingpage main { flex: 1 1 auto; }
.cfpubwrap.icmarketingbox { max-width: 960px; padding: 0 16px 48px; margin: 0 auto; border: 0; background: none; box-shadow: none; border-radius: 0; text-align: left; }
.cfpubwrap .icsearchcard { gap: 8px; }
.icpublictop .ic-row { flex-wrap: nowrap; }
.icmarketingssl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.icmarketingssl .icsslproductcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: 8px; box-shadow: none; position: relative; text-align: left; }
.icmarketingssl .icsslproductname { font-size: 18px; font-weight: 600; }
.icmarketingssl .icsslcardtype { font-size: 13px; color: var(--ic-muted); }
.icmarketingssl .icsslcardprice { font-size: 20px; font-weight: 600; }
.icerrorbody { background: var(--ic-bg); color: var(--ic-text); font-family: var(--ic-font); margin: 0; }
.icerrorpage .cferr { flex: 1 1 auto; background: none; border: 0; box-shadow: none; max-width: none; }
.icerrorpage .cferr .code { display: block; margin: 0; }
.icerrorpage .icthemetoggle .bi { font-size: 16px; }
.icerrorpage .cffoot { display: block; }
.icfragerr { margin-top: 8px; }
.icerrorpage.cfauth { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100vh; padding: 0; margin: 0; max-width: none; }
.icerrorpage .cfauthtop { width: 100%; }
@media (max-width: 520px) { .icmarketingssl { grid-template-columns: 1fr 1fr; } .icmarketingssl .icsslproductname { font-size: 15px; } }
.icerrorbody .ic-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-family: inherit; }

/* ---------------- Shell (design S00-S03) ---------------- */
.cfdrawerhead, .cfdrawerextra, .cfdrawerfoot, .cfdrawerscrim { display: none; }
.cfdrawerhead { align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px 0 12px; }
.cfdrawerhead .cfbrand { display: flex; align-items: center; gap: 8px; }
.cfdrawerextra { flex-direction: column; gap: 6px; }
.cfdrawerextra .cfmenuhead { border: 0; padding: 4px 12px 8px; margin: 0; }
.cfdrawerextra .ic-search { margin: 0 4px 6px; flex: 0 0 auto; min-width: 0; }
.cfdrawerfoot { flex-direction: column; gap: 2px; }
@media (max-width: 860px) {
    body.cf-menuopen .cfdrawerscrim { display: block; position: fixed; inset: 0; z-index: 79; background: var(--ic-overlay); }
    body.cf-menuopen .cfside { display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86%); z-index: 80;
        overflow-y: auto; border-right: 1px solid var(--ic-line); border-bottom: 0; box-shadow: var(--ic-e-2); background: var(--ic-side); }
    body.cf-menuopen .cfdrawerhead, body.cf-menuopen .cfdrawerextra, body.cf-menuopen .cfdrawerfoot { display: flex; }
    body.cf-menuopen { overflow: hidden; }
}
@media (max-width: 520px) {
    .cfadd > span { display: none; }
    .cfadd { width: 44px; min-width: 44px; padding: 0; justify-content: center; margin-left: auto; }
    .cfhdr { gap: 8px; }
}

/* "Check if it's free" row in the empty domains list (icdatatable.js icDomainsAvailRow) */
.icdatatable td.dt-empty .icavailrow { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; white-space: normal; text-align: left; }
.icavailrow-ico { display: inline-flex; flex: none; }
/* Public legal pages (/terms, /privacy, /contact) and payment-UI legal links */
.iclegalbody { max-width: 820px; }
.iclegalsection { display: flex; flex-direction: column; gap: 8px; }
.iclegalsection h2 { margin: 0 0 4px; font-size: 18px; }
.iclegalsection p, .iclegalsection li { margin: 0; line-height: 1.6; }
.iclegalsection ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.iclegaldl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.iclegaldl dt { color: var(--ic-muted); }
.iclegaldl dd { margin: 0; overflow-wrap: anywhere; }
.iclegalph { background: #ffe58a; color: #3a2c00; padding: 0 4px; border-radius: 4px; font-family: monospace; }
.iclegalupdated { margin: 0; }
.iclegallinks { text-align: center; margin: 8px 0 0; }
.iclegalpaylogo img { max-width: 100%; height: auto; border-radius: 6px; }
.icpaysegopt .icpayseg-logo { grid-column: 3; height: 32px; width: auto; max-width: 100%; margin-top: 6px; border-radius: 4px; }
.icpaylegal { font-size: 12px; margin: 6px 0 0; }
@media (max-width: 560px) { .iclegaldl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .iclegaldl dd { margin-bottom: 8px; } }
.icwdconsentwrap { margin: 10px 0 0; }
.icwdconsentwrap .iccheckbox-text { font-size: 13px; line-height: 1.45; }
