*{box-sizing:border-box}html{font-size:16px;color-scheme:light}body{margin:0;background:#f5f7f8;color:#202c32;font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button,a{touch-action:manipulation}button{color:inherit}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #68b8aa;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #3b9181;outline-offset:1px}button svg,.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#fff;border-right:1px solid #e3e8eb;padding:28px 18px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;padding:0 8px 32px;flex:none}.brand>span{font-size:23px;font-weight:750;letter-spacing:.025em;line-height:1.25}.brand small{display:block;font-size:9px;letter-spacing:.10em;font-weight:600;color:#7b8a90;margin-top:7px}.nav-button{display:flex;align-items:center;width:100%;gap:11px;border:0;background:none;border-radius:9px;min-height:45px;padding:9px 12px;margin:3px 0;font-size:14px;text-align:left;color:#627077}.nav-button .nav-count{margin-left:auto;font-size:12px;color:#8a979d;min-width:22px;text-align:center}.nav-button:hover{background:#f4f7f7}.nav-button.active{color:#146759;background:#eaf4ef;font-weight:650}.nav-button.active .nav-count{color:#146759;background:#dcece3;border-radius:5px}.nav-button svg{width:18px;height:18px}.section-label{display:flex;align-items:center;justify-content:space-between;padding:24px 12px 7px;font-size:12px;font-weight:650;letter-spacing:.06em;color:#8b979c}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e7e9;background:#fff;border-radius:8px;width:36px;height:36px;flex:none}.icon-button:hover{background:#f2f6f5}.icon-button.small{width:26px;height:26px;border:0;color:#809087}.dot{width:8px;height:8px;border-radius:3px;flex:none}.sidebar-bottom{margin-top:auto;padding-top:24px}.side-tool{border:0;background:none;display:flex;gap:10px;align-items:center;color:#748189;font-size:13px;min-height:40px;padding:8px 12px;width:100%;text-align:left}.side-tool:hover{background:#f4f7f7;border-radius:8px}.side-tool svg{width:17px;height:17px}.local-note{border-top:1px solid #edf0f1;margin:14px 8px 0;padding-top:17px;font-size:11px;color:#8c989e;display:flex;gap:8px;line-height:1.7}.local-icon{font-size:18px;color:#71988b}.workspace{margin-left:228px;min-height:100vh}.topbar{height:77px;padding:0 36px;border-bottom:1px solid #e3e8eb;display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.72)}.breadcrumb{display:flex;gap:12px;font-size:12px;color:#87949b;align-items:center}.breadcrumb #breadcrumbCurrent{color:#53636b}.crumb-divider{color:#c7ced2}.top-tools{margin-left:auto;display:flex;gap:20px;align-items:center}.save-status{font-size:11px;color:#82928a;display:flex;gap:6px;align-items:center}.save-status svg{width:13px;height:13px}.language-button{display:flex;gap:7px;align-items:center;background:none;border:0;font-size:12px;color:#74828b;padding:8px}.page-body{display:flex;align-items:stretch;min-height:calc(100vh - 77px)}.library{padding:38px 36px 28px;flex:1;min-width:0}.page-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:11px;color:#70958a;letter-spacing:.1em;font-weight:650;margin-bottom:6px}h1{font-size:26px;letter-spacing:-.035em;font-weight:720;line-height:1.4;margin:0 0 7px}.page-description{color:#85929a;font-size:13px;margin:0}.button{border:1px solid #dfe6e8;border-radius:9px;background:#fff;padding:10px 16px;display:inline-flex;gap:9px;justify-content:center;align-items:center;font-size:13px;font-weight:600;min-height:42px;white-space:nowrap}.button:hover{background:#f5f8f7}.button.primary{background:#136d60;border-color:#136d60;color:#fff;box-shadow:0 3px 7px #184a3b15}.button.primary:hover{background:#0f5b50;border-color:#0f5b50}.button.soft{color:#166d60;background:#ecf5f0;border-color:#dfebe5}.button.danger{color:#b04646}.button svg{width:17px;height:17px}.library-tools{display:flex;gap:13px;align-items:center}.search-box{display:flex;align-items:center;gap:10px;border:1px solid #dfe6e9;background:#fff;border-radius:9px;min-height:44px;padding:0 13px;flex:1;min-width:80px}.search-box>span{display:flex;color:#8e9da5}.search-box input{border:0;outline:0!important;flex:1;min-width:0;height:42px;font-size:13px;background:transparent;color:#33434c}.search-box:focus-within{border-color:#63a591;box-shadow:0 0 0 3px #198b6f10}.search-box input::placeholder{color:#9aa6ad}.search-box kbd{font-family:inherit;border:1px solid #e6ebed;border-radius:4px;color:#a2adb3;font-size:11px;width:20px;text-align:center}.sort-label{position:relative;display:flex;align-items:center}.sort-label select{appearance:none;max-width:150px;padding:9px 26px 9px 7px;border:0;font-size:12px;color:#7d8b94;background:transparent;cursor:pointer}.sort-label>span:last-child{position:absolute;right:2px;top:10px;pointer-events:none}.sort-label svg{width:15px;height:15px}.list-meta{display:flex;align-items:center;gap:15px;min-height:48px;font-size:11px;color:#8d9aa2}.copy-hint{margin-left:auto}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.snippet{position:relative;border:1px solid #e0e6e9;border-radius:12px;background:#fff;box-shadow:0 2px 2px #1d344504;transition:border-color .16s,transform .16s,box-shadow .16s;min-width:0;overflow:hidden}.snippet:hover{border-color:#a7c7ba;box-shadow:0 6px 16px #25473b08;transform:translateY(-2px)}.snippet.selected{border-color:#7fb7a2;box-shadow:0 0 0 1px #7fb7a236}.card-copy{display:flex;flex-direction:column;align-items:stretch;width:100%;min-height:202px;border:0;background:none;text-align:left;padding:21px 21px 15px}.card-copy:focus-visible{outline-offset:-4px}.card-category{font-size:10px;font-weight:600;letter-spacing:.015em;display:flex;gap:6px;align-items:center;padding-right:32px;min-height:17px}.card-category .dot{width:6px;height:6px;border-radius:50%}.card-title{font-size:15px;font-weight:650;margin:10px 20px 7px 0;line-height:1.5;overflow-wrap:anywhere}.card-text{font-size:12px;line-height:1.85;color:#89949c;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;min-height:60px}.card-text mark{color:#4a8b76;background:#edf6f0;border-radius:3px;padding:1px 2px}.card-bottom{display:flex;align-items:center;gap:7px;margin-top:16px;color:#a0a9b1;font-size:10px}.card-copy-label{display:inline-flex;align-items:center;gap:5px;margin-left:auto;font-size:11px;color:#5c8d7b}.card-copy-label svg{width:13px;height:13px}.card-favorite{position:absolute;top:16px;right:15px;border:0;background:transparent;color:#c2cbd0;padding:5px;display:flex;border-radius:6px}.card-favorite:hover{background:#f4f7f5;color:#698d7b}.card-favorite[aria-pressed=true]{color:#b99042}.card-favorite[aria-pressed=true] svg{fill:#f8e9b8}.card-edit{position:absolute;bottom:9px;left:10px;background:#fff;border:0;border-radius:5px;padding:4px;color:#8c9b96;opacity:0}.card-edit svg{width:14px;height:14px}.snippet:hover .card-edit,.card-edit:focus-visible{opacity:1}.snippet:hover .card-bottom>span:first-child{visibility:hidden}.quiet-footer{display:flex;gap:12px;align-items:center;margin-top:28px;color:#9ca6ac;font-size:11px}.quiet-footer>span{flex:1}.text-button{border:0;background:none;color:#789087;font-size:11px;padding:4px;white-space:nowrap}.text-button:hover{text-decoration:underline}.preview{width:326px;flex:none;background:#fff;border-left:1px solid #e3e8eb;padding:28px 25px 22px;position:sticky;top:0;height:calc(100vh - 77px);display:flex;flex-direction:column;gap:0;overflow:auto}.preview-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8a979e;margin-bottom:28px}.preview-top>span{display:flex;align-items:center;gap:7px}.preview-top .icon-button{width:28px;height:28px;border:0}.preview-title{font-size:20px;letter-spacing:-.03em;font-weight:680;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}.preview-caption{color:#8c989f;font-size:12px;margin:0 0 25px}.preview-category{margin-bottom:20px}.preview-category>span{font-size:10px;border-radius:5px;padding:4px 8px}.variable-fields{display:grid;gap:13px;margin-bottom:22px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#6f8088}.field input,.field textarea,.field select,.field-input{width:100%;border:1px solid #dce4e7;border-radius:7px;padding:10px 11px;background:#fff;color:#33454e;font-size:14px}.field input::placeholder{color:#acb6bd}.preview-label{font-size:11px;font-weight:600;color:#7d8f97;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.resolved-text{background:#f6f8f9;border:1px solid #ecf0f1;border-radius:9px;padding:17px 15px;font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;max-height:40vh;overflow:auto;min-height:140px;color:#53646e}.resolved-text mark{color:#3e8b72;background:#deeee3;border-radius:3px}.preview-actions{display:flex;gap:8px;margin-top:24px}.preview-actions .button{flex:1}.preview-fine{font-size:10px;text-align:center;color:#a2acb1;margin:12px 0 0}.preview-footer{margin-top:auto;padding-top:30px;display:flex;gap:12px;justify-content:center}.preview-footer .text-button{font-size:11px;color:#84939a}.preview-placeholder{margin:auto;text-align:center;color:#8fa097}.preview-placeholder>div{background:#edf5f0;border-radius:18px;width:64px;height:64px;display:grid;place-items:center;margin:0 auto 20px;color:#43846b}.preview-placeholder svg{width:27px;height:27px}.preview-placeholder h2{font-size:16px;font-weight:600;color:#648073}.preview-placeholder p{font-size:12px;line-height:1.9;max-width:220px}.toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:#263f37;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 8px 30px #142e3528;z-index:100;font-size:13px;max-width:calc(100vw - 32px)}.toast button{border:0;background:none;color:#c0efda;font-weight:650;margin-left:10px;padding:4px;white-space:nowrap}.toast svg{color:#8fd7b9;width:16px;height:16px}.empty{padding:70px 20px;text-align:center;color:#9ba7ae}.empty svg{width:35px;height:35px}.empty h2{font-size:18px;color:#647d75;margin:15px 0 8px}.empty p{font-size:13px}.empty .button{margin-top:10px}dialog{border:1px solid #e0e7e6;border-radius:16px;padding:0;box-shadow:0 25px 100px #172e3f25;color:#263942;max-height:90vh;max-height:90dvh;background:#fff}dialog::backdrop{background:#122c3955;backdrop-filter:blur(3px)}.editor-dialog{width:640px;max-width:calc(100vw - 28px)}.utility-dialog{width:530px;max-width:calc(100vw - 28px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #e8edef}.dialog-head h2{font-size:18px;margin:0;font-weight:650}.dialog-body{padding:24px 26px;display:grid;gap:19px}.dialog-body p{margin:0;color:#72848b;font-size:13px;line-height:1.9}.dialog-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid #e8edef;padding:16px 26px}.dialog-foot .delete-button{margin-right:auto}.editor-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.editor-dialog textarea{min-height:230px;resize:vertical;line-height:1.85}.editor-body-label{display:flex;justify-content:space-between;gap:10px;align-items:center}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718a7f' stroke-width='1.8'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:30px}.field-help{font-size:11px;color:#99a5ab;line-height:1.7}.form-error{color:#b15151;font-size:12px;min-height:0}.utility-choice{display:flex;gap:15px;align-items:center;width:100%;background:#fff;border:1px solid #e3e9ea;border-radius:9px;padding:15px;text-align:left}.utility-choice:hover{border-color:#9ab9aa}.utility-choice>svg{color:#468772;width:22px;height:22px}.utility-choice strong{display:block;font-size:14px;font-weight:600}.utility-choice small{display:block;font-size:11px;color:#91a0a7;margin-top:3px}.category-edit-row{display:flex;align-items:center;gap:10px}.category-edit-row input{min-width:0;flex:1}.storage-warning{padding:12px 36px;background:#fff1da;color:#87642e;font-size:13px}.mobile-only{display:none}.scrim{position:fixed;inset:0;background:#183b4c55;border:0;z-index:19}.manual-copy{height:200px;resize:vertical;font-size:14px;line-height:1.8}.preview-close{display:none}.field input,.field textarea{min-height:42px}@media(min-width:1500px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.library{padding:42px 44px}.preview{width:350px;padding:30px}}@media(max-width:1190px){.sidebar{width:200px;padding-left:12px;padding-right:12px}.workspace{margin-left:200px}.library{padding:30px 24px}.preview{width:285px;padding:24px 19px}.topbar{padding:0 24px}.card-copy{padding:17px 17px 13px}.card-text{font-size:12px}.page-heading .button{padding:9px 12px}.page-heading h1{font-size:23px}}@media(max-width:1010px){.preview{display:none}.preview.open{display:flex;position:fixed;inset:0 0 0 auto;width:380px;max-width:100%;height:100dvh;z-index:30;box-shadow:-20px 0 80px #183b4c33;padding:25px}.preview-close{display:inline-flex}.preview.open .preview-top{margin-bottom:22px}.preview.open .resolved-text{max-height:40dvh}.preview.open:before{content:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card-copy{min-height:212px}.library{padding:32px}.page-description{font-size:14px}.page-heading h1{font-size:26px}.preview-caption{font-size:13px}.preview-fine{font-size:12px}.preview-label,.field{font-size:13px}.card-edit{opacity:1;bottom:10px;left:12px}.card-bottom>span:first-child{visibility:hidden}}@media(max-width:700px){.sidebar{transform:translateX(-100%);width:245px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-only{display:inline-flex}.topbar{height:65px;padding:0 18px;gap:10px}.top-tools{gap:6px}.save-status{display:none}.breadcrumb{font-size:12px;gap:8px}.breadcrumb>span:first-child{display:none}.crumb-divider{display:none}.library{padding:27px 18px}.page-body{min-height:calc(100vh - 65px)}.page-heading{align-items:center;margin-bottom:25px;gap:10px}.page-heading h1{font-size:23px}.page-description{font-size:12px}.eyebrow{font-size:10px}.page-heading .button{padding:10px 12px;font-size:12px;gap:5px}.library-tools{gap:5px}.search-box input{font-size:14px}.sort-label select{max-width:115px;font-size:11px}.search-box kbd{display:none}.cards{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.card-copy{min-height:205px;padding:15px 13px 14px}.card-title{font-size:14px;margin-top:9px}.card-text{font-size:12px;line-height:1.85;-webkit-line-clamp:3;min-height:65px}.card-category{font-size:10px}.card-favorite{top:10px;right:9px;padding:6px}.card-favorite svg{width:16px;height:16px}.card-copy-label{font-size:10px}.card-bottom{margin-top:14px}.card-edit{left:8px;bottom:9px}.copy-hint{font-size:10px}.quiet-footer{align-items:flex-start;font-size:10px}.quiet-footer>span{max-width:65%}.quiet-footer button{font-size:10px;white-space:normal}.dialog-head{padding:19px 20px}.dialog-body{padding:20px;gap:17px}.dialog-foot{padding:15px 20px}.dialog-foot .button{font-size:12px;padding:10px 12px}.editor-row{grid-template-columns:1fr}.editor-dialog textarea{min-height:200px}.field input,.field textarea,.field select{font-size:16px}.toast{bottom:20px;font-size:12px}.storage-warning{padding:12px 18px}.preview.open{width:100%;padding:24px}.preview-actions{margin-top:20px}.preview-title{font-size:23px}.resolved-text{font-size:15px}.preview-caption{margin-bottom:20px}.button{min-height:44px}.icon-button{min-width:36px;min-height:36px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Comfortable reading sizes, with compact controls kept secondary. */
.card-title{font-size:16px}.card-text{font-size:14px;color:#697b84;min-height:78px}.resolved-text{font-size:16px}.field,.preview-caption,.dialog-body p{font-size:14px}.field input,.field textarea,.field select{font-size:16px}.preview-fine,.field-help,.utility-choice small{font-size:12px;color:#788a92}.card-category{padding-right:23px}.preview-category{font-size:12px;color:#43816d;background:#edf6f0;border-radius:5px;padding:4px 8px;align-self:flex-start}.category-edit-row input{border:1px solid #dce4e7;border-radius:7px;padding:10px;font-size:16px;width:100%}.category-edit-row{margin-bottom:10px}.manual-copy{width:100%;min-height:200px;border:1px solid #dce4e7;border-radius:8px;padding:14px;font-size:16px}.nav-button>span:not(.dot):not(.nav-count){overflow-wrap:anywhere;min-width:0}#categoryNav{overflow-y:auto;min-height:0}.card-favorite[aria-pressed=true] svg{fill:#e6b968;stroke:#ad8246}.preview-actions,.resolved-text,.variable-fields{flex-shrink:0}.text-button.delete-button{color:#a95656}
@media(max-width:700px){.card-text{font-size:14px}.card-title{font-size:16px}.page-heading h1{font-size:22px}.page-description{font-size:14px}.preview-fine{font-size:12px}.search-box input{font-size:16px}.page-heading{flex-wrap:wrap}.page-heading .button{font-size:14px}.list-meta .copy-hint{display:none}.dialog-foot{flex-wrap:wrap}.quiet-footer>span{display:none}.quiet-footer button{font-size:12px}.sort-label select{font-size:12px}.preview.open .resolved-text{max-height:none;min-height:140px}}
@media(max-width:480px){.cards{grid-template-columns:1fr}.card-copy{min-height:200px;padding:18px}.card-text{-webkit-line-clamp:3}.card-bottom{margin-top:16px}.card-favorite{top:13px;right:12px}.card-edit{bottom:12px;left:13px}.breadcrumb{font-size:14px}.quiet-footer{justify-content:flex-end}}
