:root{color-scheme:light;--bg:#f4f7fc;--card:#fff;--ink:#172841;--muted:#56657a;--line:#d9e2f0;--accent:#1356d5;--tint:#e9f0ff;--danger:#ae2333;--shadow:0 12px 36px #18396309}*{box-sizing:border-box}html{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.65;background:var(--bg);color:var(--ink)}html[data-theme=dark]{color-scheme:dark;--bg:#101825;--card:#182334;--ink:#eef3fc;--muted:#afbdd1;--line:#35435a;--accent:#8cb9ff;--tint:#213858;--danger:#ff9ba7;--shadow:none}@media(prefers-color-scheme:dark){html[data-theme=auto]{color-scheme:dark;--bg:#101825;--card:#182334;--ink:#eef3fc;--muted:#afbdd1;--line:#35435a;--accent:#8cb9ff;--tint:#213858;--danger:#ff9ba7;--shadow:none}}body{margin:0}a{color:var(--accent);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,select,input,textarea{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:9px 14px;background:var(--card);color:var(--ink)}button{cursor:pointer;font-weight:650}button:hover{background:var(--tint)}button:disabled{opacity:.6;cursor:wait}.primary{background:#1356d5;color:#fff;border-color:#1356d5}.primary:hover{background:#0c43ab}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.top{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px;gap:16px}.brand{font-weight:800;font-size:21px;text-decoration:none;color:var(--ink);white-space:nowrap}.brand-icon{display:inline-grid;place-items:center;background:#1356d5;color:white;width:36px;height:36px;border-radius:11px;font-size:15px;margin-right:6px}.top nav{display:flex;align-items:center;gap:16px}.container{max-width:960px;margin:auto;padding:24px}.intro{text-align:center;padding:20px 0 28px}.eyebrow{letter-spacing:.16em;font-size:11px;color:var(--accent);font-weight:800}h1{font-size:clamp(25px,4vw,38px);line-height:1.3;letter-spacing:-.035em;margin:14px 0}h2{font-size:19px;margin-top:0}h3{font-size:17px}.intro p,.subtle{color:var(--muted);font-size:14px}.hero,.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:20px;box-shadow:var(--shadow)}.hero{border-top:4px solid #2764d9;padding:30px;text-align:center}.hero-top{display:flex;justify-content:space-between;align-items:center}.hero-top h2{margin:0;font-size:15px}.badge{background:var(--tint);color:var(--accent);font-size:12px;padding:4px 10px;border-radius:30px}.ip{font-size:clamp(26px,6.4vw,60px);font-weight:750;letter-spacing:-.03em;overflow-wrap:anywhere;margin:22px 0 10px;font-variant-numeric:tabular-nums}.actions{display:flex;gap:10px;flex-wrap:wrap}.hero .actions{justify-content:center}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid .panel{margin:0}dl{display:grid;grid-template-columns:minmax(110px,1fr) 1.7fr;gap:12px;margin-bottom:0}dt{color:var(--muted);font-size:14px}dd{margin:0;overflow-wrap:anywhere;font-size:14px}details.panel{margin-top:20px}summary{cursor:pointer;font-weight:700;min-height:32px}.prose{max-width:760px;margin:30px auto}.faq{padding:16px}footer{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;padding:32px;font-size:13px;border-top:1px solid var(--line);color:var(--muted)}.skip{position:absolute;top:-100px}.skip:focus{top:8px;left:8px;background:var(--card);padding:12px;z-index:10}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#status{min-height:26px;text-align:center;color:var(--accent)}.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1400px;margin:auto}.sidebar{padding:20px}.sidebar a{display:block;padding:12px}.admin-main{padding:24px;min-width:0}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-grid .panel{margin:0}.critical{border:2px solid var(--danger);border-radius:12px;padding:16px;margin:10px 0;color:var(--danger)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line);max-width:400px;overflow-wrap:anywhere}form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}form label{display:flex;flex-direction:column;font-size:13px;gap:4px}.stack{display:grid;gap:12px}dialog{border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);max-width:600px;width:calc(100% - 32px);max-height:calc(100svh - 32px);overflow:auto}dialog::backdrop{background:#0008}pre{white-space:pre-wrap;overflow-wrap:anywhere}.bars{display:flex;align-items:end;gap:3px;height:100px}.bar{flex:1;background:var(--accent);min-width:3px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.mobile-menu{display:none}@media(max-width:700px){.top{padding:16px;gap:8px}.top nav{gap:10px}.brand{font-size:17px}.container{padding:16px}.hero,.panel{padding:20px}.grid,.admin-grid{grid-template-columns:1fr}.actions button{flex:1}.admin-shell{display:block}.sidebar{display:none}.sidebar.open{display:block}.mobile-menu{display:inline-block}.admin-main{padding:16px}.hero-top{gap:12px}.intro{padding-top:8px}dl{grid-template-columns:1fr 1.4fr}.top select{max-width:95px}form label{flex:1;min-width:130px}input,select{max-width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.dns-form{align-items:end}.dns-form label{flex:1 1 320px}.dns-form input{width:100%}.dns-results-head{display:flex;justify-content:space-between;align-items:start;gap:18px;flex-wrap:wrap}.dns-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dns-record{border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0}.dns-record h3{margin:0 0 8px}.dns-record ul{padding-left:20px;overflow-wrap:anywhere}.dns-record li{margin:8px 0}.dns-status{font-weight:700}.dns-ok{color:var(--accent)}.dns-nodata,.dns-nxdomain{color:var(--muted)}.dns-servfail,.dns-refused,.dns-timeout,.dns-network_error,.dns-invalid_response,.dns-dns_error{color:var(--danger)}@media(max-width:700px){.dns-records{grid-template-columns:1fr}.dns-results-head .actions{width:100%}.dns-form button{width:100%}}
.dns-formerr,.dns-notimp,.dns-yxdomain,.dns-yxrrset,.dns-nxrrset,.dns-notauth,.dns-notzone,.dns-truncated{color:var(--danger)}
.rdap-content{overflow-wrap:anywhere}.rdap-content dl{margin:14px 0}.rdap-group{border-top:1px solid var(--line);padding:14px 0}.rdap-group h3{margin:0 0 8px}.rdap-list{margin:0;padding-left:22px}.rdap-list li{margin:6px 0}.rdap-warning{border-left:4px solid var(--accent);padding:12px;background:var(--tint);border-radius:8px}.rdap-error{color:var(--danger);font-weight:700}
/* Email diagnostics UI */
.mail-diagnostics-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}.mail-diagnostics-form label{display:grid;gap:6px;font-weight:700}.mail-diagnostics-form input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line,#ccd9e7);border-radius:10px;background:var(--panel,#fff);color:var(--text,#18263a);font:inherit}.mail-diagnostics-form button{min-height:48px}.mail-diagnostics-sections{display:grid;gap:14px}.mail-diagnostic-card{padding:16px;border:1px solid var(--line,#dbe3ee);border-radius:14px;background:var(--panel,#fff);overflow-wrap:anywhere}.mail-diagnostic-card h3{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px}.mail-diagnostic-status{padding:3px 9px;border-radius:999px;background:#eaf0f8;color:#34445c;font-size:.78rem}.status-ok{background:#e7f7ed;color:#176c36}.status-warning{background:#fff4d6;color:#805700}.status-error{background:#fde8e7;color:#a3231d}.status-info{background:#e9f1ff;color:#2259a8}.status-unavailable{background:#eee;color:#555}.mail-diagnostic-card dl{display:grid;grid-template-columns:minmax(110px,.35fr) minmax(0,1fr);gap:7px 14px}.mail-diagnostic-card dt{font-weight:700}.mail-diagnostic-card dd{margin:0;overflow-wrap:anywhere}.mail-diagnostic-card pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border-radius:9px;background:var(--code-bg,#f2f5f9)}.mail-diagnostic-warnings{color:var(--muted,#596579)}
@media(max-width:700px){.mail-diagnostics-form{grid-template-columns:1fr}.mail-diagnostics-form button{width:100%}.mail-diagnostic-card dl{grid-template-columns:1fr;gap:3px}.mail-diagnostic-card dd{margin-bottom:8px}}

