/* Glyphometer Studio — compact, three-panel, no document scrolling at desktop width. */
body.studio-page{--studio-gap:13px;height:100dvh;min-height:480px;display:flex;flex-direction:column;overflow:hidden;background:#f5f7fc;line-height:1.45}
.studio-page .container{max-width:none;width:100%;padding-inline:24px}
.studio-page .site-header{flex:none;height:60px;position:relative;background:#fff}
.studio-page .header-content{max-width:none}
.studio-head-links{display:flex;align-items:center;gap:22px;font-size:12px;font-weight:700;color:#63708a}
.studio-head-links a:hover{color:#5248e9}
.studio-indicator,.tiny-online{font-size:10px;letter-spacing:1.1px;color:#12886d;font-weight:850;white-space:nowrap}
.studio-main{display:flex;flex-direction:column;flex:1;min-height:0;max-width:none;width:100%;padding:10px 17px 8px}
.studio-title{height:54px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 7px 10px}
.studio-title .section-kicker{font-size:9px;letter-spacing:1.5px}
.studio-title h1{display:inline;margin:0 0 0 11px;font-size:25px;letter-spacing:-.8px;line-height:1}
.studio-title h1 span{color:#6159e8}
.studio-title p{display:inline;margin-left:14px;font-size:11px;color:#8c97ab}
.studio-grid{display:grid;grid-template-columns:minmax(325px,1.09fr) minmax(290px,.91fr) minmax(340px,1fr);gap:var(--studio-gap);flex:1;min-height:0}
.studio-column{border:1px solid #e3e8f4;border-radius:16px;background:#fff;min-width:0;min-height:0;display:flex;flex-direction:column;padding:12px;box-shadow:0 4px 20px #1f326109;overflow:hidden}
.studio-panel-title{display:flex;justify-content:space-between;align-items:center;gap:7px;flex:none;margin:0 0 7px;min-height:27px}
.studio-panel-title h2{margin:0;font-size:15px;letter-spacing:-.4px}
.count-chip{font-size:10px;vertical-align:middle;color:#5d55e0;background:#f0efff;padding:3px 6px;border-radius:6px;margin-left:4px}
.studio-page .editor-panel{min-height:0;flex:1;min-width:0;box-shadow:none;border-radius:12px;overflow:hidden}
.studio-page .editor-toolbar{padding:10px 11px;min-height:38px}
.studio-page .editor-caption{font-size:9px}
.studio-page .toolbar-actions{gap:9px}
.studio-page .text-btn{font-size:11px}
.studio-page #text-editor{resize:none;min-height:50px;padding:16px 14px;font-size:14px;line-height:1.65}
.studio-page .editor-bottom{padding:3px 12px 9px;font-size:10px}
.studio-page .editor-footer{padding:9px;gap:5px}
.studio-page .editor-footer-left{gap:4px}
.studio-page .ghost-button{font-size:10px;padding:7px 8px}
.studio-page .primary-button{font-size:11px;padding:9px 12px;white-space:nowrap}
.studio-metrics{margin-top:9px;flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.studio-metrics>div{background:#f5f7ff;border-radius:9px;padding:6px 8px;min-width:0}
.studio-metrics span{font-size:9px;color:#7c8aa1;display:block;white-space:nowrap}
.studio-metrics strong{font-size:20px;letter-spacing:-.5px;color:#5753df;line-height:1.15;display:block;font-variant-numeric:tabular-nums}
.studio-details{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:9px;color:#8390a7;flex:none;padding:10px 2px 3px}
.studio-details strong{font-variant-numeric:tabular-nums;color:#364661}
.studio-insight{background:#f2f3ff;border-radius:9px;padding:9px 10px;color:#565f8c;flex:none;font-size:10px;display:flex;gap:7px;line-height:1.5}
.studio-insight>span:first-child{color:#6959e6}
.studio-preview-min{margin-top:9px;display:flex;align-items:center;gap:10px;font-size:10px;color:#7a87a1}
.studio-preview-min label{font-weight:800;white-space:nowrap}
.studio-preview-min select{min-width:0;max-width:150px;padding:3px 7px;font-size:10px;border-radius:7px;border:1px solid #e1e6f5;background:white;color:#4d5574}
.studio-preview-min #preview-hint{margin-left:auto;white-space:nowrap}
.studio-preview-text{border:1px dashed #e7eaf6;border-radius:8px;padding:8px 10px;font-size:10px;color:#69758f;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:58px;min-height:33px;margin-top:5px}
.studio-counter-controls{flex:none;display:flex;justify-content:space-between;gap:7px;margin-bottom:9px}
.studio-page .segmented{padding:2px;gap:2px;flex-wrap:nowrap}
.studio-page .segment{padding:4px 9px;font-size:10px}
.studio-page .compact-control{padding:3px 8px;font-size:13px}
.studio-page .platform-grid{display:flex;flex-direction:column;gap:4px;flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.studio-page .platform-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 5px;column-gap:8px;row-gap:4px;align-items:center;padding:5px 8px;border-radius:9px;box-shadow:none;flex:none;transition:none}
.studio-page .platform-card:hover{box-shadow:none;transform:none;background:#fafbff}
.studio-page .platform-head{gap:7px;min-width:0}
.studio-page .platform-icon{height:24px;width:24px;min-width:24px;border-radius:6px;font-size:12px}
.studio-page .platform-meta strong{font-size:11px;line-height:1.2}
.studio-page .platform-meta small{font-size:9px;line-height:1.2}
.studio-page .platform-status{display:none}
.studio-page .platform-numbers{margin-top:0;gap:6px}
.studio-page .platform-numbers strong{font-size:15px}
.studio-page .platform-numbers small{font-size:10px}
.studio-page .platform-numbers .remaining{font-size:9px}
.studio-page .meter{grid-column:1/-1;margin:0;height:4px}
.studio-page .platform-note{display:none}
.studio-footnote{font-size:9px;line-height:1.45;color:#8c95a8;margin:8px 3px 0;flex:none}
.studio-footnote a{color:#6254db;text-decoration:underline}
.studio-tools-lead{font-size:10px;color:#7b889f;margin:0 0 7px;flex:none}
.studio-page .tool-groups{display:block;flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.studio-page .tool-group{padding:0;border:0;border-radius:0;background:transparent}
.studio-page .tool-group-title{font-size:10px;letter-spacing:.35px;color:#63728b;margin:4px 0 1px;padding:2px 0 4px;border-bottom:1px solid #e9edf6}
.studio-page .tool-group-title:first-child{margin-top:0}
.studio-page .tool-group-symbol{display:none}
.studio-page .tool-card{align-items:center;gap:8px;margin:0;padding:5px 7px;border-radius:7px;min-height:30px}
.studio-page .tool-card input[type=checkbox]{width:17px;height:17px;margin:0;border-radius:4px}
.studio-page .tool-card input[type=checkbox]:checked:before{top:-4px;left:2px}
.studio-page .tool-card-text strong{font-size:11px;line-height:1.25;font-weight:700}
.studio-page .tool-card-text small{display:none}
.studio-page .apply-panel{flex:none;margin-top:7px;padding:8px 9px;border-radius:9px;gap:9px}
.studio-page .apply-panel>div:first-child strong{font-size:10px;white-space:nowrap}
.studio-page .apply-actions{gap:5px}
.studio-page .secondary-button{padding:8px 9px;font-size:10px}
.studio-page .studio-tools .primary-button{padding:8px 10px;font-size:10px}
.studio-footer{height:26px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 25px;color:#8e98ad;font-size:10px}
.studio-footer a:hover{color:#5249e9}
.studio-page .changes-preview{position:fixed;inset:0;background:#0f1835ad;z-index:90;margin:0;border:0;border-radius:0;padding:24px;display:flex;justify-content:center;align-items:center;overflow:auto}
.studio-page .changes-preview[hidden]{display:none}
.studio-page .changes-modal{max-width:940px;width:100%;background:white;border-radius:16px;box-shadow:0 20px 70px #111a3070;padding:21px}
.studio-page .compare-grid pre{max-height:55vh}
.studio-modal-tip{font-size:11px;color:#8390a7}
.studio-mode-switch{display:none}
@media(max-height:710px) and (min-width:1101px){.studio-page .studio-preview-min,.studio-page .studio-preview-text{display:none}.studio-page .studio-metrics{margin-top:6px}.studio-page .platform-card{padding-top:4px;padding-bottom:4px}.studio-page .tool-card{min-height:27px;padding:4px 7px}.studio-page .tool-group-title{padding:0 0 2px}}
@media(max-width:1100px){
 body.studio-page{min-height:0}
 .studio-page .site-header{height:58px}
 .studio-title{height:66px}
 .studio-title p{display:none}
 .studio-mode-switch{display:flex;gap:3px;background:#eceefe;border-radius:9px;padding:3px}
 .studio-tab{border:0;border-radius:7px;padding:7px 10px;background:transparent;color:#64718d;font-size:11px;font-weight:750;white-space:nowrap}
 .studio-tab.active{background:#fff;color:#5147e0;box-shadow:0 1px 8px #192c4f16}
 .studio-grid{display:block;min-height:0}
 .studio-column{height:100%;display:none}
 .studio-column.studio-active{display:flex}
 .studio-page .tool-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}
 .studio-page .platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;overflow:auto}
 .studio-page .studio-preview-text{max-height:100px}
 .studio-page #text-editor{min-height:140px}
}
@media(max-width:600px){
 .studio-page .container{padding-inline:14px}
 .studio-page .site-header{height:54px}
 .studio-head-links{gap:11px;font-size:11px}
 .studio-indicator,.studio-head-links a:nth-of-type(2){display:none}
 .studio-page .brand{font-size:19px}
 .studio-page .logo-mark{width:29px;height:29px;font-size:17px}
 .studio-main{padding:8px 9px 5px}
 .studio-title{height:70px;padding:0 2px 9px;align-items:stretch;flex-direction:column;justify-content:space-between}
 .studio-title h1{font-size:22px;margin:0 0 0 7px}
 .studio-title .section-kicker{font-size:8px}
 .studio-mode-switch{width:100%;justify-content:stretch}
 .studio-tab{flex:1;padding:5px}
 .studio-column{padding:10px;border-radius:12px}
 .studio-page .platform-grid{display:flex;flex-direction:column}
 .studio-page .tool-groups{display:block}
 .studio-page .tool-card{padding:7px;min-height:36px}
 .studio-page .tool-card-text strong{font-size:12px}
 .studio-page .tool-group-title{font-size:11px}
 .studio-page .studio-preview-text{display:none}
 .studio-preview-min{margin-top:5px}
 .studio-page .editor-bottom{font-size:9px}
 .studio-page .editor-footer{flex-wrap:wrap}
 .studio-metrics strong{font-size:19px}
 .studio-insight{font-size:10px}
 .studio-footer{height:23px;padding:0 13px;font-size:9px}
 .studio-page .compare-grid{grid-template-columns:1fr}
 .studio-page .changes-preview{padding:12px}
 .studio-page .changes-modal{padding:13px}
 .studio-page .compare-grid pre{max-height:24vh}
}
/* Fit every counter and check box into common 720p–800p desktop workspaces. */
@media (min-width:1101px) and (max-height:800px){
 .studio-page .platform-card{padding:3px 6px;row-gap:2px}
 .studio-page .platform-icon{width:20px;min-width:20px;height:20px;font-size:10px}
 .studio-page .platform-meta strong{font-size:10px;line-height:1.15}
 .studio-page .platform-meta small{font-size:8px;line-height:1.1}
 .studio-page .platform-numbers strong{font-size:14px}
 .studio-page .platform-numbers small{font-size:9px}
 .studio-page .meter{height:3px}
 .studio-page .tool-card{min-height:25px;padding:3px 6px}
 .studio-page .tool-group-title{margin:2px 0 0;padding:0 0 1px}
 .studio-page .studio-tools-lead{margin-bottom:3px}
}
@media (min-width:1101px) and (max-height:710px){
 .studio-page .platform-grid{gap:2px}
 .studio-page .platform-card{padding:2px 5px}
 .studio-page .studio-counter-controls{margin-bottom:5px}
 .studio-page .studio-footnote{margin-top:3px}
}

/* Studio refinements: more breathable controls, without page scrolling. */
.studio-page{--studio-gap:15px}
.studio-page .studio-grid{grid-template-columns:minmax(325px,1fr) minmax(290px,.88fr) minmax(390px,1.2fr)}
.studio-page .studio-column{padding:14px;border-radius:17px}
.studio-page .studio-panel-title{margin-bottom:10px}
.studio-page .editor-toolbar{padding:12px 14px;min-height:43px}
.studio-page .toolbar-actions{gap:8px}
.studio-page .text-btn{font-size:11px;padding:6px 7px;border-radius:6px}
.studio-page .text-btn:hover{background:#f3f2ff;text-decoration:none}
.studio-page #text-editor{padding:18px;font-size:14px;line-height:1.7}
.studio-page .editor-bottom{padding:7px 15px 11px}
.studio-page .editor-footer{padding:11px 12px;gap:10px}
.studio-page .editor-footer-left{gap:7px}
.studio-page .ghost-button{font-size:11px;padding:9px 10px}
.studio-page .primary-button{font-size:11.5px;padding:10px 14px}
.studio-page .studio-metrics{gap:8px;margin-top:11px}
.studio-page .studio-metrics>div{padding:9px 10px}
.studio-page .studio-details{padding:12px 3px 6px;gap:9px}
.studio-page .studio-insight{padding:11px 12px}
.studio-page .studio-preview-min{margin-top:11px}
.studio-page .studio-preview-min select{padding:6px 9px}
.studio-page .studio-preview-text{padding:10px 12px}
.studio-page .studio-counter-controls{gap:10px;margin-bottom:11px}
.studio-page .segment{padding:6px 9px;font-size:10.5px}
.studio-page .compact-control{padding:5px 9px}
.studio-page .platform-grid{gap:5px}
.studio-page .platform-card{padding:5px 10px;column-gap:10px;row-gap:5px;border-radius:10px}
.studio-page .platform-meta strong{font-size:11.25px}
.studio-page .platform-meta small{font-size:9px}
.studio-page .platform-icon{width:24px;min-width:24px;height:24px}
.studio-page .tool-groups{scrollbar-width:thin}
.studio-page .tool-card{padding:8px 9px;min-height:42px;gap:10px;border-radius:9px}
.studio-page .tool-card input[type=checkbox]{width:18px;height:18px}
.studio-page .tool-card-text strong{font-size:11.5px;line-height:1.35}
.studio-page .tool-group-title{font-size:10.5px;margin:7px 0 5px;padding:3px 0 7px}
.studio-page .apply-panel{padding:11px 12px;gap:10px;margin-top:10px}
.studio-page .apply-actions{gap:7px}
.studio-page .secondary-button{padding:9px 12px;font-size:11px}
.studio-page .studio-tools .primary-button{padding:9px 12px;font-size:11px}
.studio-page .studio-tools-lead{margin-bottom:9px;font-size:10.5px}
/* A dedicated, opt-in ad is placed in the editor column, never over controls. */
.studio-page .studio-ad-slot{flex:none;margin-top:10px;min-height:86px;padding:8px 12px 10px;background:#fafbff;border:1px solid #e2e7f4;border-radius:11px;text-align:center}
.studio-page .studio-ad-slot[hidden]{display:none}
.studio-page .studio-ad-slot .ad-label{margin:0 0 5px;font-size:9px;letter-spacing:1.4px}
.studio-page .studio-ad-slot .adsbygoogle{min-width:240px}
.studio-page .studio-editor:has(.studio-ad-slot:not([hidden])){overflow-y:auto;scrollbar-width:thin}
@media(min-width:1101px){
  /* Two airy tool columns, with the five-item category on the right. */
  .studio-page .tool-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;column-gap:13px;row-gap:9px;align-content:start}
  .studio-page .tool-group:nth-child(1){grid-column:1;grid-row:1}
  .studio-page .tool-group:nth-child(2){grid-column:2;grid-row:1/span 2;align-self:start}
  .studio-page .tool-group:nth-child(3){grid-column:1;grid-row:2}
}
@media(max-width:1100px){
  .studio-page .studio-grid{display:block}
  .studio-page .studio-column{padding:15px}
  .studio-page .tool-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:19px;row-gap:16px}
  .studio-page .tool-card{min-height:43px;padding:9px 11px}
  .studio-page .studio-ad-slot{min-height:78px}
}
@media(max-width:600px){
  .studio-page .studio-column{padding:12px}
  .studio-page .tool-groups{display:block}
  .studio-page .tool-card{min-height:42px;padding:9px 10px}
  .studio-page .platform-card{padding:9px 11px}
  .studio-page .studio-ad-slot{min-height:70px}
  .studio-page .editor-footer{flex-wrap:wrap}
  .studio-page .editor-toolbar{gap:6px}
}
@media(min-width:1101px) and (max-height:800px){
  /* Keep 11 counters and 12 tools visible at 720p while improving hit targets. */
  .studio-page .studio-panel-title{margin-bottom:8px}
  .studio-page .platform-grid{gap:4px}
  .studio-page .platform-card{padding:4px 8px;row-gap:3px}
  .studio-page .studio-counter-controls{margin-bottom:8px}
  .studio-page .tool-card{min-height:38px;padding:7px 8px}
  .studio-page .tool-group-title{margin:4px 0 3px;padding:2px 0 4px}
  .studio-page .studio-tools-lead{margin-bottom:5px}
  .studio-page .apply-panel{padding:9px 10px;margin-top:8px}
}
@media(min-width:1101px) and (max-height:710px){
  .studio-page .platform-card{padding:3px 7px}
  .studio-page .tool-card{min-height:35px;padding:6px 7px}
}

@media(min-width:1101px) and (max-height:800px){
  /* 11 full counters remain visible without needing to scroll at 720p. */
  .studio-page .platform-icon{width:20px;min-width:20px;height:20px;font-size:10px}
  .studio-page .platform-card{padding:3px 9px;row-gap:2px}
  .studio-page .meter{height:3px}
  /* When an ad is live, give the actual writing field priority over the miniature post preview. */
  .studio-page .studio-editor:has(.studio-ad-slot:not([hidden])) .studio-preview-min,
  .studio-page .studio-editor:has(.studio-ad-slot:not([hidden])) .studio-preview-text{display:none}
}
@media(min-width:1101px) and (max-height:740px){
  .studio-page .platform-icon{width:18px;min-width:18px;height:18px}
  .studio-page .platform-card{padding:2px 9px;row-gap:1px}
  .studio-page .platform-meta strong{font-size:10.5px}
  .studio-page .platform-meta small{font-size:8.5px}
  .studio-page .meter{height:2px}
}

/* Studio platform legibility, keeping eleven visible at standard laptop heights. */
.studio-page .platform-icon{background:#eef1fa;color:#485777;border-color:#e2e7f2;letter-spacing:0;font-size:10px;font-weight:800}
.studio-page .platform-numbers strong{font-size:22px;line-height:1.04;letter-spacing:-.45px}
.studio-page .platform-numbers strong small{font-size:15px;font-weight:800;letter-spacing:0;color:#63708a}
.studio-page .platform-numbers .remaining{font-size:11px;font-weight:800}
.studio-page .platform-numbers{align-items:baseline;gap:7px}
@media(min-width:1101px) and (max-height:800px){
  .studio-page .platform-numbers strong{font-size:19px;line-height:1}
  .studio-page .platform-numbers strong small{font-size:13px}
  .studio-page .platform-numbers .remaining{font-size:10px}
  .studio-page .platform-icon{font-size:9px}
  .studio-page .platform-card{grid-template-rows:auto 3px}
}
@media(min-width:1101px) and (max-height:740px){
  .studio-page .platform-numbers strong{font-size:18px}
  .studio-page .platform-numbers strong small{font-size:12.5px}
}
@media(max-width:1100px){
  .studio-page .platform-numbers strong{font-size:23px}
  .studio-page .platform-numbers strong small{font-size:15px}
  .studio-page .platform-numbers .remaining{font-size:12px}
  .studio-page .platform-icon{font-size:11px}
}

/* Filter, List/Tiles switch, and sorting share a compact toolbar. */
.studio-page .studio-counter-controls{display:flex;align-items:center;gap:5px;margin-bottom:6px}
.studio-page .studio-counter-controls .segmented{flex:1;min-width:0;justify-content:space-around;padding:2px}
.studio-page .studio-counter-controls .segment{padding:5px 5px;font-size:10px}
.studio-page .platform-view-controls{display:flex;flex:none;align-items:center;gap:1px;background:#f2f4fc;border:1px solid #e3e8f6;border-radius:8px;padding:2px}
.studio-page .view-mode{height:24px;width:24px;min-width:24px;display:grid;place-items:center;border:0;border-radius:6px;color:#67738e;background:transparent;font-weight:800;font-size:14px;cursor:pointer}
.studio-page .view-mode.active{background:#fff;color:#5349db;box-shadow:0 1px 5px #26365720}
.studio-page .view-mode:focus-visible{outline:3px solid #6c61eb;outline-offset:2px}
.studio-page .compact-control{padding:3px 5px;min-width:25px;font-size:13px}
/* List view: platform name and green remaining count receive more emphasis. */
.studio-page .platform-grid{gap:4px}
.studio-page .platform-card{--ring-color:#13a076;display:grid;grid-template-columns:minmax(0,1fr) auto 32px;grid-template-rows:auto;column-gap:7px;row-gap:0;align-items:center;padding:5px 7px;border-radius:9px}
.studio-page .platform-head{gap:7px;min-width:0}
.studio-page .platform-icon{width:28px;min-width:28px;height:28px;border-radius:7px;background:#f4f6fb}
.studio-page .platform-icon .platform-logo{width:70%;height:70%}
.studio-page .platform-meta strong{font-size:13.5px;line-height:1.14;font-weight:800;letter-spacing:-.2px}
.studio-page .platform-meta small{font-size:9px;line-height:1.2}
.studio-page .platform-numbers{display:flex;flex-direction:column;align-items:end;justify-content:center;gap:1px;margin:0;min-width:0}
.studio-page .platform-numbers strong{font-size:14px;line-height:1.1;letter-spacing:0;white-space:nowrap}
.studio-page .platform-numbers strong small{font-size:10.5px;font-weight:700;letter-spacing:0}
.studio-page .platform-numbers .remaining{font-size:12px;line-height:1.1;font-weight:800;color:#07865f;white-space:nowrap}
.studio-page .platform-card.near{--ring-color:#e2a042}
.studio-page .platform-card.over{--ring-color:#dd5267}
.studio-page .platform-card.near .remaining{color:#ae681e}
.studio-page .platform-card.over .remaining{color:#c83a4f}
/* Circular usage rings replace horizontal progress bars in both Studio views. */
.studio-page .platform-card .meter{display:none}
.studio-page .usage-ring{display:grid;place-items:center;width:32px;height:32px;min-width:32px;border-radius:50%;padding:3px;background:conic-gradient(var(--ring-color) calc(var(--used, 0) * 1%),#e9edf5 0)}
.studio-page .usage-ring .ring-label{display:grid;place-items:center;width:100%;height:100%;background:#fff;color:#52627a;border-radius:50%;font-size:8px;font-weight:850;line-height:1}
/* Tiles: six rows for eleven counters and compact circular indicators. */
.studio-page .platform-grid.counter-layout-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;align-content:start;overflow:auto}
.studio-page .counter-layout-tiles .platform-card{display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-template-rows:auto auto;column-gap:3px;row-gap:4px;padding:7px;min-width:0}
.studio-page .counter-layout-tiles .platform-head{grid-column:1/-1;gap:5px}
.studio-page .counter-layout-tiles .platform-icon{width:23px;min-width:23px;height:23px;border-radius:6px}
.studio-page .counter-layout-tiles .platform-meta strong{font-size:12.5px;line-height:1.08;letter-spacing:-.3px}
.studio-page .counter-layout-tiles .platform-meta small{font-size:8.5px;line-height:1.15}
.studio-page .counter-layout-tiles .platform-numbers{grid-column:1;grid-row:2;align-items:start}
.studio-page .counter-layout-tiles .platform-numbers strong{font-size:12.5px}
.studio-page .counter-layout-tiles .platform-numbers strong small{font-size:10px}
.studio-page .counter-layout-tiles .platform-numbers .remaining{font-size:11.5px}
.studio-page .counter-layout-tiles .usage-ring{grid-column:2;grid-row:2}
@media(min-width:1101px) and (max-height:800px){
  .studio-page .platform-card{padding:3px 6px;grid-template-columns:minmax(0,1fr) auto 29px}
  .studio-page .platform-icon{width:25px;min-width:25px;height:25px}
  .studio-page .platform-meta strong{font-size:12.8px}
  .studio-page .platform-numbers strong{font-size:13px}
  .studio-page .platform-numbers .remaining{font-size:11.75px}
  .studio-page .usage-ring{width:29px;height:29px;min-width:29px}
  .studio-page .tool-card{min-height:31px;padding:4px 7px}
  .studio-page .tool-group-title{margin:3px 0 2px;padding:1px 0 2px}
  .studio-page .apply-panel{padding:5px 7px}
  .studio-page .platform-grid.counter-layout-list{gap:2px}
  .studio-page .platform-grid.counter-layout-tiles{gap:3px}
  .studio-page .counter-layout-tiles .platform-card{grid-template-columns:minmax(0,1fr) 29px;grid-template-rows:auto auto;padding:5px 6px}
  .studio-page .counter-layout-tiles .platform-icon{width:22px;min-width:22px;height:22px}
  .studio-page .counter-layout-tiles .usage-ring{width:29px;height:29px}
}
@media(max-width:1100px){
  .studio-page .studio-counter-controls .segmented{flex:none}
  .studio-page .platform-grid.counter-layout-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .studio-page .platform-card{padding:9px}
  .studio-page .platform-meta strong{font-size:14px}
  .studio-page .platform-numbers .remaining{font-size:13px}
}
@media(max-width:650px){
  .studio-page .studio-counter-controls{gap:5px}
  .studio-page .studio-counter-controls .segmented{flex:1;min-width:0}
  .studio-page .studio-counter-controls .segment{font-size:10px;padding:4px}
  .studio-page .platform-grid.counter-layout-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-page .platform-view-controls .view-mode{width:25px;height:25px}
  .studio-page .platform-meta strong{font-size:13.5px}
}
@media(max-width:360px){
  .studio-page .studio-counter-controls{flex-wrap:wrap}
  .studio-page .studio-counter-controls .segmented{flex:1 0 100%}
  .studio-page .platform-grid.counter-layout-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-page .counter-layout-tiles .platform-meta strong{font-size:11.5px}
}



/* Glyphometer Studio v7 — focused spacing refinement.
   Keep the v6 narrow column minimums and list/tile preferences, but restore
   the v5 Smart Formatting density and its small square checkboxes. */
@media(min-width:1101px){
  .studio-page .studio-grid{grid-template-columns:minmax(385px,1.16fr) minmax(345px,1fr) minmax(390px,1.08fr);gap:12px}
  .studio-page .tool-groups{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:7px;row-gap:9px}
}
/* Smaller editor chrome gives the textarea additional vertical space. */
.studio-page .editor-panel{border-radius:8px}
.studio-page #text-editor{border-radius:5px;min-width:0}
.studio-page .editor-toolbar{padding:6px 11px;min-height:35px;border-radius:7px 7px 0 0;gap:6px}
.studio-page .toolbar-actions{gap:5px}
.studio-page .text-btn{font-size:11px;padding:3px 5px}
.studio-page .editor-bottom{padding:3px 11px 5px}
.studio-page .editor-footer{padding:6px 10px;gap:6px;border-radius:0 0 7px 7px}
.studio-page .editor-footer-left{gap:5px}
.studio-page .ghost-button{font-size:10.5px;padding:6px 8px}
.studio-page .primary-button{font-size:11px;padding:8px 11px}
.studio-page .studio-metrics>div,.studio-page .studio-insight{border-radius:8px}
/* Keep the clear List/Tiles controls from v6, with extra space below filters. */
.studio-page .studio-counter-controls{align-items:center;gap:6px;margin-bottom:14px}
.studio-page .platform-view-controls{gap:2px;padding:2px;border-radius:9px}
.studio-page .view-mode{width:auto;height:29px;min-width:0;padding:0 7px;display:inline-flex;gap:4px;align-items:center;justify-content:center;border-radius:7px;font-size:10.5px;line-height:1;font-weight:750;white-space:nowrap}
.studio-page .view-mode .layout-glyph{font-size:13px;line-height:1}
.studio-page .view-mode.active{box-shadow:0 1px 4px #26365720}
.studio-page .view-mode:hover:not(.active){color:#5349db;background:#e8eaff}
.studio-page .platform-grid.counter-layout-list{gap:7px}
.studio-page .platform-grid.counter-layout-tiles{gap:10px}
.studio-page .platform-card{min-height:36px;padding:4px 8px;row-gap:2px;border-radius:10px}
.studio-page .platform-meta strong{font-size:12.5px;font-weight:750;letter-spacing:-.1px;line-height:1.18}
.studio-page .platform-meta small{font-size:9px;line-height:1.25}
.studio-page .platform-numbers strong{font-size:13px;font-weight:750;line-height:1.2}
.studio-page .platform-numbers strong small{font-size:10px;font-weight:650;color:#7c879e}
.studio-page .platform-numbers .remaining{font-size:11.5px;font-weight:750;line-height:1.25}
.studio-page .platform-icon{width:25px;min-width:25px;height:25px}
.studio-page .usage-ring{width:29px;height:29px;min-width:29px}
.studio-page .counter-layout-tiles .platform-card{min-height:70px;padding:7px;grid-template-rows:auto auto;row-gap:4px}
.studio-page .counter-layout-tiles .platform-meta strong{font-size:12px}
.studio-page .counter-layout-tiles .platform-numbers strong{font-size:12px}
.studio-page .counter-layout-tiles .platform-numbers .remaining{font-size:11px}
/* v5 Smart Formatting spacing — preserve narrow columns and v6 selected states. */
.studio-page .studio-tools .studio-panel-title{margin-bottom:6px}
.studio-page .studio-tools-lead{margin-bottom:4px;font-size:10px}
.studio-page .tool-groups{min-width:0}
.studio-page .tool-group-title{margin:3px 0 3px;padding:1px 0 3px}
.studio-page .tool-card{align-items:center;min-height:33px;padding:5px 7px;gap:7px;border-radius:7px;cursor:pointer;user-select:none}
.studio-page .tool-card-text strong{font-size:11.25px;line-height:1.25;font-weight:700}
.studio-page .tool-card:hover{background:#f7f7ff}
.studio-page .tool-card.selected{background:#f3f2ff}
.studio-page .tool-card:focus-within{outline:2px solid #aaa2fa;outline-offset:-2px}
.studio-page .tool-card input[type=checkbox]{appearance:none;-webkit-appearance:none;accent-color:auto;width:16px;height:16px;min-width:16px;flex:none;margin:0;position:relative;border:1.5px solid #cbd2e7;border-radius:4px;background:white;cursor:pointer}
.studio-page .tool-card input[type=checkbox]:checked{background:#5a4eef;border-color:#5a4eef}
.studio-page .tool-card input[type=checkbox]:checked:before{
  /* SVG tick is geometrically centered; font glyph metrics can shift a text tick. */
  content:"";
  position:absolute;
  inset:0;
  display:block;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.2 6.4 11.25 12.75 4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  pointer-events:none;
}
.studio-page .tool-card input[type=checkbox]:focus-visible{outline:3px solid #aca4fd;outline-offset:2px}
.studio-page .apply-panel{margin-top:4px;padding:6px 8px;gap:5px}
.studio-page .studio-tools .studio-footnote{margin-top:5px}
@media(min-width:1101px) and (max-height:800px){
  /* Space between cards stays visible while all eleven list rows fit at 720p. */
  .studio-page .studio-counter-controls{margin-bottom:10px}
  .studio-page .platform-grid.counter-layout-list{gap:4px}
  .studio-page .platform-grid.counter-layout-tiles{gap:8px}
  .studio-page .platform-card{min-height:32px;padding:3px 7px}
  .studio-page .platform-icon{width:23px;min-width:23px;height:23px}
  .studio-page .platform-numbers{gap:0}
  .studio-page .platform-numbers strong{font-size:12px;line-height:1}
  .studio-page .platform-numbers .remaining{font-size:10.5px;line-height:1}
  .studio-page .usage-ring{width:25px;height:25px;min-width:25px}
  .studio-page .counter-layout-tiles .platform-card{min-height:60px;padding:4px 6px;row-gap:2px}
  .studio-page .counter-layout-tiles .platform-icon{width:20px;min-width:20px;height:20px}
  .studio-page .counter-layout-tiles .platform-meta strong{font-size:11.5px;line-height:1.05}
  .studio-page .counter-layout-tiles .platform-meta small{line-height:1.05}
  .studio-page .counter-layout-tiles .platform-numbers strong{font-size:11.5px;line-height:1}
  .studio-page .counter-layout-tiles .platform-numbers .remaining{font-size:10.5px;line-height:1}
  .studio-page .tool-card{min-height:31px;padding:4px 7px}
  .studio-page .tool-group-title{margin:3px 0 2px;padding:1px 0 2px}
  .studio-page .apply-panel{padding:5px 7px}
}
@media(max-width:1100px){
  .studio-page .tool-groups{column-gap:12px}
  .studio-page .tool-card{min-height:40px;padding:7px 9px}
  .studio-page .platform-card{min-height:43px}
  .studio-page .counter-layout-tiles .platform-card{min-height:77px}
}
@media(max-width:650px){
  /* Move filters onto their own row instead of squeezing controls together. */
  .studio-page .studio-counter-controls{flex-wrap:wrap;row-gap:9px;margin-bottom:13px}
  .studio-page .studio-counter-controls .segmented{flex:1 0 100%;justify-content:space-around}
  .studio-page .platform-view-controls{margin-right:auto}
  .studio-page .platform-grid.counter-layout-tiles{gap:8px}
  .studio-page .platform-card{min-height:44px}
  .studio-page .tool-card{min-height:41px;padding:8px 9px}
}
@media(prefers-reduced-motion:reduce){.studio-page .tool-card{transition:none}}
