/* 綴 空押し build 202612050001.
   One light, from above. What can be pressed stands out of the paper; where you write, and what is switched on, is pressed into it.
   This sheet only restyles surfaces. It changes no layout that the scripts measure, and it is loaded last so it can be removed in one line. */

/* ---------- 1. material ---------- */
:root{
  /* The light side is paper, not white: a cream sheet to write on, lying on a slightly darker desk of the same family, with ink that is a warm
     black. Text keeps its contrast (ink 13:1, the two greys 7:1 and 6:1 on the sheet). The dark side is untouched: its rules are more specific. */
  --surface:#f7f1e3; --surface-2:#f2ebdb;
  --paper:#ebe3d1; --paper-2:#e3dac6; --paper-3:#d8cdb6;
  --ink:#2a2622; --ink-2:#574f42; --ink-3:#5e5648;
  --line:#d6cbb4; --line-2:#bfb399;
  --rule-line:#d9ceb6; --choice-divider:#cfc5ae;
  --lit:rgb(255 251 240 / .9);
  --shade:74 60 36;
  --key-top:#fcf7eb; --key-bottom:#eee6d4; --key-edge:rgb(var(--shade) / .24);
  --ink-key-top:#3b3f46; --ink-key-bottom:#22252a; --ink-key-edge:#15171a; --ink-key-lit:rgb(255 255 255 / .2);
  --well:#e1d7c2;
  --raised-shadow:inset 0 1px 0 var(--lit),0 1px 1.5px rgb(var(--shade) / .17),0 2px 5px -1px rgb(var(--shade) / .1);
  --pressed-shadow:inset 0 1px 2.5px rgb(var(--shade) / .28),inset 0 0 0 .5px rgb(var(--shade) / .08),0 1px 0 var(--lit);
  --well-shadow:inset 0 1.5px 3px rgb(var(--shade) / .19),inset 0 0 0 1px rgb(var(--shade) / .05),0 1px 0 var(--lit);
  --sheet-shadow:inset 0 1px 0 var(--lit),0 0 0 1px rgb(var(--shade) / .09),0 1px 2px rgb(var(--shade) / .08),0 5px 14px -6px rgb(var(--shade) / .2);
  --float-shadow:inset 0 1px 0 var(--lit),0 0 0 1px rgb(var(--shade) / .1),0 4px 10px rgb(var(--shade) / .08),0 20px 48px -12px rgb(var(--shade) / .36);
  --rule:rgb(var(--shade) / .13);
  --control-border:var(--key-edge);
  --control-top:var(--key-top); --control-bottom:var(--key-bottom); --control-edge:var(--key-edge);
  --control-elevation:var(--raised-shadow); --control-inset:var(--pressed-shadow);
  --choice-bg:#dbe5d2; --choice-ink:#1c3a2a; --choice-border:#6b9479;
  --choice-elevation:inset 0 1px 2.5px rgb(20 58 44 / .26),inset 0 0 0 1px rgb(20 58 44 / .1),0 1px 0 var(--lit);
  --r-key:10px; --r-card:14px; --r-sheet:18px;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22  0 0 0 0 .22  0 0 0 0 .17  0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
}
html[data-theme="dark"]{
  --lit:rgb(255 255 255 / .075); --shade:0 0 0;
  --key-top:#30343a; --key-bottom:#272a30; --key-edge:rgb(0 0 0 / .6);
  --ink-key-top:#f1efe8; --ink-key-bottom:#d6d4cb; --ink-key-edge:#0c0d0f; --ink-key-lit:rgb(255 255 255 / .7);
  --well:#111214;
  --raised-shadow:inset 0 1px 0 rgb(255 255 255 / .09),0 1px 2px rgb(0 0 0 / .5),0 3px 8px -2px rgb(0 0 0 / .35);
  --pressed-shadow:inset 0 2px 4px rgb(0 0 0 / .55),0 1px 0 rgb(255 255 255 / .05);
  --well-shadow:inset 0 2px 4px rgb(0 0 0 / .5),inset 0 0 0 1px rgb(0 0 0 / .25),0 1px 0 rgb(255 255 255 / .05);
  --sheet-shadow:inset 0 1px 0 rgb(255 255 255 / .06),0 0 0 1px rgb(0 0 0 / .45),0 1px 2px rgb(0 0 0 / .4),0 6px 16px -6px rgb(0 0 0 / .55);
  --float-shadow:inset 0 1px 0 rgb(255 255 255 / .08),0 0 0 1px rgb(0 0 0 / .65),0 20px 48px -12px rgb(0 0 0 / .75);
  --rule:rgb(0 0 0 / .42);
  --choice-bg:#1f3a30; --choice-ink:#d7efe3; --choice-border:#4f9477;
  --choice-elevation:inset 0 2px 4px rgb(0 0 0 / .5),inset 0 0 0 1px rgb(79 148 119 / .5),0 1px 0 rgb(255 255 255 / .05);
  --surface:#1f2125; --surface-2:#1b1d21; --paper:#17181b; --paper-2:#1d1f23; --paper-3:#2a2d33; --ink-2:#a8a69f; --ink-3:#9b9d98; --line:#2c2f35; --line-2:#3d4149;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]){
  --lit:rgb(255 255 255 / .075); --shade:0 0 0;
  --key-top:#30343a; --key-bottom:#272a30; --key-edge:rgb(0 0 0 / .6);
  --ink-key-top:#f1efe8; --ink-key-bottom:#d6d4cb; --ink-key-edge:#0c0d0f; --ink-key-lit:rgb(255 255 255 / .7);
  --well:#111214;
  --raised-shadow:inset 0 1px 0 rgb(255 255 255 / .09),0 1px 2px rgb(0 0 0 / .5),0 3px 8px -2px rgb(0 0 0 / .35);
  --pressed-shadow:inset 0 2px 4px rgb(0 0 0 / .55),0 1px 0 rgb(255 255 255 / .05);
  --well-shadow:inset 0 2px 4px rgb(0 0 0 / .5),inset 0 0 0 1px rgb(0 0 0 / .25),0 1px 0 rgb(255 255 255 / .05);
  --sheet-shadow:inset 0 1px 0 rgb(255 255 255 / .06),0 0 0 1px rgb(0 0 0 / .45),0 1px 2px rgb(0 0 0 / .4),0 6px 16px -6px rgb(0 0 0 / .55);
  --float-shadow:inset 0 1px 0 rgb(255 255 255 / .08),0 0 0 1px rgb(0 0 0 / .65),0 20px 48px -12px rgb(0 0 0 / .75);
  --rule:rgb(0 0 0 / .42);
  --choice-bg:#1f3a30; --choice-ink:#d7efe3; --choice-border:#4f9477;
  --choice-elevation:inset 0 2px 4px rgb(0 0 0 / .5),inset 0 0 0 1px rgb(79 148 119 / .5),0 1px 0 rgb(255 255 255 / .05);
  --surface:#1f2125; --surface-2:#1b1d21; --paper:#17181b; --paper-2:#1d1f23; --paper-3:#2a2d33; --ink-2:#a8a69f; --ink-3:#9b9d98; --line:#2c2f35; --line-2:#3d4149;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}}

/* ---------- 2. ground and scored rules ---------- */
/* The ground has the tooth of paper; the sheets and keys lying on it are smooth. */
#nav{background:var(--paper-2) var(--grain) 0 0/240px 240px;border-right-color:var(--rule);box-shadow:1px 0 0 var(--lit)}
#list{background:var(--paper) var(--grain) 0 0/240px 240px;border-right-color:var(--rule)}
#strip{background:var(--paper-2) var(--grain) 0 0/240px 240px;border-left-color:var(--rule);box-shadow:inset 1px 0 0 var(--lit)}
#side{background:var(--paper) var(--grain) 0 0/240px 240px;border-left-color:var(--rule)}
/* A rule is scored into the paper: a shaded line with a lit line under it. */
.navsec+.navsec{border-top-color:var(--rule);box-shadow:inset 0 1px 0 var(--lit)}
.pane .colhead,#side .colhead,dialog .dh,#sheet .shh{border-bottom-color:var(--rule)}
dialog .dfoot{border-top-color:var(--rule)}
::selection{background:rgb(var(--glow-rgb) / .22)}
button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline-color:var(--caret)}
.ttl:focus-visible,.tx:focus-visible,.xtitle:focus-visible,.xbody:focus-visible{outline:none}