/* Mobile accessibility and layout refinements. */
.top.has-mobile-nav{position:relative;z-index:20}
.mobile-menu-toggle{display:none;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:8px 14px;border-radius:12px}
.top.has-mobile-nav nav[hidden]{display:none}
.top.has-mobile-nav nav a{white-space:nowrap;word-break:keep-all;writing-mode:horizontal-tb;min-height:48px;display:flex;align-items:center;padding:10px 12px;text-decoration-thickness:1px}
.top.has-mobile-nav nav select{min-height:48px;width:100%}
.hero,.panel,.grid>*{min-width:0}
.dns-record,.rdap-content,.mail-diagnostic-card,.mail-diagnostic-card pre,.dns-record li{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.hero #timestamp{font-size:.82rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.admin-main .table-wrap{max-width:100%;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.admin-main .table-wrap table{font-variant-numeric:tabular-nums}
.admin-main .table-wrap thead th{position:sticky;top:0;background:var(--card);z-index:2}
.admin-main .table-wrap th:first-child,.admin-main .table-wrap td:first-child{position:sticky;left:0;background:var(--card);z-index:1}
@media(max-width:700px){
  .container{padding:12px 16px}
  .top.has-mobile-nav{padding:10px 16px;gap:10px;min-height:60px}
  .top.has-mobile-nav .brand{font-size:18px;line-height:1.2}
  .top.has-mobile-nav .mobile-menu-toggle{display:inline-flex}
  .top.has-mobile-nav nav{display:none;position:absolute;top:calc(100% - 1px);left:12px;right:12px;z-index:30;flex-direction:column;align-items:stretch;gap:4px;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
  .top.has-mobile-nav.mobile-nav-open nav{display:flex}
  .top.has-mobile-nav nav a{width:100%;border-radius:9px;line-height:1.3;font-size:1rem}
  .top.has-mobile-nav nav a:hover{background:var(--tint)}
  .top.has-mobile-nav nav label{display:none}
  .top.has-mobile-nav nav select{max-width:none}
  .intro{padding:4px 0 12px}
  .intro h1{margin:8px 0;font-size:clamp(24px,7vw,32px)}
  .intro p{margin:6px 0;font-size:14px}
  .hero{padding:18px 16px;margin-bottom:12px}
  .hero-top{align-items:center}
  .ip{font-size:clamp(28px,8vw,36px);margin:12px 0 8px;letter-spacing:-.025em}
  .hero>p:not(#timestamp){margin:8px 0 14px}
  .hero .actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .hero .actions button{min-width:0;min-height:50px;padding:10px 8px;white-space:nowrap;word-break:keep-all;line-height:1.25}
  .hero .actions #copy-ip{grid-column:1/-1}
  .hero #timestamp{margin:12px 0 0;line-height:1.45}
  .panel{padding:18px 16px}
  .dns-results-head{gap:10px}
  .dns-results-head>div{min-width:0;max-width:100%}
  .dns-results-head .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .dns-results-head .actions button{min-width:0;min-height:48px;padding:8px;white-space:normal;overflow-wrap:anywhere}
  .dns-form label,.mail-diagnostics-form label{min-width:0;width:100%}
  .dns-records{grid-template-columns:minmax(0,1fr)}
  .dns-record ul{padding-left:18px;margin:8px 0}
  pre{max-width:100%;overflow-x:auto}
  .admin-main .table-wrap{border:1px solid var(--line);border-radius:10px}
  .admin-main .table-wrap table{min-width:560px;font-size:12px}
  .admin-main .table-wrap th,.admin-main .table-wrap td{padding:7px 8px;white-space:nowrap}
  .admin-main .table-wrap th:first-child,.admin-main .table-wrap td:first-child{min-width:150px;max-width:150px}
}

/* DNS propagation report: contain long names and preserve mobile readability. */
.propagation-output{display:grid;gap:12px;min-width:0}
.propagation-card{min-width:0;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--card)}
.propagation-card summary{font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.propagation-card pre{max-width:100%;margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font: .86rem/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink)}
#propagation-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:5rem;resize:vertical}
#propagation-form label{min-width:0}
@media(max-width:700px){
 #propagation-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 #propagation-submit{width:100%;min-height:48px}
 .propagation-card{padding:10px}
 .propagation-card summary{line-height:1.4}
 .propagation-card pre{font-size:.78rem}
}


/* Mobile dashboard statistics and restrained status/menu spacing. */
@media(max-width:700px){
  .top.has-mobile-nav nav{gap:6px;padding:12px;max-height:calc(100svh - 88px);overflow-y:auto;overscroll-behavior:contain}
  .top.has-mobile-nav nav a{min-height:50px}
  .hourly-statistics-table{min-width:0!important;width:100%;table-layout:fixed}
  .admin-main .hourly-statistics-table th:first-child,.admin-main .hourly-statistics-table td:first-child{position:static;left:auto;min-width:0;max-width:none}
  .hourly-statistics-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .hourly-statistics-table tbody{display:block;width:100%}
  .hourly-statistics-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);padding:8px 2px}
  .hourly-statistics-table tbody td{display:block;min-width:0;max-width:none;padding:7px 5px;border:0;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:.83rem}
  .hourly-statistics-table tbody td:first-child{grid-column:1/-1;text-align:left;padding:5px 7px 9px;margin-bottom:3px;border-bottom:1px solid var(--line);font-weight:700;font-variant-numeric:tabular-nums}
  .hourly-statistics-table tbody td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--muted);font-size:.69rem;line-height:1.25;font-weight:600}
  .hero+#status{display:table;min-height:0;margin:-8px auto 16px;padding:5px 14px;border:1px solid var(--line);border-radius:999px;background:var(--tint);color:var(--accent);font-size:.88rem;line-height:1.4}
  .hero+#status:empty{display:none;margin:0;padding:0;border:0}
}

