:root{--ink:#253b31;--muted:#747d75;--green:#214c3a;--line:#e2e6df;--paper:#f6f7f2;--white:#fff;--accent:#c8e497;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #79a855;outline-offset:4px}a{color:inherit}button{color:inherit} [hidden]{display:none!important}.skip-link{position:fixed;top:-80px;left:20px;padding:12px;background:white;z-index:20}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:258px;background:#fff;border-right:1px solid var(--line);padding:33px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:750;font-size:22px;letter-spacing:-.7px;white-space:nowrap}.brand-mark{display:flex;align-items:center;justify-content:center;width:37px;height:41px;background:var(--green);color:white;border-radius:11px;font-size:26px;letter-spacing:0;padding-right:0}.brand-mark span{color:var(--accent);font-size:21px}.brand-sub{display:block;font-size:7px;letter-spacing:1.2px;margin-top:5px;font-weight:600;color:var(--muted)}.nav-label{font-size:10px;letter-spacing:1.3px;color:var(--muted);margin:57px 12px 15px}.nav-item{width:100%;border:0;background:none;display:flex;align-items:center;text-align:left;gap:12px;padding:14px 12px;border-radius:8px;margin:4px 0;font-size:13px}.nav-item>span{font-size:18px;width:23px;text-align:center}.nav-item small{margin-left:auto;color:var(--muted);font-size:11px}.nav-item.active{background:#edf3e6;color:var(--green);font-weight:650}.nav-item:hover{background:#f2f5ee}.sidebar-note{margin-top:auto;border:1px solid var(--line);border-radius:10px;background:#fafbf7;padding:18px 15px;font-size:12px}.local-dot{display:inline-block;background:#74a566;width:7px;height:7px;border-radius:50%;margin-right:8px}.sidebar-note p{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0}.note-tag{font-size:10px;color:#547348}.sidebar-bottom{font-size:10px;color:var(--muted);line-height:1.8;margin:24px 8px 0}.sidebar-bottom span{display:block;font-size:9px}.page{margin-left:258px}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 48px;color:var(--muted);font-size:12px}.local-badge{display:flex;align-items:center;gap:8px;font-size:11px;color:#4d6953}.local-badge i{width:6px;height:6px;background:#75a469;border-radius:50%}main{max-width:1350px;margin:auto;padding:48px 48px 0}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:265px;margin-bottom:41px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:650;color:#718065;margin:0 0 22px}h1{font-size:clamp(34px,3.7vw,54px);line-height:1.13;letter-spacing:-2px;font-weight:650;margin:0}h1 em{font-style:normal;color:#6f8861}.hero-copy{font-size:14px;line-height:1.9;color:var(--muted);margin:23px 0 0}.hero-art{position:relative;width:270px;height:240px;flex-shrink:0}.art-grid{position:absolute;inset:4px;background-image:radial-gradient(#c6cebe 1px,transparent 1px);background-size:17px 17px;mask-image:radial-gradient(ellipse,#000 35%,transparent 72%)}.art-tile{position:absolute;border-radius:17px;width:100px;height:110px;display:flex;justify-content:center;align-items:center;flex-direction:column;font-size:38px;font-weight:500;box-shadow:0 12px 25px #253b310b;border:1px solid #ffffff80}.art-tile>span{font-size:8px;letter-spacing:2px;margin-top:9px}.art-a{top:20px;left:19px;transform:rotate(-12deg);background:#e4edda;color:#5a7251}.art-b{top:39px;right:12px;transform:rotate(10deg);background:var(--green);color:#eef4e8;z-index:1;font-family:Consolas,monospace}.art-c{bottom:5px;left:75px;transform:rotate(-3deg);background:#f1e4c3;color:#817044;z-index:2}.art-spark{position:absolute;left:19px;bottom:30px;font-size:36px;color:#98ac85}.catalog-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.catalog-toolbar h2{font-size:21px;font-weight:650;letter-spacing:-.6px;display:inline;margin-right:13px}.catalog-toolbar #tool-count{font-size:11px;color:var(--muted)}.search{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:8px;padding:11px 13px;gap:9px;width:258px}.search>span{font-size:23px;line-height:16px;color:var(--muted)}.search input{border:0;min-width:0;width:100%;font-size:12px;background:transparent;color:var(--ink)}.search kbd{font-size:11px;padding:1px 5px;border:1px solid var(--line);border-radius:3px;color:#90978c}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tool-card{display:flex;flex-direction:column;text-decoration:none;background:white;border:1px solid var(--line);border-radius:12px;padding:22px;min-height:215px;transition:transform .18s,border-color .18s,box-shadow .18s}.tool-card:hover{transform:translateY(-3px);border-color:#b4c5a7;box-shadow:0 8px 22px #223b3109}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.tool-icon{height:39px;min-width:39px;padding:0 7px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:18px;font-weight:600;letter-spacing:-1px;background:#eef2e7;color:#668151}.tool-icon.daily{background:#f7f0e1;color:#a0874e}.tool-icon.design{background:#ebeef6;color:#7784a4}.card-category{font-size:9px;color:#8c9388}.tool-card h3{font-size:15px;letter-spacing:-.2px;margin:0 0 8px;font-weight:650}.tool-card p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 18px}.card-link{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#527345;font-weight:600}.card-link span{font-size:18px;font-weight:400}.principles{display:flex;justify-content:center;gap:26px;margin:30px 0 34px;font-size:10px;color:var(--muted)}.principles b{font-size:14px;font-weight:400;color:#88a076;margin-right:6px}footer{display:flex;justify-content:space-between;max-width:1254px;margin:0 48px;padding:22px 0;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}footer>span:first-child{font-weight:650;color:#596b56}.footer-dot{color:#86a66a}.empty-state{text-align:center;padding:50px 0;color:var(--muted)}.back-button{border:0;background:none;padding:0;margin:0 0 30px;color:#668151;font-size:13px}.workspace-heading{margin-bottom:30px}.workspace-heading .eyebrow{margin-bottom:12px}.workspace-heading h1{font-size:38px}.workspace-heading>p:last-child{color:var(--muted);line-height:1.7;font-size:14px}.tool-panel{padding:28px;background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:40px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:19px;min-width:0}.field label,.field-label{font-size:12px;font-weight:600}.field input,.field select,.field textarea,.output-box{width:100%;padding:12px;border:1px solid #dce3d6;border-radius:7px;background:#fcfdf9;color:var(--ink);min-width:0}.field textarea{resize:vertical;min-height:210px;line-height:1.7;font-family:Consolas,monospace;font-size:13px}.field input[type=color]{height:47px;padding:5px}.actions{display:flex;flex-wrap:wrap;gap:9px;margin:3px 0 20px}.btn{border:1px solid #d8e2d0;background:#f3f6ee;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:600}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn:hover{filter:brightness(.96)}.btn:disabled{opacity:.5;cursor:default}.hint{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0}.error{font-size:13px;color:#a0392c;line-height:1.6;overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.stat{border:1px solid var(--line);border-radius:9px;padding:17px;background:#fafbf7}.stat strong{display:block;font-size:28px;font-weight:600;letter-spacing:-1px;margin-bottom:6px}.stat span{font-size:11px;color:var(--muted)}.result{background:#edf3e6;border:1px solid #dce8d0;border-radius:10px;padding:22px;font-size:28px;letter-spacing:-.8px;overflow-wrap:anywhere;min-height:80px}.result small{display:block;font-size:12px;letter-spacing:0;margin-top:8px;color:#67775f}.color-preview{height:170px;border-radius:10px;margin-bottom:20px;border:1px solid #00000012}.image-preview{display:block;max-width:100%;max-height:340px;margin:20px auto;border-radius:6px;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 50%/16px 16px}.download{display:inline-block;text-decoration:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:#fff;padding:13px 22px;border-radius:8px;font-size:13px;box-shadow:0 8px 30px #0002;z-index:9}.noscript{position:fixed;inset:auto 0 0;background:#fff1d2;padding:20px;text-align:center}.mono{font-family:Consolas,monospace}@media(min-width:1600px){main{padding-top:65px}.hero{margin-bottom:55px}.tool-card{min-height:230px}footer{margin-left:auto;margin-right:auto}}@media(max-width:1160px){.sidebar{width:220px;padding:28px 17px}.brand{font-size:20px}.brand-sub{font-size:6px}.page{margin-left:220px}main{padding:35px 30px 0}.topbar{padding:0 30px}.hero-art{width:220px;transform:scale(.9);transform-origin:right center}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}footer{margin:0 30px}.catalog-toolbar #tool-count{display:block;margin-top:6px}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:20px;border:0;border-bottom:1px solid var(--line)}.brand{font-size:22px}.brand-sub{font-size:7px}.nav-label,.sidebar-note,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:7px;overflow-x:auto;margin-top:18px}.nav-item{white-space:nowrap;width:auto;padding:10px 12px;font-size:12px}.nav-item>span,.nav-item small{display:none}.page{margin-left:0}.topbar{height:52px;padding:0 22px;font-size:10px}main{padding:28px 22px 0}.hero{min-height:auto;margin-bottom:34px}.hero h1{font-size:38px}.hero-art{display:none}.eyebrow{font-size:9px;letter-spacing:1.1px;margin-bottom:17px}.hero-copy{font-size:13px}.catalog-toolbar{align-items:flex-start;flex-direction:column;gap:16px}.catalog-toolbar #tool-count{display:inline;margin-left:0}.search{width:100%}.tool-grid{gap:12px}.tool-card{padding:17px;min-height:218px}.card-category{display:none}.tool-card h3{font-size:14px}.principles{gap:10px;flex-wrap:wrap;font-size:9px}.principles b{margin-right:3px}footer{margin:0 22px;font-size:9px}.tool-panel{padding:19px}.fields,.fields.three{grid-template-columns:1fr;gap:0}.stats{grid-template-columns:repeat(2,1fr)}.workspace-heading h1{font-size:32px}.field textarea{min-height:180px}}@media(max-width:370px){.tool-grid{grid-template-columns:1fr}.hero h1{font-size:32px}.topbar>span:first-child{max-width:180px}.tool-card{min-height:190px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Local-only privacy choices, matching the existing GreenCase palette. */
.privacy-link{border:0;background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:0;font:inherit;cursor:pointer}
.footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
footer{align-items:center;gap:16px;flex-wrap:wrap}footer .privacy-link{font-size:13px}
.privacy-dialog{width:min(660px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:18px;padding:30px;color:var(--ink);background:#fff;box-shadow:0 24px 100px #12291b38;overflow-y:auto;font-size:16px;line-height:1.6}
.privacy-dialog::backdrop{background:#132b235e;backdrop-filter:blur(3px)}
body:has(.privacy-dialog[open]){overflow:hidden}
.privacy-header{display:flex;gap:13px;align-items:center;margin-bottom:16px}.privacy-monogram{background:var(--green);color:#fff;border-radius:10px;width:38px;height:38px;display:grid;place-items:center;font-size:24px;font-weight:700}.privacy-header .eyebrow{font-size:12px;margin:0;letter-spacing:1px}
.privacy-dialog h2{font-size:28px;letter-spacing:-.8px;line-height:1.25;margin:0 0 16px}.privacy-dialog h2:focus{outline:0}.privacy-dialog p{margin:12px 0}.privacy-dialog h3{font-size:16px;margin:0 0 6px}.connection-note{padding:16px 18px;background:#f4f7ee;border-left:3px solid #819a69;border-radius:0 8px 8px 0;margin:20px 0}.connection-note p{margin:0;font-size:14px;line-height:1.65}
.privacy-choices{border:0;margin:22px 0 0;padding:0;min-width:0}.privacy-choices legend{font-size:16px;font-weight:650;margin-bottom:12px}.privacy-choice{display:flex;gap:13px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:12px;cursor:pointer}.privacy-choice:has(input:checked){border-color:#8aa577;background:#f7faf3}.privacy-choice input{width:19px;height:19px;margin:4px 0 0;flex:none;accent-color:var(--green)}.privacy-choice strong{font-size:15px;display:block}.privacy-choice span span{display:block;color:#626e63;font-size:14px;margin-top:4px;line-height:1.6}
.privacy-dialog .privacy-footnote{font-size:13px;color:#626e63}.privacy-dialog .error{font-size:14px}.privacy-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.privacy-actions .btn{flex:1;font-size:14px;padding:12px 15px}.privacy-dialog>.privacy-link{font-size:14px;margin-top:16px}
@media(max-width:600px){.privacy-dialog{padding:22px 18px;max-height:calc(100dvh - 24px);width:calc(100% - 24px)}.privacy-dialog h2{font-size:25px}.privacy-header .eyebrow{font-size:11px;letter-spacing:.5px}.privacy-actions{flex-direction:column}.privacy-choice{padding:13px}.privacy-dialog p{font-size:15px}}

.privacy-dialog{padding:0;overflow:hidden}.privacy-dialog[open]{display:flex;flex-direction:column}.privacy-content{min-height:0;overflow-y:auto;padding:30px}.privacy-actions{flex:none;margin:0;padding:18px 30px;border-top:1px solid var(--line);background:white}.privacy-dialog>.privacy-link{flex:none;align-self:center;margin:0 20px 16px}.privacy-dialog .privacy-content .error{margin-bottom:0}@media(max-width:600px){.privacy-dialog{padding:0}.privacy-content{padding:22px 18px}.privacy-actions{padding:14px 18px;gap:8px}}

/* Favorites share the tool catalog and the existing storage consent. */
.dashboard-hint{font-size:16px;line-height:1.6;color:var(--muted);margin:-8px 0 24px}
.dashboard-empty{text-align:center;border:1px dashed #b4c5a7;border-radius:14px;background:#fff;padding:36px 24px;margin-bottom:24px}
.empty-star{display:block;color:#668151;font-size:48px;line-height:1}
.dashboard-empty h3{font-size:22px;margin:16px 0 10px}
.dashboard-empty p{font-size:16px;color:var(--muted);line-height:1.7;margin:0 0 24px}
.dashboard-empty .btn{display:inline-block;text-decoration:none;font-size:14px}
.tool-card{position:relative}
.tool-card-link{text-decoration:none}
.tool-card-link::after{content:"";position:absolute;inset:0;border-radius:12px}
.tool-card:focus-within{border-color:#8aa577}
.card-top{gap:8px}.card-category{margin-left:auto}
.favorite-button{position:relative;z-index:1;flex:none;display:inline-grid;place-items:center;width:39px;height:39px;padding:0;border:0;border-radius:10px;background:#eef2e7;color:#668151;line-height:1;cursor:pointer}
.favorite-button[data-tool-category=daily]{background:#f7f0e1;color:#a0874e}
.favorite-button[data-tool-category=design]{background:#ebeef6;color:#7784a4}
.favorite-button:hover{filter:brightness(.96)}
.favorite-button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.favorite-button[aria-pressed=true] svg{fill:currentColor}
.workspace-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.workspace-title-row h1{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.card-top .favorite-button{margin-left:auto}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-card h3{overflow-wrap:anywhere}}
@media(max-width:480px){.tool-grid{grid-template-columns:1fr}.tool-card{min-height:190px}.dashboard-empty{padding:28px 18px}}

/* IMEI workbench */
.imei-panel h2{font-size:22px;margin:0 0 12px;letter-spacing:-.4px}
.imei-panel .field label,.imei-panel .btn,.imei-panel .hint{font-size:14px}
.imei-panel .field input,.imei-panel .field select,.imei-panel .field textarea{font-size:16px}
.imei-panel select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23596b56' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:38px}
.imei-intro,.imei-note,.imei-help{font-size:16px;line-height:1.65;color:var(--muted)}
.imei-intro{margin:0 0 22px}.imei-note{margin-top:26px;padding:17px 19px;border-radius:9px;background:#f3f6ee}
.imei-summary{font-size:15px;line-height:1.6;font-weight:600;margin:20px 0}
.imei-panel #imei-output{min-height:92px;max-height:200px}
.imei-export{padding:18px;border:1px solid var(--line);border-radius:10px;background:#fafbf7;margin:18px 0}
.imei-export .actions{margin-bottom:12px}.imei-export .hint{margin-bottom:0}
.imei-table-wrap{max-height:640px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.imei-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:14px;line-height:1.6}
.imei-table th{padding:12px 16px;background:#edf3e6;position:sticky;top:0;z-index:1;font-weight:650}
.imei-table th:nth-child(1){width:24%}.imei-table th:nth-child(2){width:28%}.imei-table th:nth-child(3){width:48%}
.imei-table td{vertical-align:top;padding:16px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.imei-table code,.imei-table small,.imei-table strong{display:block}.imei-table code{font-family:Consolas,monospace;font-size:14px}
.imei-table small{font-size:13px;color:var(--muted);margin:7px 0;line-height:1.6}
.imei-table .imei-number{font-size:16px;margin-bottom:10px;color:var(--ink)}
.imei-table .btn{padding:7px 10px;font-size:14px}
.imei-status{font-weight:600}.imei-status.valid,.imei-status.completed{color:#356239}.imei-status.mismatch,.imei-status.error{color:#a0392c}
.imei-table .imei-duplicate{color:#80621b}
.imei-calculation{margin-top:14px}.imei-calculation summary,.imei-help summary{cursor:pointer;color:var(--green);font-size:14px;font-weight:600}
.imei-parts{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.imei-parts>div{background:#f3f6ee;border-radius:7px;padding:8px 10px}.imei-parts small{margin:0 0 4px}
.imei-steps{padding:0;list-style:none;font-family:Consolas,monospace;font-size:13px}.imei-steps li{margin:4px 0}
.imei-help{margin-top:20px}.imei-help summary{font-size:16px}
@media(max-width:760px){.imei-table{min-width:630px}.imei-table-wrap{max-height:520px}.imei-export{padding:14px}.imei-panel .fields{gap:0}}