/* ---------- 3. keys: anything pressed ---------- */
.btn,.folder-action,.colhead .ib,.map-button,.merge-arrows .ib,.correction-quick,.more-commands,.command-list{
  background:linear-gradient(var(--key-top),var(--key-bottom));border:1px solid var(--key-edge);box-shadow:var(--raised-shadow);border-radius:var(--r-key)}
.command-list{border-radius:var(--r-card)}
.btn:active,.folder-action:active,.colhead .ib:active,.map-button:active,.merge-arrows .ib:active,.correction-quick:active{
  background:var(--key-bottom);box-shadow:var(--pressed-shadow);filter:none}
.btn.pri,.btn.pri:hover{background:linear-gradient(var(--ink-key-top),var(--ink-key-bottom));border-color:var(--ink-key-edge);color:var(--paper);
  box-shadow:inset 0 1px 0 var(--ink-key-lit),0 1px 2px rgb(var(--shade) / .4),0 3px 8px -2px rgb(var(--shade) / .32)}
.btn.pri:active{background:var(--ink-key-bottom);box-shadow:inset 0 2px 4px rgb(0 0 0 / .45)}
.btn.shu{color:var(--shu)}
button:disabled,.btn:disabled{box-shadow:none}
/* A key that is switched on stays down. */
.colhead .ib.on,.lchip.on,.ib.on,#strip .ib.on,.map-button[aria-pressed=true]{
  background:var(--choice-bg);color:var(--choice-ink);border-color:transparent;box-shadow:var(--choice-elevation)}