/* dns-menu-compact-20261017 */
@media(max-width:700px){
.top.has-mobile-nav nav{
 gap:2px;
 padding:8px;
 max-height:calc(100svh - 90px);
 overflow-y:auto;
 overscroll-behavior:contain;
}
.top.has-mobile-nav nav a{
 min-height:44px;
 padding:6px 10px;
 line-height:1.25;
 white-space:normal;
 overflow-wrap:anywhere;
}
.top.has-mobile-nav nav select{
 min-height:44px;
}
}

/* subnet-nav-integration 20261017.1: preserve existing mobile menu behavior. */
@media(min-width:701px){.top:has([data-subnet-nav]){flex-wrap:wrap}.top:has([data-subnet-nav]) nav{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:6px}.top:has([data-subnet-nav]) nav a{white-space:nowrap;word-break:normal;writing-mode:horizontal-tb}.top:has([data-subnet-nav]) nav select{width:auto}}
@media(max-width:700px){.top.has-mobile-nav:has([data-subnet-nav]) nav{gap:2px;padding:8px;max-height:calc(100svh - 86px);overflow-y:auto}.top.has-mobile-nav:has([data-subnet-nav]) nav a{min-height:44px;padding:8px 10px;line-height:1.3;white-space:normal;overflow-wrap:break-word;word-break:normal;writing-mode:horizontal-tb}.top.has-mobile-nav:has([data-subnet-nav]) nav select{min-height:44px;max-width:100%}}

/* tls-http-nav-integration 20261017.1: preserve existing mobile menu behavior. */
@media(min-width:701px){.top:has([data-tls-http-nav]){flex-wrap:wrap}.top:has([data-tls-http-nav]) nav{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:6px}.top:has([data-tls-http-nav]) nav a{white-space:nowrap;word-break:normal;writing-mode:horizontal-tb}.top:has([data-tls-http-nav]) nav select{width:auto}}
@media(max-width:700px){.top.has-mobile-nav:has([data-tls-http-nav]) nav{gap:2px;padding:8px;max-height:calc(100svh - 86px);overflow-y:auto}.top.has-mobile-nav:has([data-tls-http-nav]) nav a{min-height:44px;padding:8px 10px;line-height:1.3;white-space:normal;overflow-wrap:break-word;word-break:normal;writing-mode:horizontal-tb}.top.has-mobile-nav:has([data-tls-http-nav]) nav select{min-height:44px;max-width:100%}}

/* spf-dmarc-nav-integration 20261018.1 */
@media(min-width:701px){.top:has([data-spf-dmarc-nav]) nav a[data-spf-dmarc-nav]{white-space:nowrap;word-break:normal;writing-mode:horizontal-tb}}
@media(max-width:700px){.top.has-mobile-nav:has([data-spf-dmarc-nav]) nav a[data-spf-dmarc-nav]{min-height:44px;white-space:normal;overflow-wrap:anywhere;word-break:normal;writing-mode:horizontal-tb}}

/* R2: purpose-based navigation; display only. */
.tool-guide,.tool-guide *,.tool-page-toc{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.tool-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:0;list-style:none}
.tool-guide-grid li{border:1px solid var(--line);border-radius:.75rem;padding:.85rem}
.tool-guide-grid a{display:flex;flex-direction:column;gap:.35rem;min-height:44px}
.tool-guide-grid p{margin:.5rem 0 0;color:var(--muted)}
.tool-page-toc{margin-block:1rem;padding:.7rem;border:1px solid var(--line);border-radius:.75rem}
.tool-page-toc summary{cursor:pointer;min-height:44px;display:list-item}
.tool-page-toc a,.tool-breadcrumb a{display:inline-block;padding:.4rem 0;min-height:44px}
.tool-guide:target,.tool-page-toc a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:640px){.tool-guide-grid{grid-template-columns:minmax(0,1fr)}}

