.am-calc { --am-bg:var(--ui-surface,#191d20); --am-text:var(--ui-text,#f5f7fa); --am-muted:var(--ui-muted,#aebac8); --am-line:var(--ui-line,#333b43); color:var(--am-text); padding:24px 0 40px; min-width:0; }
.am-calc *, .am-calc *::before, .am-calc *::after { box-sizing:border-box; letter-spacing:0; }
.am-calc [hidden] { display:none !important; }
.am-calc :is(h1,h2,p) { margin:0; }
.am-calc button, .am-calc input, .am-calc select { font:inherit; color:var(--am-text); }
.am-calc button { cursor:pointer; border:1px solid var(--am-line); background:var(--am-bg); border-radius:6px; padding:10px 14px; line-height:1.4; }
.am-calc button:hover { border-color:var(--ui-accent,#8ac2ff); }
.am-calc button:disabled { cursor:default; opacity:.45; }
.am-calc :is(input,select) { background:var(--ui-bg,#111315); border:1px solid var(--am-line); border-radius:4px; min-height:44px; width:100%; padding:9px 10px; }
#adopt-calculator :is(input,select) { box-sizing:border-box; min-width:0; max-width:100%; }
.am-calc :is(a,button,input,select):focus-visible { outline:2px solid var(--ui-accent,#8ac2ff); outline-offset:3px; }
.am-calc label { display:grid; gap:7px; font-size:13px; min-width:0; }
.am-crumbs { display:flex; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--am-muted); }
.am-heading { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:20px 0; }
.am-heading h1 { font-size:28px; line-height:1.3; overflow-wrap:anywhere; }
.am-mode { color:var(--am-muted); font-size:13px; border-left:3px solid #e8ba65; padding-left:10px; }
.am-tabs { display:flex; gap:24px; border-bottom:1px solid var(--am-line); margin-bottom:20px; }
.am-tabs a { padding:10px 0; color:var(--am-muted); }
.am-tabs [aria-current] { color:var(--am-text); border-bottom:2px solid var(--ui-accent,#8ac2ff); }
.am-notice { color:var(--am-muted); border-left:3px solid #e8ba65; padding:4px 0 4px 14px; line-height:1.6; font-size:14px; }
.am-toolbar { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:22px 0; }
.am-toolbar>label { width:240px; max-width:100%; }
.am-unit { display:grid; gap:6px; font-size:13px; color:var(--am-muted); }
.am-unit strong { color:var(--am-text); font-size:16px; }
.am-variant-field { margin-bottom:18px; }
.am-quote { display:grid; gap:7px; font-size:13px; min-width:0; }
.am-quote output { display:flex; align-items:center; min-height:44px; font-size:18px; font-weight:600; overflow-wrap:anywhere; }
.am-actions { display:flex; gap:8px; }
.am-actions button, .am-item-actions button, #am-close { width:42px; height:42px; padding:10px; flex:0 0 42px; }
.am-calc svg { width:20px; height:20px; fill:currentColor; }
.am-offers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.am-side { min-width:0; border-top:3px solid #7dbcea; padding-top:16px; }
.am-side:nth-child(2) { border-top-color:#72d9b2; }
.am-side>header, .am-side>footer { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.am-side h2 { font-size:20px; }
.am-side>header span { font-size:13px; color:var(--am-muted); }
.am-items { display:grid; align-content:start; gap:10px; min-height:168px; padding:16px 0; }
.am-item { display:grid; grid-template-columns:72px minmax(0,1fr) 42px; gap:12px; padding:12px; border:1px solid var(--am-line); border-radius:6px; background:var(--am-bg); align-items:center; }
.am-item img { width:72px; height:72px; object-fit:contain; border-radius:4px; background:#eef0f3; }
.am-item-info { display:grid; gap:6px; overflow-wrap:anywhere; min-width:0; }
.am-item-info strong { font-size:14px; line-height:1.35; }
.am-item-info :is(span,small) { color:var(--am-muted); font-size:12px; }
.am-item-actions { display:grid; gap:4px; }
.am-item-actions button { width:34px; height:34px; padding:7px; }
.am-empty { display:grid; place-items:center; min-height:136px; color:var(--am-muted); border:1px dashed var(--am-line); border-radius:6px; }
.am-add { width:100%; min-height:46px; }
.am-side>footer { padding:18px 0; font-size:13px; border-bottom:1px solid var(--am-line); color:var(--am-muted); }
.am-side>footer strong { color:var(--am-text); font-size:18px; overflow-wrap:anywhere; }
.am-result { padding:24px 0 18px; }
.am-result h2 { font-size:22px; margin-bottom:8px; }
.am-result p, .am-status { color:var(--am-muted); font-size:14px; line-height:1.6; }
.am-result[data-status=higher] h2 { color:var(--ui-success,#72d9b2); }
.am-result[data-status=lower] h2 { color:#e8a47d; }
.am-status { min-height:24px; }
.am-about { border-top:1px solid var(--am-line); margin-top:24px; padding-top:24px; max-width:900px; }
.am-about h2 { margin:24px 0 10px; font-size:21px; }
.am-about p { font-size:15px; line-height:1.75; color:var(--am-muted); }
.am-about .am-credit { margin-top:24px; font-size:12px; }
#am-picker { width:min(800px,calc(100% - 24px)); max-height:calc(100dvh - 32px); border:1px solid var(--am-line); border-radius:8px; padding:22px; background:var(--am-bg); color:var(--am-text); margin:auto; overflow-y:auto; overscroll-behavior:contain; }
#am-picker::backdrop { background:#000a; }
#am-picker>header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
#am-picker h2 { font-size:21px; overflow-wrap:anywhere; }
.am-filters { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
#am-found { font-size:12px; color:var(--am-muted); margin:12px 0; }
.am-pets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.am-pet { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; padding:10px !important; }
.am-pet img { width:96px; height:96px; max-width:100%; object-fit:contain; background:#eef0f3; border-radius:4px; }
.am-pet :is(strong,small) { overflow-wrap:anywhere; width:100%; }
.am-pet strong { font-size:12px; }
.am-pet small { font-size:11px; color:var(--am-muted); }
.am-selected { display:grid; grid-template-columns:96px minmax(0,1fr); column-gap:16px; align-items:center; margin-bottom:20px; }
.am-selected img { grid-row:span 2; width:96px; height:96px; object-fit:contain; background:#eef0f3; border-radius:6px; }
.am-selected span { color:var(--am-muted); font-size:13px; }
.am-selected :is(strong,span) { overflow-wrap:anywhere; }
.am-calc fieldset { border:0; padding:0; margin:0 0 18px; min-width:0; }
.am-calc legend { margin-bottom:8px; font-size:13px; }
.am-segment { display:flex; }
.am-segment label { flex:1; }
.am-segment input { position:absolute; opacity:0; width:1px; min-height:0; }
.am-segment span { border:1px solid var(--am-line); padding:10px; text-align:center; }
.am-segment input:checked+span { background:var(--ui-accent,#8ac2ff); color:#111315; }
.am-segment input:focus-visible+span { outline:2px solid var(--am-text); outline-offset:2px; }
.am-calc fieldset:disabled { opacity:.4; }
.am-properties { display:flex; gap:24px; margin-top:15px; }
.am-properties label { display:flex; align-items:center; gap:8px; }
.am-properties input { width:20px; height:20px; min-height:20px; accent-color:#78baff; }
.am-fields { display:grid; grid-template-columns:120px minmax(0,1fr); gap:16px; }
.am-form-actions { display:flex; justify-content:space-between; gap:12px; margin-top:18px; }
.am-calc .am-primary { background:var(--ui-accent,#8ac2ff); color:#111315; }
#am-form-error { color:#e8a47d; font-size:13px; padding-top:10px; }
@media(max-width:650px) { .am-heading h1 { font-size:23px; } .am-offers { grid-template-columns:1fr; gap:22px; } .am-items { min-height:100px; } .am-empty { min-height:76px; } .am-toolbar { align-items:start; flex-wrap:wrap; } .am-toolbar>label { width:100%; } .am-filters { grid-template-columns:1fr 1fr; } .am-filters>label:first-child { grid-column:1/-1; } .am-pets { grid-template-columns:repeat(2,minmax(0,1fr)); } #am-picker { padding:14px; } .am-fields { grid-template-columns:86px minmax(0,1fr); } .am-item { grid-template-columns:56px minmax(0,1fr) 34px; gap:8px; padding:10px; } .am-item img { width:56px; height:56px; } }