/* Flat keys: the rail, the tray, the dots at the end of a row. They rise under the pointer and sink under the finger. */
.ib{border-radius:var(--r-key)}
.ib:active{background:var(--well);box-shadow:var(--pressed-shadow);filter:none}
.tiles .t:active{filter:none}
.colhead .nav-back,dialog .dh .nav-back{background:transparent;border:0;box-shadow:none}
.colhead .nav-back:active,dialog .dh .nav-back:active{background:var(--well);box-shadow:var(--pressed-shadow)}
@media (hover:hover){
  .btn:hover,.folder-action:hover,.colhead .ib:hover,.map-button:hover,.correction-quick:hover{background:var(--key-top)}
  .colhead .ib.on:hover,.map-button[aria-pressed=true]:hover{background:var(--choice-bg)}
  #strip .ib:hover,.etb .ib:hover,.navsec .sechead .ib:hover,.note .note-options:hover,.folder-options:hover,.xmore:hover,dialog .dh .ib:hover,#sheet .shh .ib:hover{
    background:linear-gradient(var(--key-top),var(--key-bottom));box-shadow:var(--raised-shadow);color:var(--ink)}
  #strip .ib.on:hover{background:var(--choice-bg);box-shadow:var(--choice-elevation);color:var(--choice-ink)}
  .colhead .nav-back:hover,dialog .dh .nav-back:hover{background:var(--paper-3);box-shadow:none}
}
/* On a touch screen a hover stays behind after the finger leaves. Keys keep their face and flat things stay flat. */
@media (hover:none){
  .btn:hover,.colhead .ib:hover,.map-button:hover,.merge-arrows .ib:hover{background:linear-gradient(var(--key-top),var(--key-bottom))}
  .ib:hover{background:transparent}
  .ib.on:hover,.colhead .ib.on:hover,#strip .ib.on:hover,.map-button[aria-pressed=true]:hover{background:var(--choice-bg)}
  .colhead .nav-back:hover,dialog .dh .nav-back:hover{background:transparent}
  dialog .folder-picker label:not(:has(input:checked)):hover{background:linear-gradient(var(--control-top),var(--control-bottom))}
  .navrow:hover,.note:hover,.olrow:hover,.att:hover,.hlrow:hover,.qcard:hover,.dl:hover,#dash .dl:hover,#nav .brand:hover,.chip button:hover,#menu button:hover,.command-row:hover,.slash button:hover{background:transparent}
  .ib:active,#menu button:active,.command-row:active,.slash button:active,.navrow:active{background:var(--well)}
  .colhead .ib:active,.btn:active,.map-button:active,.merge-arrows .ib:active{background:var(--key-bottom)}
  .btn.pri:active{background:var(--ink-key-bottom)}
  .colhead .nav-back:active,dialog .dh .nav-back:active{background:var(--well)}
}

