:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;color:#242731;background:#f7f8fa;font-synthesis:none;--ink:#242731;--muted:#656975;--accent:#523b7a;--accent-soft:#f0ecf7;--line:#e3e5eb;--surface:#fff;--radius:16px;--danger:#a23540}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,summary,select{cursor:pointer}button{border:0;font-weight:600}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--accent)}button,a,summary{touch-action:manipulation}svg{width:22px;height:22px;flex:none}a{text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #8c74b1;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.25}h1{font-size:32px;letter-spacing:-1.1px;margin-bottom:10px;font-weight:600}h2{font-size:20px;letter-spacing:-.45px;font-weight:600;margin:0}h3{font-size:18px;font-weight:600}p{color:var(--muted)}
.skip-link{position:fixed;top:-70px;left:20px;padding:12px;background:var(--accent);color:#fff;z-index:100}.skip-link:focus{top:10px}.app-header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{max-width:1168px;margin:auto;min-height:88px;padding:16px 32px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:22px;letter-spacing:-.6px;font-weight:700;line-height:1.15}.brand small{display:block;font-size:12px;letter-spacing:.35px;font-weight:500;color:var(--muted);margin-top:4px}.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--accent);color:white;display:grid;place-items:center}.brand-mark svg{width:27px;height:27px}.header-actions{display:flex;align-items:center;gap:14px}.quiet,.secondary,.soft{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;min-height:46px;padding:10px 15px;font-size:14px}.quiet{border-color:transparent;background:transparent}.quiet:hover,.secondary:hover,.soft:hover{background:var(--accent-soft);color:var(--accent)}.history-open .count{font-size:12px;background:var(--accent-soft);color:var(--accent);padding:2px 6px;border-radius:6px}.primary,#calculate,#history-load,#share-copy,#copy-share,#install-native{background:var(--accent);color:#fff;border-radius:10px;min-height:50px;padding:12px 20px;font-size:16px;font-weight:600}.primary:hover,#calculate:hover{background:#432d69}
main{max-width:1168px;padding:28px 32px 115px;margin:auto}.home-main{max-width:1050px;padding-top:56px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:1.5px;color:var(--accent);margin-bottom:15px}.home-heading h1{font-size:40px;letter-spacing:-1.8px;line-height:1.12}.home-heading>p:last-child{font-size:16px;line-height:1.7;margin:18px 0 32px;max-width:470px}.tool-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tool-card{position:relative;display:flex;flex-direction:column;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--ink);transition:border-color .15s,transform .15s}.tool-card:hover{border-color:#b3a1cc;transform:translateY(-2px)}.tool-symbol{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:var(--accent-soft);color:var(--accent);margin-bottom:26px;flex:none}.tool-symbol svg{width:30px;height:30px}.tool-symbol.ammonia{background:#eaf3f2;color:#2c716c}.tool-tag{font-size:12px;font-weight:600;letter-spacing:1.25px;color:var(--muted);margin-bottom:9px}.tool-card h2{font-size:24px;letter-spacing:-.7px;margin-bottom:12px}.tool-card p{font-size:16px;line-height:1.65;margin-bottom:22px;max-width:300px}.tool-meta{font-size:12px;color:var(--muted);margin-top:auto}.card-action{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:22px;color:var(--accent);font-size:14px;font-weight:600}.home-footnote{display:flex;justify-content:space-between;gap:14px;font-size:12px;color:var(--muted);margin:22px 3px}.connection-status::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#6b877f;margin-right:7px;vertical-align:middle}
.app-nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffef;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);backdrop-filter:blur(12px);z-index:30}.app-nav>div{max-width:600px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px 20px}.app-nav a,.app-nav button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 12px;color:var(--muted);background:transparent;text-decoration:none;border-radius:10px;font-size:14px;font-weight:500}.app-nav [aria-current=page]{color:var(--accent);background:var(--accent-soft);font-weight:600}.app-nav a:hover,.app-nav button:hover{background:#f4f2f8}
.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:12px;color:#818590;margin-bottom:25px;flex-wrap:wrap}.breadcrumbs a{color:var(--muted);text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs [aria-current]{color:var(--accent)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.page-heading .eyebrow{margin-bottom:8px;font-size:12px}.page-heading p:last-child{margin-bottom:0;font-size:14px}.page-heading .tool-symbol{margin:0}.workspace{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:24px;align-items:start}.input-column{display:flex;flex-direction:column;gap:20px;min-width:0}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0}.panel-heading,.heading,.dialog-heading,.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.panel-heading h2,.heading h2{display:flex;align-items:center;gap:9px}.step{display:inline-grid;place-items:center;width:23px;height:23px;background:#f2f3f6;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:12px;font-weight:500;flex:none}.badge,#count,#phase{font-size:12px;border-radius:6px;padding:6px 9px;background:var(--accent-soft);color:var(--accent);line-height:1.4;font-weight:500}#phase{max-width:48%;text-align:center}.field-label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:7px}input,select,textarea{width:100%;min-width:0;border:1px solid #cfd2db;border-radius:9px;background:#fff;color:var(--ink);padding:12px;min-height:50px}input{font-size:20px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums}input::placeholder{color:#9296a0;font-size:16px;font-weight:400}select{font-size:16px;text-overflow:ellipsis;padding-right:26px}textarea{font-size:16px;line-height:1.7;resize:vertical}#input-pair,#mode{font-size:16px;margin-bottom:18px}.input-columns,.output-columns,.row-labels{display:none}.input-row,.property-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px 12px;margin-bottom:18px}.input-row label,.property-row>strong{grid-column:1/-1;color:var(--ink);font-size:14px;font-weight:600;line-height:1.4}.input-value-cell{position:relative;min-width:0}.input-value-cell input{padding-right:45px}.input-value-cell>.copy-value{position:absolute;right:2px;top:3px}.copy-value{background:transparent;color:#777285;width:44px;min-width:44px;height:44px;padding:12px;display:inline-flex;justify-content:center;align-items:center;border-radius:8px}.copy-value svg{width:17px;height:17px}.copy-value:hover{background:var(--accent-soft);color:var(--accent)}.copy-value:disabled{opacity:.3}.input-row.active input{border-color:#b6a2d0}.input-row.locked input{background:#f4f5f7}.actions{display:flex;gap:10px;margin-top:22px;align-items:stretch}.actions #calculate{flex:1}#clear{min-width:72px}.footnote,.hint,.input-hint{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 0 0}.input-hint{margin-top:15px}.footnote:empty,.hint:empty{display:none}.error,#error{background:#fff0ef;border:1px solid #efcbc8;border-radius:10px;padding:14px;font-size:14px;color:#a13536;line-height:1.6;margin:16px 0 0}.result-empty{text-align:center;padding:48px 10px 60px}.result-empty>svg{width:36px;height:36px;color:#a89bbd;margin-bottom:18px}.result-empty h3{font-size:18px;font-weight:600;margin-bottom:8px}.result-empty p{font-size:14px;line-height:1.7;margin-bottom:0}.output:focus{outline:none}
.result-item{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:5px 10px;padding:15px 0;border-top:1px solid var(--line)}.result-item label{font-size:14px;font-weight:500;grid-column:1/-1;color:var(--muted)}.output-value-cell{display:flex;align-items:center;gap:3px;min-width:0}.output-value-cell strong{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink);line-height:1.5;letter-spacing:-.5px}.output-value-cell .copy-value{margin-left:auto}.result-item select{font-size:14px;min-height:44px;padding:8px 24px 8px 10px;border-color:var(--line)}.results-note{font-size:12px;line-height:1.7;color:var(--muted);margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}.saturation-info{background:#f7f5fb;border:1px solid #e8e1f1;border-radius:12px;padding:2px 14px;margin-bottom:16px}.saturation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0}.saturation-row+.saturation-row{border-top:1px solid #e8e1f1}.saturation-row span{font-size:12px;font-weight:600}.saturation-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.saturation-value{display:flex;align-items:center;gap:2px}.saturation-value strong{color:var(--accent);font-size:18px;white-space:nowrap;font-weight:600}.saturation-value strong small{display:inline;font-size:12px}.saturation-value .copy-value{width:36px;min-width:36px}.text-button{background:none;color:var(--accent);font-size:12px;padding:8px 0;min-height:44px}.history-card{display:block;width:100%;text-align:left;padding:16px;border:1px solid var(--line);border-radius:11px;background:#fafafd;color:var(--ink);margin:10px 0;font-weight:400;min-width:0}.history-card:hover{border-color:#bdafce}.history-card-top{display:flex;justify-content:space-between;gap:10px;font-size:14px}.history-card-top>span,.history-card em{color:var(--accent);font-size:12px;font-style:normal;white-space:nowrap}.history-card time,.history-card small{display:block;color:var(--muted);font-size:12px;margin-top:7px}.history-inputs,.history-card>span{display:block;font-size:14px;line-height:1.7;margin-top:5px}.history-card>.history-card-top{display:flex}
.basis{margin-top:24px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 18px}.basis summary{min-height:54px;display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;list-style:none;color:var(--muted)}.basis p{font-size:14px;line-height:1.8;margin-bottom:14px}.basis a{color:var(--accent)}footer{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px;margin-top:20px;flex-wrap:wrap}.ammonia-main{max-width:800px}.ammonia-main .workspace{display:block;max-width:none}.ammonia-main #mode{margin-bottom:20px}.ammonia-main .property-row{margin-bottom:0}.ammonia-main .inline-output{border-top:1px solid var(--line);margin-top:28px;padding-top:24px;scroll-margin-top:20px}.ammonia-main .result-row{background:#f7f5fb;border:1px solid #e9e2f1;padding:16px;border-radius:12px;align-items:center;margin-top:20px;gap:12px}.result-row output{font-size:32px;font-weight:600;letter-spacing:-1px;color:var(--accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.result-row select{font-size:16px}.result-actions{margin-top:16px;flex-wrap:wrap}.result-actions>button{flex:1}.download{position:relative}.download summary{display:flex;align-items:center;justify-content:center;min-height:46px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:10px 15px;font-size:14px;font-weight:600;list-style:none}.download>div{position:absolute;top:calc(100% + 5px);right:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px;width:170px;z-index:10;box-shadow:0 8px 20px #30253f15}.download button{background:#fff;color:var(--ink);font-size:14px;display:block;width:100%;min-height:44px;text-align:left;border-radius:6px;padding:10px}.download button:hover{background:var(--accent-soft)}.history-row{display:flex;align-items:center;gap:10px}.history-card strong{display:block;font-size:14px}.history-card em{float:right}.history-row>.danger{flex:none}.detail-row{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.detail-row strong{font-variant-numeric:tabular-nums}.ammonia-history .actions{flex-wrap:wrap}.ammonia-history h3{margin-top:24px}
.export-actions{display:flex;gap:10px;flex-wrap:wrap;position:relative;margin-bottom:20px}.export-actions>button{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:46px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:14px;padding:10px 14px}.export-actions>button:hover{background:var(--accent-soft)}.export-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:10;min-width:220px;background:white;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 10px 30px #24273120}.export-menu button{display:block;width:100%;text-align:left;background:#fff;border-radius:8px;padding:12px;font-size:14px;color:var(--ink)}.export-menu small{display:block;color:var(--muted);font-size:12px;font-weight:400}.export-menu button:hover{background:var(--accent-soft)}dialog{width:min(720px,calc(100vw - 32px));max-height:88dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:24px;color:var(--ink);background:white;box-shadow:0 20px 80px #24273125}dialog::backdrop{background:#25233366;backdrop-filter:blur(3px)}dialog h2{font-size:22px}.icon-button,.icon,.history-heading>button{display:inline-grid;place-items:center;border:1px solid var(--line);width:44px;min-width:44px;height:44px;border-radius:10px;color:var(--muted);background:#fff;font-size:24px;padding:8px}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0}.history-toolbar p{font-size:14px;margin:0}.history-delete,.danger{color:var(--danger);background:#fff4f3;border:1px solid #f2d9d6;border-radius:8px;font-size:12px;padding:10px 12px;min-height:44px}.history-entry{display:flex;align-items:center;gap:10px}.history-entry>.history-card{flex:1}.history-detail-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.history-detail-actions button,.history-confirm button{min-height:44px;padding:10px 12px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:14px}.history-detail-actions .history-delete{color:var(--danger);background:#fff4f3}.history-confirm{padding:16px;border:1px solid #efcbc8;background:#fff6f5;border-radius:10px;margin-bottom:20px}.history-confirm p{font-size:14px;color:var(--danger)}.history-confirm>div{display:flex;justify-content:flex-end;gap:8px}.saved-phase{margin:24px 0 7px;font-size:22px}.saved-date{font-size:12px}.history-section-title{font-size:18px;margin:24px 0 12px}.history-columns{display:none}#history-content .history-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,.9fr);gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}#history-content .output-value-cell strong{font-size:16px}.saved-unit{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.history-empty,.empty{padding:36px 12px;text-align:center;color:var(--muted);font-size:14px}#share-report{height:42vh;min-height:180px}.share-description{font-size:14px}.share-buttons{display:flex;gap:10px;margin-top:16px}#share-native{background:var(--accent-soft);color:var(--accent);min-height:48px;border-radius:9px;padding:10px 15px}#share-status,#install-status{font-size:14px;margin:12px 0 0;color:var(--accent)}#share-status:empty,#install-status:empty{display:none}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:100;background:#2d2737;color:#fff;border-radius:10px;max-width:calc(100vw - 32px);width:max-content;padding:12px 18px;box-shadow:0 8px 24px #24273125;font-size:14px}#install-dialog{max-width:540px}#install-dialog>p{font-size:14px;line-height:1.7}.install-platform{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}.install-platform h3{font-size:16px;margin-bottom:7px}.install-platform p{font-size:14px;line-height:1.7;margin-bottom:0}#install-native{width:100%}
@media(min-width:1200px){.home-main{padding-top:64px}.tool-card{padding:30px}.home-heading{margin-bottom:36px}}
@media(max-width:900px){.workspace{grid-template-columns:1fr;max-width:650px;margin:auto}.page-heading,.input-column .recent-panel{order:2}.workspace{display:flex;flex-direction:column}.input-column{display:contents}.inputs,.output,.recent-panel{width:100%}.inputs{order:0}.output{order:1}.recent-panel{order:2}.result-empty{padding:22px 12px}.home-heading h1{font-size:40px}.tool-card{padding:24px}.tool-card h2{font-size:22px}}
@media(max-width:600px){.header-inner{min-height:74px;padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top))}.brand{font-size:22px;gap:9px}.brand-mark{width:37px;height:37px;border-radius:10px}.brand-mark svg{width:24px;height:24px}.brand small{font-size:12px}.desktop-install{display:none}.history-open{font-size:14px;padding:8px 0 8px 10px;gap:6px}.history-open svg{width:19px;height:19px}.header-actions{gap:0}main{padding:20px 18px calc(110px + env(safe-area-inset-bottom))}.home-main{padding-top:32px}.home-heading h1{font-size:32px;letter-spacing:-1.3px;line-height:1.15}.home-heading .eyebrow{font-size:12px;margin-bottom:12px}.home-heading>p:last-child{font-size:14px;line-height:1.65;margin:14px 0 25px;max-width:310px}.tool-cards{grid-template-columns:1fr;gap:14px}.tool-card{padding:22px 20px;border-radius:15px;display:grid;grid-template-columns:48px minmax(0,1fr) 20px;column-gap:15px;row-gap:0}.tool-card .tool-symbol{width:48px;height:48px;border-radius:12px;grid-column:1;grid-row:1/4;margin:0}.tool-card .tool-symbol svg{width:27px;height:27px}.tool-tag{grid-column:2;font-size:9px;margin-bottom:7px;letter-spacing:1px}.tool-card h2{grid-column:2;font-size:22px;letter-spacing:-.7px;margin-bottom:7px}.tool-card p{grid-column:2/4;font-size:14px;line-height:1.6;margin:0 0 13px}.tool-meta{grid-column:2/4;font-size:12px}.card-action{grid-column:3;grid-row:1/3;font-size:0;border:0;padding:0;margin:0;align-self:center}.card-action svg{width:19px;height:19px}.home-footnote{flex-direction:column;gap:6px;font-size:12px;margin-top:17px}.app-nav>div{gap:4px;padding:7px 12px}.app-nav a,.app-nav button{flex-direction:column;gap:4px;min-height:55px;padding:6px 3px;font-size:12px;border-radius:9px}.app-nav svg{width:21px;height:21px}.breadcrumbs{font-size:12px;gap:7px;margin-bottom:22px}.page-heading{gap:12px;margin-bottom:18px}.page-heading h1{font-size:28px;letter-spacing:-.9px}.page-heading .eyebrow{font-size:9px}.page-heading p:last-child{font-size:14px;line-height:1.6}.page-heading .tool-symbol{display:none}.panel{padding:20px 16px;border-radius:14px}.panel-heading,.heading{margin-bottom:20px}.panel-heading h2,.heading h2{font-size:18px;letter-spacing:-.45px}.badge,#count,#phase{font-size:12px;padding:5px 7px}.step{width:21px;height:21px;font-size:12px}#input-pair,#mode{font-size:16px;padding-left:11px}.input-row,.property-row{gap:8px 9px;margin-bottom:18px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.input-row label,.property-row>strong{font-size:14px}.input-row input,.property-row input{font-size:22px;padding-left:11px}.input-row select,.property-row select{font-size:16px;padding-left:8px}input,select{min-height:52px}.actions{gap:9px;margin-top:22px}.actions #calculate{font-size:16px;padding:12px}.actions #clear{font-size:14px;min-width:63px;padding:10px}.input-hint{font-size:12px;line-height:1.6}.workspace{gap:18px}.result-empty{padding:20px 10px 27px}.result-empty>svg{width:30px;height:30px;margin-bottom:13px}.result-empty p{font-size:14px}.result-empty h3{font-size:16px}.result-item{padding:13px 0;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:2px 6px}.result-item select{font-size:14px}.result-item label{font-size:12px}.output-value-cell strong{font-size:20px;letter-spacing:-.7px}.output-value-cell .copy-value{width:38px;min-width:38px;padding:10px}.saturation-row{align-items:flex-start;flex-direction:column;gap:3px}.saturation-value{align-self:flex-end}.saturation-row span{font-size:14px}.saturation-value strong{font-size:20px}.export-actions{gap:8px;margin-bottom:16px}.export-actions>button{padding:10px 8px;font-size:12px}.basis{margin-top:20px;padding:0 15px}.basis summary{font-size:12px}.basis p{font-size:12px}footer{font-size:12px;gap:8px}.history-card{padding:13px}.history-card-top{font-size:14px}.history-inputs{font-size:12px}.ammonia-main .panel{padding:20px 16px}.ammonia-main .result-row{padding:14px 12px;gap:8px}.result-row output{font-size:32px}.ammonia-main .result-row select{font-size:16px}.ammonia-main #result-heading{font-size:14px}.result-actions>button,.download summary{font-size:12px}.ammonia-main .inline-output{margin-top:24px;padding-top:22px}dialog{padding:20px 16px;border-radius:15px;width:calc(100vw - 24px);max-height:88dvh}dialog h2{font-size:20px}.history-toolbar{align-items:flex-start;gap:10px}.history-toolbar p{font-size:12px}.history-delete,.danger{font-size:12px;padding:10px}.history-entry{gap:8px}#history-content .history-row{grid-template-columns:1fr 1fr;gap:4px 8px}#history-content .history-row>span:first-child{grid-column:1/-1;color:var(--muted)}#history-content .output-value-cell strong{font-size:18px}#history-content .saved-unit{text-align:right;font-size:14px}.history-card em{font-size:12px}.detail-row{font-size:14px}.ammonia-history .heading{flex-wrap:wrap}.share-buttons{flex-wrap:wrap}#toast{bottom:100px}.install-platform p{font-size:14px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.header-inner{padding-left:15px;padding-right:15px}.home-heading h1{font-size:32px}.tool-card{padding:19px 16px;column-gap:11px;grid-template-columns:42px minmax(0,1fr) 16px}.tool-card .tool-symbol{width:42px;height:42px}.tool-card h2{font-size:20px}.panel{padding:18px 13px}.output-value-cell strong{font-size:18px}.result-item select{font-size:14px}.copy-value{width:38px;min-width:38px}.input-value-cell input{padding-right:40px}.input-row select{font-size:16px}.home-footnote{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:600px){.result-item select{font-size:16px}}

