.ruler-page{max-width:1152px;margin:auto;padding:32px 20px 64px;width:100%;color:#172033}.dark .ruler-page{color:#e5e7eb}.ruler-eyebrow{color:#05f;font-size:12px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.ruler-page h1{font-size:clamp(32px,5vw,56px);font-weight:850;line-height:1.1;letter-spacing:-.04em;margin:16px 0}.ruler-lead{font-size:18px;max-width:700px;line-height:1.65;color:#64748b}.ruler-nav{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.ruler-nav a{padding:10px 18px;border:1px solid #cbd5e1;border-radius:24px;font-weight:700}.ruler-nav a[aria-current=page]{background:#05f;color:#fff;border-color:#05f}.ruler-workspace{background:#fff;border:1px solid #dce3ee;border-radius:24px;padding:24px;box-shadow:0 12px 42px #10204408;overflow:hidden}.dark .ruler-workspace{background:#111827;border-color:#334155}.ruler-workspace:fullscreen{overflow:auto;border-radius:0;padding:20px}.ruler-workspace p{margin:12px 0;line-height:1.6}.ruler-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:18px}.ruler-page button,.ruler-page select,.ruler-page input{font:inherit}.ruler-page button,.ruler-page select,.file-button{min-height:44px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 14px;background:transparent;font-weight:650;cursor:pointer}.ruler-page input:not([type=file]):not([type=range]){display:block;border:1px solid #cbd5e1;border-radius:8px;padding:9px;width:145px;max-width:100%;background:transparent;min-height:44px}.ruler-page label{font-size:13px;display:flex;flex-direction:column;gap:5px}.ruler-page input[type=range]{min-height:44px;max-width:100%}.ruler-page button:focus-visible,.ruler-page input:focus-visible,.ruler-page select:focus-visible,.ruler-page a:focus-visible,.ruler-page circle:focus-visible{outline:3px solid #7aa7ff;outline-offset:3px}.ruler-page button:disabled{opacity:.4;cursor:not-allowed}.ruler-page .primary{background:#05f;color:#fff;border-color:#05f}.ruler-status{padding:10px 14px;background:#fff4d6;color:#785100;border-radius:10px;font-size:14px;font-weight:750;flex:1}.ruler-status.ready{color:#126342;background:#ddf7e9}.ruler-scroll{overflow:auto;padding:12px 0 0}.ruler-stage{position:relative;margin:0 16px;color:inherit}.ruler-page .ruler-handle{position:absolute;transform:translate(-50%);border:2px solid #0055ff;color:#05f;background:#fff;width:44px;height:44px;padding:0;touch-action:none;cursor:ew-resize;font-weight:800}.ruler-handle:before{content:"";position:absolute;bottom:42px;left:20px;border-left:1px dashed #0055ff;height:140px;pointer-events:none}.ruler-reading{font-size:clamp(28px,5vw,44px);font-weight:800;letter-spacing:-.03em;margin:14px 0}.ruler-reading small{font-size:15px;display:block;color:#64748b;letter-spacing:0}.ruler-note{font-size:13px;color:#64748b}.ruler-calibration{padding:18px;background:#f1f5ff;border-radius:16px;margin-bottom:20px}.dark .ruler-calibration{background:#1e293b}.ruler-page h2{font-weight:800;font-size:24px;margin:20px 0 12px;letter-spacing:-.02em}.calibration-line{height:20px;border:solid #0055ff;border-width:0 2px 3px;margin:28px 0 8px;flex:none}.ruler-lens{width:240px;max-width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:10px;margin:12px 0;font-size:12px}.photo-scroll{max-height:650px;overflow:auto;background:#e2e8f0;border-radius:12px}.photo-lens{width:140px;height:140px;border:3px solid #0055ff;border-radius:50%;display:grid;place-items:center;font-size:28px;color:#f35;margin:12px;background-repeat:no-repeat}.photo-lines{list-style:none;padding:0}.photo-lines li{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:12px 0}.ruler-content{display:grid;grid-template-columns:2fr 1fr;gap:48px;margin-top:44px}.ruler-content p,.ruler-content li{line-height:1.8;color:#64748b;margin:10px 0}.ruler-content ol{list-style:decimal;padding-left:22px}.ruler-content a{color:#05f;text-decoration:underline}.ruler-content details{border-bottom:1px solid #dce3ee;padding:16px 0}.ruler-content summary{font-weight:700;cursor:pointer}.ruler-related{padding:22px;border:1px solid #dce3ee;border-radius:20px;align-self:start}.print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.print-card{border:1px solid #cbd5e1;border-radius:16px;padding:20px}.print-card a{display:inline-block;padding:10px;color:#05f;font-weight:750;text-decoration:underline}.file-button input{max-width:220px;font-size:12px}.tools-promo{max-width:1152px;margin:0 auto 48px;padding:24px;border:1px solid #dce3ee;border-radius:20px;display:flex;gap:20px;flex-wrap:wrap}.tools-promo a{color:#05f;font-weight:750}@media(max-width:640px){.ruler-workspace{padding:16px}.ruler-content{grid-template-columns:1fr;gap:16px}.print-grid{grid-template-columns:1fr}.ruler-page{padding:24px 12px}.ruler-toolbar{gap:8px}.ruler-page input:not([type=file]):not([type=range]){width:125px}}.ruler-stage.vertical .ruler-handle{transform:translateY(-50%);cursor:ns-resize}.ruler-stage.vertical .ruler-handle:before{bottom:20px;left:-142px;width:140px;height:0;border-left:0;border-top:1px dashed #0055ff}.ruler-page .ruler-select-trigger{min-height:44px;height:auto;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;border-radius:12px;text-align:left;background:#f8f9fa}.ruler-page .ruler-select-trigger>svg{width:16px;height:16px;flex-shrink:0;margin-left:4px}.dark .ruler-page .ruler-select-trigger{background:#0b0f19;border-color:#475569}.ruler-select-menu{max-width:calc(100vw - 24px)}.ruler-select-menu{min-width:max(var(--radix-select-trigger-width),220px)}