/* ---------- 4. wells: anywhere you type ---------- */
.search,#find input,.dtbl input,.tgrid input,.rp input,.lvl input,.fld input[type=text],.fld textarea,.fld select,
dialog input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),dialog textarea,dialog select,
.dict-form input,.dict-form select,.dict-advanced select{
  background:var(--well);border:1px solid transparent;box-shadow:var(--well-shadow);border-radius:var(--r-key)}
.search:focus-within,#find input:focus,dialog input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,dialog textarea:focus,dialog select:focus,.fld input[type=text]:focus,.fld textarea:focus,.dict-form input:focus{
  box-shadow:var(--well-shadow),0 0 0 2px rgb(var(--glow-rgb) / .55);outline:none}
.search input:focus-visible{outline:none}
.tgrid input.h{background:var(--paper-3)}
.etb select,#find .tb,.selbar .tb,.hlpop .tb{background:linear-gradient(var(--key-top),var(--key-bottom));box-shadow:var(--raised-shadow),0 0 0 1px var(--key-edge);border-radius:8px}
.seg{background:var(--well);box-shadow:var(--well-shadow);border-radius:var(--r-key)}
.seg button{border-radius:8px}
.seg button.on{background:linear-gradient(var(--key-top),var(--key-bottom));color:var(--ink);box-shadow:var(--raised-shadow),0 0 0 1px var(--key-edge)}
.appearance-settings .seg{background:transparent;box-shadow:none}
.appearance-settings .seg button{background:linear-gradient(var(--key-top),var(--key-bottom));border-color:var(--key-edge);box-shadow:var(--raised-shadow);border-radius:var(--r-key)}
.appearance-settings .seg button.on{background:var(--choice-bg);color:var(--choice-ink);border-color:transparent;box-shadow:var(--choice-elevation)}
.chip,.lchip,.xfolder{background:var(--paper-2);box-shadow:inset 0 0 0 1px rgb(var(--shade) / .08),0 1px 0 var(--lit)}
.chip.add{box-shadow:none}
.note .chk{background:var(--well);border:0;box-shadow:var(--well-shadow)}
.note.sel .chk{background:linear-gradient(var(--ink-key-top),var(--ink-key-bottom));color:var(--paper);box-shadow:inset 0 1px 0 var(--ink-key-lit),0 1px 2px rgb(var(--shade) / .35)}

/* ---------- 5. navigation ---------- */
#nav .brand{font-size:24px;letter-spacing:.06em;color:var(--ink);text-shadow:0 1px 0 var(--lit)}
.navrow{border-radius:var(--r-key)}
@media (hover:hover){.navrow:hover{background:rgb(var(--shade) / .06)}}
.navrow.on,#navScroll .navrow.on{background:var(--choice-bg);color:var(--choice-ink);border-color:transparent;box-shadow:var(--choice-elevation);font-weight:600}
.navrow.drop{box-shadow:inset 0 0 0 2px var(--caret);background:rgb(var(--glow-rgb) / .14)}
.cloud-status{background:transparent;border-bottom-color:var(--rule);box-shadow:0 1px 0 var(--lit)}
.foldbar .vl{text-shadow:0 1px 0 var(--lit)}

/* ---------- 6. the list ---------- */
.note{border-bottom-color:var(--rule);box-shadow:0 1px 0 var(--lit)}
@media (hover:hover){.note:hover{background:rgb(var(--shade) / .045)}}
.note.on{background:var(--paper-2);box-shadow:inset 0 1px 3px rgb(var(--shade) / .2),inset 0 0 0 1px rgb(var(--shade) / .07),0 1px 0 var(--lit)}
.note.sel,#notes .note.sel{background:var(--choice-bg);box-shadow:var(--choice-elevation);border-radius:var(--r-key)}
#notes .hold-pending{background:var(--paper-2)}
.empty:not(.pane) b{text-shadow:0 1px 0 var(--lit)}
.trashbar{border-bottom-color:var(--rule)}

