/* ZeroFee Tools - Aspect Ratio Calculator */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --acc1: #b45309; --acc2: #d97706; --ink: #1e293b; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff; --ok: #16a34a; --warn: #d97706; --bad: #dc2626; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
#siteHeader { background: linear-gradient(135deg, var(--acc1), var(--acc2)); color: #fff; padding: 26px 0 0; }
.header-inner { display: flex; align-items: center; }
.brand { display: flex; gap: 14px; align-items: center; }
.hub-link { color: #fff; text-decoration: none; font-size: .85rem; opacity: .85; display: block; margin-bottom: 2px; }
.hub-link:hover { opacity: 1; text-decoration: underline; }
.brand-name { font-size: 1.7rem; line-height: 1.1; }
.brand-tag { opacity: .9; font-size: .9rem; }
.free-banner { text-align: center; font-size: .82rem; padding: 10px 16px 14px; opacity: .95; }
#main { padding: 30px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 18px; }
.card h2 { font-size: 1.2rem; margin-bottom: 14px; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
input[type="number"], input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: .95rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 400; font-family: inherit; }
input:focus { outline: 2px solid var(--acc1); border-color: var(--acc1); }
.btn { border: none; border-radius: 10px; padding: 11px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--acc1), var(--acc2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: #fffbeb; color: var(--acc1); }
.btn-ghost:hover { background: #fef3c7; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.ratio-display { text-align: center; padding: 26px 12px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border-radius: 14px; margin-top: 16px; border: 1px solid #fde68a; }
.ratio-big { font-size: 3rem; font-weight: 800; color: var(--acc1); line-height: 1; }
.ratio-sub { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.ratio-visual { margin: 18px auto 4px; border: 3px solid var(--acc2); border-radius: 8px; background: #fff; max-width: 100%; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: .88rem; cursor: pointer; color: var(--ink); font-weight: 600; }
.preset:hover, .preset.active { border-color: var(--acc1); color: var(--acc1); background: #fffbeb; }
.scale-result { font-size: 1.3rem; font-weight: 700; margin-top: 10px; }
.scale-result code { background: #fffbeb; color: var(--acc1); padding: 4px 12px; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.related-tools { margin: 34px 0 44px; }
.related-tools h2 { font-size: 1.3rem; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); display: block; }
.related-card:hover { border-color: var(--acc1); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.related-card strong { display: block; margin-bottom: 4px; color: var(--acc1); }
.related-card span { font-size: .88rem; color: var(--muted); }
