/* ==========================================================================
   age-calculator - built from the supplied prototype

   The prototype's own stylesheet, every selector scoped to .tkw-age so nothing
   here can reach the rest of the account. Its top bar is left out: the
   Toolkit supplies the page.
   ========================================================================== */

.tkw-age{
      --navy:#0b2d5b;--navy-dark:#072447;--blue:#186bea;--teal:#087e86;
      --teal-dark:#07666f;--sky:#eaf5ff;--bg:#f4f8fc;--surface:#fff;
      --ink:#102f53;--muted:#607795;--line:#dce8f2;--pale:#f7faff;
      --green:#007d63;--green-bg:#e9f8f1;--amber:#a76200;--amber-bg:#fff6e7;
      --danger:#b52b3a;--shadow:0 10px 30px rgba(12,47,87,.055);
    }
.tkw-age *{box-sizing:border-box}
.tkw-age{scroll-behavior:smooth}
.tkw-age{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}
.tkw-age button,.tkw-age input{font:inherit}
.tkw-age button{cursor:pointer}
.tkw-age button:focus-visible,.tkw-age a:focus-visible,.tkw-age input:focus-visible,.tkw-age summary:focus-visible{outline:3px solid rgba(24,107,234,.45);outline-offset:3px}
.tkw-age a{color:var(--blue);text-decoration:none}
.tkw-age a:hover{text-decoration:underline}
.tkw-age .topbar{height:68px;padding:0 clamp(18px,3vw,42px);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}
.tkw-age .top-left,.tkw-age .top-right{display:flex;gap:16px;align-items:center}
.tkw-age .menu-btn,.tkw-age .icon-btn{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;color:var(--navy);background:white}
.tkw-age .topbrand{display:flex;align-items:center;gap:11px;color:var(--navy);font-weight:800;letter-spacing:-.3px}
.tkw-age .topbrand-logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--navy),var(--teal));color:white;display:grid;place-items:center;font-weight:900;font-size:19px}
.tkw-age .top-sub{color:#8191a8;font-weight:500}
.tkw-age .top-right .account{font-size:13px;font-weight:700;color:var(--navy);display:flex;align-items:center;gap:10px}
.tkw-age .avatar{display:grid;place-items:center;width:31px;height:31px;background:#edf3fa;border-radius:50%;font-size:12px}
.tkw-age .shell{max-width:1520px;margin:0 auto;padding:0 clamp(16px,2.5vw,40px) 54px}
.tkw-age .crumbs{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px;margin:20px 0 23px;flex-wrap:wrap;margin-top: 0px!important;padding-top: 20px!important;}
.tkw-age .crumbs a{font-weight:650}
.tkw-age .crumbs strong{font-weight:750;color:var(--navy)}
.tkw-age .intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}
.tkw-age .intro-main{display:flex;gap:16px;align-items:center}
.tkw-age .tool-icon{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:19px;background:#e0f0ff;color:var(--blue)}
.tkw-age h1{font-size:clamp(25px,2.35vw,37px);margin:0 0 2px;font-weight:780;letter-spacing:-1.15px;line-height:1.17;color:var(--navy)}
.tkw-age .subtitle{color:var(--muted);margin:0;font-size:15px}
.tkw-age .guide-toggle{display:flex;align-items:center;gap:8px;border:1px solid #bad4f2;background:#fff;color:var(--navy);padding:11px 15px;border-radius:12px;font-weight:760;white-space:nowrap;box-shadow:0 2px 4px rgba(10,45,80,.025)}
.tkw-age .guide-toggle:hover{background:#edf6ff}
.tkw-age .work-layout{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(330px,.92fr);gap:21px;align-items:start}
.tkw-age .preview-panel,.tkw-age .settings-panel{border:1px solid var(--line);background:#fff;border-radius:21px;box-shadow:var(--shadow);min-width:0;overflow:hidden}
.tkw-age .panel-header{min-height:66px;padding:17px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e6edf5}
.tkw-age .panel-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:780;color:var(--navy)}
.tkw-age .panel-title svg{color:var(--blue)}
.tkw-age .status{font-size:12px;font-weight:700;color:#67809e;border:1px solid #dce7f3;background:#f5f8fc;border-radius:999px;padding:5px 11px;white-space:nowrap}
.tkw-age .status.done{color:#04785c;border-color:#b9e9d8;background:#ecfaf4}
.tkw-age .preview-stage{background:radial-gradient(circle at 25% 12%,#edf8ff 0,#f5faff 39%,#edf5fc 100%);padding:clamp(18px,3vw,36px);min-height:550px;display:flex;align-items:center;justify-content:center;position:relative}
.tkw-age .preview-stage:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#c7e3f8 0.7px,transparent .7px);background-size:17px 17px;opacity:.45}
.tkw-age .result-sheet{position:relative;width:100%;max-width:635px;min-height:422px;border:1px solid #dce8f2;border-radius:19px;background:white;box-shadow:0 16px 42px rgba(10,45,87,.09);padding:clamp(21px,3.1vw,36px);display:flex;flex-direction:column}
.tkw-age .sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:16px;border-bottom:1px solid #e7eef5}
.tkw-age .sheet-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800;letter-spacing:.3px;color:var(--navy)}
.tkw-age .sheet-brand{font-size:11px;color:#7c8eab;font-weight:700;white-space:nowrap}
.tkw-age .empty-state{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:35px 0 18px}
.tkw-age .empty-icon{width:82px;height:82px;border-radius:26px;display:grid;place-items:center;background:#edf6ff;color:var(--blue);margin-bottom:18px}
.tkw-age .empty-state h2{margin:0;font-size:23px;letter-spacing:-.5px;color:var(--navy)}
.tkw-age .empty-state p{max-width:290px;color:var(--muted);font-size:14px;margin:9px auto 0}
.tkw-age .result-content{padding-top:25px;flex:1;display:flex;flex-direction:column}
.tkw-age .result-eyebrow{font-size:12px;font-weight:790;text-transform:uppercase;letter-spacing:1px;color:#67829f;text-align:center}
.tkw-age .result-headline{text-align:center;margin:7px 0 11px}
.tkw-age .result-number{font-size:clamp(44px,5vw,70px);line-height:1.08;font-weight:850;letter-spacing:-2.7px;color:var(--navy)}
.tkw-age .result-units{font-weight:710;font-size:18px;color:var(--muted);margin-left:8px}
.tkw-age .subage{margin:0 auto 22px;text-align:center;color:var(--teal-dark);font-weight:730;font-size:17px}
.tkw-age .mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.tkw-age .mini-stat{padding:12px 8px;text-align:center;border-radius:12px;background:#f0f7ff;border:1px solid #e3effb}
.tkw-age .mini-stat .big{font-size:21px;font-weight:820;line-height:1.2;color:var(--navy);font-variant-numeric:tabular-nums}
.tkw-age .mini-stat .small{font-size:11px;font-weight:680;color:#66809f;margin-top:3px}
.tkw-age .result-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;border-top:1px solid #e8eef5;padding-top:17px;font-size:12px}
.tkw-age .meta-label{color:#6b7e98}
.tkw-age .meta-value{font-weight:740;color:var(--navy);display:block;margin-top:3px;font-size:13px}
.tkw-age .birthday-row{display:flex;align-items:center;gap:10px;margin-top:17px;padding:10px 12px;border-radius:11px;background:var(--green-bg);color:#176b58;font-size:12px;font-weight:600}
.tkw-age .preview-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 23px;border-top:1px solid #e8eef4;gap:8px;font-size:12px;color:#71839b}
.tkw-age .preview-footer button{border:0;background:none;color:var(--blue);display:flex;align-items:center;gap:7px;font-size:12px;font-weight:750;padding:4px;cursor:pointer}
.tkw-age .preview-footer button:disabled{color:#a4b3c4;cursor:not-allowed}
.tkw-age .settings-body{padding:23px}
.tkw-age .settings-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;font-weight:800;color:var(--navy);font-size:16px}
.tkw-age .step-dot{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e4f0ff;color:#1a70d7;font-size:12px;font-weight:850}
.tkw-age .form-field{margin:0 0 19px}
.tkw-age label.field-label{font-weight:740;font-size:13px;display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--navy)}
.tkw-age .req{color:#cf3f50}
.tkw-age .field-wrap{position:relative;display:flex;align-items:center}
.tkw-age .date-text{min-width:0;width:100%;padding:13px 55px 13px 14px;border:1.5px solid #d4e0eb;border-radius:12px;background:white;color:var(--ink);font-weight:580;outline:none;transition:border-color .16s,box-shadow .16s}
.tkw-age .date-text::placeholder{color:#9aaaBE;font-weight:450}
.tkw-age .date-text:focus{border-color:var(--blue);box-shadow:0 0 0 3px #d7eafd}
.tkw-age .date-text.invalid{border-color:var(--danger);box-shadow:0 0 0 2px #fff0f2}
.tkw-age .date-picker-shell{position:absolute;right:4px;top:4px;bottom:4px;width:43px;border:0;background:#f1f6fc;color:var(--blue);border-radius:9px;display:grid;place-items:center;overflow:hidden;cursor:pointer}
.tkw-age .date-picker-shell:hover{background:#e3f0ff}
.tkw-age .date-picker-shell .native-picker{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.tkw-age .helper{font-size:12px;color:var(--muted);margin:6px 1px 0}
.tkw-age .error{color:var(--danger);font-size:12px;display:none;margin:6px 1px 0;font-weight:640}
.tkw-age .error.show{display:block}
.tkw-age .reference-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0 0}
.tkw-age .today-btn{display:inline-flex;align-items:center;gap:5px;color:var(--blue);font-weight:750;font-size:12px;border:0;background:transparent;padding:3px 1px}
.tkw-age .divider{height:1px;background:#e8eef4;margin:17px 0}
.tkw-age details.age-checker{border:1px solid #dbe8f3;border-radius:13px;background:#fafcff;overflow:hidden;margin-bottom:21px}
.tkw-age details.age-checker summary{padding:14px;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--navy);font-weight:770;font-size:13px;cursor:pointer}
.tkw-age details.age-checker summary::-webkit-details-marker{display:none}
.tkw-age .summary-main{display:flex;align-items:center;gap:9px}
.tkw-age .chevron{transition:transform .2s;color:#6682a5}
.tkw-age details[open] .chevron{transform:rotate(180deg)}
.tkw-age .checker-body{padding:0 14px 14px}
.tkw-age .checker-body>p{font-size:12px;color:var(--muted);margin:0 0 12px}
.tkw-age .age-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tkw-age .age-fields label{display:block;font-size:11px;font-weight:700;color:#536b88;margin-bottom:5px}
.tkw-age .age-fields input{width:100%;border:1px solid #cfddea;border-radius:10px;padding:10px 11px;outline:none;color:var(--ink)}
.tkw-age .age-fields input:focus{border-color:var(--blue)}
.tkw-age .age-rule{font-size:11px;color:#7185a2;margin:9px 0 0}
.tkw-age .primary-btn{width:100%;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 14px;background:linear-gradient(135deg,#0b898d,#076c78);color:#fff;font-size:15px;font-weight:800;box-shadow:0 6px 15px rgba(6,111,117,.16)}
.tkw-age .primary-btn:hover{background:linear-gradient(135deg,#098086,#075e67)}
.tkw-age .primary-btn:active{transform:translateY(1px)}
.tkw-age .secondary-row{display:flex;gap:11px;margin-top:12px}
.tkw-age .secondary-btn{flex:1;display:flex;align-items:center;gap:7px;justify-content:center;padding:11px;border-radius:10px;background:#fff;color:var(--navy);border:1px solid #d6e3ef;font-size:13px;font-weight:750}
.tkw-age .secondary-btn:hover{background:#f1f7ff}
.tkw-age .secondary-btn:disabled{opacity:.45;cursor:not-allowed}
.tkw-age .checker-result{margin-top:16px;border-radius:12px;padding:14px;display:none;gap:8px;align-items:flex-start;border:1px solid #bcead9;background:#edfaf4}
.tkw-age .checker-result.show{display:flex}
.tkw-age .checker-result.fail{border-color:#f1d6a0;background:#fff8e9}
.tkw-age .checker-result svg{color:#00826a;flex-shrink:0;margin-top:1px}
.tkw-age .checker-result.fail svg{color:#aa7109}
.tkw-age .checker-result strong{font-size:13px;display:block;color:#0d674e}
.tkw-age .checker-result.fail strong{color:#865a03}
.tkw-age .checker-result p{color:#5d7682;font-size:12px;margin:4px 0 0}
.tkw-age .bottom-note{font-size:12px;color:#7b8ea6;text-align:center;padding:14px 13px 2px;line-height:1.5}
.tkw-age .notice{display:flex;gap:9px;align-items:flex-start;background:#f8fbfe;border:1px solid #e2ecf6;border-radius:12px;padding:11px 12px;margin-top:18px;font-size:12px;color:#58728e}
.tkw-age .notice svg{flex:0 0 auto;color:#3a83c5;margin-top:1px}
.tkw-age .backdrop{position:fixed;inset:0;background:rgba(5,25,49,.44);z-index:19;opacity:0;pointer-events:none;transition:opacity .2s}
.tkw-age .backdrop.open{opacity:1;pointer-events:auto}
.tkw-age .guide-drawer{position:fixed;top:0;right:0;height:100dvh;width:min(440px,100vw);background:white;z-index:20;transform:translateX(100%);transition:transform .26s ease;box-shadow:-15px 0 42px rgba(0,24,54,.13);display:flex;flex-direction:column}
.tkw-age .guide-drawer.open{transform:translateX(0)}
.tkw-age .guide-head{display:flex;justify-content:space-between;align-items:center;padding:23px;border-bottom:1px solid var(--line)}
.tkw-age .guide-head h2{margin:0;font-size:20px;color:var(--navy);display:flex;align-items:center;gap:10px}
.tkw-age .close-btn{border:1px solid #dfebf3;border-radius:10px;width:38px;height:38px;display:grid;place-items:center;background:#fff;color:var(--ink)}
.tkw-age .guide-inner{overflow:auto;padding:23px;display:grid;gap:17px}
.tkw-age .guide-section{padding:17px;border-radius:15px;background:#f2f7ff;border:1px solid #d9e9fb}
.tkw-age .guide-section.smart{background:#eaf8f2;border-color:#cfece0}
.tkw-age .guide-section.finish{background:#fff6e8;border-color:#f4e4c6}
.tkw-age .guide-section h3{display:flex;align-items:center;gap:8px;font-size:14px;margin:0 0 7px;color:#164f8d}
.tkw-age .guide-section.smart h3{color:#047a5d}
.tkw-age .guide-section.finish h3{color:#a45e00}
.tkw-age .guide-section p{font-size:13px;margin:0;color:#47657f;line-height:1.65}
.tkw-age .guide-step-list{padding:0;margin:13px 0 0;list-style:none;display:grid;gap:14px}
.tkw-age .guide-step-list li{display:flex;align-items:flex-start;gap:12px;font-size:13px;color:#47657f}
.tkw-age .guide-step-list .n{flex:0 0 24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#268cce;color:#fff;font-weight:800;font-size:11px}
.tkw-age .tick-list{list-style:none;padding:0;margin:0;display:grid;gap:7px;color:#47657f;font-size:13px}
.tkw-age .tick-list li:before{content:"✓";color:#cc8404;font-weight:900;margin-right:8px}
.tkw-age .guide-link{display:flex;align-items:center;gap:8px;font-weight:750;font-size:13px;margin-top:2px}
.tkw-age .toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);padding:11px 18px;color:#fff;background:#143656;border-radius:12px;box-shadow:0 10px 25px rgba(4,26,43,.22);font-size:13px;font-weight:700;opacity:0;pointer-events:none;z-index:50;transition:all .18s}
.tkw-age .toast.show{opacity:1;transform:translate(-50%,0)}
.tkw-age .site-note{margin:21px 2px 0;color:#8596a8;font-size:12px;text-align:center}
.tkw-age .hidden{display:none!important}
.tkw-age svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1070px){.tkw-age .work-layout{grid-template-columns:minmax(0,1.35fr) minmax(310px,.95fr)}
.tkw-age .preview-stage{padding:20px;min-height:540px}
.tkw-age .result-sheet{min-height:425px}}
@media(max-width:800px){.tkw-age .work-layout{grid-template-columns:1fr}
.tkw-age .settings-panel{order:0}
.tkw-age .preview-panel{order:1}
.tkw-age .preview-stage{min-height:430px}
.tkw-age .result-sheet{max-width:100%;min-height:385px}
.tkw-age .intro{align-items:flex-start}
.tkw-age .top-sub{display:none}}
@media(max-width:520px){.tkw-age .topbar{height:58px;padding:0 15px}
.tkw-age .topbrand{font-size:13px}
.tkw-age .topbrand-logo{width:30px;height:30px}
.tkw-age .top-right .account span:not(.avatar){display:none}
.tkw-age .top-right{gap:7px}
.tkw-age .shell{padding:0 13px 34px}
.tkw-age .crumbs{font-size:11px;margin:15px 0 19px;gap:6px}
.tkw-age .intro{gap:10px;margin-bottom:17px}
.tkw-age .intro-main{align-items:flex-start;gap:10px}
.tkw-age .tool-icon{width:49px;height:49px;flex-basis:49px;border-radius:15px}
.tkw-age .tool-icon svg{width:24px;height:24px}
.tkw-age h1{font-size:25px;letter-spacing:-.65px}
.tkw-age .subtitle{font-size:12px;line-height:1.48;margin-top:4px}
.tkw-age .guide-toggle{padding:8px 10px;font-size:0;gap:0}
.tkw-age .guide-toggle svg{width:19px;height:19px}
.tkw-age .work-layout{gap:14px}
.tkw-age .preview-panel,.tkw-age .settings-panel{border-radius:16px}
.tkw-age .panel-header{padding:15px 16px;min-height:60px}
.tkw-age .settings-body{padding:18px 16px}
.tkw-age .preview-stage{padding:13px;min-height:418px}
.tkw-age .result-sheet{padding:17px;min-height:380px;border-radius:14px}
.tkw-age .empty-state h2{font-size:19px}
.tkw-age .result-number{font-size:50px}
.tkw-age .result-units{font-size:16px}
.tkw-age .subage{font-size:15px}
.tkw-age .mini-stat .big{font-size:18px}
.tkw-age .mini-stat .small{font-size:10px}
.tkw-age .result-meta{gap:8px}
.tkw-age .preview-footer{padding:11px 15px}
.tkw-age .birthday-row{font-size:11px}
.tkw-age .guide-head,.tkw-age .guide-inner{padding:19px}
.tkw-age .status{font-size:11px}
.tkw-age .top-right .account{gap:0}}
@media(prefers-reduced-motion:reduce){.tkw-age *,.tkw-age *:before,.tkw-age *:after{scroll-behavior:auto!important;transition:none!important}}

  