/* html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group)EO R2: match the enhanced header before DOMContentLoaded. No-Jhtml.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group) remains expanded. */
html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group){position:relative;z-index:20}
html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group) nav a{white-space:nowrap;word-break:keep-all;writing-mode:horizontal-tb;min-height:48px;display:flex;align-items:center;padding:10px 12px;text-decoration-thickness:1px}
html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group) nav select{min-height:48px;width:100%}
/* Existing tool navigation uses auto-sized desktop theme controls. */
@media(min-width:701px){
 html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group):has([data-subnet-nav]) nav select,html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group):has([data-tls-http-nav]) nav select,html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group):has([data-dkim-nav]) nav select,html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group):has([data-dns-records-nav]) nav select{width:auto}
 html.ip-public-ui .hero+#status{min-height:1.65em}
}
@media(max-width:700px){
 html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group){padding:10px 16px;gap:10px;min-height:68px}
 html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group) .brand{font-size:18px;line-height:1.2}
 html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group) nav{display:none}
 html.ip-public-ui .top:not(.has-mobile-nav):has(> nav .nav-group)::after{content:"";display:block;flex:0 0 48px;width:48px;height:48px}
 html.ip-public-ui .hero+#status{display:block;width:fit-content;min-height:calc(1.4em + 12px);margin:-8px auto 16px;padding:5px 14px;border:1px solid var(--line);border-radius:999px;background:var(--tint);color:var(--accent);font-size:.88rem;line-height:1.4}
 html.ip-public-ui .hero+#status:empty{display:block;visibility:hidden;margin:-8px auto 16px;padding:5px 14px;border:1px solid transparent}
}


/* Mobile form focus and intrinsic-width containment: 20261021. */
@media(max-width:700px){
  /* Keep editable text readable on iOS while preserving pinch zoom. */
  #main :is(input,select,textarea),
  .top.has-mobile-nav select{
    font-size:16px;
    font-size:max(16px,1rem);
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  #main{width:100%;min-width:0}
  #main :is(.intro,.panel,.hero,.grid,form,label,fieldset,.stack,.actions,dl,dt,dd),
  #main form>*{
    min-width:0;
    max-width:100%;
  }
  #main form{width:100%}
  #main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){width:100%}
  #main textarea{resize:vertical}
  #main :is(h1,h2,h3,p,dt,dd,summary,a,code,pre){overflow-wrap:anywhere}
  #main button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  #main :is(.grid,.mail-diagnostics-form,.spf-dmarc-options,.spf-dmarc-advanced-grid,.tls-http-grid){grid-template-columns:minmax(0,1fr)}
  #main .mail-diagnostics-sections{min-width:0;grid-template-columns:minmax(0,1fr)}
  #main .mail-diagnostics-form :is(input,button){width:100%}
  #main .table-wrap{min-width:0;max-width:100%;overflow-x:auto}
}

/* Mail-header glossary pages share the standard tool content width. */
.mail-header-term-page .panel.prose{max-width:none;margin:0 0 20px}

