:root{--paper:#faf9f5;--ink:#204f59;--teal:#327e86;--muted:#81908e;--line:#dde3df;--soft:#eef1ec;--coral:#bd735f}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #7ab1b3;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #7ab1b3;outline-offset:1px}[hidden]{display:none!important}.primary{background:var(--ink);color:#fff;border-radius:9px;padding:13px 19px;display:inline-flex;align-items:center;justify-content:center;gap:24px;font-weight:500;white-space:nowrap}.primary:hover{background:#2d626a}.primary span{font-size:20px;font-weight:400}.quiet{background:none;color:#718380;padding:8px}.quiet:hover,.text-button:hover{color:var(--teal)}.text-button{background:none;color:var(--teal);padding:6px;font-size:12px}.small-button{background:#fff9;border:1px solid #cbd6cf;color:var(--ink);padding:12px 15px;border-radius:8px;white-space:nowrap}.tiny-label,.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:600}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* The workspace stays quiet so the pages carry the color. */
.studio-body{background:var(--paper)}.studio-header{height:78px;padding:0 38px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:22px;background:#fcfbf8}.studio-logo{font-family:Georgia,serif;font-size:32px;letter-spacing:-1.6px;display:flex;align-items:baseline;gap:10px}.studio-logo span{font-family:Arial,sans-serif;font-size:9px;letter-spacing:2px;color:#81908e}.header-divider{height:22px;width:1px;background:var(--line)}.header-desc{font-size:12px;letter-spacing:2px;color:#6b827d}.header-right{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:12px}.save-status{color:#718a80;font-size:11px}.save-status:before{content:'';display:inline-block;width:5px;height:5px;background:#8ba59a;border-radius:50%;margin-right:7px}.workspace{display:grid;grid-template-columns:minmax(380px,42%) minmax(0,1fr);min-height:calc(100vh - 78px)}.editor-panel{padding:30px 30px 22px 38px;border-right:1px solid var(--line);background:#fcfbf8}.editor-heading,.preview-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.editor-heading h1,.preview-heading h2{font-size:25px;font-weight:500;letter-spacing:.5px;margin:10px 0 0}.editor-tabs{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:24px}.tab{padding:12px 0;background:none;color:#89948e;font-size:12px;border-bottom:2px solid transparent;margin-bottom:-1px}.tab.active{border-color:var(--ink);color:var(--ink);font-weight:600}.template-wrap{margin-left:auto}.template-wrap select{border:0;background:transparent;color:#6b827d;font-size:11px;max-width:110px}.editor-toolbar{display:flex;align-items:center;gap:6px;padding:12px 0 6px}.editor-toolbar button,.import-label{padding:6px 8px;font-size:11px;background:none;color:#6b827d;border-radius:4px;cursor:pointer}.editor-toolbar button:hover,.import-label:hover{background:var(--soft)}.import-label{margin-left:auto}.editor-panel textarea{resize:vertical;border:0;background:transparent;color:#3e5b5c;width:100%;font-size:13px;line-height:1.95;padding:14px 6px;tab-size:2;outline-offset:-2px}.editor-panel #markdown{height:430px;min-height:250px;font-family:"SFMono-Regular",Consolas,"PingFang SC",monospace;white-space:pre-wrap}.editor-foot{display:flex;justify-content:space-between;color:#98a09a;font-size:10px;padding:5px 0 18px;border-bottom:1px solid var(--line)}.layout-settings{margin-top:17px}.layout-settings summary{cursor:pointer;font-size:12px;list-style:none}.layout-settings summary:before{content:'−';margin-right:9px;color:#81908e}.layout-settings:not([open]) summary:before{content:'+'}.layout-settings summary span{float:right;font-size:8px;letter-spacing:1.5px;color:#98a09a}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px;padding:19px 0 7px}.settings-grid>label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#6b827d}.settings-grid input:not([type=checkbox]),.settings-grid select{width:100%;border:1px solid var(--line);padding:9px 10px;border-radius:6px;color:#4b6966;background:#fff9;font-size:12px}.settings-grid textarea{border:1px solid var(--line);border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.6;min-height:57px}.full-width{grid-column:1/-1}.full-width .muted{font-size:10px}.toggle-stack{display:flex;flex-direction:column;justify-content:center;gap:7px;font-size:11px;color:#6b827d}.toggle-stack input,.view-toggle input{accent-color:#327e86;vertical-align:middle;margin:0 5px 0 0}.editor-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding-top:19px;border-top:1px solid var(--line)}.editor-bottom .quiet{font-size:11px;padding-left:0}.editor-bottom .primary{font-size:12px;padding:10px 16px}.pane-hint{color:var(--muted);line-height:1.8;font-size:12px;padding-top:10px}#caption{height:420px}.preview-panel{background:#edf0ea;padding:30px 36px 0;min-width:0;display:flex;flex-direction:column}.preview-heading{margin-bottom:25px}.size-badge{font-size:10px;border:1px solid #d4ddd5;border-radius:30px;padding:8px 11px;color:#81908e;white-space:nowrap}.size-badge span{padding:0 5px}.preview-controls{display:flex;justify-content:space-between;align-items:center;color:#7b8d84;font-size:11px;margin-bottom:22px}.view-toggle{font-size:11px;cursor:pointer}#preview{display:flex;justify-content:center;align-items:flex-start;gap:22px;min-height:460px;flex:1;flex-wrap:wrap}.page-wrap{position:relative;box-shadow:0 12px 35px #204f5917;background:#fbf9f2;overflow:hidden;cursor:default}.page-wrap .post-page{transform-origin:top left}.page-wrap[hidden]{display:none}.page-navigation{display:flex;align-items:center;justify-content:center;gap:24px;padding:21px 0 25px;font-size:11px;color:#7c8f84}.page-navigation button{width:28px;height:28px;border:1px solid #d3ddd4;background:transparent;border-radius:50%;color:#6b827d}.preview-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:23px 0 25px;border-top:1px solid #d7dfd4;margin-top:auto}.export-label{font-size:8px;letter-spacing:1.8px;color:#8d9b91}.preview-footer p{font-size:10px;color:#83958b;margin:7px 0 0}.export-actions{display:flex;gap:8px}.export-actions button{font-size:11px;padding:12px}.export-actions .primary{gap:13px}.preview-error{border:1px solid #d7a995;background:#faf0e8;color:#96624d;border-radius:8px;padding:14px 16px;line-height:1.8;margin-bottom:18px;font-size:12px}#measure{position:absolute;left:-15000px;top:0;width:1080px;visibility:hidden;pointer-events:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#204f59;color:white;padding:13px 23px;border-radius:8px;box-shadow:0 4px 20px #0002;z-index:10;max-width:90vw;line-height:1.8;font-size:13px}dialog{border:1px solid #dbe2d9;border-radius:16px;padding:30px;max-width:640px;width:calc(100% - 32px);max-height:85vh;overflow:auto;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #14322d33}dialog::backdrop{background:#204f5955;backdrop-filter:blur(3px)}dialog h2{font-size:20px;font-weight:500}dialog h3{font-size:14px;margin-top:24px}dialog p{font-size:13px;line-height:1.9}dialog pre{padding:14px;background:#e9eee7;border-radius:8px;overflow:auto;font-size:12px;line-height:1.8}dialog code{font-size:12px;background:#e9eee7} .dialog-heading{display:flex;align-items:flex-start;gap:20px}.dialog-heading button{margin-left:auto;background:none;font-size:26px;color:#81908e}.dialog-heading h2{margin:5px 0}
/* Login */
.login-body{background:#f7f7f0;min-height:100vh;padding:4vh 4vw;display:flex}.login-shell{min-height:88vh;width:100%;display:grid;grid-template-columns:55% 45%;border:1px solid #dce3dc;border-radius:16px;overflow:hidden;background:#fcfbf7;box-shadow:0 20px 70px #244e5810}.login-art{background:url('login-background.png') center center/cover;min-height:680px;padding:44px 48px;position:relative}.wordmark{font-family:Georgia,serif;font-size:40px;letter-spacing:-2px;display:flex;align-items:baseline;gap:15px}.wordmark span{font-family:Arial,sans-serif;font-size:9px;letter-spacing:3px;color:#648280}.login-story{margin-top:110px}.login-story h1{font-family:Georgia,"Songti SC","Noto Serif CJK SC",serif;font-weight:500;font-size:54px;line-height:1.45;letter-spacing:3px;margin:22px 0}.login-story p{font-size:13px;line-height:2;color:#648280}.login-art-foot{position:absolute;bottom:26px;left:48px;font-size:9px;letter-spacing:2px;color:#fcfbf7}.login-panel{padding:65px;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-card{width:100%;max-width:340px}.login-card h2{font-weight:500;font-size:26px;letter-spacing:1px;margin:18px 0 12px}.login-card>.muted{font-size:12px;margin-bottom:38px}.login-card label{display:block;font-size:12px;margin:20px 0 9px;color:#668079}.login-card input{border:1px solid #d4ded4;background:#fff9;padding:14px;border-radius:7px;width:100%;color:#204f59;font-size:15px}.password-field{position:relative}.password-field input{padding-right:56px}.password-field button{position:absolute;right:7px;top:10px;background:transparent;color:#829587;font-size:11px;padding:9px}.login-submit{width:100%;margin-top:12px;justify-content:space-between;font-size:13px;padding:15px 20px}.form-error{color:#b06951;font-size:12px;line-height:1.7;min-height:20px;margin:14px 0 0}.login-security{font-size:10px;text-align:center;letter-spacing:.8px;color:#8d9c90;margin-top:24px}.back-link{font-size:11px;color:#899b8c;margin-top:55px}
@media(min-width:1600px){.workspace{grid-template-columns:560px minmax(0,1fr)}.editor-panel #markdown{height:480px}.preview-panel{padding-left:60px;padding-right:60px}}
@media(max-width:1100px){.studio-header{padding:0 24px}.editor-panel{padding-left:24px;padding-right:22px}.preview-panel{padding-left:22px;padding-right:22px}.workspace{grid-template-columns:43% minmax(0,1fr)}.preview-footer{flex-direction:column;align-items:stretch}.export-actions{justify-content:flex-end}.login-panel{padding:40px}.login-art{padding:35px}.login-story h1{font-size:45px}}
@media(max-width:760px){.studio-header{height:65px;padding:0 18px;gap:12px}.studio-logo{font-size:27px}.header-divider,.header-desc,.save-status{display:none}.header-right{gap:8px}.header-right .quiet{font-size:11px}.workspace{display:block}.editor-panel{padding:24px 20px;border-right:0;border-bottom:1px solid var(--line)}.editor-heading h1,.preview-heading h2{font-size:23px}.editor-panel #markdown{height:330px}.preview-panel{padding:24px 20px 0}.preview-footer{flex-direction:row;flex-wrap:wrap}#preview{min-height:300px}.login-body{padding:0}.login-shell{border:0;border-radius:0;display:block}.login-art{min-height:280px;padding:24px 28px;background-position:center 42%}.wordmark{font-size:30px}.login-story{margin-top:32px}.login-story .eyebrow,.login-story p,.login-art-foot{display:none}.login-story h1{font-size:32px;line-height:1.3;margin:0}.login-panel{padding:38px 30px}.login-card h2{font-size:23px}.back-link{margin-top:28px}.login-card>.muted{margin-bottom:25px}}

/* Independent row-height controls for data-heavy pages. */
.row-height-control{min-width:0}.row-height-control>label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#6b827d}.row-height-control>label>span{display:flex;align-items:center;gap:4px;color:#81908e}.settings-grid .row-height-control input[type=number]{width:62px;padding:7px 5px;text-align:center}.settings-grid .row-height-control input[type=range]{width:100%;accent-color:#327e86;padding:0;margin:12px 0 0;border:0;background:transparent}.row-height-presets{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.row-height-presets button{font-size:11px;padding:8px 10px}.row-height-presets p{flex-basis:100%;font-size:10px;color:#81908e;line-height:1.7;margin:0}.row-height-presets .small-button{background:#e5eeea;border-color:#c3d6cc}

.editor-toolbar{flex-wrap:wrap}

/* A single library for daily issues and hand-written posts. */
.post-bar{padding:20px 38px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:#f4f5ee}.post-identity{min-width:0;flex:1}.post-identity h1{font-size:19px;font-weight:500;line-height:1.5;margin:6px 0 0;overflow-wrap:anywhere}.post-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.post-actions button{font-size:12px}.post-bar .tiny-label{letter-spacing:.7px}.conflict-banner{padding:16px 38px;background:#fff1de;line-height:2}.conflict-banner button{margin-left:12px}.source-details{margin-top:20px;font-size:12px;line-height:1.8}.source-details summary{cursor:pointer}.source-details a{color:var(--teal);text-decoration:underline;overflow-wrap:anywhere}.source-details li{margin-bottom:8px}.source-details p{color:var(--muted)}.preview-footer{flex-wrap:wrap}.preview-footer>div:first-child{flex:1 1 240px}.preview-footer p{line-height:1.8}.export-actions{flex-wrap:wrap}.library-tools{display:flex;gap:10px;margin:20px 0}.library-tools input,.library-tools select{min-width:0;padding:11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff}.library-tools input{flex:1}.library-tools button{gap:0;padding:11px}.post-card{display:block;text-align:left;width:100%;padding:17px;margin:10px 0;border:1px solid var(--line);border-radius:10px;background:#fff9;color:var(--ink)}.post-card:hover,.post-card.current{border-color:#79a7a5;background:#edf3ed}.post-card strong{display:block;font-size:15px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.post-card span{display:block;font-size:11px;color:#758a83;margin-top:7px;line-height:1.8}.version-row{display:flex;align-items:center;gap:12px;margin:9px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.version-row span{flex:1;line-height:1.8;font-size:12px}#version-body,#version-caption{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px}#library{max-width:760px}#library-more{display:block;margin:16px auto 0}#daily-status{color:#718780}.header-right #library-open{font-size:12px;padding:10px}
@media(max-width:760px){.post-bar{padding:17px 20px;display:block}.post-actions{margin-top:12px}.post-identity h1{font-size:17px}.post-actions button{font-size:11px}.library-tools{flex-wrap:wrap}.library-tools input{flex-basis:100%}.library-tools select{flex:1}.conflict-banner{padding:14px 20px}.preview-footer .export-actions{width:100%;justify-content:flex-start}.export-actions #share-images{width:100%}.studio-header .header-right{gap:2px}.studio-header #help-open{display:none}.header-right #library-open{font-size:11px}.save-status{display:block;position:relative;font-size:10px}.header-right .save-status{display:none}.post-bar .post-save-status{display:block;margin-top:7px;font-size:11px;color:#718a80}dialog{padding:22px}}

.post-bar .save-status{display:block;margin-top:7px}

.logs-corner{position:fixed;right:14px;bottom:10px;z-index:5;background:#faf9f5ed;border:1px solid #dbe2d9;border-radius:16px;padding:7px 11px;color:#788b83;font-size:10px;box-shadow:0 2px 7px #204f5910}.logs-corner span{color:#9b7358;margin-left:4px}.preview-footer{padding-bottom:46px}#logs{max-width:800px}.log-filters{display:flex;align-items:flex-end;gap:12px;margin:20px 0}.log-filters label{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px;font-size:12px}.log-filters input,.log-filters select{min-width:0;width:100%;border:1px solid var(--line);background:white;border-radius:8px;padding:10px;color:var(--ink)}.log-entry{border:1px solid var(--line);border-left:3px solid #adc4b9;border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.log-entry.warning{border-left-color:#c49b6d}.log-entry.error{border-left-color:#bd735f}.log-entry p{margin:7px 0}.log-meta{font-size:11px;color:#7e8e87;line-height:1.8}.log-entry a{font-size:12px;color:var(--teal);text-decoration:underline}.log-entry details{margin-top:10px;font-size:12px}.log-entry summary{cursor:pointer}.log-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;font-size:11px}#logs-status{font-size:12px;color:#7e8e87}#logs-more{margin-top:12px}@media(max-width:500px){.log-filters{flex-wrap:wrap}.log-filters label{flex-basis:40%}.log-filters button{padding:9px 16px}.logs-corner{right:10px;bottom:8px}}

.visual-edit-card{padding:20px 0;border-bottom:1px solid #d9e3df;display:grid;gap:16px}
.visual-edit-card h3{font-size:15px;margin:0;color:#658284}
.visual-edit-card>img{width:100%;max-height:230px;object-fit:contain;background:#e8edeb;border-radius:10px}
.visual-edit-card label{display:grid;gap:8px;font-size:13px;color:#49686c}
.visual-edit-card textarea{width:100%;min-height:70px;resize:vertical;border:1px solid #cddbd6;border-radius:8px;padding:12px;font:inherit;color:#204f59;background:#fff}
#visual-pane{max-height:670px;overflow:auto;padding:0 22px 20px}

#save-image{max-width:560px}#save-image-preview{display:block;width:100%;height:auto;margin-top:18px;-webkit-touch-callout:default}#save-image-share{margin-bottom:4px}

/* AdriaIsland portal navigation; keep the editor's save/leave protection. */
.portal-home{display:inline-flex;align-items:center;min-height:36px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--teal);white-space:nowrap}.portal-home:hover{background:#e5eeea}
@media(max-width:760px){.studio-header{height:auto;min-height:78px;flex-wrap:wrap;padding:15px 20px;gap:12px}.studio-header .header-right{width:100%;justify-content:flex-end;gap:10px}.studio-header .portal-home{margin-right:auto}.studio-header .header-desc{display:inline}}
