
[hidden]{display:none!important}*{box-sizing:border-box}body{font-family:Inter,"Malgun Gothic",system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}input,select,textarea{background:#0b1822;color:#e6edf3;border:1px solid #304a5b;border-radius:7px;padding:10px;min-width:0}input:focus,textarea:focus,button:focus-visible{outline:2px solid #63cfb0;outline-offset:2px}label{color:#a4bac8}h2{font-size:25px}h3{font-size:17px}.muted{color:#8ea6b7;font-size:12px;line-height:1.8}.positive{color:#5addb7!important}.negative{color:#fa7d8f!important}.primary{background:#205448!important;border-color:#4b927a!important;color:#c2ffe8!important}.manual-layout{display:grid;grid-template-columns:235px minmax(0,1fr) 180px;max-width:2100px;margin:auto;min-height:calc(100vh - 124px)}.manual-sidebar{padding:24px 16px;border-right:1px solid #263b48;background:#0d1923}.manual-sidebar h1{font-size:19px;margin:0}.manual-sidebar h1 span{display:block;font-size:12px;color:#80acb5;margin-top:6px}.account-item{width:100%;display:flex;justify-content:space-between;gap:10px;text-align:left;margin:6px 0;padding:13px 12px!important}.account-item span{overflow-wrap:anywhere}.account-item small{color:#91a6b5}.wide{width:100%;margin-top:14px}.local-note{font-size:12px;color:#7894a7;border-top:1px solid #263b48;margin-top:24px;padding:18px 0;line-height:1.8}.manual-workspace{padding:0 26px;min-width:0}.manual-workspace>.view-tabs{border-bottom:1px solid #293c48;display:flex;gap:8px}.manual-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 20px}.manual-heading h2{margin:6px 0 0}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.8px;color:#64dbb8}.month-tools{display:flex;align-items:center;gap:8px;margin:20px 0}.month-tools select{margin-left:auto}.summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}.summary strong{font-size:21px;font-variant-numeric:tabular-nums}.summary label{font-size:11px}.sample-notice{background:#143027;color:#91d9bc;border:1px solid #2c594a;border-radius:8px;padding:10px 14px;font-size:12px}.calculation-note{margin:14px 0}.manual-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;padding:12px;color:#9fb2c1;font-size:12px}.weekday:first-child{color:#f47d87}.calendar-day{position:relative;min-height:100px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:11px 9px!important;border-radius:5px!important;background:#10222e!important;border-color:#263b48!important;font-variant-numeric:tabular-nums}.calendar-day.selected{border:2px solid #55d8b2!important;background:#14392f!important;padding:10px 8px!important}.calendar-day strong{font-size:13px;font-weight:600;letter-spacing:-.3px}.calendar-day small{font-size:10px;color:#819eae}.day-number{font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px}.note-dot{width:5px;height:5px;background:#70b3e4;border-radius:50%}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-heading h3{margin:0}.section-heading h3 small{font-size:12px;color:#91a3b3;font-weight:400;margin-left:9px}.day-summary{margin-top:22px}.balance-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.balance-cards>div{display:flex;flex-direction:column;gap:9px;font-size:13px}.balance-cards small{color:#829ead}.day-note{white-space:pre-wrap;font-size:13px;color:#b2c7d4;border-top:1px solid #293c48;padding-top:18px}.table-scroll{overflow:auto}.daily-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right;font-size:12px}.daily-table th{font-size:11px;color:#87a4b6;font-weight:400;padding:14px 10px;border-bottom:1px solid #304654}.daily-table td{padding:9px 10px;border-bottom:1px solid #22333f;font-variant-numeric:tabular-nums}.daily-table th:first-child,.daily-table td:first-child{position:sticky;left:0;background:#10212d;text-align:left}.daily-table button{padding:5px 8px}.journal-graph svg{width:100%;min-height:230px}.graph-switch{display:flex;gap:6px}.note-search{display:flex;align-items:center;gap:12px;margin:20px 0}.note-search input{flex:1}.memo p{white-space:pre-wrap;font-size:14px;line-height:1.8}.memo{margin:12px 0}.method{margin-top:24px;font-size:12px;color:#8ea6b7;line-height:1.9}.method summary{cursor:pointer;color:#b6cbd8}.ad-rail{padding:24px 18px}.chart-attribution{margin-bottom:0}dialog{max-height:90dvh;overflow:auto;width:min(740px,94vw);background:#10202c;color:#e2edf5;border:1px solid #3a5364;border-radius:14px;padding:24px}dialog::backdrop{background:#02080cbc}dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:12px 0}dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}dialog h2{font-size:22px;margin:0}dialog fieldset{border:1px solid #2d4352;border-radius:10px;margin:20px 0;padding:16px}legend{font-size:14px;font-weight:600;padding:0 8px}legend small{color:#74c9b1}.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.form-error,[role=status]{color:#ed9e9e}.manual-menu-services,.manual-menu-views{display:grid;gap:10px}.manual-menu-services{border-bottom:1px solid #2c4352;padding-bottom:18px;margin-bottom:18px}.manual-menu-services button{text-align:left;display:flex;justify-content:space-between;align-items:center}.manual-menu-services small{color:#7dacbd;font-size:11px}.manual-menu-views{grid-template-columns:1fr 1fr}.manual-menu-views button{min-height:86px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;background:linear-gradient(145deg,#213847,#162936);border:1px solid #2b4352;border-radius:12px;font-size:12px}.manual-menu-views .desktop-menu-icon{display:block;width:28px;height:28px}.manual-menu-views img{width:24px;height:24px}#manualMenu{margin:0;left:0;top:0;height:100dvh;max-height:100dvh;width:320px;max-width:88vw;border-radius:0;padding:20px;background:#10212c}#manualMenuOpen{display:none}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#245344;color:#ccffed;border-radius:9px;font-size:13px;z-index:1000}#toast:not(:empty){padding:12px 18px}
@media(max-width:1399px) and (min-width:721px){.manual-layout{grid-template-columns:210px minmax(0,1fr)}.manual-layout>.ad-rail{grid-column:2}.calendar-day strong{font-size:12px}.summary strong{font-size:18px}}
@media(max-width:720px){body>header{height:66px;padding:10px 14px}.brand .map-logo{width:150px}.brand small,.header-account-actions,.header-login-notice,body>.source-switch{display:none!important}#manualMenuOpen{display:block}.manual-layout{display:block}.manual-sidebar{display:none}.manual-workspace{padding:0 14px 20px}.manual-layout>.ad-rail{display:none}.manual-workspace>.view-tabs{display:grid;grid-template-columns:1fr 1fr;padding:12px 0;gap:7px}.view-tabs button{display:flex;align-items:center;gap:7px;justify-content:flex-start;padding:10px 8px;font-size:11px;background:linear-gradient(145deg,#213847,#162936);border:1px solid #2b4352;border-radius:10px;min-height:42px}.view-tabs .desktop-menu-icon{display:block;width:20px;height:20px}.view-tabs img{width:20px;height:20px}.manual-heading{margin:18px 0}.manual-heading h2{font-size:21px}.manual-heading button{font-size:11px;padding:9px}.month-tools{flex-wrap:wrap;gap:6px}.month-tools input{width:150px}.month-tools select{width:100%;margin:5px 0 0}.summary{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:5px 0}.summary>div{padding:13px!important;min-height:74px}.summary strong{font-size:18px}.calculation-note{font-size:11px}.manual-calendar{gap:3px}.calendar-day{min-height:79px;padding:8px 3px!important;gap:8px;align-items:center}.calendar-day.selected{padding:7px 2px!important}.calendar-day strong{font-size:9px;letter-spacing:-.6px;overflow-wrap:anywhere;word-break:break-all}.calendar-day small{font-size:8px}.day-number{font-size:11px;gap:4px}.weekday{padding:8px}.section-heading{flex-wrap:wrap}.panel{padding:15px}.balance-cards{gap:20px}.daily-table{font-size:11px}.daily-table th,.daily-table td{padding:9px 7px}.journal-graph svg{min-height:170px}.graph-switch button{font-size:11px}dialog{padding:18px;max-height:92dvh}dialog fieldset{padding:12px}.form-actions button{font-size:12px}.entry-grid{gap:0 9px}.entry-grid input{width:100%}.chart-attribution{font-size:11px}.eyebrow{font-size:10px}body:has(dialog[open]){overflow:hidden}}

main.manual-layout{padding:0}.manual-workspace>.view-tabs button.active{background:linear-gradient(135deg,#295548,#193e36);border-color:#4d947d;color:#d1ffeb}.mobile-local-note{color:#91a6b5;font-size:12px;line-height:1.8;margin-top:20px}
@media(max-width:720px){body>header .brand{display:flex;align-items:center;gap:12px}body>header .map-logo{display:block;position:relative;width:158px;height:42px;overflow:hidden}body>header .map-logo img{position:absolute;max-width:none;width:211px;height:105.5px;left:-26px;top:-33px}#manualMenuOpen{width:38px;height:38px;padding:6px;flex-shrink:0}.manual-heading{margin-top:16px}.manual-workspace>.view-tabs{margin-bottom:0}}

@media(max-width:720px){body>header .brand{min-width:0;max-width:none}body>header .brand .map-logo{flex:0 0 166px;width:166px}}

/* Match the existing trade calendar and shared desktop columns. */
:root{--panel:#101c27;--line:#243240;--muted:#91a3b3;--text:#e6edf3;--green:#54d7ad;--red:#f47d87}
body{font-size:15px;line-height:1.55;color:var(--text)}
.positive{color:var(--green)!important}.negative{color:var(--red)!important}
.manual-calendar{gap:6px;margin:20px 0}
.manual-calendar>.weekday{padding:0;font-size:15px;font-weight:700;color:var(--muted);line-height:1.55}
.manual-calendar .calendar-day{min-height:92px;gap:8px;padding:6px 11px!important;border-radius:6px!important;background:#10212d!important;border-color:var(--line)!important;text-align:left;align-items:flex-start}
.manual-calendar .calendar-day.selected{border:2px solid #54d7ad!important;background:#173931!important}
.manual-calendar .day-number{font-size:15px;font-weight:400}
.manual-calendar strong{font-size:14px;font-weight:700;letter-spacing:normal}
.manual-calendar small{font-size:11px;color:var(--text)}
.manual-workspace>.summary{border:0;background:none;padding:0;gap:12px;border-radius:0}
.manual-workspace>.summary>div{padding:15px 18px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.manual-workspace>.summary label{font-size:12px;color:var(--muted)}
.manual-workspace>.summary strong{font-size:23px;letter-spacing:-.5px;margin:3px 0}
.month-tools{flex-wrap:wrap;gap:10px;margin:18px 0}
.fx-reference{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#0d1923}
.fx-reference p{font-size:13px;color:#b8cddd}.fx-reference small{display:block;margin-top:10px;font-size:11px;line-height:1.7;color:var(--muted)}
.fx-reference button{font-size:12px;white-space:normal;margin:4px 6px 4px 0}.fx-reference a{text-decoration:underline}
@media(min-width:721px){main.manual-layout{grid-template-columns:292px minmax(0,1fr)}.manual-workspace{padding:0 28px}.manual-sidebar{background:#0d1720;border-color:var(--line)}.manual-layout>.ad-rail{padding:0 28px 28px}}
@media(min-width:1400px){main.manual-layout{grid-template-columns:292px minmax(0,1fr) 184px}.manual-layout>.ad-rail{padding:24px 24px 24px 0}}
@media(max-width:1050px) and (min-width:721px){.manual-workspace{padding:0 18px}}
@media(max-width:720px){.manual-workspace{padding:0 12px 20px}.manual-calendar .calendar-day{min-height:76px;padding:5px!important;white-space:normal}.manual-calendar strong{font-size:10px}.manual-calendar .day-number{font-size:15px}.manual-calendar small{font-size:11px;overflow-wrap:anywhere}.manual-workspace>.summary strong{font-size:20px}.manual-workspace>.summary{gap:12px}}

.read-account{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;background:#0d1923}
.read-account .section-heading{margin-bottom:12px}.read-account h3{font-size:15px}.read-account small{font-size:11px;color:var(--muted)}
.read-account dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}.read-account dt{font-size:12px;color:var(--muted)}.read-account dd{margin:4px 0 0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.read-memo{white-space:pre-wrap;overflow-wrap:anywhere;color:#b8cddd;font-size:13px;line-height:1.8}#recordDialog .form-actions{justify-content:flex-end}
@media(max-width:720px){#readDate{font-size:18px}.read-account{padding:12px}.read-account dd{font-size:13px}.read-account .section-heading{gap:6px}.read-account dl{gap:12px}}

.calendar-note-legend{display:flex;align-items:center;justify-content:flex-end;gap:6px;color:var(--muted);font-size:12px;margin:12px 0 0}.calendar-note-legend .note-dot{display:inline-block;flex-shrink:0}

.metric-note{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}
/* Compact record summary: keep actual notes visible. */
#recordDialog .dialog-head{margin-bottom:10px}
#recordDialog .read-account{padding:12px 14px;margin:10px 0}
#recordDialog .read-account .section-heading{margin-bottom:8px}
#recordDialog .read-account dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px}
#recordDialog .read-account dt{font-size:11px}
#recordDialog .read-account dd{font-size:13px;margin-top:2px}
.read-day-memo{border-left:2px solid #70b3e4;padding:4px 12px;margin:12px 0}
.read-day-memo h3{font-size:12px;margin:0;color:var(--muted)}
.read-day-memo .read-memo{margin:4px 0 0;font-size:13px}
#recordDialog .account-memo{border-top:1px solid var(--line);padding-top:7px;margin:8px 0 0;font-size:12px;line-height:1.6}
.account-memo>span:first-child{color:var(--muted);margin-right:10px}.no-memo{color:var(--muted)}
@media(max-width:720px){#recordDialog .read-account{padding:10px 12px}#recordDialog .read-account dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px}#recordDialog .read-account h3{font-size:14px}}
.read-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 8px}.read-totals>div{padding:11px 10px;background:#142632;border:1px solid var(--line);border-radius:8px}.read-totals label{display:block;font-size:11px;color:var(--muted)}.read-totals strong{display:block;margin-top:5px;font-size:17px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}#readTotalsNote{font-size:11px;line-height:1.7;margin:6px 0 12px}@media(max-width:720px){.read-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.read-totals strong{font-size:16px}}
#recordDialog .read-account .section-heading{flex-wrap:nowrap;align-items:center;gap:12px}#recordDialog .read-account .section-heading h3{min-width:0;overflow-wrap:anywhere}#recordDialog .account-return{flex-shrink:0;margin-left:auto;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}#recordDialog .account-carry{flex-shrink:0;margin-left:auto;white-space:nowrap}@media(max-width:720px){#recordDialog .account-return{font-size:15px}}
#recordDialog .read-account dl.read-balances{grid-template-columns:repeat(2,minmax(0,1fr))}#recordDialog .read-account dl.read-rates{grid-template-columns:minmax(0,1fr);margin-top:10px}#recordDialog .read-account dl.read-flows{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}#recordDialog .read-currency-note{font-size:10px;color:var(--muted);margin:7px 0 0;line-height:1.5}@media(max-width:720px){#recordDialog .read-account dl.read-flows{gap:7px}#recordDialog .read-flows dd{font-size:12px}}
#recordDialog .read-account dl.read-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#recordDialog .read-account dl.read-badges.has-rate{grid-template-columns:repeat(3,minmax(0,1fr))}#recordDialog .read-badges>div{padding:9px 10px;border:1px solid #2c4352;border-radius:8px;background:#172b38}#recordDialog .read-badges dd{font-size:13px;line-height:1.5;margin-top:4px}@media(max-width:720px){#recordDialog .read-account dl.read-badges{gap:5px}#recordDialog .read-badges>div{padding:7px 6px}#recordDialog .read-badges dt{font-size:10px}#recordDialog .read-badges dd{font-size:11px}}
/* Daily record review: hierarchy and compact, consistent surfaces. */
#recordDialog{width:min(800px,94vw);padding:22px 24px 0;border:1px solid #385263;border-radius:16px;background:#0f1d28;box-shadow:0 24px 80px #0007}
#recordDialog .dialog-head{align-items:flex-start;margin-bottom:10px;gap:12px}
.record-eyebrow{display:block;font-size:11px;color:#7bcbb5;letter-spacing:.06em;margin-bottom:7px}.record-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#recordDialog #readDate{font-size:23px;letter-spacing:-.5px;line-height:1.3}.record-state{font-size:11px;color:#a4bdcc;background:#1b303e;border:1px solid #304957;border-radius:20px;padding:3px 9px;white-space:nowrap}
#recordDialog .dialog-head>button{background:#172b38;border-color:#304957;border-radius:9px;padding:7px 12px;font-size:12px}#recordDialog #readStatus{margin:0 0 18px;font-size:12px}
#recordDialog .read-totals{gap:8px;margin:0}#recordDialog .read-totals>div{background:#152734;border-color:#2b414f;border-radius:10px;padding:12px}#recordDialog .read-totals strong{font-size:18px;letter-spacing:-.4px}#recordDialog .read-totals>div:nth-child(2){background:#17332f;border-color:#31594c}
#recordDialog .read-day-memo{background:#142532;border:1px solid #293e4c;border-left:3px solid #76a9ce;border-radius:8px;padding:10px 12px;margin:14px 0 18px}
#recordDialog .record-section-title{font-size:12px;color:#95adbd;font-weight:500;margin:0 0 8px}#recordDialog .read-account{background:#101f2a;border:1px solid #293f4d;border-radius:12px;padding:14px;margin:10px 0}#recordDialog .read-account .section-heading{margin-bottom:12px}#recordDialog .account-return{padding:3px 9px;border-radius:7px;background:#223746;font-size:15px}#recordDialog .account-return.positive{background:#1a3b32}#recordDialog .account-return.negative{background:#392731}
#recordDialog .read-badges>div{background:#192c39;border-color:#2b4251}#recordDialog .read-account dl.read-flows{margin-top:12px;padding:0 4px}#recordDialog .read-account .account-memo{padding-top:9px;margin-top:10px}
#recordDialog>.form-actions{position:sticky;bottom:0;background:#0f1d28;margin:16px -24px 0;padding:12px 24px;border-top:1px solid #2b414f;z-index:2}#recordDialog #editRecord{min-width:116px;border-radius:9px;font-weight:600;padding:9px 18px}
@media(max-width:720px){#recordDialog{width:calc(100% - 20px);max-width:none;padding:16px 14px 0;border-radius:13px}#recordDialog #readDate{font-size:20px}.record-title-line{gap:6px}.record-state{font-size:10px}#recordDialog .read-totals>div{padding:10px}#recordDialog .read-totals strong{font-size:17px}#recordDialog .read-account{padding:12px}#recordDialog>.form-actions{margin-left:-14px;margin-right:-14px;padding:10px 14px}#recordDialog #editRecord{width:100%}}
.record-date-field{display:flex;align-items:center;gap:12px;background:#0b1822;border:1px solid #304a5b;border-radius:8px;padding-right:14px}.record-date-field #recordDate{flex:1;min-width:0;border:0;background:transparent}.record-date-field #recordWeekday{flex-shrink:0;font-size:13px;color:#94d8c5;white-space:nowrap}
/* Entry dialog follows the daily review surfaces. */
#entryDialog{width:min(800px,94vw);padding:22px 24px 0;background:#0f1d28;border:1px solid #385263;border-radius:16px;box-shadow:0 24px 80px #0007}
#entryDialog .dialog-head{margin-bottom:16px;gap:12px}#entryDialog h2{font-size:22px;letter-spacing:-.4px}#entryDialog .dialog-head>button{border-radius:9px;padding:7px 12px;font-size:12px}
#entryDialog .record-date-field{position:relative;padding:0;border-radius:9px;background:#172b38;border-color:#355162}
#entryDialog #recordDate{width:100%;min-height:44px;color:transparent;cursor:pointer;padding:10px 12px}
#entryDialog #recordWeekday{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:#e2edf5;font-size:15px;font-weight:600}
#entryDialog #recordDate:focus{color:transparent}#entryDialog .record-date-field:focus-within #recordWeekday{visibility:visible}
#entryDialog fieldset{background:#101f2a;border:1px solid #293f4d;border-radius:12px;margin:16px 0;padding:14px}
#entryDialog legend{color:#dbe9f1;font-size:14px}#entryDialog fieldset>.muted{margin:0 0 8px;padding:8px 10px;background:#172b38;border-radius:7px}
#entryDialog .entry-grid{gap:0 12px}#entryDialog label{margin:9px 0;font-size:12px}#entryDialog input,#entryDialog textarea{border-radius:8px}#entryDialog fieldset input{width:100%;padding:10px 11px;background:#0c1a24;border-color:#304958;font-variant-numeric:tabular-nums}
#entryDialog .fx-reference{background:#132631;border-color:#2b4554;border-radius:10px;padding:12px;margin:14px 0}#entryDialog .fx-reference>b{font-size:12px;color:#a1d7c7}#entryDialog .fx-reference p{margin:7px 0}#entryDialog .method{margin-top:14px;padding:10px 12px;border-radius:9px}
#entryDialog .form-actions{position:sticky;bottom:0;z-index:2;justify-content:flex-end;background:#0f1d28;border-top:1px solid #2b414f;margin:16px -24px 0;padding:12px 24px}
#entryDialog .form-actions .primary{min-width:142px;padding:10px 18px;border-radius:9px;font-weight:600}
@media(max-width:720px){#entryDialog{width:calc(100% - 20px);max-width:none;padding:16px 14px 0;border-radius:13px}#entryDialog h2{font-size:20px}#entryDialog fieldset{padding:12px}#entryDialog .entry-grid{gap:0 9px}#entryDialog .form-actions{margin-left:-14px;margin-right:-14px;padding:10px 14px}#entryDialog .form-actions .primary{width:auto;font-size:13px}}

#entryDialog .entry-grid .entry-close{grid-column:1;grid-row:1}#entryDialog .entry-grid .entry-deposit{grid-column:1;grid-row:2}#entryDialog .entry-grid .entry-withdraw{grid-column:2;grid-row:2}
.journal-scope{display:inline-block;margin-top:8px;padding:3px 9px;border:1px solid #315448;border-radius:6px;background:#17352d;color:#a2e4ca;font-size:12px;overflow-wrap:anywhere}.journal-scope-inline{display:inline-block;color:#9ccbbb;font-size:12px;font-weight:400;margin-left:8px}#tableView .section-heading h3{line-height:1.7}

.inline-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.inline-toolbar span{flex:1;min-width:180px;font-size:12px;color:var(--muted)}.inline-toolbar button{font-size:12px}.daily-table .inline-amount{width:142px;padding:7px 9px;text-align:right;font-size:12px;background:#0b1924;border:1px solid #385468}.daily-table .inline-fx{display:block;margin:4px 0 0 auto;font-size:10px;padding:4px 6px}.daily-table tr.inline-dirty td{background:#19372f}.daily-table tr.inline-dirty td:first-child{background:#19372f}@media(max-width:720px){.daily-table .inline-amount{width:115px}.inline-toolbar span{flex-basis:100%}}
.daily-table tr:not(.inline-active) .inline-amount,.daily-table tr:not(.inline-active) .inline-fx-editor{display:none}.daily-table tr.inline-active .inline-value,.daily-table tr.inline-active .inline-rate-value{display:none}.daily-table .inline-value{border:0;background:transparent;padding:7px 0;color:inherit;box-shadow:none;font:inherit;text-align:right}.daily-table .inline-value:hover{color:inherit;text-decoration:none}.inline-value small{font-size:10px;color:var(--muted)}.daily-table .inline-fx-editor{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex-wrap:nowrap}.daily-table .inline-fx-editor .inline-amount{width:108px}.daily-table .inline-fx-editor .inline-fx{display:inline-block;margin:0;padding:7px 8px;white-space:nowrap;font-size:11px}.daily-table tr.inline-active td{background:#152d36}.daily-table tr.inline-active td:first-child{background:#152d36}

/* The table receives focus after Esc; interactive controls retain focus outlines. */
.daily-table[tabindex="-1"]:focus{outline:none}
/* Account navigation: restrained hierarchy, compact currency badges. */
.manual-sidebar{padding:24px 16px;background:linear-gradient(180deg,#101e29 0%,#0d1720 65%)}
.manual-sidebar h1{display:flex;align-items:center;gap:9px;font-size:20px;letter-spacing:-.6px;margin:0 0 9px;padding:0 2px}
.manual-sidebar h1 span{display:inline-block;margin:0;padding:3px 7px;border:1px solid #345345;border-radius:5px;background:#18362d;color:#a3d8c4;font-size:10px;font-weight:500;letter-spacing:0;line-height:1.4}
.manual-sidebar>p.muted{font-size:11px;color:#839bac;margin:0 2px 22px}
.manual-sidebar .account-item{position:relative;align-items:center;min-height:52px;padding:12px 13px!important;margin:7px 0;border:1px solid transparent;border-radius:10px;background:#142531;color:#b8cbd8;box-shadow:inset 0 1px 0 #ffffff04;gap:8px;white-space:normal}
.manual-sidebar .account-item>span{font-size:13px;font-weight:500;line-height:1.5;min-width:0}
.manual-sidebar .account-item small{flex-shrink:0;margin-left:auto;padding:3px 6px;border-radius:5px;border:1px solid #365064;background:#0d1d28;color:#8caabe;font-size:10px;letter-spacing:.3px;line-height:1.3}
.manual-sidebar .account-item:hover{background:#1a303e;border-color:#355062;filter:none}
.manual-sidebar .account-item.active{background:linear-gradient(110deg,#20493d,#19372f);border-color:#47866d;color:#c9f8e6;box-shadow:inset 3px 0 0 #71dcb5}
.manual-sidebar .account-item.active small{color:#a5e4ce;border-color:#416c5d;background:#17392f}
.manual-sidebar #allAccounts{margin-bottom:17px;background:#182c39;border-color:#304959}
.manual-sidebar #allAccounts.active{background:linear-gradient(110deg,#20493d,#19372f);border-color:#47866d}
.manual-sidebar #accountList{padding-top:12px;border-top:1px solid #263b48}
.manual-sidebar #addAccount{margin-top:17px;min-height:42px;border:1px dashed #3a5564;border-radius:9px;background:transparent;color:#a2c7ba;font-size:12px;box-shadow:none}
.manual-sidebar #addAccount:hover{background:#193329;border-color:#65ac8d}
.manual-sidebar .local-note{margin-top:24px;padding-top:16px;font-size:11px;color:#7891a3}
.manual-sidebar #sampleButton,.manual-sidebar #emptyButton{background:none;border:0;padding:6px 2px;color:#9cb7c9;font-size:11px;text-align:left}
#accountDialog{width:min(620px,94vw);background:#0f1d28;border:1px solid #385263;border-radius:16px;padding:22px 24px;box-shadow:0 24px 80px #0007}#accountDialog .dialog-head{margin-bottom:18px}#accountDialog h2{font-size:22px}#accountDialog label{margin:12px 0 8px;font-size:12px;color:#a1b8c7}#accountDialog input,#accountDialog select{width:100%;min-height:43px;background:#142632;border-color:#304b5b;border-radius:8px;padding:10px 12px}#accountDialog .account-date-field{position:relative;background:#142632;border:1px solid #304b5b;border-radius:8px}#accountDialog #accountStart{border:0;background:transparent;color:transparent;cursor:pointer}#accountWeekday{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:14px;color:#e2edf5;font-weight:600}#accountDialog .fx-reference{background:#132a30;border-color:#2d4c4f;border-radius:10px;margin:16px 0;padding:12px}#accountDialog .fx-reference b{font-size:12px;color:#a0d8c2}#accountDialog .form-actions{justify-content:flex-end;padding-top:14px;border-top:1px solid #2b414f}#accountDialog .primary{min-width:125px;padding:10px 18px;border-radius:9px}#accountDialog .muted{font-size:11px}@media(max-width:720px){#accountDialog{width:calc(100% - 20px);padding:18px 16px}#accountDialog h2{font-size:20px}}
/* Compact account creation without hiding controls on small screens. */
#accountDialog{width:min(680px,94vw);max-height:calc(100dvh - 32px);padding:18px 22px}#accountForm{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}#accountForm>.dialog-head,#accountForm>.account-date-field,#accountForm>label[for="accountStart"],#accountForm>.fx-reference,#accountForm>p,#accountForm>.form-actions{grid-column:1/-1}#accountDialog .dialog-head{margin-bottom:5px}#accountDialog label{margin:8px 0 5px;gap:5px}#accountDialog input,#accountDialog select{min-height:38px;padding:8px 10px}#accountDialog .fx-reference{margin:10px 0 5px;padding:10px 12px}#accountDialog .fx-reference p{margin:5px 0;font-size:12px}#accountDialog .fx-reference small{margin-top:5px;font-size:10px;line-height:1.5}#accountDialog .fx-reference button{padding:6px 10px;margin-top:2px;margin-bottom:2px}#accountDialog>.muted,#accountForm>p.muted{margin:7px 0;line-height:1.65}#accountInitialHint{color:#bad9cb}#accountDialog .form-actions{margin-top:8px;padding-top:10px}#accountError:empty{display:none}@media(max-width:420px){#accountDialog{padding:15px 14px}#accountForm{column-gap:10px}#accountDialog input,#accountDialog select{font-size:13px}#accountDialog .fx-reference small{font-size:10px}}
.managed-account{padding:14px;margin:12px 0;border:1px solid #304957;border-radius:10px;background:#10212c}.managed-account .section-heading{margin-bottom:10px}.managed-account small{font-size:11px;color:#91c6b2}.managed-account label{margin:10px 0}.managed-account input,.managed-account select{width:100%}.manage-actions{display:flex;flex-wrap:wrap;gap:8px}.manage-actions button,.managed-account>button{font-size:12px}#accountManager h2,#deleteAccountDialog h2{font-size:21px}#confirmAccountDelete{border-color:#99515b;color:#ffabb3}#manageAccounts{font-size:12px;background:transparent}
#accountManager{width:min(700px,94vw);padding:20px;background:#0f1d28;border-radius:14px}#accountManager .dialog-head{margin-bottom:8px}#accountManager>.muted{margin:6px 0 12px;font-size:11px}#accountManager .managed-account{padding:11px 12px;margin:9px 0;border-radius:10px;background:#122430;border-color:#2b4351}#accountManager .section-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin-bottom:8px}#accountManager .section-heading small{flex:1;font-size:10px}#accountManager .manage-currency{font-size:10px;color:#a6cbbc;background:#203b35;border:1px solid #35584b;padding:2px 6px;border-radius:4px}#accountManager .manage-row{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:8px;margin-top:7px}#accountManager .manage-row input,#accountManager .manage-row select{min-width:0;padding:7px 10px;font-size:12px;height:35px;border-radius:7px}#accountManager button{font-size:11px;padding:6px 9px;border-radius:7px}#accountManager .manage-delete{background:transparent;border-color:transparent}#accountManager .manage-delete:hover{background:#3b242c;border-color:#65414b}@media(max-width:720px){#accountManager{padding:16px 12px}#accountManager .managed-account{padding:10px}#accountManager .manage-row{grid-template-columns:minmax(0,1fr) 72px;gap:6px}#accountManager .section-heading{gap:5px}#accountManager button{padding:6px;font-size:11px}}
@media(min-width:721px){main.manual-layout>.manual-sidebar{position:sticky;top:0;align-self:start;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#355163 transparent}}

.daily-table .inline-flow-editor{display:inline-flex;gap:8px;align-items:center;white-space:nowrap}.daily-table .inline-flow-editor label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.daily-table .inline-flow-editor .inline-amount{width:104px}.daily-table tr:not(.inline-active) .inline-flow-editor{display:none}

.balance-review{display:block;white-space:normal;min-width:130px;max-width:240px;color:#f1c477;font-size:11px;line-height:1.5;margin-top:5px}#inlineBalanceNote{font-size:12px;line-height:1.6}

/* Editable cells highlight on hover or active editing only. */
.daily-table tr:not(.inline-active) td:has(> [data-activate]){cursor:pointer;transition:background-color .15s ease;}

.daily-table tr:not(.inline-active) td:has(> [data-activate]):hover{background:rgba(105,183,176,.16);}
.daily-table td:has(> [data-activate])>.inline-value{width:100%;min-height:32px;border-radius:0;text-decoration:none;}
.daily-table td:has(> [data-activate]):focus-within{box-shadow:inset 0 0 0 1px #65bca7;}

.daily-table .inline-memo{display:block;width:5.2em;max-width:5.2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:0;background:transparent;color:var(--muted);padding:7px 0;font:inherit;box-shadow:none}.daily-table .inline-memo:hover{background:transparent;color:inherit}.daily-table .inline-memo:focus-visible{outline:1px solid #65bca7}#memoDialog{width:min(540px,94vw);padding:22px}#memoTitle{font-size:20px}#memoText{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:140px;max-height:45vh;padding:12px;border:1px solid #385468;border-radius:8px;background:#0b1924;color:#e2edf5;font:inherit;line-height:1.6}#memoForm .form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}#memoError:empty{display:none}

.daily-table tr:not(.inline-active) .memo-cell:has(.inline-memo){cursor:pointer;transition:background-color .15s ease}.daily-table tr:not(.inline-active) .memo-cell:has(.inline-memo):hover{background:rgba(105,183,176,.16)}.daily-table .memo-cell:focus-within{box-shadow:inset 0 0 0 1px #65bca7}#memoText[hidden],#memoLabel[hidden],#memoRead[hidden],#memoCancel[hidden],#memoSave[hidden],#memoEdit[hidden]{display:none}.memo-read{white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto;line-height:1.7;padding:14px;background:#0b1924;border:1px solid #2b4351;border-radius:8px;color:#e2edf5}

.daily-table .memo-cell .inline-memo{margin-left:auto;text-align:right;color:var(--muted)}.daily-table .memo-cell .inline-memo:hover{color:var(--muted)}.daily-table .memo-cell .inline-memo.has-memo{color:inherit}

/* Monthly journal: shared palette, compact controls and clear saved/draft states. */

#tableView>.panel{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}#tableView .section-heading{margin-bottom:5px;align-items:center}#tableView .section-heading h3{font-size:16px}.table-period{color:var(--muted);font-size:12px;white-space:nowrap}.table-scope-help{color:var(--muted);font-size:12px;margin:4px 0 14px;line-height:1.7}#tableView .inline-toolbar{padding:10px 12px;margin:0 0 12px;border:1px solid #293f4c;background:#0d1923;border-radius:8px;gap:8px}#tableView .inline-toolbar button{padding:8px 12px;white-space:nowrap}#tableView #inlineStatus{font-size:12px;line-height:1.6;color:var(--muted)}#tableView #inlineStatus.has-changes{color:#a8e2cb}.table-help{font-size:12px;color:var(--muted);margin:0 0 14px}.table-help summary{cursor:pointer;width:fit-content;color:#a4bac8;padding:4px 0}.table-help-body{padding:6px 12px;border-left:2px solid #345247;margin:7px 0}.table-help p{margin:6px 0;line-height:1.8}.table-help #inlineFxNote{font-size:11px}.table-mobile-hint{display:none}
#tableView .table-scroll{border:1px solid #263b48;border-radius:8px;scrollbar-width:thin;scrollbar-color:#355163 #0d1923}#tableView .daily-table th{background:#13232f;padding:13px 10px;font-weight:500}#tableView .daily-table td{height:48px;padding:7px 10px}#tableView .daily-table td:first-child{z-index:1}#tableView .daily-table th:first-child{z-index:2}#tableView .daily-table tr:last-child td{border-bottom:0}#tableView .daily-table [data-edit]{font-size:11px;padding:5px 7px;white-space:nowrap}#tableView .inline-row-status{font-size:11px}#tableView .inline-amount{min-height:34px}#tableView .inline-flow-editor{gap:6px}
@media(max-width:720px){#tableView>.panel{padding:12px;border-radius:8px}#tableView .section-heading{gap:5px}#tableView .section-heading h3{font-size:14px}#tableView .journal-scope-inline{display:block;margin-left:0;font-size:11px}.table-scope-help{font-size:11px;margin-bottom:10px}#tableView .inline-toolbar{padding:9px}#tableView .inline-toolbar span{flex-basis:100%;min-width:0}#tableView .inline-toolbar button{font-size:11px}#tableView #inlineSave{margin-left:auto}#tableView .inline-toolbar:has(#inlineCancel:not([hidden])) #inlineCancel{margin-left:auto}#tableView .inline-toolbar:has(#inlineCancel:not([hidden])) #inlineSave{margin-left:0}.table-mobile-hint{display:block;color:var(--muted);font-size:10px;margin:5px 0 8px}#tableView .daily-table th,#tableView .daily-table td{padding:8px}#tableView .daily-table th{font-size:10px}}

#memoDelete{margin-right:auto;color:#f0a1ab;background:transparent;border-color:#60434a}#memoDelete:hover{background:#38232b}

#tableInputHelp{margin:0 0 12px;font-size:11px;line-height:1.7;color:var(--muted)}#tableInputHelp p{margin:3px 0}#tableInputHelp #inlineFxNote{font-size:11px}

.graph-readout{min-height:55px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:var(--muted);padding:8px 10px;margin-bottom:10px;background:#0d1923;border-radius:7px}.graph-readout b{color:var(--text)}.graph-readout strong{margin-left:5px;color:var(--text);font-variant-numeric:tabular-nums}.journal-graph svg{display:block;width:100%;height:380px;min-height:0;touch-action:pan-y}.journal-graph svg:focus-visible{outline:1px solid #63cfb0;outline-offset:4px}@media(max-width:720px){.graph-readout{min-height:80px;font-size:11px;gap:4px 10px}.graph-readout b{flex-basis:100%}.journal-graph svg{height:320px}.graph-switch button{font-size:11px;padding:8px}}

.graph-switch{flex-wrap:wrap}@media(max-width:720px){#graphView .section-heading{align-items:flex-start}#graphView .graph-switch{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#graphView .graph-switch button{white-space:nowrap;padding:8px 4px}}

.graph-readout>span{white-space:nowrap}@media(max-width:720px){.graph-readout>span{flex-basis:100%;white-space:normal}}

#graphRangeButtons{display:inline-flex;gap:8px}.month-tools .active{background:#205448;border-color:#4b927a;color:#c2ffe8}.graph-range-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 14px;margin:-4px 0 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.graph-range-form label{display:flex;flex-direction:column;gap:5px;font-size:12px}.graph-range-form>span{align-self:center}.graph-range-form button{padding:10px 16px}.graph-range-form p{width:100%;margin:0;font-size:12px}.graph-range-form p:empty{display:none}.graph-range-label{font-size:12px;color:var(--muted);margin:0 0 12px}@media(max-width:720px){#graphRangeButtons{gap:6px}.graph-range-form{gap:8px}.graph-range-form label{flex:1;min-width:115px}.graph-range-form input{width:100%;font-size:12px}.graph-range-label{font-size:11px}}

/* Pointer selection must not show the browser default SVG focus ring. */
.journal-graph svg:focus:not(:focus-visible){outline:none;box-shadow:none}
.journal-graph svg:focus-visible{outline:1px solid #63cfb0;outline-offset:4px}

.journal-chart-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;font-size:12px;color:var(--muted)}.journal-chart-tools button{font-size:11px;padding:7px 10px;white-space:nowrap}#journalChartHost{height:430px;border:1px solid #263b48;border-radius:8px;overflow:hidden;position:relative}#journalChartHost:focus:not(:focus-visible){outline:none}#journalChartHost:focus-visible{outline:1px solid #63cfb0;outline-offset:3px}@media(max-width:720px){#journalChartHost{height:340px}.journal-chart-tools{font-size:10px;gap:6px}.journal-chart-tools button{font-size:10px}}

#month.month-display-empty{color:transparent;-webkit-text-fill-color:transparent;opacity:1}#month.month-display-empty::-webkit-datetime-edit{visibility:hidden}#month.month-display-empty::-webkit-calendar-picker-indicator{visibility:hidden}

/* Shared controls: identical across calendar, journal, graphs and notes. */
.manual-workspace .month-tools>button,.manual-workspace .month-tools>input,.manual-workspace .month-tools>select,#graphRangeButtons>button{height:44px}.manual-workspace .month-tools>input{width:154px}.manual-workspace .month-tools>select{min-width:220px}.manual-workspace .summary strong{font-variant-numeric:tabular-nums}.manual-workspace .summary>div{min-width:0}.manual-workspace .summary label{line-height:1.6}
/* Graph-only panel and information hierarchy. */
#graphView>.panel{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}#graphView>.panel>.section-heading{align-items:center;flex-wrap:wrap;margin-bottom:16px;gap:14px}#graphTitle{font-size:18px;line-height:1.5}.graph-heading-copy{min-width:0}.graph-scope{font-size:11px;color:var(--muted);line-height:1.6;margin:5px 0 0;overflow-wrap:anywhere}#graphView .graph-switch{display:flex;width:auto;padding:4px;gap:3px;border:1px solid #2a3e4b;border-radius:9px;background:#0b1720}#graphView .graph-switch button{padding:8px 13px;min-height:36px;font-size:12px;border:1px solid transparent;background:transparent;color:#9db2c0;border-radius:6px;white-space:nowrap}#graphView .graph-switch button.active{background:#20493f;border-color:#3e7a67;color:#c9f7e8}#graphView .graph-switch button:hover:not(.active){background:#192c38;color:var(--text)}
#graphView .graph-readout{display:grid;grid-template-columns:145px repeat(2,minmax(0,1fr));align-items:stretch;gap:0;padding:0;margin:0 0 14px;border:1px solid #2a3e4b;border-radius:8px;overflow:hidden;min-height:82px;background:#0d1923}#graphView .graph-readout-assets{grid-template-columns:145px repeat(3,minmax(0,1fr))}#graphView .graph-readout>b{display:flex;align-items:center;padding:14px;font-size:12px;line-height:1.7;background:#13242f;color:#bcd3df}#graphView .graph-readout>span{display:block;white-space:normal;padding:12px 15px;border-left:1px solid #263b48;font-size:11px;line-height:1.8;min-width:0;overflow-wrap:anywhere}#graphView .graph-readout>span>strong{display:block;font-size:17px;margin:2px 0 0;font-weight:650;letter-spacing:-.2px}#graphView .graph-readout>span>span{font-size:12px;font-variant-numeric:tabular-nums}#graphView .journal-chart-tools{margin:0 0 10px;line-height:1.6;font-size:11px}#graphView .journal-chart-tools button{background:#152632;border:1px solid #304a5b;color:#c2d6e3;border-radius:6px;min-height:32px}#graphCaption{padding-top:12px;margin:14px 0 0;border-top:1px solid var(--line);font-size:11px;line-height:1.8}.graph-range-form{align-items:end}.graph-range-label{line-height:1.6}#graphRangeButtons>button{white-space:nowrap}
@media(max-width:1100px){#graphView .graph-readout,#graphView .graph-readout-assets{grid-template-columns:repeat(3,minmax(0,1fr))}#graphView .graph-readout:not(.graph-readout-assets){grid-template-columns:repeat(2,minmax(0,1fr))}#graphView .graph-readout>b{grid-column:1/-1;padding:8px 12px;border-bottom:1px solid #263b48}#graphView .graph-readout>span:nth-child(2){border-left:0}}
@media(max-width:720px){.manual-workspace .month-tools>input{width:150px}.manual-workspace .month-tools>select{min-width:0;width:100%}#graphView>.panel{padding:12px}#graphTitle{font-size:16px}#graphView .graph-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}#graphView .graph-switch button{font-size:11px;padding:7px 5px}#graphView .graph-readout>span{padding:10px;font-size:10px}#graphView .graph-readout>span>strong{font-size:14px}#graphView .graph-readout>span>span{font-size:11px}#graphView .graph-readout-assets{grid-template-columns:repeat(2,minmax(0,1fr))}#graphView .graph-readout-assets>span:nth-child(2){grid-column:1/-1;border-bottom:1px solid #263b48}#graphView .graph-readout-assets>span:nth-child(3){border-left:0}#graphView .journal-chart-tools{font-size:10px;align-items:center}#graphView .journal-chart-tools>span{max-width:65%}#journalChartHost{height:330px}.graph-range-form>button{margin-left:auto}}

.manual-workspace>.summary{grid-auto-rows:minmax(108px,auto)}.manual-workspace>.summary strong{height:auto;line-height:1.45}.manual-workspace>.summary label{height:auto}@media(max-width:720px){.manual-workspace>.summary{grid-auto-rows:minmax(100px,auto)}}

#graphView .graph-readout{min-height:66px}#graphView .graph-readout>b{padding:10px 14px}#graphView .graph-readout>span{padding:8px 14px;line-height:1.6}#graphView .graph-readout .graph-value-pair{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;margin-top:2px}#graphView .graph-readout .graph-value-pair>strong{font-size:17px;margin:0;line-height:1.4;font-weight:650;letter-spacing:-.2px}#graphView .graph-readout .graph-value-pair>span{font-size:12px;white-space:nowrap}@media(max-width:720px){#graphView .graph-readout>b{padding:6px 10px}#graphView .graph-readout>span{padding:7px 10px}#graphView .graph-readout .graph-value-pair>strong{font-size:14px}#graphView .graph-readout .graph-value-pair>span{font-size:11px}}

.notes-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 10px}.notes-types{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#0d1923}.notes-types button{border-color:transparent;background:transparent;font-size:12px;padding:8px 12px}.notes-types button.active{background:#20493f;color:#c9f7e8;border-color:#3e7a67}#noteSort{margin-left:auto;font-size:12px}#noteSearchToggle{font-size:12px}#notesCount{margin:10px 0}.notes-board-head,.memo-day>summary{display:grid;grid-template-columns:155px minmax(0,1fr) 86px 55px;gap:14px;align-items:center}.notes-board-head{padding:10px 16px;color:var(--muted);font-size:11px;border-bottom:1px solid #304654}.memo-day{border-bottom:1px solid #263b48;background:#101c27}.memo-day>summary{padding:16px;cursor:pointer;list-style:none;font-size:12px}.memo-day>summary::-webkit-details-marker{display:none}.memo-day>summary:hover{background:#152a34}.memo-day>summary b{font-size:12px;font-weight:500}.memo-preview{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#a9bdc9}.memo-day small{color:var(--muted);font-size:11px}.memo-expand{color:#98cdbb;text-align:right;font-size:11px}.memo-expand::after{content:'펼치기 ▾'}.memo-day[open] .memo-expand::after{content:'접기 ▴'}.memo-day-body{padding:0 16px 14px}.memo-section{padding:14px;margin:8px 0;border:1px solid #273d4b;background:#0d1923;border-radius:7px}.memo-section.day-common{border-left:3px solid #458e77}.memo-section .section-heading{margin:0 0 8px}.memo-section h3{font-size:13px;font-weight:600}.memo-section h3 small{margin-left:8px}.memo-section p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px;margin:0}.memo-actions{display:flex;gap:6px}.memo-actions button,.memo-day-empty button{font-size:11px;padding:5px 9px}.memo-delete{color:#e5a1ad;background:transparent;border-color:#61434b}.memo-day-empty{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;padding:10px 0}#noteSearchBox .note-search{margin:12px 0}@media(max-width:720px){.notes-toolbar{gap:8px}.notes-types{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.notes-types button{padding:7px;font-size:11px}#noteSort{margin-left:0;flex:1}.notes-board-head{display:none}.memo-day>summary{grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:13px 10px}.memo-day>summary b{font-size:11px}.memo-preview{grid-row:2;grid-column:1/-1;font-size:11px}.memo-day-body{padding:0 8px 8px}.memo-section{padding:11px}.memo-section .section-heading{flex-wrap:wrap;gap:7px}.memo-section h3{font-size:12px}.memo-section p{font-size:12px}.memo-actions{margin-left:auto}}

/* Shared title spacing for every manual journal view. */
.manual-workspace .manual-heading{margin:20px 0}.manual-workspace .manual-heading h2{margin:0}

/* Notices must remain visible above modal dialogs, including on narrow screens. */
#toast{inset:auto auto max(24px,env(safe-area-inset-bottom)) 50%;margin:0;border:1px solid #4b806b;box-sizing:border-box;width:max-content;max-width:calc(100vw - 32px);line-height:1.7;text-align:center;box-shadow:0 8px 28px #0005;pointer-events:none;overflow-wrap:anywhere}#toast::backdrop{background:transparent;pointer-events:none}

#toast{white-space:pre-line}

@media(max-width:720px){
 .manual-calendar .calendar-day{min-width:0;min-height:84px;padding:8px 2px!important;gap:8px}
 .manual-calendar .calendar-day strong{font-size:0!important;white-space:nowrap;word-break:normal;overflow-wrap:normal;max-width:100%}
 .manual-calendar .calendar-day strong::after{content:attr(data-compact);font-size:10px;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
 .manual-calendar .calendar-day small{font-size:0!important;white-space:nowrap;word-break:normal;overflow-wrap:normal}
 .manual-calendar .calendar-day small::after{content:attr(data-compact);font-size:9px;letter-spacing:-.4px}
}

/* Mobile daily balances: reuse the editable table cells as date cards. */
@media(max-width:720px){
 #tableView>.panel{padding:0!important;border:0;background:transparent}
 #tableView .section-heading{align-items:flex-start;gap:8px;margin:20px 0 12px}
 #tableView .section-heading h3{font-size:18px;line-height:1.5;margin:0}
 #tableView #dailyScope{display:block;font-size:11px;margin:4px 0 0;color:#94b2c2}
 #tableView .table-period{font-size:11px;white-space:nowrap;padding-top:5px}
 #tableView .table-scope-help{font-size:11px;line-height:1.7;margin:0 0 12px}
 #tableView .table-mobile-hint{display:none}
 #tableView .inline-toolbar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:8px;padding:10px;margin:0 0 12px;background:#10232e;border:1px solid #2a4655;border-radius:10px;box-shadow:0 4px 12px #0002}
 #tableView #inlineStatus{flex:1 0 100%;min-width:0;font-size:11px;line-height:1.6}
 #tableView .inline-toolbar button{flex:1;min-height:42px;font-size:12px;margin:0}
 #tableView .table-help{font-size:11px;line-height:1.7;padding:0 2px;margin:10px 0 14px}
 #tableView .table-help p{margin:5px 0}
 #tableView .table-scroll{overflow:visible;border:0;background:transparent}
 #tableView .daily-table{display:block;width:100%;min-width:0!important;white-space:normal}
 #tableView .daily-table thead{display:none}
 #tableView #dailyRows{display:grid;gap:12px}
 #tableView #dailyRows>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0 12px 10px;background:#10212c;border:1px solid #2a404e;border-radius:12px;overflow:hidden}
 #tableView #dailyRows>tr.inline-dirty{border-color:#599b81}
 #tableView #dailyRows>tr.inline-active{background:#132b33;box-shadow:inset 3px 0 #5bab8e}
 #tableView #dailyRows td{position:static;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;width:auto!important;padding:11px 6px!important;border:0!important;background:transparent!important;text-align:left;box-shadow:none!important;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 #tableView #dailyRows td::before{content:attr(data-label);font-size:10px;font-weight:400;color:#89a8b9;line-height:1.5;margin-bottom:5px;white-space:normal}
 #tableView #dailyRows td[data-field=date]{grid-column:1;grid-row:1;border-bottom:1px solid #2a404e!important;padding:10px 0!important}
 #tableView #dailyRows td[data-field=date] button{min-height:36px;padding:5px 8px;font-size:13px;font-weight:600}
 #tableView #dailyRows td[data-field=status]{grid-column:2;grid-row:1;align-items:flex-end;border-bottom:1px solid #2a404e!important;padding:10px 0!important}
 #tableView #dailyRows td[data-field=date]::before,#tableView #dailyRows td[data-field=status]::before{display:none}
 #tableView .inline-row-status{font-size:10px;padding:4px 7px;border-radius:5px;background:#1a333c;color:#9cbbc8}
 #tableView #dailyRows td[data-field=profit]{grid-column:1;grid-row:2;font-size:16px;font-weight:650}
 #tableView #dailyRows td[data-field=rate]{grid-column:2;grid-row:2;font-size:16px;font-weight:650}
 #tableView #dailyRows td[data-field=memo]{grid-column:1/-1;border-top:1px solid #253c49!important;margin-top:5px;padding:10px 0 0!important;white-space:normal}
 #tableView .inline-memo{width:100%;max-width:none;min-height:40px;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:12px;padding:9px 10px}
 #tableView .inline-value{max-width:100%;min-height:36px;padding:6px 7px;font-size:13px;text-align:left;white-space:nowrap}
 #tableView .inline-amount{width:100%;min-width:0!important;max-width:100%;min-height:42px;padding:8px 6px!important;font-size:13px;box-sizing:border-box}
 #tableView .inline-flow-editor,#tableView .inline-fx-editor{width:100%;min-width:0;flex-direction:column;align-items:stretch;gap:7px}
 #tableView .inline-flow-editor label{min-width:0;display:flex;flex-direction:column;gap:3px;font-size:10px}
 #tableView .inline-fx{min-height:36px;white-space:normal;font-size:11px}
}

/* Desktop fixed cell heights must not constrain the mobile editors. */
@media(max-width:720px){
 #tableView #dailyRows td{height:auto!important;min-height:0;align-self:stretch;justify-content:flex-start;box-sizing:border-box}
 #tableView #dailyRows td::before{flex-shrink:0}
 #tableView #dailyRows td>input,#tableView #dailyRows td>span,#tableView #dailyRows td>button{flex-shrink:0}
 #tableView #dailyRows>tr{grid-auto-rows:auto;align-items:stretch}
 #tableView #dailyRows>tr.inline-active td[data-field=flow]{grid-column:1/-1}
 #tableView #dailyRows>tr.inline-active .inline-flow-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
 #tableView #dailyRows>tr.inline-active .inline-fx-editor{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 #tableView #dailyRows>tr.inline-active .inline-flow-editor label{margin:0;align-items:stretch;gap:6px}
 #tableView #dailyRows>tr.inline-active .inline-amount{height:42px;min-height:42px;flex-shrink:0;margin:0}
 #tableView #dailyRows>tr.inline-active .inline-fx{height:auto;min-height:36px;flex-shrink:0}
}

.card-edit-actions{display:none}
@media(max-width:720px){
 #tableView #inlineSave,#tableView #inlineCancel{display:none!important}
 #tableView .inline-toolbar{position:static;box-shadow:none}
 #tableView #tableInputHelp p{display:none}
 #tableView #tableInputHelp::after{content:'마감잔액·환율·순입출금을 누르면 수정할 수 있습니다.';display:block;white-space:pre-line;line-height:1.8}
 #tableView #dailyRows td.card-edit-actions{display:none!important}
 #tableView #dailyRows>tr:is(.inline-active,.inline-dirty) td.card-edit-actions{display:flex!important;grid-column:1/-1;flex-direction:row;gap:8px;border-top:1px solid #2a4350!important;padding:12px 0 2px!important;margin-top:10px}
 #tableView #dailyRows td.card-edit-actions::before{display:none}
 #tableView .card-edit-actions button{flex:1;min-width:0;min-height:44px;padding:10px;font-size:12px;border-radius:8px}
}

.memo-card-label{display:none}
@media(max-width:720px){
 #tableView #dailyRows{gap:10px}
 #tableView #dailyRows>tr{padding:0 10px 8px;border-radius:11px}
 #tableView #dailyRows td{padding:7px 6px!important;line-height:24px;font-size:13px}
 #tableView #dailyRows td::before{line-height:15px;margin-bottom:3px;letter-spacing:-.15px}
 #tableView #dailyRows td[data-field=date],#tableView #dailyRows td[data-field=status]{padding:7px 0!important;justify-content:center}
 #tableView #dailyRows td[data-field=date] button{min-height:32px;padding:4px 8px;font-size:12px}
 #tableView #dailyRows td:is([data-field=profit],[data-field=rate]){padding-top:9px!important;padding-bottom:9px!important;font-size:16px;line-height:24px}
 #tableView #dailyRows .card-balance-value,#tableView #dailyRows .inline-value{display:block;box-sizing:border-box;min-height:24px;height:24px;line-height:24px;margin:0;padding:0!important;text-align:left;font-size:13px;border:0;border-radius:0}
 #tableView #dailyRows tr.inline-active .inline-value{display:none}
 #tableView #dailyRows tr.inline-active .card-balance-value{height:42px;line-height:42px}
 #tableView #dailyRows tr:not(.inline-active) .inline-value{width:100%;text-decoration:none}
 #tableView #dailyRows td[data-field=memo]{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:7px 0 0!important;margin-top:4px;min-height:40px}
 #tableView #dailyRows td[data-field=memo]::before{margin:0;font-size:11px;flex-shrink:0}
 #tableView #dailyRows .inline-memo{width:auto;max-width:70%;min-height:32px;padding:5px 10px;border:1px solid #304b59;border-radius:7px;background:#162d37;color:#a7c6d5;font-size:11px;line-height:20px;white-space:nowrap}
 #tableView #dailyRows .inline-memo.has-memo{background:#193a32;border-color:#365f50;color:#aee6cf}
 #tableView .memo-preview-text{display:none}
 #tableView .memo-card-label{display:inline}
 #tableView #dailyRows>tr.inline-active td[data-field=fx]{grid-column:1/-1}
 #tableView #dailyRows>tr.inline-active .inline-fx-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
 #tableView #dailyRows>tr.inline-active .inline-fx{height:42px;padding:7px 12px;min-width:80px}
 #tableView #dailyRows>tr:is(.inline-active,.inline-dirty) td.card-edit-actions{padding:8px 0 0!important;margin-top:6px}
}

/* Subtle field panels give compact mobile cards a clear internal structure. */
@media(max-width:720px){
 #tableView #dailyRows>tr{column-gap:8px;row-gap:6px;padding:0 10px 8px;background:#10212c}
 #tableView #dailyRows td:is([data-field=opening],[data-field=closing],[data-field=fx],[data-field=flow],[data-field=profit],[data-field=rate]){padding:7px 9px!important;background:#0c1b25!important;border:1px solid #243b49!important;border-radius:8px;box-shadow:inset 0 1px 0 #ffffff03!important}
 #tableView #dailyRows td:is([data-field=profit],[data-field=rate]){background:#142a33!important;border-color:#2b4653!important;padding:7px 9px!important}
 #tableView #dailyRows td:is([data-field=date],[data-field=status]){border-bottom:0!important;padding:7px 0 2px!important}
 #tableView #dailyRows td[data-field=memo]{margin-top:0;padding:6px 0 0!important;border-top:1px solid #29404c!important}
 #tableView #dailyRows>tr.inline-active td:is([data-field=closing],[data-field=fx],[data-field=flow]){background:#122a32!important;border-color:#3a625f!important}
 #tableView #dailyRows td:focus-within:not([data-field=date]):not([data-field=memo]):not(.card-edit-actions){border-color:#68aa92!important}
 #tableView #dailyRows .inline-amount{background:#0b1b24;border-color:#355562}
 #tableView #dailyRows td::before{color:#94afbe}
}

.chart-date-nav{display:none}
@media(max-width:720px){
 :is(.journal-graph-page,.journal-notes-page) .month-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:0;margin:14px 0 10px;background:transparent;border:0;border-radius:0}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #prevMonth{grid-column:1;grid-row:1}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #month{grid-column:2/6;grid-row:1;width:100%;text-align:center}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #nextMonth{grid-column:6;grid-row:1}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #thisMonth{grid-column:1/3;grid-row:2}
 :is(.journal-graph-page,.journal-notes-page) #graphRangeButtons:not([hidden]){display:contents}
 :is(.journal-graph-page,.journal-notes-page) #graphAll{grid-column:3/5;grid-row:2}
 :is(.journal-graph-page,.journal-notes-page) #graphCustom{grid-column:5/7;grid-row:2}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #accountFilter{grid-column:1/-1;grid-row:3;margin:1px 0 0;width:100%}
 :is(.journal-graph-page,.journal-notes-page) .month-tools button,:is(.journal-graph-page,.journal-notes-page) .month-tools input,:is(.journal-graph-page,.journal-notes-page) .month-tools select{min-width:0;min-height:40px;font-size:12px;padding:8px}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px;margin:0 0 10px}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form label{min-width:0;font-size:11px}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form>span{display:none}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form button,:is(.journal-graph-page,.journal-notes-page) .graph-range-form p{grid-column:1/-1;width:100%}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form input{min-height:40px;min-width:0}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-label{font-size:10px;margin:8px 2px 12px}
 :is(.journal-graph-page,.journal-notes-page) .manual-workspace>.summary{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:8px;background:transparent;padding:0;margin:0 0 10px}
 :is(.journal-graph-page,.journal-notes-page) .manual-workspace>.summary>div{min-height:80px;padding:11px!important;border:1px solid #293e4b;border-radius:9px;background:#10212c}
 :is(.journal-graph-page,.journal-notes-page) .manual-workspace>.summary strong{font-size:18px;line-height:1.5;white-space:nowrap;letter-spacing:-.5px}
 :is(.journal-graph-page,.journal-notes-page) .summary label{font-size:10px}
 :is(.journal-graph-page,.journal-notes-page) .calculation-note{font-size:10px;line-height:1.7;margin:10px 0 16px}
 #graphView>.panel{padding:10px;border-radius:12px}
 #graphView>.panel>.section-heading{gap:10px;margin-bottom:12px}
 #graphView .graph-scope{font-size:10px;margin:3px 0 0}
 #graphView .graph-switch{padding:3px;gap:2px;border-radius:9px}
 #graphView .graph-switch button{min-height:40px;padding:6px 2px;font-size:11px}
 #graphView .graph-readout,#graphView .graph-readout-assets{display:flex;flex-direction:column;min-height:0;margin-bottom:10px}
 #graphView .graph-readout>b{display:block;padding:7px 10px;font-size:11px;border-bottom:1px solid #293e4b}
 #graphView .graph-readout>span,#graphView .graph-readout-assets>span:nth-child(2){display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-basis:auto;padding:7px 10px;border:0;border-bottom:1px solid #213642;font-size:10px;line-height:1.6}
 #graphView .graph-readout>span:last-child{border-bottom:0}
 #graphView .graph-readout .graph-value-pair{display:flex;justify-content:flex-end;gap:2px 5px;margin:0;min-width:0}
 #graphView .graph-readout .graph-value-pair>strong,#graphView .graph-readout>span>strong{font-size:13px;white-space:nowrap;margin:0}
 #graphView .graph-readout .graph-value-pair>span{font-size:10px}
 #graphView .journal-chart-tools{display:grid;grid-template-columns:1fr auto;gap:6px;margin:0 0 8px}
 #graphView #journalChartHint{grid-column:1/-1;max-width:none;font-size:10px}
 #graphView .chart-date-nav{display:flex;gap:6px;max-width:none}
 #graphView .journal-chart-tools button{min-height:36px;font-size:10px;padding:6px 10px}
 #graphView .chart-date-nav button{width:40px;font-size:18px;padding:0}
 #journalChartHost{height:290px;border-radius:8px}
 #graphCaption{font-size:10px;line-height:1.7;padding-top:10px;margin-top:10px}
}

#notesCount strong{font-weight:500}#notesCount .notes-count-help{margin-left:8px}
@media(max-width:720px){
 #notesView .notes-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;margin:14px 0 10px;background:#10212c;border:1px solid #293f4d;border-radius:11px}
 #notesView .notes-types{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;box-sizing:border-box;padding:3px;gap:2px;border-radius:8px}
 #notesView .notes-types button{min-width:0;min-height:40px;padding:6px 2px;font-size:11px;border-radius:6px;white-space:nowrap}
 #notesView #noteSort{min-height:40px;width:100%;margin:0;font-size:12px;padding:8px}
 #notesView #noteSearchToggle{min-height:40px;padding:8px 12px;font-size:12px}
 #notesView #noteSearchToggle[aria-expanded=true]{background:#20493f;border-color:#3e7a67;color:#c9f7e8}
 #notesView #noteSearchBox .note-search{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0 0 12px;padding:10px;border:1px solid #2d4857;border-radius:9px;background:#0e202b;font-size:11px}
 #notesView #noteSearch{width:100%;min-height:44px;font-size:14px;box-sizing:border-box}
 #notesView #notesCount{display:flex;flex-direction:column;gap:3px;margin:12px 2px;font-size:11px;line-height:1.6;color:#a7c0ce}
 #notesView #notesCount strong{font-size:12px;color:#c4dce7;font-weight:600}
 #notesView #notesCount .notes-count-help{margin:0;font-size:10px;color:#86a4b5}
 #notesView #notesList{display:grid;gap:10px}
 #notesView .memo-day{border:1px solid #2b4351;border-radius:11px;background:#10212c;overflow:hidden}
 #notesView .memo-day[open]{border-color:#3b655d}
 #notesView .memo-day>summary{grid-template-columns:minmax(0,1fr) auto auto;gap:9px 8px;padding:12px;min-height:72px;box-sizing:border-box}
 #notesView .memo-day>summary b{font-size:12px;font-weight:600;color:#d6e7ef;white-space:nowrap}
 #notesView .memo-day>summary>small{font-size:10px;padding:3px 6px;border:1px solid #2d4856;border-radius:5px;background:#182e39;white-space:nowrap}
 #notesView .memo-expand{font-size:10px;white-space:nowrap}
 #notesView .memo-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;text-overflow:ellipsis;line-height:1.7;font-size:12px;color:#9fbac9;grid-column:1/-1;grid-row:2}
 #notesView .memo-day[open]>summary{border-bottom:1px solid #2a414e;background:#132b32}
 #notesView .memo-day[open] .memo-preview{display:none}
 #notesView .memo-day-body{padding:2px 9px 9px}
 #notesView .memo-section{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:11px;margin:9px 0 0;border-color:#263e4d;border-radius:8px;background:#0c1b25}
 #notesView .memo-section.day-common{background:#122c2b;border-left:3px solid #518e76}
 #notesView .memo-section .section-heading{display:contents}
 #notesView .memo-section h3{grid-row:1;margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere;min-width:0;color:#c5dfeb}
 #notesView .memo-section h3 small{display:block;margin:2px 0 0;font-size:10px;color:#799cae}
 #notesView .memo-section p{grid-row:2;font-size:13px;line-height:1.8;overflow-wrap:anywhere;min-width:0}
 #notesView .memo-actions{grid-row:3;display:flex;justify-content:flex-end;gap:7px;margin:0;padding-top:8px;border-top:1px solid #253b46}
 #notesView .memo-actions button{min-height:40px;min-width:58px;font-size:11px;padding:8px 12px;border-radius:7px}
 #notesView .memo-day-empty{gap:10px;padding:11px 3px 3px;font-size:11px}
 #notesView .memo-day-empty button{min-height:40px;font-size:11px;padding:8px 10px}
 #notesView #notesList>.panel{padding:20px 14px;text-align:center;font-size:12px;line-height:1.8;border-radius:10px}
}

/* Calendar and monthly entry share an aligned, full-width mobile period row. */
@media(max-width:720px){
 body:not(.journal-graph-page):not(.journal-notes-page) .manual-workspace .month-tools{display:grid;grid-template-columns:40px minmax(0,1fr) 40px 78px;gap:8px;margin:14px 0;padding:0;align-items:stretch}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools #prevMonth{grid-column:1;grid-row:1}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools #month{grid-column:2;grid-row:1;width:100%;min-width:0;text-align:center;box-sizing:border-box}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools #nextMonth{grid-column:3;grid-row:1}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools #thisMonth{grid-column:4;grid-row:1}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools #accountFilter{grid-column:1/-1;grid-row:2;width:100%;min-width:0;margin:0}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools :is(button,input,select){height:44px;min-height:44px;margin:0;padding:8px;font-size:13px;border-radius:7px;box-sizing:border-box}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools #accountFilter{padding:8px 11px}
}
@media(max-width:360px){
 body:not(.journal-graph-page):not(.journal-notes-page) .manual-workspace .month-tools{grid-template-columns:34px minmax(0,1fr) 34px 66px;gap:6px}
 body:not(.journal-graph-page):not(.journal-notes-page) .month-tools :is(button,input){font-size:12px;padding:6px}
}

.period-mode-switch{display:contents}
@media(max-width:720px){
 :is(.journal-graph-page,.journal-notes-page) .manual-workspace .month-tools{grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;padding:10px;margin:14px 0 8px;border:1px solid #293f4d;border-radius:8px;background:#10212c}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #prevMonth{grid-column:1;grid-row:1}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #month{grid-column:2;grid-row:1}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #nextMonth{grid-column:3;grid-row:1}
 :is(.journal-graph-page,.journal-notes-page) .month-tools .period-mode-switch{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:3px;border:1px solid #2a3e4b;border-radius:8px;background:#0b1720;min-width:0}
 :is(.journal-graph-page,.journal-notes-page) .period-mode-switch #thisMonth,:is(.journal-graph-page,.journal-notes-page) .period-mode-switch #graphAll,:is(.journal-graph-page,.journal-notes-page) .period-mode-switch #graphCustom{grid-column:auto;grid-row:auto;height:34px;min-height:34px;padding:5px 2px;font-size:11px;border:1px solid transparent;border-radius:6px;background:transparent;color:#9db2c0;white-space:nowrap}
 :is(.journal-graph-page,.journal-notes-page) .period-mode-switch button.active{background:#20493f!important;border-color:#3e7a67!important;color:#c9f7e8!important}
 :is(.journal-graph-page,.journal-notes-page) .month-tools #accountFilter{grid-column:1/-1;grid-row:3;margin:0}
 :is(.journal-graph-page,.journal-notes-page) .month-tools :is(input,select),:is(.journal-graph-page,.journal-notes-page) .month-tools>button{min-height:38px;height:38px;padding:7px;font-size:11px;border-radius:6px;box-sizing:border-box}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form{border:1px solid #293f4d;border-radius:8px;background:#10212c;padding:10px;gap:8px}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form label{font-size:10px;gap:5px}
 :is(.journal-graph-page,.journal-notes-page) .graph-range-form input,:is(.journal-graph-page,.journal-notes-page) .graph-range-form button{min-height:38px;height:38px;min-width:0;padding:7px;font-size:11px;box-sizing:border-box;border-radius:6px}
}

.manual-sync-notice{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;border:1px solid #294a50;border-radius:8px;color:#9dc6c6;font-size:12px;line-height:1.7}.manual-sync-notice[hidden]{display:none}.manual-sync-notice.sync-error{border-color:#946350;color:#f5c5ab}.manual-sync-notice button{padding:7px 10px;font-size:11px;min-height:36px}.manual-saving button,.manual-saving input,.manual-saving select,.manual-saving textarea{pointer-events:none;opacity:.65}

/* Mobile journal titles share the service / current-view hierarchy. */
.manual-title-mobile{display:none}
@media(max-width:720px){
 .manual-workspace .manual-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:0 0 20px;align-items:center}
 .manual-heading>div{display:contents}
 .manual-heading #viewTitle{grid-column:1/-1;margin:0;min-width:0;padding:16px 0;min-height:58px;border-bottom:1px solid #263b48;line-height:24px;letter-spacing:-.35px}
 .manual-title-desktop{display:none}.manual-title-mobile{display:flex;align-items:center;gap:8px}
 .manual-crumb-parent{font-size:13px;font-weight:500;color:#93a8b7;flex-shrink:0}
 .manual-crumb-separator{font-size:16px;font-weight:400;color:#607c8d;flex-shrink:0}
 .manual-crumb-current{font-size:17px;font-weight:700;color:#e0e9ef;min-width:0}
 .manual-heading #viewScope{justify-self:start;margin:0;min-width:0;max-width:100%}
 .manual-heading #writeToday{justify-self:end;margin:0}
}
@media(max-width:380px){.manual-title-mobile{gap:6px}.manual-crumb-parent{font-size:12px}.manual-crumb-current{font-size:15px}}