.mail-header-guide-page .panel.prose{max-width:none;margin:0 0 20px}
/* IP retrieval history */
.history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.history-heading h2{margin:0}.history-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.history-list li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--tint)}.history-ip{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.history-time{color:var(--muted);font-size:.86rem;font-variant-numeric:tabular-nums}.history-note{margin-bottom:0}.tool-breadcrumb{margin:0 0 18px;color:var(--muted);font-size:.9rem}.tool-breadcrumb a{display:inline-block;padding:4px 0;min-height:36px}@media(max-width:700px){.history-heading{align-items:flex-start}.history-heading button{min-height:42px;padding:8px 10px}.history-list li{align-items:flex-start;flex-direction:column;gap:2px}}

/* Mail-header glossary terms use the same content width as the other tools. */
.mail-header-term-page .panel.prose{max-width:none;margin:0 0 20px}


/* Unified public navigation: compact mobile menu 20261026. */
@media(max-width:700px){
  .top.has-mobile-nav nav{gap:2px;padding:8px;max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
  .top.has-mobile-nav nav a{min-height:44px;padding:8px 10px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;word-break:normal;writing-mode:horizontal-tb}
  .top.has-mobile-nav nav select{min-height:44px;max-width:100%}
}


/* Navigation grouping: diagnostics, checks, search and calculator 20261026. */
.nav-group{display:contents}.nav-group-title{display:none}
@media(max-width:700px){
  .top.has-mobile-nav nav .nav-group{display:grid;gap:2px;width:100%;padding:4px 0}
  .top.has-mobile-nav nav .nav-group+.nav-group{border-top:1px solid var(--line);padding-top:8px;margin-top:4px}
  .top.has-mobile-nav nav .nav-group-title{display:block;padding:4px 10px 2px;color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.06em}
  .top.has-mobile-nav nav .nav-group-preferences{padding-top:8px}
}

/* Mail header authentication result timestamps */
.mail-header-auth-results{margin:0 0 12px;padding-left:24px}.mail-header-auth-results .auth-result-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.mail-header-auth-results .auth-result-label{min-width:0;overflow-wrap:anywhere}.mail-header-auth-results .auth-result-time{margin-left:auto;white-space:nowrap;color:var(--muted,#596579);font-size:.9em;font-variant-numeric:tabular-nums}
@media(max-width:700px){.mail-header-auth-results .auth-result-row{display:block}.mail-header-auth-results .auth-result-time{display:block;margin:3px 0 0 1.7em;white-space:normal}}

.usage-chart{display:grid;gap:14px}.usage-axis{display:grid;grid-template-columns:repeat(7,minmax(24px,1fr));gap:4px;margin-left:220px;color:var(--muted);font-size:11px;text-align:center}.usage-row{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:12px;align-items:center}.usage-label{overflow-wrap:anywhere}.usage-bars{display:grid;grid-template-columns:repeat(7,minmax(24px,1fr));align-items:end;gap:4px;height:84px}.usage-bar{background:var(--accent);border-radius:4px 4px 0 0;min-height:2px}.usage-empty{color:var(--muted)}@media(max-width:700px){.usage-axis{margin-left:0}.usage-row{grid-template-columns:1fr}.usage-bars{height:64px}}

/* ボタン利用状況はスマホでも数値列を表示 */
@media(max-width:700px){.admin-main #button-usage-totals .table-wrap table{min-width:0;width:100%;table-layout:fixed}.admin-main #button-usage-totals .table-wrap th:first-child,.admin-main #button-usage-totals .table-wrap td:first-child{position:static;min-width:0;max-width:none;width:60%;white-space:normal;overflow-wrap:anywhere}.admin-main #button-usage-totals .table-wrap th:not(:first-child),.admin-main #button-usage-totals .table-wrap td:not(:first-child){width:20%;text-align:right}}

/* 7日間の棒グラフにクリック数を表示 */
#button-usage .usage-bars{padding-top:20px;box-sizing:border-box}
#button-usage .usage-bar{position:relative}
#button-usage .usage-bar-count{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);color:var(--ink);font-size:10px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}

/* お問い合わせの入力欄を画面幅に合わせる */
.contact-form{display:flex;flex-direction:column;align-items:stretch;gap:16px;width:100%}
.contact-form>p{margin:0;width:100%}.contact-form label{min-width:0}.contact-form input:not([type=checkbox]):not([type=hidden]),.contact-form textarea{box-sizing:border-box;width:100%;max-width:100%;font-size:16px}.contact-form textarea{resize:vertical}.contact-form button{align-self:flex-start}.contact-form p:has(input[type=checkbox]) label{display:inline-flex;flex-direction:row;align-items:center;gap:8px}.contact-form input[type=checkbox]{min-height:0}

/* Unified public-tool section layout 20261031. */
.tool-page-standard>.panel.prose,.tool-page-standard>.tool-guide,.tool-page-standard #mail-header-tool>.panel.prose{max-width:none;margin:0 0 20px}
.tool-glossary-list{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;padding:0;margin:12px 0 0}
.tool-glossary-list>li{margin:0;max-width:100%}
.tool-glossary-list a{display:inline-block;min-height:40px;padding:8px 0;overflow-wrap:anywhere}

/* DNS propagation result verdict */
.propagation-verdict{border:2px solid var(--line);border-radius:12px;padding:14px 18px;margin:0 0 18px}.propagation-verdict strong{display:block;font-size:18px}.propagation-verdict p{margin:6px 0 0}.propagation-verdict.status-ok{border-color:#177c45;color:var(--ink)}.propagation-verdict.status-warning{border-color:var(--danger);color:var(--danger)}

/* Shared IP investigation links */
.ip-investigate{font-size:14px!important;font-weight:650;line-height:1.5;margin-inline-start:8px;display:inline-block;white-space:nowrap;vertical-align:baseline;letter-spacing:normal;min-height:28px;padding:3px 2px;max-width:100%}.ip-lookup-token{overflow-wrap:anywhere}.ip-lookup-token>.ip-investigate:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Wiki-style glossary previews: pointer, keyboard and touch. */
.glossary-inline-term{color:inherit;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:var(--accent);text-underline-offset:3px;cursor:help}.glossary-inline-term:hover,.glossary-inline-term:focus-visible{color:var(--accent)}
.glossary-preview-card{position:fixed;z-index:10000;width:min(360px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;box-sizing:border-box;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 8px 30px #0003;font-size:15px;line-height:1.7;overflow-wrap:anywhere}.glossary-preview-card[hidden]{display:none}.glossary-preview-card>strong{display:block;font-size:17px;padding-right:34px}.glossary-preview-card>p{margin:12px 0}.glossary-preview-card>a{display:inline-block;min-height:44px;padding:8px 0}.glossary-preview-close{position:absolute;right:6px;top:6px;min-width:44px;min-height:44px;padding:4px;border:0;background:transparent;font-size:24px;line-height:1}.glossary-preview-card :focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* History retention controls: mobile-friendly and scoped to the IP history panel. */
.history-settings{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:16px 0 12px}
.history-settings label{display:grid;gap:5px;min-width:135px;font-size:.9rem;font-weight:650}
.history-settings select{width:100%;min-width:0}
@media(max-width:700px){.history-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-settings label{min-width:0}}

/* Bundled diagnostic styles previously loaded separately by the homepage. */
.dkim-page [hidden]{display:none!important}.dkim-page{max-width:980px}.dkim-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.dkim-fields label{min-width:0}.dkim-fields input{display:block;width:100%;min-width:0;margin-top:.45rem}.dkim-fields details{margin-top:.45rem}.dkim-owner{overflow-wrap:anywhere}.dkim-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.35rem .8rem;background:var(--soft,#eef3ff);font-weight:700}.dkim-summary{display:grid;grid-template-columns:minmax(10rem, .8fr) minmax(0,1.5fr);gap:.65rem 1rem}.dkim-summary dt{color:var(--muted,#596579)}.dkim-summary dd{margin:0;overflow-wrap:anywhere}.dkim-record{margin-top:1rem;border:1px solid var(--line,#d7deeb);border-radius:1rem;padding:1rem;min-width:0}.dkim-record h3{margin-top:0}.dkim-record code,.dkim-record pre{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.dkim-record-value{max-height:14rem;overflow:auto;background:var(--soft,#f3f6fc);padding:.75rem;border-radius:.6rem}.dkim-tags{display:grid;grid-template-columns:minmax(6rem,.5fr) minmax(0,2fr);gap:.5rem .8rem}.dkim-tags dt{font-weight:700}.dkim-tags dd{margin:0;overflow-wrap:anywhere}.dkim-warnings{margin-top:1rem}.dkim-findings{padding-left:1.2rem}.dkim-findings li{margin:.35rem 0}.dkim-related{display:flex;flex-wrap:wrap;gap:1rem}.dkim-js-error{color:#9b1c1c;font-weight:700}.dkim-page details>summary{cursor:pointer}.dkim-page button,.dkim-page input{min-height:44px}@media(max-width:640px){.dkim-fields{grid-template-columns:1fr}.dkim-summary{grid-template-columns:1fr;gap:.15rem}.dkim-summary dd{margin-bottom:.6rem}.dkim-tags{grid-template-columns:minmax(4rem,.45fr) minmax(0,2fr)}.dkim-record{padding:.8rem}.dkim-result-head,.result-head{align-items:flex-start;gap:.5rem;flex-wrap:wrap}}

/* DKIM R6: keep form controls readable without restricting user zoom. */
.dkim-home-card{display:block;min-width:0;max-width:100%;text-decoration:none;color:var(--ink);overflow-wrap:anywhere}
.dkim-home-card:is(:hover,:focus-visible){border-color:var(--accent)}
.dkim-home-card :is(h2,p){min-width:0;max-width:100%;overflow-wrap:anywhere}
.dkim-home-card p{margin-bottom:0}
.dkim-page{width:100%;min-width:0;overflow-wrap:anywhere}
.dkim-page :is(.panel,.dkim-fields,.dkim-owner,.dkim-summary,.dkim-tags,.dkim-record,.dkim-warnings,#dkim-records,#dkim-results){min-width:0;max-width:100%}
.dkim-page #dkim-form{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;width:100%;min-width:0;max-width:100%}
.dkim-page #dkim-form>*{min-width:0;max-width:100%}
.dkim-page .dkim-fields{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
.dkim-page .dkim-fields>*{min-width:0;max-width:100%}
.dkim-page .dkim-fields input,.dkim-page .dkim-fields input:focus,.dkim-page .dkim-fields input:active{font-size:16px;font-size:max(16px,1rem);line-height:1.5;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.dkim-page .dkim-fields details>summary{min-height:44px}
.dkim-page :is(.dkim-summary,.dkim-tags)>*{min-width:0;max-width:100%}
.dkim-page :is(p,dt,dd,summary,h1,h2,h3,li,code,pre,.field-help){overflow-wrap:anywhere;word-break:normal}
.dkim-page .dkim-record-value{display:block;width:100%;min-width:0;max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.dkim-page .dkim-record :is(code,pre){white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.dkim-page .result-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:.6rem}
.dkim-page .result-head>*{min-width:0;max-width:100%}
.dkim-page button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.dkim-page #dkim-submit{justify-self:start}
@media(max-width:640px){
 .dkim-page .dkim-fields,.dkim-page .dkim-tags{grid-template-columns:minmax(0,1fr)}
 .dkim-page .dkim-tags dd{margin-bottom:.6rem}
}
@media(min-width:701px){
 .dkim-tool-page .top{flex-wrap:wrap}
 .dkim-tool-page .top nav{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
}

/* The homepage retains its existing layout and allows enlarged text to wrap. */
.dkim-home-page :is(.top nav,.grid,.panel,.hero,.actions,dl,dt,dd){min-width:0;max-width:100%}.dkim-home-page .top{min-width:0;max-width:1120px}.dkim-home-page .container{min-width:0;max-width:960px}
.dkim-home-page :is(h1,h2,p,dt,dd,a,button){overflow-wrap:anywhere}
.dkim-home-page .actions button{white-space:normal;min-width:0}
.dkim-home-page .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.dkim-home-page .grid{grid-template-columns:minmax(0,1fr)}}
@media(min-width:701px){.dkim-home-page .top{flex-wrap:wrap}.dkim-home-page .top nav{flex-wrap:wrap}}

/* Shared navigation only when the conditional DKIM link is present. */
@media(min-width:701px){
 body .top:has([data-dkim-nav]){flex-wrap:wrap}
 body .top:has([data-dkim-nav]) nav{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
 body .top:has([data-dkim-nav]) nav select{width:auto;max-width:100%}
}

.dns-records-page [hidden]{display:none!important}
.dns-records-page{width:100%;min-width:0;overflow-wrap:anywhere}
.dns-records-page :is(.panel,form,label,fieldset,.dns-records-fields,.dns-records-output,article,pre,dl,dt,dd){min-width:0;max-width:100%}
.dns-records-page form{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;width:100%}
.dns-records-page :is(input:not([type=checkbox]),select,textarea),.dns-records-page :is(input:not([type=checkbox]),select,textarea):focus{font-size:16px;font-size:max(16px,1rem);width:100%;max-width:100%;min-width:0;min-height:44px;box-sizing:border-box}
.dns-records-page fieldset{border:1px solid var(--line);border-radius:12px;padding:.8rem}
.dns-records-types{display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.dns-records-types label{display:flex;align-items:center;gap:.35rem;min-height:44px;font-size:16px}
.dns-records-types input{width:20px;height:20px;flex:none}
.dns-records-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.dns-records-page :is(button,summary){min-height:44px;white-space:normal;overflow-wrap:anywhere}
.dns-records-page summary{cursor:pointer}
.dns-records-page button{max-width:100%;min-width:0}
.dns-records-page :is(pre,code){white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow:auto}
.dns-records-value{max-height:22rem;overflow:auto;padding:.75rem;background:var(--soft);border-radius:.5rem}
.dns-records-check{border:1px solid var(--line);border-inline-start:5px solid var(--line);padding:1rem;margin-block:1rem;border-radius:.8rem}
.dns-records-check[data-status=ok]{border-inline-start-color:#27824c}.dns-records-check[data-status=ng]{border-inline-start-color:#c52c38}.dns-records-check[data-status=warning]{border-inline-start-color:#b07b00}.dns-records-check[data-status=info]{border-inline-start-color:#788596}
.dns-records-badge{font-weight:700;display:inline-block;padding:.3rem .65rem;border:2px solid currentColor;border-radius:999px;max-width:100%;overflow-wrap:anywhere}
.dns-records-badge[data-status=ok]{color:#14713a}.dns-records-badge[data-status=ng]{color:#b51c2a}.dns-records-badge[data-status=warning]{color:#806000}.dns-records-badge[data-status=info]{color:var(--muted)}
[data-theme=dark] .dns-records-badge[data-status=ok]{color:#85e9ad}[data-theme=dark] .dns-records-badge[data-status=ng]{color:#ff9ba5}[data-theme=dark] .dns-records-badge[data-status=warning]{color:#f6d66b}
@media(prefers-color-scheme:dark){[data-theme=auto] .dns-records-badge[data-status=ok]{color:#85e9ad}[data-theme=auto] .dns-records-badge[data-status=ng]{color:#ff9ba5}[data-theme=auto] .dns-records-badge[data-status=warning]{color:#f6d66b}}
#dns-records-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-block:1rem}#dns-records-tabs [aria-selected=true]{border:2px solid var(--accent);font-weight:700}
.dns-records-page dl{display:grid;grid-template-columns:minmax(5rem,.4fr) minmax(0,1fr);gap:.5rem}.dns-records-page dd{margin:0;overflow-wrap:anywhere}
.dns-records-related{display:flex;flex-wrap:wrap;gap:1rem}
.dns-records-home-card{display:block;text-decoration:none;color:var(--ink);min-width:0;max-width:100%;overflow-wrap:anywhere}
.dns-records-home-card :is(h2,p){overflow-wrap:anywhere}
@media(max-width:640px){.dns-records-fields,.dns-records-page dl{grid-template-columns:minmax(0,1fr)}.dns-records-page dd{margin-bottom:.65rem}}
@media(min-width:701px){body .top:has([data-dns-records-nav]){flex-wrap:wrap}body .top:has([data-dns-records-nav]) nav{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}body .top:has([data-dns-records-nav]) nav select{width:auto;max-width:100%}}
/* Native select captions may otherwise contribute their intrinsic width in WebKit. */
.dns-records-page select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dns-records-page .dns-records-types label{flex:0 0 auto;flex-direction:row;min-width:0;max-width:100%}
.dns-records-page .dns-records-types input{padding:0;min-height:20px;min-width:20px;width:20px;height:20px}

/* R2: readable record values; internal identifiers stay in closed technical details. */
.dns-records-primary-value{font-size:1.2rem;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap}
.dns-records-technical{margin-block:.75rem}
.dns-records-record-value{min-width:0;max-width:100%}


/* Linux CLI command on the public IP home screen. */
.linux-cli-panel{margin-block:16px}
.linux-cli-panel h2{margin-top:0}
.linux-cli-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.linux-cli-row code{display:block;flex:1 1 240px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--tint);color:var(--ink);font-size:.95rem;overflow-wrap:anywhere;user-select:text}
.linux-cli-row button{flex:0 0 auto;min-height:44px}
#linux-cli-copy-status:empty{display:none}
@media(max-width:560px){.linux-cli-row{display:grid;grid-template-columns:minmax(0,1fr)}.linux-cli-row button{width:100%}}

/* Automatic reverse DNS hostname beneath the IPv4 hero. */
.hero-reverse-line{display:flex;justify-content:center;align-items:baseline;gap:6px;flex-wrap:wrap;min-width:0;margin:6px 0 12px;color:var(--muted);font-size:.95rem}
.hero-reverse-label{font-weight:650;color:var(--ink)}
#hero-reverse-result{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}

/* Reverse DNS below each retained IP; keep timestamps and investigate links visible. */
.history-ip-main{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;max-width:100%}
.history-reverse{display:block;font-size:.85rem;font-weight:450;line-height:1.45;color:var(--muted);min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}

/* Organization labels for current and previously observed public IPv4 addresses. */
.hero-organization-line{margin-top:-6px}
#hero-organization-result{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.history-organization{display:block;font-size:.85rem;font-weight:450;line-height:1.45;color:var(--muted);min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}

/* Standalone button-usage page: keep labels inside each bar and above the bar area. */
.usage-chart .usage-bars{padding-top:20px;box-sizing:border-box;overflow:visible}
.usage-chart .usage-bar{position:relative}
.usage-chart .usage-bar-count{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);color:var(--ink);font-size:10px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){.usage-chart .usage-bars{height:84px}.usage-chart .usage-label{display:block;line-height:1.35}}

/* Keep the same positioning when the standalone chart uses its id without the chart class. */
#button-usage-chart .usage-bars{padding-top:20px;box-sizing:border-box;overflow:visible}
#button-usage-chart .usage-bar{position:relative}
#button-usage-chart .usage-bar-count{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);color:var(--ink);font-size:10px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){#button-usage-chart .usage-bars{height:84px}#button-usage-chart .usage-label{display:block;line-height:1.35}}

/* Collapsed page groups for button usage. */
.usage-page-group{border:1px solid var(--line);border-radius:12px;padding:0 14px;background:var(--card)}
.usage-page-group+.usage-page-group{margin-top:10px}
.usage-page-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;list-style:none;cursor:pointer}
.usage-page-group>summary::-webkit-details-marker{display:none}
.usage-page-group>summary::after{content:'＋';color:var(--accent);font-size:18px;line-height:1}
.usage-page-group[open]>summary::after{content:'−'}
.usage-page-title{min-width:0;overflow-wrap:anywhere}
.usage-page-total{flex:0 0 auto;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.usage-page-group .usage-chart{padding:0 0 14px}
@media(max-width:700px){.usage-page-group>summary{align-items:flex-start}.usage-page-total{font-size:12px}}

/* Weekly total line chart for button usage. */
.usage-weekly-summary{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:14px;background:var(--card)}
.usage-weekly-heading{margin:0 0 8px}
.usage-weekly-chart{display:block;width:100%;height:auto;min-height:160px}
.usage-weekly-grid{stroke:var(--line);stroke-width:1}
.usage-weekly-line{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.usage-weekly-dot{fill:var(--card);stroke:var(--accent);stroke-width:3}
.usage-weekly-label,.usage-weekly-value{fill:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.usage-weekly-value{fill:var(--ink);font-weight:700}
@media(max-width:700px){.usage-weekly-summary{padding:12px}.usage-weekly-chart{min-height:150px}.usage-weekly-label,.usage-weekly-value{font-size:11px}}

/* アクセス時間別統計：1時間1行のコンパクト表示 */
.access-bars{height:64px}
.hourly-statistics-table{table-layout:fixed;font-variant-numeric:tabular-nums}
.hourly-statistics-table th,.hourly-statistics-table td{padding:5px 7px;line-height:1.3}
.hourly-statistics-table th:first-child,.hourly-statistics-table td:first-child{width:38%;white-space:nowrap}
.hourly-statistics-table th:not(:first-child),.hourly-statistics-table td:not(:first-child){width:20.66%;text-align:right}
@media(max-width:700px){
  .access-bars{height:56px}
  .admin-main .hourly-statistics-table{min-width:0!important;width:100%;table-layout:fixed;font-size:12px}
  .admin-main .hourly-statistics-table thead{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;border:0;display:table-header-group}
  .admin-main .hourly-statistics-table tbody{display:table-row-group;width:auto}
  .admin-main .hourly-statistics-table tbody tr{display:table-row;border-bottom:0;padding:0}
  .admin-main .hourly-statistics-table th,.admin-main .hourly-statistics-table td{display:table-cell;min-width:0;max-width:none;padding:4px;border-bottom:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
  .admin-main .hourly-statistics-table th:first-child,.admin-main .hourly-statistics-table td:first-child{position:static;left:auto;width:38%;min-width:0;max-width:none;text-align:left}
  .admin-main .hourly-statistics-table th:not(:first-child),.admin-main .hourly-statistics-table td:not(:first-child){width:20.66%;text-align:right}
  .admin-main .hourly-statistics-table tbody td:first-child{grid-column:auto;text-align:left;padding:4px;margin:0;border-bottom:1px solid var(--line);font-weight:500}
  .hourly-statistics-table tbody td:not(:first-child)::before{content:none;display:none}
}

/* アクセス時間別統計：時間別PVの折れ線グラフ */
.access-line-chart{width:100%;padding:4px 0 8px;overflow:hidden}
.access-line-chart svg{display:block;width:100%;height:auto;min-height:118px}
.access-line-grid{stroke:var(--line);stroke-width:1}
.access-line-path{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.access-line-dot{fill:var(--card);stroke:var(--accent);stroke-width:2}
.access-line-axis{fill:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
@media(max-width:700px){.access-line-chart{padding:0 0 6px}.access-line-chart svg{min-height:108px}.access-line-axis{font-size:9px}}

/* 管理画面：項目別ページへのナビゲーション */
.admin-page-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.admin-page-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font-weight:650;text-decoration:none}
.admin-page-link:hover,.admin-page-link[aria-current=page]{background:var(--tint);border-color:var(--accent);color:var(--accent)}
@media(max-width:700px){.admin-page-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-page-link{padding:8px 6px;text-align:center;overflow-wrap:anywhere}}

/* 管理画面のモバイル余白とSEO表の横幅調整 */
#status:empty{display:none;min-height:0}
@media(max-width:700px){
  .admin-main{padding-top:6px}
  .admin-page-links{margin-bottom:8px}
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table){min-width:0!important;width:100%;table-layout:fixed}
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table) th,
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table) td{position:static;min-width:0;max-width:none;padding:6px 8px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table) th:first-child,
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table) td:first-child{width:34%;text-align:left}
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table) th:last-child,
  .admin-main #cards .table-wrap table:not(.hourly-statistics-table) td:last-child{width:66%;text-align:right}
}


/* 管理画面：ボタン利用状況リンクを項目ボタンと同じ表示にする */
.admin-button-usage-link{margin:0 0 8px}
@media(max-width:700px){.admin-button-usage-link{display:inline-flex;width:auto;box-sizing:border-box}}\n\n/* 管理画面上部の案内文を1行分の間隔に詰める */\n.admin-context-title{margin:0 0 4px!important}\n.admin-context-back{margin:0!important;display:block}\n\n/* 管理画面ナビゲーションのボタン高さを統一 */\n.admin-page-links{align-items:start}\n.admin-page-link{height:44px;min-height:44px;line-height:1.2;white-space:nowrap}\n@media(max-width:700px){.admin-page-link{height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}}


/* 管理画面：空の状態欄と上部余白を抑制 */
body:has(.admin-main) :where(#status:empty,#critical:empty,#cards:empty),
body:has(.admin-main) #status[hidden]{display:none!important;visibility:hidden!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}
@media(max-width:700px){
  body:has(.admin-main) .admin-main{padding-top:0!important}
  body:has(.admin-main) .admin-context-title,
  body:has(.admin-main) .admin-context-back{margin:0!important;padding:0!important}
  body:has(.admin-main) .admin-context-title{line-height:1.25!important}
  body:has(.admin-main) .admin-context-back{line-height:1.35!important}
}


/* 管理画面：項目ボタンの高さを完全に統一 */
.admin-page-links{align-items:flex-start!important}
.admin-page-links .admin-page-link,
#layout-controls .admin-page-link{box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding-top:0!important;padding-bottom:0!important;line-height:1!important;white-space:nowrap!important;align-self:flex-start!important}


/* 管理画面：更新時刻の下に表示する更新間隔 */
.admin-refresh-note-wrap{display:block!important;clear:both;margin:0!important;padding:0!important}
.admin-refresh-note{display:block!important;margin:2px 0 0!important;color:var(--muted);font-size:.9rem;line-height:1.35}

/* 更新間隔案内を時刻の下へ確実に配置 */
.admin-refresh-note-wrap{width:100%!important;flex-basis:100%!important;grid-column:1 / -1!important}

/* Static mobile navigation fallback: keep the top page usable even before JS initializes. */
@media(max-width:700px){.top>.mobile-menu-toggle{display:inline-flex}.top:has(>.mobile-menu-toggle)>nav{display:none}.top.has-mobile-nav.mobile-nav-open>nav{display:flex}}

@media(max-width:700px){.top>.mobile-menu-toggle{order:3}}

/* Restore the previous clean mobile dropdown shape while keeping the current navigation behavior. */
@media(max-width:700px){
  .top.has-mobile-nav nav{
    gap:6px;
    padding:12px;
    max-height:calc(100svh - 88px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .top.has-mobile-nav nav a{
    min-height:50px;
    padding:10px 12px;
    line-height:1.3;
    white-space:nowrap;
    word-break:keep-all;
    writing-mode:horizontal-tb;
  }
}


/* AdBright mobile target-size refinements 20261104. */
@media(max-width:700px){
  .glossary-inline-term{display:inline-block;padding:.3rem .25rem;margin:-.3rem -.25rem;line-height:1.6}
  .tool-breadcrumb a,.tool-contact-link a,footer a,.contact-form a{display:inline-block;min-height:44px;padding:8px 6px;margin:-8px -6px;line-height:28px}
  .contact-form input:not([type=checkbox]):not([type=hidden]),.contact-form textarea{min-height:44px}
  .contact-form input[type=checkbox]{width:24px;height:24px;min-width:24px}
}

/* AdBright mobile target-size refinements 20261105. */
@media(max-width:700px){
  .glossary-inline-term{display:inline-block;min-height:44px;box-sizing:border-box;padding:8px 4px;margin:-8px -4px;line-height:28px}
  .tool-glossary-list a{min-height:44px;padding:8px 4px;margin:-8px -4px;line-height:28px}
  .contact-form input[type=checkbox]{width:44px;height:44px;min-width:44px}
  .contact-form + p a,.top:not(.has-mobile-nav)>a{display:inline-block;min-height:44px;padding:8px 6px;margin:-8px -6px;line-height:28px}
}
