:root{--bg:#fbfdfd;--ink:#143c46;--green:#007d8c;--muted:#526f78;--line:#d7e9ed}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;line-height:1.7}button,input,textarea{font:inherit}button{border:0;background:var(--green);color:white;border-radius:9px;padding:11px 19px;cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #00808e;outline-offset:3px}h1{font-size:28px;letter-spacing:-1px;line-height:1.4}h2{font-size:16px;margin:0}p{color:var(--muted);font-size:13px}.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--green);color:white;font-size:25px}#gate{max-width:470px;margin:12vh auto;padding:38px;background:white;border:1px solid var(--line);border-radius:22px}#status{font-size:12px;min-height:42px}#identity{font-size:12px;overflow-wrap:anywhere;background:#eef8ff;padding:12px;border-radius:8px}#bar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 30px;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;font-size:20px}nav{display:flex;gap:5px}nav button{background:transparent;color:var(--muted);font-size:13px}nav button[aria-pressed=true]{background:#dff5f7;color:var(--green);font-weight:bold}.quiet{background:transparent;color:var(--green);font-size:12px;padding:8px 10px}#notes-view{max-width:1180px;margin:auto;padding:35px 30px}.heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.heading h1{margin:6px 0}.heading p{margin:6px 0}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:bold}.workspace{display:grid;grid-template-columns:310px 1fr;gap:22px}.list-panel,.editor-panel{border:1px solid var(--line);background:white;border-radius:16px;padding:23px;min-width:0}.list-heading,.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.badge{font-size:11px;background:#dff5f7;color:var(--green);padding:3px 10px;border-radius:20px}#note-list{list-style:none;padding:0;margin:12px 0}#note-list li{margin-bottom:8px}#note-list button{display:block;width:100%;text-align:left;color:var(--ink);background:#f3fafc;border:1px solid transparent;padding:12px}#note-list button[aria-current=true]{border-color:var(--green);background:#dff5f7}#note-list strong{display:block;font-size:13px;overflow-wrap:anywhere}#note-list small{display:block;font-size:11px;color:var(--muted);margin-top:5px}#list-status{font-size:12px}label{display:block;margin:22px 0 7px;font-size:13px;font-weight:bold}input,textarea{display:block;width:100%;border:1px solid #cde3e7;border-radius:9px;padding:12px;color:var(--ink);background:#fff}textarea{min-height:255px;resize:vertical;font-size:14px}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px}#character-count{font-size:11px;color:var(--muted)}#save-status{font-size:12px;min-height:21px;white-space:pre-line}.privacy-note{font-size:11px;background:#eef8ff;border-radius:8px;padding:11px;margin-top:20px}.small{font-size:11px}iframe{display:block;width:100%;height:calc(100dvh - 78px);border:0;background:var(--bg)}[hidden]{display:none!important}@media(max-width:780px){.workspace{grid-template-columns:1fr}.list-panel{order:2}.editor-panel{order:1}.heading{align-items:flex-start}.heading h1{font-size:23px}.heading p{font-size:12px}#notes-view{padding:25px 16px}#bar{padding:12px 14px}.brand strong{display:none}nav button{padding:8px 12px}#new-note{white-space:nowrap;padding:10px 13px;font-size:12px}}@media(max-width:520px){#gate{margin:8vh 18px;padding:26px}.editor-panel,.list-panel{padding:18px}.heading{display:block}#new-note{margin-top:10px}}

/* Welcome screen: illustrative notes are static and separate from private records. */
#gate{max-width:1040px;margin:8vh auto;padding:48px;display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;background:linear-gradient(135deg,#fff 45%,#effbfc);border-color:#cde7e9;box-shadow:0 18px 60px #007d8c10}
.welcome-copy,.note-preview{min-width:0;word-break:keep-all;overflow-wrap:break-word}.welcome-brand{display:flex;align-items:center;gap:12px;color:#007d8c;font-weight:bold}.welcome-brand .mark{background:#007d8c}.welcome-eyebrow{margin:32px 0 10px;color:#007d8c;font-weight:bold;font-size:13px}#welcome-title{font-size:32px;color:#143c46;margin:0 0 18px;line-height:1.45}.welcome-description{font-size:15px;color:#526f78}.login-area{margin-top:28px}#login{width:100%;background:#007d8c;padding:14px 18px;font-weight:bold}#gate button:focus-visible{outline-color:#0284c7}.login-help{font-size:12px;margin:14px 0 0}#gate #status{margin-bottom:0;color:#526f78}.note-preview{padding:24px;background:#e3f5f6;border-radius:24px}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.preview-heading h2{color:#143c46}.example-label{font-size:11px;color:#007d8c;border:1px solid #94c9cf;border-radius:20px;padding:3px 9px;white-space:nowrap}.sample-note{padding:22px;background:#fff;border:1px solid #cde7e9;border-radius:16px;box-shadow:0 5px 16px #007d8c08}.sample-note+.sample-note{margin-top:16px}.sample-category{font-size:11px;color:#007d8c;font-weight:bold}.sample-note h3{font-size:17px;color:#143c46;margin:8px 0 12px}.sample-note ul{padding-left:20px;margin:0;color:#526f78;font-size:13px}.sample-note li+li{margin-top:6px}.sky-note{background:#f3faff;border-color:#cde5f4}.sky-note .sample-category{color:#036985}.sample-note p{font-size:13px;margin:0;color:#526f78}.preview-caption{font-size:12px;text-align:center;color:#526f78;margin:18px 0 0}
@media(max-width:1100px){#gate{margin:6vh 24px;padding:32px;gap:28px}#welcome-title{font-size:28px}}
@media(max-width:780px){#gate{grid-template-columns:1fr;max-width:540px;margin:24px auto;padding:28px;gap:28px}.welcome-eyebrow{margin-top:24px}.welcome-description br{display:none}.note-preview{padding:20px}}
@media(max-width:580px){#gate{margin:18px 14px;padding:24px 20px;border-radius:22px}#welcome-title{font-size:25px}.welcome-description{font-size:14px}.preview-heading{flex-wrap:wrap}.sample-note{padding:18px}.sample-note p br{display:none}}

/* Signed-in notes: share the welcome palette without changing app behavior. */
#viewer{--ink:#143c46;--green:#007d8c;--muted:#526f78;--line:#cde7e9;min-height:100dvh;background:linear-gradient(145deg,#f3fbfc,#f4faff);color:var(--ink)}
#viewer #bar{padding:18px max(28px,calc((100% - 1120px)/2));gap:20px;border-bottom-color:var(--line);box-shadow:0 4px 20px #007d8c08}
#viewer .brand{color:var(--green);font-size:21px;white-space:nowrap}
#viewer nav{padding:5px;background:#eff8fa;border:1px solid #dceff1;border-radius:14px;gap:4px}
#viewer nav button{min-height:42px;padding:9px 18px;border-radius:10px;color:var(--muted)}
#viewer nav button[aria-pressed=true]{background:#007d8c;color:#fff;box-shadow:0 3px 8px #007d8c18}
#viewer .quiet{color:var(--green);border:1px solid #cde7e9;background:#fff;border-radius:10px;min-height:40px}
#viewer #logout{padding:9px 14px;white-space:nowrap}
#viewer #notes-view{padding:42px 30px 50px;word-break:keep-all;overflow-wrap:break-word}
#viewer .heading{margin-bottom:30px;align-items:center}
#viewer .eyebrow{font-size:11px;letter-spacing:1.8px;color:#007d8c}
#viewer .heading h1{font-size:32px;line-height:1.45;margin:8px 0 12px;color:var(--ink)}
#viewer .heading p{font-size:14px;margin:0;color:var(--muted)}
#viewer #new-note{padding:13px 20px;border-radius:12px;min-height:48px;font-weight:bold;box-shadow:0 5px 16px #007d8c1a}
#viewer .workspace{grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}
#viewer .list-panel,#viewer .editor-panel{border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:0 10px 30px #007d8c08}
#viewer .list-panel{background:#eaf7f9}
#viewer .editor-panel{background:#fff}
#viewer .list-heading,#viewer .editor-heading{gap:10px;padding-bottom:16px;border-bottom:1px solid var(--line)}
#viewer h2{font-size:18px;color:var(--ink)}
#viewer #refresh-notes{font-size:11px;padding:7px 9px;white-space:nowrap}
#viewer #list-status{font-size:12px;margin:18px 0;color:var(--muted)}
#viewer #note-list{margin:0;display:grid;gap:12px}
#viewer #note-list li{margin:0;min-width:0}
#viewer #note-list button{padding:17px 16px;border-radius:14px;background:#fff;border:1px solid #d3e8ed;color:var(--ink);min-height:76px}
#viewer #note-list button[aria-current=true]{background:#eff9ff;border-color:#007d8c;box-shadow:inset 3px 0 0 #007d8c}
#viewer #note-list strong{font-size:14px;line-height:1.6}
#viewer #note-list small{font-size:11px;margin-top:7px;color:var(--muted)}
#viewer #load-more{width:100%;margin-top:16px}
#viewer .badge{background:#e3f5f6;color:#007d8c;border:1px solid #cde7e9;padding:4px 11px;font-size:11px;white-space:nowrap}
#viewer label{font-size:13px;margin:23px 0 9px;color:var(--ink)}
#viewer input,#viewer textarea{border:1px solid #c5dfe5;border-radius:12px;padding:14px 16px;background:#fbfdff;color:var(--ink);font-size:14px;line-height:1.7}
#viewer input::placeholder,#viewer textarea::placeholder{color:#627a82;opacity:1}
#viewer textarea{min-height:290px}
#viewer .editor-footer{margin-top:20px}
#viewer #save-note{min-height:44px;min-width:94px;border-radius:11px;font-weight:bold}
#viewer #character-count{color:var(--muted);font-size:12px}
#viewer #save-status{color:var(--muted);font-size:12px;min-height:24px}
#viewer .privacy-note{background:#f0f9ff;color:#436573;border:1px solid #d7eaf5;border-radius:12px;font-size:12px;padding:13px 15px;margin-top:22px}
#viewer .small{color:var(--muted);font-size:12px;line-height:1.8}
#viewer button:focus-visible,#viewer input:focus-visible,#viewer textarea:focus-visible{outline:3px solid #0284c7;outline-offset:3px}
@media(hover:hover){#viewer button:not(:disabled):hover{filter:brightness(.96)}#viewer #note-list button:not(:disabled):hover{border-color:#007d8c;background:#f3fbff}}
@media(max-width:900px){#viewer #bar{padding:16px 24px}#viewer .workspace{grid-template-columns:280px minmax(0,1fr);gap:18px}#viewer .list-panel,#viewer .editor-panel{padding:22px}}
@media(max-width:780px){#viewer #bar{padding:14px 16px;gap:10px;flex-wrap:wrap}#viewer .brand strong{display:inline}#viewer nav{order:3;width:100%;justify-content:center}#viewer nav button{flex:1}#viewer #logout{margin-left:auto}#viewer #notes-view{padding:28px 16px 36px}#viewer .heading{align-items:flex-start;gap:16px}#viewer .heading h1{font-size:26px}#viewer .workspace{grid-template-columns:minmax(0,1fr);gap:20px}#viewer .editor-panel{order:1}#viewer .list-panel{order:2}#viewer #new-note{white-space:nowrap;padding:11px 15px;font-size:13px}#viewer textarea{min-height:240px}}
@media(max-width:520px){#viewer .heading{display:block;margin-bottom:24px}#viewer .heading h1{font-size:24px}#viewer .heading p{font-size:13px}#viewer #new-note{margin-top:18px}#viewer .list-panel,#viewer .editor-panel{padding:20px 18px;border-radius:18px}#viewer input,#viewer textarea{font-size:16px;padding:12px}#viewer .brand{font-size:19px}#viewer .privacy-note{padding:12px;font-size:11px}#viewer .small{font-size:11px}}

/* Shared Nalle landing palette: white, cyan and turquoise. */
:root{--bg:#fbfdfd;--ink:#143c46;--green:#007d8c;--muted:#526f78;--line:#d7e9ed}
#viewer{--ink:#143c46;--green:#007d8c;--muted:#526f78;--line:#d7e9ed;background:#fbfdfd}#viewer .list-panel,.note-preview{background:#dff5f7}#viewer nav{background:#eef8ff}#viewer #bar{box-shadow:none}#viewer input,#viewer textarea{background:#fff}