.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.app-header{position:sticky;top:0;z-index:25}#input-panel,#output-panel{scroll-margin-top:105px}

/* Keep the full product name and simplified tool cards readable on phones. */
.brand{font-size:20px;letter-spacing:-.4px}.brand-name{line-height:1.2}.brand-second{display:inline}.header-actions{flex-shrink:0}.tool-card h2{margin-bottom:0}.page-heading{min-height:60px}
@media(max-width:600px){.brand{font-size:16px;gap:9px}.brand-second{display:block}.brand-name{max-width:165px}.header-inner{gap:10px}.tool-card{display:flex;flex-direction:row;align-items:center;gap:14px;min-height:122px}.tool-card .tool-symbol{margin:0;flex:none}.tool-card h2{flex:1;font-size:22px;line-height:1.3;margin:0}.tool-card .card-action{margin:0;padding:0;flex:none;align-self:center}.page-heading h1{font-size:28px;line-height:1.2;margin-bottom:0}.breadcrumbs{font-size:12px}}
@media(max-width:360px){.brand{font-size:16px}.brand-name{max-width:132px}.brand-mark{width:32px;height:32px}.header-inner{gap:6px}.history-open{font-size:12px;padding-left:2px;gap:4px}.history-open svg{width:17px}.tool-card h2{font-size:20px}.page-heading h1{font-size:24px}}