/* ---------- 7. the writing sheet ---------- */
#editor{background:var(--surface)}
.pane{background:var(--surface)}
#panes.multi .pane:not(.active){background:var(--surface-2)}
#panes.multi .pane.active::before{background:var(--caret)}
.note-meta{border-bottom-color:var(--rule)}
.etb{background:var(--paper);border-top-color:var(--rule);box-shadow:inset 0 1px 0 var(--lit)}
.blw{border-top-color:var(--rule)}
.selbar,.hlpop,.slash{box-shadow:var(--float-shadow);border-radius:var(--r-card)}
.lockbar{background:var(--paper-2);border-bottom-color:var(--rule);color:var(--ink)}
.sugg{background:var(--paper-2);border-top-color:var(--rule)}
#find{background:var(--paper);border-bottom-color:var(--rule)}
.tpl-prev,.stat,.sync-summary,dialog .recovery-code{background:var(--well);box-shadow:var(--well-shadow);border-color:transparent}
.bdp mark.cl,.cmx mark.cl{background:rgb(var(--glow-rgb) / .07);box-shadow:0 0 0 4px rgb(var(--glow-rgb) / .07)}
.cmx .cm-line.tsz-cl{background:rgb(var(--glow-rgb) / .07);box-shadow:-4px 0 0 rgb(var(--glow-rgb) / .07),4px 0 0 rgb(var(--glow-rgb) / .07)}

