
:root{--ink:#263c35;--muted:#79857d;--paper:#f7f7f2;--line:#e3e7de;--green:#32604b;--lime:#e6edb9}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);padding:10px 15px}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9cae65;outline-offset:2px}.primary{background:var(--green);color:white;border-color:var(--green)}.quiet{border:0;background:transparent}.danger{color:#a13f36}.small{font-size:12px;color:var(--muted)}.brand{font-size:24px;font-weight:750;letter-spacing:2px}.brand span{display:inline-grid;place-items:center;border-radius:12px;background:var(--green);color:var(--lime);width:39px;height:39px;margin-right:10px;font-size:25px}.layout{display:grid;grid-template-columns:235px 1fr;min-height:100vh}aside{background:#fbfcf7;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;gap:26px;position:sticky;top:0;height:100vh}.navlabel{font-size:11px;letter-spacing:2px;color:var(--muted);margin:0 12px 12px}nav button{display:block;width:100%;text-align:left;margin:5px 0;border:0;background:none;padding:11px 14px}nav button.active{background:#e8eddd;font-weight:650}nav button em{font-size:12px;float:right;font-style:normal;opacity:.6}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:18px}.sidebar-footer button{font-size:12px;width:100%;margin-top:8px}main{padding:30px 42px;max-width:1660px;width:100%;margin:auto}.topline{display:flex;justify-content:space-between;align-items:center;gap:15px}.crumb{color:var(--muted);font-size:13px}.badge{font-size:12px;background:#ebefe5;border:1px solid var(--line);border-radius:30px;padding:5px 12px}.hero{margin-top:29px;border:1px solid #dbe2cc;border-radius:22px;background:#eaf0dc;min-height:192px;display:flex;align-items:center;justify-content:space-between;padding:30px 36px;overflow:hidden;position:relative}.eyebrow{font-size:11px;letter-spacing:3px;color:#637356}h1{font-size:34px;letter-spacing:1px;margin:5px 0 10px;line-height:1.3}.hero p{margin:0;color:#6c785e}.hero-art{position:relative;width:200px;height:145px;flex-shrink:0}.paper{position:absolute;background:#fffef5;border:1px solid #b8c89c;border-radius:9px;width:100px;height:124px;transform:rotate(-12deg);top:10px;left:28px;box-shadow:0 8px 12px #64734b10}.paper:before{content:'▥';position:absolute;color:#859d53;font-size:54px;left:22px;top:5px}.paper:after{content:'';position:absolute;width:50px;height:4px;background:#dce4c9;bottom:26px;left:23px;box-shadow:0 9px #dce4c9}.paper.two{transform:rotate(13deg);left:93px;top:23px;background:#f7e6bc}.paper.two:before{content:'☀';color:#b79a58}.toolbar{margin:28px 0 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.toolbar h2{margin:0;font-size:19px}.tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}input,select,textarea{border:1px solid var(--line);border-radius:10px;background:white;padding:10px 12px;color:var(--ink);min-width:0}input[type=search]{width:210px}.view-buttons{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}.view-buttons button{border:0;border-radius:0;padding:9px 12px}.view-buttons .active{background:#e5ebdc}.grid{columns:3 240px;column-gap:20px}.card{break-inside:avoid;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:20px;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-3px);box-shadow:0 9px 22px #263c350c}.cover{height:158px;background:#dae6d5;overflow:hidden;position:relative;display:grid;place-items:center}.cover img{width:100%;height:100%;object-fit:cover}.cover .glyph{font-size:65px;color:#ffffffa0;transform:rotate(-12deg)}.cover:has(.glyph):after{content:'';position:absolute;width:175px;height:175px;border:1px solid #fff7;border-radius:50%;right:-30px;bottom:-80px;box-shadow:0 0 0 22px #ffffff16,0 0 0 46px #ffffff0c}.cardbody{padding:20px}.meta{display:flex;justify-content:space-between;align-items:center;gap:5px}.pill{font-size:11px;border-radius:6px;padding:3px 8px;background:#eef1e9;color:#60724b}.star{font-size:20px;padding:0 4px;border:0;background:none;color:#b3b9ac}.star.on{color:#b19249}.card h3{font-size:18px;margin:12px 0 8px;line-height:1.5}.card .description{white-space:pre-wrap;font-size:13px;color:#7b857e;margin:0 0 16px;max-height:84px;overflow:hidden}.cardfoot{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8a9389;border-top:1px solid #f0f1ec;padding-top:12px}.tags{font-size:11px;color:#7b8769;margin-bottom:13px}.open-card{border:0;background:none;font-size:12px;padding:2px;color:var(--green)}.list{columns:auto}.list .card{display:flex}.list .cover{width:160px;flex-shrink:0;height:auto;min-height:170px}.list .cardbody{flex:1}.list .card .description{max-height:44px}.empty{text-align:center;padding:70px 20px;color:var(--muted)}footer{text-align:center;color:#9aa191;font-size:11px;margin-top:26px}.gate{position:fixed;inset:0;background:#f0f3e8;z-index:10;display:grid;place-items:center;padding:22px;overflow:auto}.gatebox{width:450px;max-width:100%;background:#fffef9;border:1px solid #dfe5d6;border-radius:24px;padding:36px;box-shadow:0 20px 80px #35543b0d}.gatebox h1{font-size:28px;margin-top:30px}.gatebox p{color:var(--muted);font-size:13px}.gatebox label{display:block;font-size:13px;margin:16px 0 6px}.gatebox input{width:100%;background:#fafbf6}.gatebox .primary{width:100%;margin-top:20px}.gatebox .legal{border-top:1px solid var(--line);padding-top:17px;margin-top:20px;font-size:11px;line-height:1.8}.error{color:#ab493b!important;min-height:20px;margin:8px 0 0!important}.hidden,[hidden]{display:none!important}dialog{border:1px solid var(--line);border-radius:20px;padding:0;width:650px;max-width:94vw;max-height:90vh;color:var(--ink);box-shadow:0 20px 80px #17302433}dialog::backdrop{background:#253d3670;backdrop-filter:blur(3px)}.modalhead{padding:23px 26px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modalhead h2{font-size:21px;margin:0}.modalbody{padding:23px 26px}.modalbody label{display:block;font-size:12px;margin:14px 0 6px;color:#6d7b6c}.modalbody label:first-child{margin-top:0}.modalbody input:not([type=file]),.modalbody select,.modalbody textarea{width:100%}.row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modalfoot{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding:17px 26px}.drop{display:block;border:1px dashed #b5c4a4;border-radius:12px;padding:20px;background:#f7f9f0;text-align:center}.drop input{font-size:12px;width:100%;margin-top:10px;border:0;background:none}.files{display:flex;flex-direction:column;gap:8px;margin-top:14px}.file{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:10px;border-radius:10px}.file .filename{flex:1;overflow-wrap:anywhere;font-size:12px}.file img{width:48px;height:48px;object-fit:cover;border-radius:7px}.detail-text{white-space:pre-wrap;line-height:1.9}.detail-photo{max-width:100%;max-height:330px;border-radius:12px;display:block;margin-bottom:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263f34;color:white;border-radius:12px;padding:12px 22px;z-index:30;font-size:13px}.mobile-brand{display:none}@media(min-width:1500px){.grid{columns:4 240px}}@media(max-width:960px){aside{padding:26px 15px}.layout{grid-template-columns:195px 1fr}main{padding:25px}.hero{padding:25px}.hero-art{width:150px}.paper{left:0}.paper.two{left:60px}h1{font-size:28px}}@media(max-width:680px){.layout{display:block}aside{height:auto;position:static;border-right:0;padding:18px;gap:10px}.brand{font-size:22px}aside .subtitle,aside .navlabel,.sidebar-footer .small{display:none}nav{display:flex;overflow-x:auto;gap:6px}nav button{white-space:nowrap;width:auto;font-size:12px;margin:0;padding:8px 10px}nav button em{display:none}.sidebar-footer{display:flex;gap:6px;padding:0;margin:0;border:0;flex-wrap:wrap}.sidebar-footer button{width:auto;margin:0;padding:6px 10px}.sidebar-footer .backup-tools{display:contents}main{padding:18px}.topline{font-size:12px}.hero{margin-top:18px;min-height:165px;padding:24px}.hero-art{display:none}h1{font-size:28px}.hero p{font-size:12px}.toolbar{margin-top:22px}.tools{width:100%}input[type=search]{flex:1;width:140px}.grid{columns:2 160px;column-gap:12px}.card{margin-bottom:12px}.cardbody{padding:14px}.cover{height:125px}.card h3{font-size:16px}.cardfoot{flex-wrap:wrap;gap:5px}.gatebox{padding:28px}.row{grid-template-columns:1fr}.list .cover{width:90px}.badge{font-size:10px}.modalbody{padding:20px}}

#syncStatus{overflow-wrap:anywhere}.error{line-height:1.7}.toast{max-width:92vw;max-height:40vh;overflow:auto}

aside{overflow-y:auto}aside>div{flex-shrink:0}@media(max-width:680px){aside{overflow-y:visible}}

.description a,.detail-text a,.card h3 a,#detailTitle a{color:var(--green);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.description a:hover,.detail-text a:hover{color:#798342}
/* 記憶庫 — personal archive */
:root{--ink:#26354a;--muted:#7b8591;--paper:#f6f3ed;--line:#e2dfd7;--green:#294969;--lime:#e2c68e}body{background:var(--paper)}.layout{grid-template-columns:246px 1fr}aside{background:#1e3046;color:#eaf0f5;border:0;padding:32px 24px;gap:34px}.brand{letter-spacing:3px;font-weight:650;font-size:25px}.brand span{background:#bfa171;color:#1e3046;border-radius:8px;font-size:25px;width:38px;height:42px;margin-right:11px}aside .subtitle{color:#a0afbf;font-size:12px;letter-spacing:1px}aside .navlabel{color:#8b9bad;font-size:10px}nav button{color:#cad3df;font-size:13px;border-radius:7px;padding:12px 13px}nav button:hover{background:#2b4059;filter:none}nav button.active{background:#344c68;color:#fff;border:1px solid #49607b}.sidebar-footer{border-color:#394b60}.sidebar-footer .small{color:#a2b2c4}.sidebar-footer button{background:#2a3e55;border:1px solid #41566f;color:#dce4ee;border-radius:7px}.sidebar-footer .quiet{background:transparent;border-color:transparent;color:#adbbcd}main{padding:31px 38px}.crumb{font-size:12px;letter-spacing:.5px}.badge{background:#fffdf8;border:1px solid #e2dccc;color:#7d725e;font-size:10px;letter-spacing:1px;border-radius:4px;padding:7px 11px}.hero{border:0;border-top:1px solid #dbd3c3;border-bottom:1px solid #dbd3c3;border-radius:0;background:#eee7d9;margin-top:25px;min-height:220px;padding:32px 34px}.eyebrow{color:#9a7c4c;letter-spacing:3px;font-weight:600;font-size:10px}h1{font-family:"Songti TC","Noto Serif TC",Georgia,serif;font-size:35px;font-weight:600;letter-spacing:2px;margin-top:14px;max-width:630px}.hero p{color:#7f7a6e;font-size:13px}.hero .small{color:#968b79;font-size:11px}.hero-art{width:190px;height:150px;margin-left:22px}.memory-book{position:absolute;width:106px;height:137px;background:#31516f;border-radius:4px 9px 9px 4px;left:33px;top:7px;transform:rotate(-10deg);box-shadow:4px 7px 0 #d0c8b9,8px 11px 0 #e5dece,12px 18px 25px #464d561b;border-left:7px solid #213e5b}.memory-book:before{content:'MEMORIES';position:absolute;left:15px;top:29px;color:#d1ba8c;font-size:8px;letter-spacing:2px}.memory-book:after{content:'✧';position:absolute;left:30px;top:48px;color:#e3cca0;font-size:39px}.memory-slip{position:absolute;background:#fffdf6;border:1px solid #cfc4ad;left:101px;top:58px;width:72px;height:85px;transform:rotate(12deg);box-shadow:0 8px 20px #685c4410}.memory-slip:before{content:'KEEP';position:absolute;left:20px;top:12px;letter-spacing:2px;font-size:8px;color:#b2905c}.memory-slip:after{content:'';position:absolute;left:14px;top:36px;background:#e8dfcf;height:2px;width:42px;box-shadow:0 9px #e8dfcf,0 18px #e8dfcf}.toolbar{margin:31px 0 21px}.toolbar h2{font-size:18px;font-weight:650;letter-spacing:1px}.tools{gap:7px}input,select,textarea{border-radius:6px;background:#fffdf9;border-color:#ddd9d0;font-size:13px}input[type=search]{width:200px}button{border-radius:6px;font-size:13px}.primary{background:#294969;border-color:#294969;color:#fff}.view-buttons{border-radius:6px}.view-buttons .active{background:#e5e9ed;color:#294969}.grid{column-gap:18px}.card{border:1px solid #dfded7;border-radius:9px;background:#fffefb;margin-bottom:18px;box-shadow:0 2px 3px #1e304604}.card:hover{box-shadow:0 7px 23px #1e30460c;transform:translateY(-2px)}.cover{height:136px}.cover .glyph{font-family:Georgia,serif;font-size:61px;color:#ffffffb3}.cover:has(.glyph):after{border-radius:0;width:150px;height:180px;right:-38px;bottom:-100px;transform:rotate(28deg);box-shadow:0 0 0 18px #ffffff14,0 0 0 38px #ffffff0e}.cardbody{padding:19px}.pill{background:#eeede5;border:1px solid #e3e1d4;border-radius:4px;color:#7f806f;font-size:10px;padding:2px 7px}.card h3{font-size:17px;line-height:1.6;margin-top:12px;font-weight:650}.card .description{font-size:12px;color:#83877f;line-height:1.8;max-height:88px}.cardfoot{border-color:#eeeae3;color:#92978c;font-size:10px}.tags{font-size:10px;color:#8b927f}.star{color:#b6bbba}.star.on{color:#b59459}.open-card{color:#45617b;font-size:11px}.description a,.detail-text a,.card h3 a,#detailTitle a{color:#365f86}.description a:hover,.detail-text a:hover{color:#99753b}footer{color:#a3a18f;font-size:10px;letter-spacing:.5px}.gate{background:#23374e;background-image:radial-gradient(ellipse at 15% 10%,#465d72aa,transparent 45%),radial-gradient(ellipse at 90% 100%,#5d534066,transparent 50%)}.gatebox{border-radius:12px;border:1px solid #d7cdb7;background:#faf7ef;box-shadow:0 22px 100px #0b182533;padding:38px}.gatebox .brand span{background:#294969;color:#e3c792}.gatebox h1{font-size:29px}.gatebox .legal{color:#9a968b;font-size:11px}.gatebox input{background:#fffefa}.gatebox .small{letter-spacing:2px;font-size:10px}.gatebox .primary{border-radius:6px}.drop{border-color:#b5bfca;background:#f3f5f7;border-radius:7px}dialog{border-radius:10px;background:#fffefa}dialog::backdrop{background:#172d467d}.modalhead{border-color:#e5dfd3}.modalfoot{background:#f6f3ed}.modalhead h2{font-family:"Songti TC",Georgia,serif}.file{border-radius:6px}.toast{background:#29435f;border-radius:7px}.error{color:#a45142!important}.list .cover{min-height:160px}.card a:focus-visible{outline:2px solid #bda26f;outline-offset:3px}@media(max-width:1100px){.layout{grid-template-columns:218px 1fr}main{padding:27px}.hero{padding:28px}.hero-art{width:150px}.memory-book{left:10px}.memory-slip{left:75px}.hero h1{font-size:30px}}@media(max-width:680px){.layout{display:block}aside{padding:18px;gap:15px}.brand{font-size:23px}nav button{padding:8px 10px;font-size:11px}nav button.active{border:0}.sidebar-footer{border:0}.sidebar-footer button{font-size:11px;padding:6px 9px}main{padding:18px}.hero{padding:25px;min-height:190px;margin-top:18px}.hero h1{font-size:28px;max-width:100%;letter-spacing:1px}.hero p{font-size:12px}.hero-art{display:none}.hero .small{line-height:1.8}.grid{columns:2 155px;column-gap:12px}.card{margin-bottom:12px}.cardbody{padding:13px}.cover{height:110px}.card h3{font-size:15px}.card .description{font-size:11px}.toolbar{margin-top:23px}.tools{gap:7px}.tools input[type=search]{min-width:150px;flex:1}.tools select{font-size:11px}.gatebox{padding:28px}.badge{letter-spacing:0;font-size:9px}.crumb{font-size:10px}.list .cover{width:82px}.list .cardbody{padding:13px}}
