.cert-glyph { flex:none; display:inline-grid; place-items:center; position:relative }
.cert-tabs { display:flex; gap:5px; width:fit-content; padding:4px; margin-bottom:25px; border:1px solid var(--line); border-radius:9px; background:#e9efeb }
.cert-tabs a { padding:6px 14px; border-radius:6px; color:var(--muted); font-size:14px; text-decoration:none }
.cert-tabs a[aria-current="page"] { background:white; color:var(--green); font-weight:650; box-shadow:0 1px 4px #16362921 }
.page-head { margin-bottom:26px }
.page-head .muted { margin-top:7px; font-size:14px }
.summary { display:grid; grid-template-columns:repeat(3,1fr); background:var(--deep); color:#fff; border-radius:var(--radius); padding:22px 0; margin-bottom:30px }
.stat { padding-inline:clamp(15px,3vw,42px); display:flex; flex-direction:column; gap:4px }
.stat+.stat { border-left:1px solid #ffffff36 }
.stat span { color:#ccdfd4; font-size:13px }
.stat b { font-size:clamp(26px,4vw,36px); font-weight:540; line-height:1.15; font-variant-numeric:tabular-nums }
.stat:nth-child(2) b { color:var(--gold) }
.toolbar { margin-bottom:17px; flex-wrap:wrap }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:9px; padding:3px; background:#ebf0ec }
.seg button { padding:6px 13px; color:var(--muted); border-radius:6px; font-size:13px }
.seg button[aria-pressed="true"] { color:var(--ink); box-shadow:0 1px 4px #16362921; background:white; font-weight:650 }
.search { display:flex; gap:9px; align-items:center; border:1px solid var(--line); border-radius:8px; background:white; padding:0 10px; color:var(--muted) }
.search:before { content:""; width:10px; height:10px; border:1.6px solid currentColor; border-radius:50% }
.search:after { content:""; position:absolute; width:5px; border-top:1.6px solid; transform:translate(9px,5px) rotate(45deg) }
.search input { border:0; background:transparent; padding:9px 4px; width:min(214px,50vw); min-height:37px; font-size:13px }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(315px,100%),1fr)); gap:16px }
.card,.blank,.profile { background:white; border:1px solid var(--line); border-radius:var(--radius) }
.card { padding:20px; display:flex; flex-direction:column; gap:14px; min-width:0 }
.card-top { justify-content:space-between; gap:10px }
.cert-glyph { width:39px; height:39px; border:1px solid #bfdccc; border-radius:10px; color:var(--green); background:var(--light) }
.cert-glyph:before { content:""; width:14px; height:18px; border:1.7px solid; border-radius:2px }
.cert-glyph:after { content:""; width:7px; height:4px; position:absolute; top:15px; border-block:1.5px solid }
.badge { display:inline-flex; gap:6px; background:#edf1ee; color:#45594f; padding:3px 8px; border-radius:20px; font-size:12px; white-space:nowrap }
.badge:before { content:""; width:6px; height:6px; background:currentColor; border-radius:50% }
.badge.ok { color:#206448; background:#e6f3e9 }
.badge.warn { color:#865813; background:#fff0d2 }
.badge.expired { color:#944037; background:#fbe9e4 }
.card h3,.profile h3 { overflow-wrap:anywhere }
.card .domain { font-family:"Inter","Segoe UI","Microsoft YaHei",sans-serif; letter-spacing:-.035em; font-size:21px }
.card .cert-alias { margin-top:3px; font-size:13px; color:var(--muted); overflow-wrap:anywhere }
.facts { margin:0; display:grid; gap:5px; font-size:13px }
.facts div { display:flex; align-items:baseline; justify-content:space-between; gap:12px }
.facts dt { color:var(--muted); flex:none }
.facts dd { margin:0; text-align:right; overflow-wrap:anywhere }
.card-actions { justify-content:space-between; gap:8px; padding-top:13px; margin-top:auto; border-top:1px solid #e5ece7 }
.card-actions .btn { min-height:35px; padding:6px 10px; font-size:13px }
.blank { display:grid; place-items:center; text-align:center; gap:9px; padding:45px 16px }
.blank p,.profile p { overflow-wrap:anywhere }
.blank .btn { margin:6px 0 0 }
.profiles { display:grid; gap:12px }
.profile { padding:20px; display:flex; justify-content:space-between; align-items:center; gap:16px }
.profile .hint { margin-top:7px }
.profile .action-row { flex:none }
.target-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.path-mode { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:0; border:0 }
.path-mode legend { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.radio-option { flex:1; padding:9px; border:1px solid var(--line); border-radius:7px; cursor:pointer; font-size:13px; text-align:center }
.radio-option:has(:checked) { color:var(--green); background:var(--light); border-color:#75a88f }
input[type="radio"],input[type="checkbox"] { accent-color:var(--green) }
.warning { border-left:3px solid #bb8123; background:#fff6df; padding:13px 15px; border-radius:4px; font-size:15px }
.comparison,.file-columns { display:grid; grid-template-columns:1fr 1fr; gap:15px }
.date-box { padding:10px 12px; border:1px solid var(--line); border-radius:7px }
.date-box b,.date-box small { display:block }
.date-box small { color:var(--muted) }
.date-box b { margin-top:3px; font-size:14px }
.file-panel { border:1px solid var(--line); border-radius:10px; min-width:0; overflow:hidden }
.files-head { padding:12px; background:var(--page); border-bottom:1px solid var(--line); min-height:60px }
.files-head h3 { font-size:15px }
.files-head .btn { font-size:12px; padding:5px 8px; min-height:33px }
.file-list { list-style:none; margin:0; padding:0; max-height:45vh; overflow:auto }
.file-row { padding:12px; font-size:13px; overflow-wrap:anywhere }
.file-row+.file-row { border-top:1px solid #e4eae6 }
.file-row .file-name { display:flex; align-items:baseline; gap:7px; font-weight:620 }
.file-row .file-name input { flex:none; margin:0 }
.file-row small { display:block; font-size:12px; margin-top:3px; color:var(--muted) }
.file-row .file-buttons { display:flex; justify-content:flex-end; gap:8px }
.file-row .rename-form { display:flex; align-items:center; gap:5px; padding-top:7px }
.rename-input { min-width:0; min-height:33px; padding:4px 7px; font-size:13px }
.file-row .done { color:var(--green); font-weight:600 }
.inline-note { padding:9px 12px; border-radius:6px; background:#ebf5ee; color:#295c45; font-size:13px }
@media (max-width:730px) {
  .file-columns { grid-template-columns:1fr }
}
@media (max-width:560px) {
  .stat { padding-inline:12px }
  .stat span { font-size:12px }
  .summary { padding-block:15px; margin-bottom:20px }
  .toolbar { align-items:stretch; gap:10px }
  .seg button { padding-inline:9px }
  .search { flex:1 }
  .search input { width:100%; min-width:75px }
  .profile { align-items:start; flex-direction:column }
  .target-grid { grid-template-columns:1fr }
}
