:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC",sans-serif;color:#273d36;background:#f8f9f5;font-synthesis:none;--green:#2c654d;--muted:#758079;--border:#e0e5dc;--soft:#edf2e8;--error:#a33d36}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button{border:0;background:none;color:inherit}a{color:var(--green)}[hidden]{display:none!important}.muted{color:var(--muted)}.small,small{font-size:12px;line-height:1.7}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;color:#7a897a}.wordmark{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:16px;letter-spacing:-.5px;font-weight:700;white-space:nowrap}.logo{width:32px;height:32px;border-radius:9px;background:var(--green);color:white;display:grid;place-items:center;font-size:25px;font-weight:400;flex-shrink:0;position:relative}.logo-image{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}h1,h2,p{margin:0}h1{font-size:38px;letter-spacing:-1px;font-weight:650;line-height:1.4}h2{font-size:20px;font-weight:650}.primary,.secondary{padding:12px 20px;border-radius:9px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .15s}.primary{background:var(--green);color:#fff;box-shadow:0 3px 8px #2c654d12}.primary:hover{background:#204b39}.secondary{border:1px solid var(--border);background:#fff}.secondary:hover{background:var(--soft)}.text-button{color:var(--green);font-size:12px;padding:8px}.icon-button{font-size:22px;line-height:1;width:32px;height:32px;border-radius:6px;display:grid;place-items:center}.icon-button:hover{background:var(--soft)}label{display:block;font-size:13px;font-weight:500}input,textarea{width:100%;border:1px solid #dce3d8;border-radius:9px;background:white;padding:12px 13px;color:#243c31;margin-top:9px}input::placeholder,textarea::placeholder{color:#9bA398;font-weight:400}textarea{resize:vertical;line-height:1.7}input:focus,textarea:focus{outline:2px solid #8fae8e;outline-offset:1px}.error{color:var(--error);font-size:12px;min-height:18px;line-height:1.7}.notice{font-size:12px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.green{color:var(--green)}
.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-intro{background:#e7eddf;padding:52px 13%;display:flex;flex-direction:column;justify-content:center;position:relative}.auth-intro .wordmark{position:absolute;top:40px;left:10%}.auth-intro h1{font-size:54px;margin:24px 0}.auth-intro p{color:#6c7d6e;line-height:2;font-size:14px}.intro-card{display:flex;gap:20px;margin-top:55px;padding:23px;background:#f9fbf5b3;border:1px solid #fff9;border-radius:12px;font-size:15px}.intro-card>span{font-size:30px}.intro-card small{display:block;color:#85937e;margin-top:7px}.auth-form{max-width:380px;width:100%;justify-self:center;align-self:center;padding:30px}.auth-form h2{font-size:27px;margin:18px 0 10px}.auth-form>p{font-size:13px}.auth-form label{margin-top:25px}.auth-form .error{margin:15px 0}.auth-form button{width:100%}.auth-form .text-button{margin:15px 0 25px}.auth-form>small{display:block;text-align:center}
.workspace{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#f0f3eb;border-right:1px solid var(--border);padding:32px 22px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.library-label{margin:55px 12px 18px}.nav{display:flex;width:100%;align-items:center;gap:12px;padding:13px 14px;font-size:13px;border-radius:8px;text-align:left;margin-bottom:5px;color:#6c796d}.nav>span{font-size:18px;width:20px;text-align:center}.nav b{font-size:11px;margin-left:auto;background:#dce7d4;border-radius:5px;padding:3px 7px;font-weight:500}.nav.active{background:#e2e9d9;color:#34583e;font-weight:600}.nav:hover{background:#e6ebdf}.sidebar-section{margin:35px 12px}.sidebar-section .eyebrow{display:block;margin-bottom:17px}.tag-filter{display:block;padding:8px 0;color:#687a67;font-size:12px;max-width:100%;overflow-wrap:anywhere}.tag-filter.active{font-weight:700;color:#245336}.tag-filter:before{content:'#';color:#a0ae96;margin-right:10px}.sidebar-bottom{margin-top:auto}.connection-dot{font-size:11px;color:#7e8d75;margin:15px}.connection-dot:before{content:'●';font-size:8px;color:#68946b;margin-right:7px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid #dde3d6;padding-top:20px;margin-top:15px;font-size:12px}.avatar{width:30px;height:30px;background:#dde5d3;border:1px solid #d3ddc6;border-radius:50%;display:grid;place-items:center;color:#637856}.profile .icon-button{margin-left:auto;font-size:18px}.topbar{height:79px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 48px}.breadcrumb{font-size:11px;color:#86917f}.breadcrumb>span{margin:0 12px;color:#b4bcae}.breadcrumb strong{font-weight:500;color:#586b55}.local-chip{font-size:9px;letter-spacing:1px;color:#829077;border:1px solid var(--border);border-radius:20px;padding:5px 9px}.main-content{padding:43px 48px 24px;max-width:1450px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px;gap:20px}.page-heading h1{margin:11px 0}.page-heading p{font-size:13px}.page-heading>.primary{flex-shrink:0}.toolbar{display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--border);padding-bottom:25px}.search{display:flex;align-items:center;gap:10px;max-width:420px;flex:1;background:white;border:1px solid var(--border);border-radius:8px;padding:0 13px}.search>span{font-size:25px;color:#94a18e}.search input{margin:0;border:0;background:none;padding:12px 0;font-size:12px}.search input:focus{outline:0}.search:focus-within{outline:2px solid #8fae8e}.search kbd{font:11px monospace;color:#a4afa0;border:1px solid var(--border);padding:1px 5px;border-radius:4px}.toolbar>#result-count{margin-left:auto;white-space:nowrap}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:26px 0 19px}.section-heading h2{font-size:13px}.section-heading .small{font-size:10px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.card{background:white;border:1px solid #e2e7dd;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 3px 8px #243a2403;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-2px);box-shadow:0 6px 18px #243a240a}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.source{display:flex;align-items:center;gap:8px;font-size:10px;color:#7c8a74}.source-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#eef1e7;color:#516849;font-size:17px}.card-main{padding:22px 21px;flex:1;text-align:left;width:100%;display:block}.card h3{font-size:16px;line-height:1.7;margin:0 0 9px;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-description{color:#8b9484;font-size:11px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:21px}.card-domain{font-size:10px;color:#99a18f;margin-top:13px;overflow-wrap:anywhere}.card-note{margin-top:15px;padding:10px 12px;border-left:2px solid #cbd9b9;background:#f7f9f3;font-size:11px;line-height:1.8;color:#7e8a72;overflow-wrap:anywhere;white-space:pre-wrap}.card-bottom{padding:13px 20px;border-top:1px solid #eff1ea;display:flex;align-items:center;gap:6px;min-height:49px;flex-wrap:wrap}.tag{font-size:10px;background:#edf2e6;padding:4px 8px;border-radius:5px;color:#71845e}.card-bottom .time{margin-left:auto;font-size:9px;color:#9ba493}.badge{font-size:9px;border:1px solid #e2e8da;color:#8b9980;border-radius:20px;padding:4px 8px}.badge.done{background:#eff5e7;color:#72895e;border-color:#e4edda}.badge.retry,.badge.failed{background:#fcf4e9;border-color:#f0e6d6;color:#ab8b5c}.empty{text-align:center;padding:60px 15px 70px;border:1px dashed #d8e0ce;border-radius:12px;background:#f3f6ee}.empty-icon{background:#e5eddb;width:64px;height:64px;border-radius:18px;margin:0 auto 25px;font-size:42px;color:#78916a}.empty h2{font-size:19px;margin-bottom:13px}.empty p{font-size:12px;line-height:1.9;margin-bottom:24px}footer{font-size:10px;color:#a0aa96;text-align:center;margin-top:45px;letter-spacing:.3px}.offline-banner{display:flex;align-items:center;justify-content:space-between;padding:14px 17px;margin-bottom:20px;background:#faf0d9;border:1px solid #e8d9b7;border-radius:9px;font-size:12px;gap:12px}.offline-banner button{padding:7px 12px}
dialog{border:1px solid var(--border);border-radius:16px;padding:30px;width:min(580px,calc(100% - 28px));color:#2f4537;box-shadow:0 20px 80px #18302725;max-height:90vh;overflow:auto}dialog::backdrop{background:#233b3066;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px}.dialog-heading h2{margin-top:8px;font-size:23px}dialog>form>p,dialog>p{font-size:12px;line-height:1.8;margin:14px 0 20px}dialog label{margin-top:23px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}dialog .error{margin-top:10px}.detail-original{font-size:12px;line-height:1.8;background:#f3f5ee;border-radius:9px;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0}.detail-link{font-size:12px;overflow-wrap:anywhere}.detail-section{margin-top:28px}.detail-section h3{font-size:13px;font-weight:600;margin:0 0 12px}.detail-tags{display:flex;gap:5px;flex-wrap:wrap}.detail-note{border-left:2px solid #d4e0c9;padding-left:12px;font-size:12px;line-height:1.8;white-space:pre-wrap;margin-top:10px;overflow-wrap:anywhere}.inline-form{display:flex;gap:8px;margin-top:12px;align-items:center}.inline-form input{margin:0;font-size:12px}.inline-form button{padding:11px 12px;white-space:nowrap;font-size:11px}.parse-status{font-size:11px;padding:13px;border:1px solid var(--border);border-radius:9px;margin-top:20px;line-height:1.8}.parse-status .secondary{margin-top:10px;padding:7px 12px;display:block}.receipts{font-size:10px;color:#8d9a81;line-height:2}.danger{color:#a25e50;font-size:12px;padding:10px}.delete-confirm{background:#fff4ef;border-radius:9px;padding:15px;margin-top:20px;font-size:12px}.delete-confirm .dialog-actions{padding:10px 0 0;margin-top:10px}.entry{border:1px solid var(--border);border-radius:10px;padding:18px;margin:15px 0}.entry-heading{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600}.entry p{font-size:11px;color:var(--muted);line-height:1.8;margin:10px 0}.entry .secondary{font-size:11px;padding:9px 12px}.entry input{font-size:12px}.connection-code{font:12px ui-monospace,monospace;background:#f1f4ec;padding:12px;border-radius:7px;overflow-wrap:anywhere;user-select:all;margin-top:10px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#2f4c3e;color:#fff;font-size:12px;border-radius:10px;box-shadow:0 8px 20px #1e332d25;z-index:10;max-width:90vw;text-align:center}
@media(min-width:1500px){.main-content{padding-top:55px}.cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.workspace{grid-template-columns:200px 1fr}.sidebar{padding:27px 15px}.main-content{padding:35px 28px}.topbar{padding:0 28px}h1{font-size:30px}.cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.wordmark{font-size:14px}.page-heading>.primary{padding:11px 14px}.auth-intro{padding:50px 10%}.auth-intro h1{font-size:42px}}@media(max-width:700px){.auth-screen{display:flex;flex-direction:column}.auth-intro{padding:85px 28px 28px}.auth-intro .wordmark{top:25px;left:28px}.auth-intro .eyebrow,.intro-card{display:none}.auth-intro h1{font-size:34px;margin:8px 0}.auth-intro h1 br{display:none}.auth-intro p{font-size:12px}.auth-form{padding:35px 28px}.workspace{display:block}.sidebar{position:relative;width:100%;height:auto;display:flex;flex-direction:row;align-items:center;padding:15px 20px;gap:12px;border-bottom:1px solid var(--border)}.sidebar .wordmark{margin-right:auto}.sidebar nav,.library-label,.sidebar-section,.profile,.connection-dot{display:none}.sidebar-bottom{margin:0}.sidebar-bottom .nav{font-size:0;padding:8px;width:auto;margin:0}.sidebar-bottom .nav span{font-size:22px}.topbar{height:50px;padding:0 20px}.main-content{padding:27px 20px}.page-heading{align-items:flex-start;margin-bottom:28px}.page-heading .eyebrow{font-size:8px;letter-spacing:1px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}.page-heading>.primary{font-size:0;width:43px;height:43px;padding:8px;margin-top:22px}.page-heading>.primary span{font-size:24px}.cards{grid-template-columns:1fr}.search kbd{display:none}.toolbar{gap:8px}.toolbar>#result-count{font-size:10px}.search input{font-size:11px}.toolbar .text-button{font-size:10px;padding:0}.card-main{padding:20px}dialog{padding:23px}.dialog-heading h2{font-size:20px}.empty{padding:40px 12px}.empty h2{font-size:16px}.empty p{font-size:11px}}

.image-picker{margin-top:22px;padding:15px;border:1px dashed #c9d7bf;border-radius:10px;background:#f5f8f0}.image-picker label{margin-top:0}.image-picker input{font-size:12px;background:#fff}.image-picker p{margin:10px 0 0;line-height:1.8;overflow-wrap:anywhere}#capture-image-name{font-size:12px;font-weight:600}#capture-image-info{border-top:1px solid var(--border);margin-top:12px;padding-top:6px}.card-image{display:block;width:100%;height:180px;object-fit:contain;background:#f2f5ed;border-radius:8px;margin:0 0 15px}.detail-image{margin:18px 0}.detail-image img{display:block;width:100%;max-height:55vh;object-fit:contain;background:#f2f5ed;border-radius:9px}.detail-image figcaption{font-size:11px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere;margin-top:10px}#download-image{font-size:12px;text-decoration:none}

.quota-panel{border:1px solid var(--border);background:#edf3e8;border-radius:12px;padding:18px 20px;margin-bottom:24px;font-size:12px;line-height:1.8}.quota-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:5px}.quota-heading strong{font-size:18px}.quota-panel p{color:#52674e}.quota-warning{background:#fff6e6;border-color:#e5ce9f}.quota-warning .quota-heading{color:#82581f}#guest-upgrade{border-top:1px solid #d5dfcb;margin-top:12px;padding-top:12px}#guest-upgrade button{margin-top:10px;padding:9px 13px;font-size:12px}.quota-full-message{padding:12px;background:#fff1df;border:1px solid #e5ce9f;border-radius:8px;color:#82581f}button:disabled{cursor:not-allowed}@media(max-width:700px){.quota-panel{padding:15px;font-size:11px}.quota-heading strong{font-size:16px}.quota-heading{gap:4px}#guest-register-dialog .dialog-actions{justify-content:stretch}#save-guest-register{width:100%}}

/* Both languages share the same flow. The mobile menu exposes the existing
   filters, tags, connections and account controls instead of hiding them. */
.language-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 20px;background:#f0f3eb;border-bottom:1px solid var(--border);flex-wrap:wrap;font-size:12px}.language-bar label{font-size:12px}.language-bar select{font:inherit;max-width:210px;border:1px solid var(--border);border-radius:7px;background:#fff;padding:7px;color:inherit}.library-navigation{display:flex;flex-direction:column;flex:1;min-height:0}#mobile-menu{display:none}.offline-banner{flex-wrap:wrap}.offline-banner>span{flex:1;min-width:180px}#detail-dialog h2{overflow-wrap:anywhere}.inline-form{flex-wrap:wrap}.inline-form input{min-width:120px;flex:1}.inline-form button{white-space:normal}.entry strong{overflow-wrap:anywhere}.entry-heading{gap:10px}.entry-heading .badge{white-space:normal;text-align:right}#outbox-items button{margin:6px 6px 0 0}
@media(max-width:700px){.language-bar{justify-content:flex-start;padding:8px 20px}.sidebar{flex-wrap:wrap}#mobile-menu{display:inline-flex;padding:9px 12px}.library-navigation{display:none;width:100%;flex-basis:100%;padding-top:8px}.library-navigation.mobile-open{display:flex}.sidebar .library-navigation nav,.sidebar .library-label,.sidebar .sidebar-section,.sidebar .profile,.sidebar .connection-dot{display:block}.sidebar .profile{display:flex}.sidebar .library-label{margin:12px}.sidebar .sidebar-section{margin:12px}.sidebar-bottom .nav{font-size:13px;width:100%;padding:13px 14px}.sidebar .sidebar-bottom{margin-top:10px}.page-heading>.primary{font-size:12px;width:auto;max-width:135px;height:auto;min-height:43px;flex-shrink:1}.page-heading>.primary span{font-size:19px}.page-heading>div{min-width:0}.toolbar{flex-wrap:wrap}.search{min-width:190px}.language-bar .text-button{padding:3px}.dialog-actions{flex-wrap:wrap}.dialog-actions button{max-width:100%;white-space:normal}.main-content{min-width:0}.topbar{gap:10px}.breadcrumb{min-width:0}.local-chip{white-space:nowrap}.inline-form button{max-width:100%}dialog{max-height:calc(100dvh - 28px)}}
.dialog-language{display:flex;align-items:center;gap:10px;font-size:11px;margin:0 0 20px}.dialog-language select{font:inherit;min-width:0;max-width:220px;padding:6px;border-radius:6px;border:1px solid var(--border);background:#fff;color:inherit}

.search-filters{border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin:-10px 0 20px;background:#f6f8f2;font-size:12px}.search-filters summary{cursor:pointer;font-weight:600}.filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 12px}.filter-fields label{min-width:0;font-size:12px}.filter-fields select,.filter-fields input{display:block;width:100%;min-width:0;max-width:100%;height:40px;margin-top:6px;font:inherit;color:inherit;border:1px solid var(--border);border-radius:7px;background:#fff;padding:8px}.search-filters p{line-height:1.7}#search-status:not(:empty),#ocr-availability:not([hidden]){margin:12px 0;line-height:1.8}#retry-search{margin:0 0 14px}.card-ocr{font-size:11px;color:#617453;margin-top:10px}.search-match{margin:12px 0 0;padding:10px;background:#f3f6ef;border-radius:7px;font-size:12px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.search-match strong{display:block;font-size:10px;color:#617453}.search-match mark{background:#dce8b8;color:#294330;padding:0 1px;border-radius:2px}.ocr-section{border:1px solid var(--border);border-radius:10px;padding:16px}.ocr-section p{margin:10px 0;line-height:1.8}.ocr-section .badge{display:inline-block}.ocr-section pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;line-height:1.8;max-height:280px;overflow:auto;background:#f3f6ef;padding:12px;border-radius:7px}.ocr-section button{font-size:12px;margin-top:8px}.search-match span{user-select:text}@media(max-width:420px){.filter-fields{grid-template-columns:minmax(0,1fr)}.section-heading{gap:12px;align-items:flex-start}.section-heading span{text-align:right;max-width:45%}}

.search-matches:not(:empty){padding:0 20px 16px}.search-matches .search-match:first-child{margin-top:0}

#line-login-option{margin-top:24px}.line-login-button{display:flex;align-items:center;min-height:44px;padding:0;border-radius:7px;background:#06c755;color:#fff;font-size:14px;font-weight:600;overflow:hidden}.line-login-button img{flex-shrink:0;border-right:1px solid #00000014}.line-login-button span{flex:1;padding:10px 12px}.line-login-button:hover{background:#05b34c}.line-login-button:active{background:#048b3b}.line-login-button:disabled{background:#fff;color:#1e1e1e33;border:1px solid #e5e5e599;opacity:1}.line-login-button:disabled img{opacity:.2}#line-login-option p{margin-top:12px;line-height:1.7}.auth-divider{display:flex;gap:12px;align-items:center;margin-top:24px;color:var(--muted);font-size:12px}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--border);flex:1}

.social-login-options{display:grid;gap:14px;margin:26px 0 16px}.social-login-options button{width:100%}.google-login-button{display:flex;align-items:center;min-height:44px;padding:1px;border:1px solid #747775;border-radius:7px;background:#fff;color:#1f1f1f;font-size:14px;font-weight:600;overflow:hidden}.google-login-button img{flex-shrink:0;width:20px;height:20px;object-fit:contain;margin:0 12px}.google-login-button span{flex:1;padding:10px 12px}.google-login-button:hover{background:#f8fafd}.google-login-button:disabled{opacity:.5;cursor:not-allowed}.auth-form>p.small{margin:16px 0;line-height:1.7}.entry button+button{margin-left:8px}