@media(max-width:600px){}

/* Display the Raven symbol from the original supplied wordmark. */
.raven-brand-mark{background:transparent;border-radius:50%;overflow:hidden;flex:none}.raven-brand-mark svg{width:100%;height:100%}

/* Shared hierarchy and compact actions across both calculators. */
:root{--text-caption:12px;--text-label:14px;--text-body:16px;--text-section:20px;--text-value:22px;--text-page:32px}
h1{font-size:var(--text-page);letter-spacing:-.025em}h2,dialog h2{font-size:var(--text-section);letter-spacing:-.015em}h3{font-size:18px}
.home-heading h1{font-size:40px;letter-spacing:-.03em}.tool-card h2{font-size:24px;line-height:1.3;letter-spacing:-.02em}
.brand{font-size:20px}.brand .brand-credit{font-size:var(--text-caption);font-weight:400;letter-spacing:0;line-height:1.4;margin-top:4px;color:var(--muted)}
.header-actions{gap:6px}.header-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px;border-radius:10px;background:transparent;color:var(--muted)}
.header-icon svg{width:22px;height:22px}.header-icon:hover{background:var(--accent-soft);color:var(--accent)}.history-open .count{position:absolute;top:0;right:0;font-size:10px;line-height:1.2;min-width:16px;padding:2px 4px;border-radius:8px}.history-open .count:empty{display:none}
.field-label,.input-row label,.property-row>strong,.result-item label,.saturation-row span{font-size:var(--text-label);font-weight:500}.hint,.footnote,.input-hint,.results-note,.saturation-row small{font-size:var(--text-caption)}
#input-pair,#mode,.result-item select,textarea{font-size:var(--text-body)}input,.output-value-cell strong,.result-row output{font-size:var(--text-value);font-weight:600;letter-spacing:0;line-height:1.4;font-variant-numeric:tabular-nums}.saturation-value strong{font-size:18px}.saturation-value strong small{font-size:var(--text-caption)}
.export-actions,.result-actions{justify-content:flex-end;gap:8px}.export-actions{margin-bottom:16px}.action-icon,.export-actions>button.action-icon,.result-actions>button.action-icon,.download summary.action-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted)}
.action-icon svg{width:20px;height:20px}.action-icon:hover,.download summary.action-icon:hover{background:var(--accent-soft);color:var(--accent)}.download summary::-webkit-details-marker{display:none}.download summary::marker{content:''}.ammonia-history .actions{flex-wrap:wrap}.ammonia-history h3{margin-top:24px}.ammonia-history .hint{margin-top:0}
.app-nav>div{max-width:480px}.app-nav a{font-size:var(--text-caption)}.page-heading{margin-bottom:24px}.result-empty h3{font-size:18px}.saved-phase{font-size:var(--text-section)}
@media(max-width:600px){:root{--text-page:28px;--text-value:22px}.header-inner{padding-left:16px;padding-right:16px;gap:8px}.brand{font-size:16px;gap:8px}.brand-name{max-width:150px}.brand-mark{width:34px;height:34px}.header-actions{gap:2px}.header-icon{padding:10px}.home-heading h1{font-size:32px}.tool-card h2{font-size:20px}.page-heading h1{font-size:var(--text-page)}.breadcrumbs{font-size:var(--text-caption)}.ammonia-main #result-heading{font-size:var(--text-label)}.ammonia-main .result-row output{font-size:var(--text-value)}.output-value-cell strong{white-space:normal;overflow-wrap:anywhere}.history-delete,.danger{font-size:var(--text-caption)}}
@media(max-width:360px){.brand{font-size:14px}.brand-name{max-width:132px}.header-inner{padding-left:12px;padding-right:12px;gap:4px}.brand-mark{width:32px;height:32px}.header-actions{gap:0}.header-icon svg{width:20px;height:20px}.output-value-cell strong{font-size:20px}.copy-value{width:44px;min-width:44px}.input-value-cell input{padding-right:44px}.input-row select,.result-item select{font-size:var(--text-body)}}

/* Browser-specific installation guidance. */
#install-dialog .dialog-heading{align-items:flex-start;margin-bottom:16px}#install-title{line-height:1.3}#install-steps{padding-left:22px;margin:20px 0;font-size:14px;line-height:1.7;color:var(--ink)}#install-steps li+li{margin-top:12px}#install-note{margin-top:18px}#install-link-block{margin-top:20px}#install-link{font-size:14px;font-weight:400;min-height:44px;background:#f7f8fa}#install-copy{width:100%;margin-top:10px}#install-status{line-height:1.6}

/* Shared navigation and the third calculator. */
.app-nav>div{grid-template-columns:repeat(4,minmax(0,1fr));max-width:600px}
.tool-symbol.co2{background:#eef1f8;color:#4b618c}
@media(min-width:901px){.tool-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-card{padding:24px}.tool-card .card-action{margin-top:auto}.tool-card h2{margin-bottom:28px}.tool-symbol{margin-bottom:22px}}
@media(min-width:601px) and (max-width:900px){.tool-cards{grid-template-columns:1fr}.tool-card{flex-direction:row;align-items:center;gap:20px;padding:24px}.tool-card .tool-symbol{margin:0}.tool-card h2{flex:1;margin:0}.tool-card .card-action{font-size:0;border:0;margin:0;padding:0}}
.co2-main{max-width:880px}.co2-main .page-heading h1{margin:0}.co2-main .heading>.result-actions{margin:0;flex:none}.co2-main .heading .text-button{padding:8px;flex:none;font-size:var(--text-caption)}
.co2-group{border:0;padding:0;margin:0 0 28px;min-width:0}.co2-group legend{font-size:18px;font-weight:600;padding:0;margin-bottom:18px;letter-spacing:-.015em}.co2-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.co2-field{min-width:0}.co2-field-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:8px}.co2-field input{font-size:var(--text-value);padding:10px;appearance:textfield;-moz-appearance:textfield}.co2-field input::-webkit-inner-spin-button,.co2-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.co2-field select{padding-left:10px;font-size:var(--text-body)}.co2-field input[aria-invalid=true]{border-color:var(--danger)}.co2-field .hint{margin-top:8px}.co2-direction{max-width:calc(50% - 12px);margin-top:22px}
.co2-assumptions{border:1px solid var(--line);border-radius:12px;padding:0 16px}.co2-assumptions summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:54px;font-size:var(--text-label);font-weight:500;color:var(--muted)}.co2-assumptions summary::-webkit-details-marker{display:none}.co2-assumptions summary::marker{content:''}.co2-assumptions summary span{font-size:20px;transition:transform .15s}.co2-assumptions[open] summary span{transform:rotate(45deg)}.co2-assumptions[open]{padding-bottom:20px}.co2-assumption-heading{display:flex;justify-content:flex-end;margin-bottom:12px}.co2-assumption-heading .text-button{padding:0 4px}
.co2-main .inline-output{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.co2-main .inline-output:focus{outline:none}.co2-result-group{margin-top:24px}.co2-result-group h3{margin-bottom:12px}.co2-main .result-item{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:8px 20px}.co2-main .result-item label{font-size:var(--text-label)}.co2-main .result-item select{min-height:48px}.co2-main .output-value-cell strong{color:var(--accent);white-space:normal;overflow-wrap:anywhere}.co2-main .copy-value{width:44px;min-width:44px}.co2-notice{font-size:var(--text-caption);line-height:1.7;padding:14px;border:1px solid #e8e1f1;background:#f7f5fb;border-radius:10px;margin:20px 0 0}.co2-history-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.co2-history-toolbar .hint{margin:0}.co2-main .history-card{flex:1}.co2-main .history-row>.action-icon{flex:none}
@media(max-width:600px){.co2-fields{grid-template-columns:1fr;gap:20px}.co2-direction{max-width:none}.co2-group{margin-bottom:24px}.co2-group legend{font-size:18px;margin-bottom:16px}.co2-main .result-item{gap:6px 10px}.co2-main .heading h2{font-size:var(--text-section)}.co2-main .heading{gap:6px}.co2-assumptions{padding-left:12px;padding-right:12px}}
