/* Ann in Korea — warm ivory, sand and espresso. */
:root{--ink:#45392e;--muted:#897c6e;--teal:#927252;--teal-dark:#75583d;--bg:#f8f5ef;--line:#e3d9cc;--green:#efe8dc;--shadow:0 8px 28px #58412a08}
body{background:var(--bg);color:var(--ink)}
.sidebar{width:225px;padding:18px 12px;background:var(--theme-sidebar,#f6f1e9);border-color:var(--line)}
.brand{display:flex;flex-direction:column;gap:0;padding:0 0 22px;font:26px/1.25 Georgia,'Times New Roman',serif;color:var(--teal-dark)}
.brand-icon{font:italic 45px/1 Georgia,serif;font-weight:400;width:auto;height:auto;min-height:46px;background:none;color:var(--teal);border-radius:0}
.nav-label{display:none}
nav{margin-top:0}nav button{padding:14px 14px;margin-bottom:8px;font-weight:500;color:var(--ink);gap:12px}
nav button.active{color:var(--teal-dark);background:var(--theme-selected,#e9dece)}nav button:hover{background:var(--theme-hover,#eee5d9)}
.sidebar-bottom{left:24px;right:24px;bottom:22px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted)}
.local-dot{background:var(--teal)}
.btn{border-color:var(--line);background:var(--theme-panel,#fffdf9);color:var(--ink);border-radius:8px}
.btn.primary{background:var(--teal);border-color:var(--teal);color:white;box-shadow:0 3px 8px #72533212}
.btn.primary:hover{background:var(--teal-dark)}
.input,select,textarea{background:var(--theme-panel,#fffefa);color:var(--ink);border-color:var(--line)}
.panel,.card,.category-nav,.page-card,#modal{background:var(--theme-panel,#fffdfa);border-color:var(--line)}
.topbar{background:var(--bg);border-color:var(--line)}
.sources-toolbar{position:sticky;top:0;z-index:18;display:flex;justify-content:flex-end;gap:10px;align-items:center;flex-wrap:wrap;background:var(--bg);padding:16px 0;margin:-16px 0 18px;border-bottom:1px solid var(--line);box-shadow:0 5px 12px #58412a05}
.source-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.source-card{display:flex;flex-direction:column;text-align:center;min-width:0;min-height:252px;padding:12px 14px 14px;background:var(--theme-panel,#fffdfa);border:1px solid var(--line);border-radius:11px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.source-card:hover{transform:none;border-color:#bfa78c;box-shadow:0 5px 18px #6b50340b}
.source-card .source-cover{margin:0 0 10px;aspect-ratio:auto;height:115px;width:100%;background:var(--theme-panel,#fffdfa);border:0;flex-shrink:0}
.source-brand-name{font:400 28px/1.2 Georgia,serif;color:var(--ink);padding:12px}
.source-brand-cover>.source-brand-image{padding:14px 10px;background:var(--theme-panel,#fffdfa);object-fit:contain;filter:grayscale(1);mix-blend-mode:normal}
.source-card h2{font-size:14px;font-weight:500;white-space:normal;line-height:1.35;margin:0 0 8px}
.source-card .source-card-top{justify-content:center;margin:0 0 12px}
.source-card .badge{display:inline-flex;gap:6px;align-items:center;font-size:10px;padding:3px 9px;border-radius:30px;background:#edf0e6;color:#546449}
.source-card .badge i{width:6px;height:6px;border-radius:50%;background:currentColor}
.source-card .badge.red{background:#fff0de;color:#a56325}.source-card .badge.gray{background:#eee9e1;color:#8b8074}
.source-card .source-counts{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;margin:auto 0 0;padding:0 16px 0 0}
.source-counts>div{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:14px;padding:0 6px}
.source-counts>div+div{border-left:1px solid var(--line)}
.source-counts strong{font-weight:600}.source-counts span{font-size:11px;color:var(--muted)}
.source-enter{position:absolute;right:-3px;top:10px}.source-enter .icon{height:17px;width:17px;color:var(--muted)}
.source-sections>button{background:var(--theme-panel,#fffdfa);border-color:var(--line)}
.source-sections>button.active{background:var(--theme-selected,#eee4d6);border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.source-sections>button>span{color:var(--teal)}.category-nav button.active{background:var(--theme-selected,#eee4d6);color:var(--teal-dark)}.category-nav button:hover{background:var(--theme-hover,#f4ecdf)}
.notice{background:var(--theme-hover,#f0e9dd);border-color:var(--line);color:var(--ink)}
.fb-day-group{background:var(--theme-hover,#f1eadf);border-color:var(--line)}.fb-day-heading{background:var(--theme-selected,#e9ddca);border-color:var(--line)}
.batch-number,.avatar{background:var(--theme-selected,#ebdfcf);color:var(--teal-dark)}.batch-selection{border-color:var(--line);background:var(--theme-panel,#fffdfa)}
.origin-label.local,.origin-label.web,.source-back{color:var(--muted)}.progress>div{background:var(--teal)}
.gallery-tile,.layout-cell,.crop-stage{background:var(--theme-hover,#eee7db)}
@media(max-width:1450px){.source-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{width:200px}}
@media(max-width:900px){.sidebar{width:76px;padding:20px 10px}.brand>span:last-child{display:none}.brand{padding-bottom:20px}.brand-icon{font-size:38px}nav{margin-top:0}.source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sources-toolbar{gap:7px}.sources-toolbar .btn{font-size:11px;padding:10px}}
@media(max-width:650px){.source-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.source-card{min-height:220px;padding:9px}.source-card .source-cover{height:90px}.source-brand-name{font-size:23px}.sources-toolbar{justify-content:flex-start}}
@media(max-width:600px){.sidebar{width:60px;padding:18px 6px}.brand-icon{font-size:34px}.source-counts span{font-size:10px}}
@media(max-width:380px){.source-grid{grid-template-columns:1fr}}



.new-post-badges{position:absolute;right:9px;top:9px;display:flex;gap:5px;flex-wrap:wrap;pointer-events:none}.new-post-badges .badge{background:#e5eddf;color:#405933;border:1px solid #c7d7be;box-shadow:0 1px 5px #0001}.new-post-badges .scheduled{background:#f7ead6;color:#7c5429;border-color:#e1cba8}.new-post-dates{font-size:11px;line-height:1.7;color:var(--muted);margin:5px 0 8px}

.theme-settings{margin-bottom:20px}.theme-choices{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}.theme-choice{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px 14px;background:var(--theme-panel,#fffdfa);color:var(--ink)}.theme-choice>span{width:23px;height:23px;border-radius:50%}.theme-choice.selected{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal);background:var(--theme-selected,#e9dece)}.theme-custom{display:flex;align-items:center;gap:10px;font-size:13px;padding:5px 10px}.theme-custom input{width:45px;height:35px;padding:2px;border:1px solid var(--line);border-radius:6px;cursor:pointer}
#content:has(>.source-compact){padding-top:12px}.source-compact{padding:0 0 8px}.source-compact-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-height:42px}.source-identity{display:flex;align-items:center;gap:10px;min-width:0}.source-identity h1{font-size:23px;line-height:1.2;margin:0;overflow-wrap:anywhere}.source-return{font-size:20px;border:1px solid var(--line);border-radius:7px;width:32px;height:32px;flex-shrink:0;color:var(--teal-dark)}.source-tools{flex-wrap:wrap;gap:7px;justify-content:flex-end}.source-tools .btn{padding:9px 11px;font-size:11px}.source-compact .source-sections{gap:10px}.source-compact .source-sections>button{padding:10px 16px}.source-compact .source-sections small{margin-top:1px}
@media(max-width:1150px){.source-compact-head{flex-wrap:wrap}.source-tools{justify-content:flex-start}.source-identity h1{font-size:20px}}

#source-sort-help:not(:empty){padding:0 0 14px}.sorting-sources .source-card{cursor:grab}.sorting-sources .source-card.move-picked{outline:2px solid var(--teal);opacity:.65}.sorting-sources .source-card.move-target{outline:3px dashed var(--teal);background:var(--theme-selected)}