/* ---------- 8. sheets that float: menus, dialogs, notices ---------- */
#menu{background:var(--surface);box-shadow:var(--float-shadow);border-radius:var(--r-card)}
#menu hr{border-top-color:var(--rule)}
.slash button.on{background:rgb(var(--shade) / .09)}
@media (hover:hover){#menu button:hover,.command-row:hover,.slash button:hover{background:rgb(var(--shade) / .07)}}
dialog{background:var(--surface);box-shadow:var(--float-shadow);border-radius:var(--r-sheet)}
dialog::backdrop{background:rgb(24 26 22 / .42)}
#sheet{background:rgb(24 26 22 / .36)}
#sheet .sh{background:var(--surface);box-shadow:var(--float-shadow);border-radius:22px 22px 0 0}
#sheet .grab{background:var(--well);box-shadow:var(--well-shadow);height:5px;width:44px;border-radius:3px}
.command-row+.command-row{border-top-color:var(--rule)}
.command-list.pair .command-row+.command-row,.command-list.tri .command-row+.command-row{border-left-color:var(--rule)}
.command-row.on{background:var(--choice-bg);color:var(--choice-ink)}
.tiles .t{background:linear-gradient(var(--key-top),var(--key-bottom));box-shadow:var(--raised-shadow),0 0 0 1px var(--key-edge)}
.tiles .t:active{background:var(--key-bottom);box-shadow:var(--pressed-shadow)}
.tiles .t.on{background:var(--choice-bg);color:var(--choice-ink);box-shadow:var(--choice-elevation)}
#toast{background:linear-gradient(var(--ink-key-top),var(--ink-key-bottom));box-shadow:inset 0 1px 0 var(--ink-key-lit),0 6px 20px -4px rgb(var(--shade) / .45);border-radius:12px;padding:11px 18px}
#updBar.update-notice{background:var(--surface);border-color:transparent;box-shadow:var(--float-shadow);border-radius:var(--r-sheet)}
#dragimg{box-shadow:var(--float-shadow)}
.capture-option,dialog .folder-picker label{border-radius:var(--r-card)}
.capture-option[aria-pressed=true],dialog .folder-picker label:has(input:checked){border-color:transparent}
.capture-option .capture-check{box-shadow:inset 0 1px 0 rgb(255 255 255 / .25)}
.settings-list>button{border-bottom-color:var(--rule);border-radius:var(--r-key)}
@media (hover:hover){.settings-list>button:hover{background:rgb(var(--shade) / .05)}}
.settings-list>button:active{background:var(--well);box-shadow:var(--pressed-shadow)}
.dict-form,.merge-review{background:var(--paper);border-color:var(--rule)}

/* ---------- 9. cross view ---------- */
/* The switch: a groove in the paper, with one raised key resting on the view in use. */
.vswitch{background:var(--well);box-shadow:var(--well-shadow);border-radius:var(--r-key)}
.vswitch button{border-radius:7px;color:var(--ink-2)}
.vswitch button.on{background:linear-gradient(var(--key-top),var(--key-bottom));color:var(--ink);font-weight:600;box-shadow:var(--raised-shadow),0 0 0 1px var(--key-edge)}
.vswitch.off button.on{box-shadow:0 0 0 1px var(--key-edge)}
@media (hover:hover){.vswitch:not(.off) button:not(.on):hover{color:var(--ink);background:rgb(var(--shade) / .06)}}
.vswitch:not(.off) button:not(.on):active{background:rgb(var(--shade) / .1)}
#notes.cross .xrow{background:var(--surface);border:0;border-radius:var(--r-card);box-shadow:var(--sheet-shadow)}
#notes.cross .xrow:focus-within{box-shadow:var(--sheet-shadow),0 0 0 2px rgb(var(--glow-rgb) / .6)}
#notes.cross .xrow.locked{background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--rule)}
.xadd .btn{background:transparent;border:1px dashed var(--line-2);box-shadow:none}
.xadd .btn:active{background:var(--well);box-shadow:var(--pressed-shadow)}
.xmap .map-kind{background:var(--paper-2)}

/* ---------- 10. phones ---------- */
@media (max-width:900px){
  /* The column resizers belong to the desktop grid. Left in place they widen the page and catch the thumb. */
  body>.rs{display:none!important}
  html,body{overflow:clip}
  .colhead .ib{border-radius:12px}
  #openNav{background:linear-gradient(var(--key-top),var(--key-bottom));border:1px solid var(--key-edge);box-shadow:var(--raised-shadow)}
  #openNav:active{background:var(--key-bottom);box-shadow:var(--pressed-shadow)}
  #toNav.at-home .home-mark{text-shadow:0 1px 0 var(--lit)}
  .search{border:1px solid transparent;background:var(--well);border-radius:12px}
  /* Each memo is a sheet lying on the desk. */
  #notes .note{border:0;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--sheet-shadow);margin-bottom:12px}
  /* A sheet sinks when pressed, a moment late, so that starting a scroll does not flash it. */
  #notes .note:active{box-shadow:var(--pressed-shadow);background:var(--surface-2);transition-delay:.07s}
  #notes .note.on{background:var(--surface);box-shadow:var(--sheet-shadow)}
  #notes .note.sel{background:var(--choice-bg);box-shadow:var(--choice-elevation)}
  #notes .hold-pending{background:var(--surface-2);box-shadow:var(--pressed-shadow)}
  /* The dock: the two things done most, under the thumb. */
  .list-bottom{background:linear-gradient(var(--paper),var(--paper-2));border-top-color:var(--rule);box-shadow:inset 0 1px 0 var(--lit),0 -8px 18px -12px rgb(var(--shade) / .3)}
  .compose,.capture-target{border-radius:var(--r-card)}
  #bulk{background:linear-gradient(var(--paper),var(--paper-2));border-top-color:var(--rule);box-shadow:inset 0 1px 0 var(--lit)}
  #bulk #bkFolder,#bulk #bkMerge,#bulk #bkMore,#bulk #bkRestore{background:linear-gradient(var(--key-top),var(--key-bottom));border-color:var(--key-edge);box-shadow:var(--raised-shadow);border-radius:var(--r-card)}
  #bulk .ib:active{background:var(--key-bottom);box-shadow:var(--pressed-shadow)}
  /* The memo itself: one sheet, title and body together. */
  .pane{background:var(--paper) var(--grain) 0 0/240px 240px}
  .pane:not(.empty) .ttl{border:0;border-radius:var(--r-card) var(--r-card) 0 0;background:var(--surface);box-shadow:inset 0 1px 0 var(--lit),0 0 0 1px rgb(var(--shade) / .09)}
  /* 申し送り, between the two: the same sheet, with its two sides only (the line under it is the upper edge of the text) */
  .pane:not(.empty) .remark{border:0;background:var(--surface);box-shadow:-1px 0 0 rgb(var(--shade) / .09),1px 0 0 rgb(var(--shade) / .09)}
  .pane:not(.empty) .edwrap{border:0;border-radius:0 0 var(--r-card) var(--r-card);background:var(--surface);box-shadow:0 0 0 1px rgb(var(--shade) / .09),0 6px 14px -8px rgb(var(--shade) / .22)}
  /* while the keyboard is up the title is written in the header (index.html, placeTitle) and the sheet of the text stands alone */
  body[data-keyboard="true"] .pane:not(.empty) .ttl{box-shadow:none;background:transparent;border-radius:0}
  body[data-keyboard="true"] .pane:not(.empty) .edwrap{border-radius:var(--r-card)}
  .pane .colhead .ib{background:transparent;border-color:transparent;box-shadow:none}
  .pane .colhead .ib:active{background:var(--well);box-shadow:var(--pressed-shadow)}
  .pane .colhead .ib.on{background:var(--choice-bg);color:var(--choice-ink);box-shadow:var(--choice-elevation)}
  #menu button{border-radius:10px}
  dialog,dialog.wide{border-radius:var(--r-sheet)}
  #navScroll .navrow{border-radius:12px}
  #list .cloud-status,#nav>.cloud-status{background:var(--well);border-color:transparent;box-shadow:var(--well-shadow);border-radius:12px}
  .pane .selbar{box-shadow:var(--float-shadow)}
  #notes.cross .xrow{margin-bottom:14px}
  .vswitch{border-radius:12px}
  .vswitch button{border-radius:9px}
  /* Keys above the keyboard. */
  .kbar:not([hidden]){background:linear-gradient(var(--paper),var(--paper-2));border-top-color:var(--rule);box-shadow:inset 0 1px 0 var(--lit)}
  .kbar button{background:linear-gradient(var(--key-top),var(--key-bottom));border-color:var(--key-edge);box-shadow:var(--raised-shadow);border-radius:var(--r-key)}
  .kbar button:active{background:var(--key-bottom);box-shadow:var(--pressed-shadow)}
  .kbar .kbar-done{background:linear-gradient(var(--ink-key-top),var(--ink-key-bottom));border-color:var(--ink-key-edge);color:var(--paper);box-shadow:inset 0 1px 0 var(--ink-key-lit),0 1px 2px rgb(var(--shade) / .4)}
  .kbar .kbar-done:active{background:var(--ink-key-bottom);box-shadow:inset 0 2px 4px rgb(0 0 0 / .45)}
  .xmore{width:44px;height:44px;margin:-6px -10px -6px 0}
  .xfoot .xtime{font-size:12px}
  .xfolder{height:30px;padding:0 12px;border-radius:15px;font-size:13px}
  .xfoot{min-height:36px}
}

/* ---------- 11. desktops ---------- */
@media (min-width:901px){
  .colhead .ib{width:34px;height:34px}
  #panes .pane>.colhead .document-action{height:34px}
  /* The writing sheet lies over the desk. */
  #editor{box-shadow:-1px 0 0 var(--rule),-10px 0 18px -14px rgb(var(--shade) / .28);z-index:1}
  /* The selected row sinks with a margin around it. Its padding gives the margin back, so the text does not move when the selection changes. */
  .note.on{border-radius:var(--r-key);margin:2px 6px;border-bottom-color:transparent}
  #notes .note.on .note-open{padding:14px 10px}
  #notes .note.on .note-options{margin-right:2px}
  #strip .ib{width:36px;height:36px}
  .rs:hover::after,.rs.on::after{background:var(--caret)}
}
/* With a pointer, the options of a row wait until the row is pointed at. The right-click menu stays as it was. */
@media (hover:hover) and (min-width:901px){
  .note .note-options,.folder-entry .folder-options{opacity:0;transition:opacity .12s ease,background-color .12s ease,box-shadow .12s ease}
  .note:hover .note-options,.note.on .note-options,.note .note-options:focus-visible,.folder-entry:hover .folder-options,.folder-entry:focus-within .folder-options{opacity:1}
}
@media (prefers-reduced-motion:no-preference){
  .btn,.ib,.folder-action,.navrow,.note,.seg button,.tiles .t,.search,.xrow{transition:background-color .12s ease,box-shadow .12s ease,color .12s ease}
}
html[data-mode="single-note"] .pane .ttl{box-shadow:none}
@media (forced-colors:active){
  .btn,.folder-action,.colhead .ib,.search,dialog,#menu,#notes .note,#notes.cross .xrow{border:1px solid ButtonText;box-shadow:none}
}
