950 lines
32 KiB
CSS
950 lines
32 KiB
CSS
:root {
|
|
--bg: #f3f1ea;
|
|
--surface: #fffcf7;
|
|
--surface2: #f7f4ec;
|
|
--border: rgba(28, 27, 24, 0.08);
|
|
--border2: rgba(28, 27, 24, 0.16);
|
|
--text1: #1c1b18;
|
|
--text2: #5c574e;
|
|
--text3: #6f6a62;
|
|
--brand: #085041;
|
|
--accent: #1d9e75;
|
|
--accent-2: #5dcaa5;
|
|
--accent-3: #9fe1cb;
|
|
--accent-light: #e7f6ef;
|
|
--accent-dark: #085041;
|
|
--danger: #b42318;
|
|
--warn: #8a5a12;
|
|
--nav-h: 58px;
|
|
--nav-pad-top: 6px;
|
|
--header-h: 56px;
|
|
--font: "Segoe UI", system-ui, -apple-system, sans-serif;
|
|
--shadow: 0 10px 30px rgba(28, 27, 24, 0.08);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #181816;
|
|
--surface: #222220;
|
|
--surface2: #1e1e1c;
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--border2: rgba(255, 255, 255, 0.14);
|
|
--text1: #eeecea;
|
|
--text2: #aaa9a4;
|
|
--text3: #686762;
|
|
--accent-light: #04342c;
|
|
--accent-dark: #5dcaa5;
|
|
}
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html, body, #root { height: 100%; }
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font);
|
|
background: var(--bg);
|
|
color: var(--text1);
|
|
line-height: 1.45;
|
|
-webkit-text-size-adjust: 100%;
|
|
}
|
|
|
|
button, input, select, textarea { font: inherit; color: inherit; }
|
|
a { color: var(--accent-dark); }
|
|
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
|
|
h1, .page-title { font-size: 28px; margin-bottom: 4px; letter-spacing: -0.02em; line-height: 1.2; }
|
|
h2, h3 { font-size: 15px; }
|
|
p { margin: 0; }
|
|
|
|
button, .linkish {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
min-height: 44px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
padding: 10px 18px;
|
|
border-radius: 10px;
|
|
border: none;
|
|
cursor: pointer;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
text-decoration: none;
|
|
transition: opacity 0.15s, transform 0.1s;
|
|
}
|
|
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
button:active { transform: scale(0.97); }
|
|
button:disabled { opacity: 0.5; pointer-events: none; }
|
|
button.quiet, button.linkish, .linkish {
|
|
background: var(--surface2);
|
|
border: 1px solid var(--border2);
|
|
color: var(--text2);
|
|
}
|
|
button.danger {
|
|
background: #fcebeb;
|
|
color: var(--danger);
|
|
}
|
|
.btn-full { width: 100%; }
|
|
|
|
input, select, textarea {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
padding: 8px 10px;
|
|
font-size: 15px;
|
|
background: var(--surface2);
|
|
border: 1.5px solid var(--border2);
|
|
border-radius: 8px;
|
|
}
|
|
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
|
|
textarea { min-height: 7rem; resize: vertical; }
|
|
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text1); }
|
|
|
|
.card, .assumption {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
.assumption {
|
|
background: var(--accent-light);
|
|
color: var(--text1);
|
|
}
|
|
.card + .card, .stack > .card + .card { margin-top: 12px; }
|
|
.card h2, .card h3, .form-section-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text3);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.stack { display: grid; gap: 12px; }
|
|
.stack.compact { align-content: start; }
|
|
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
|
|
.inline > input, .inline > select, .inline > label { flex: 1 1 14rem; }
|
|
.row { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
|
|
.eyebrow {
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin: 0 0 4px;
|
|
color: var(--text3);
|
|
}
|
|
.lead, .muted { color: var(--text2); font-size: 14px; font-weight: 400; }
|
|
.notice { color: var(--accent-dark); font-size: 14px; }
|
|
.error { color: var(--danger); font-size: 14px; }
|
|
.banner { margin: 0 16px 8px; }
|
|
|
|
.boot, .login {
|
|
min-height: 100%;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px 16px;
|
|
background: var(--bg);
|
|
}
|
|
.login-card { width: min(28rem, 100%); display: grid; gap: 16px; }
|
|
.login-card h1 { color: var(--brand); letter-spacing: -0.02em; font-size: 28px; margin: 0; }
|
|
.login-mark { color: var(--brand); display: grid; justify-content: center; }
|
|
|
|
.app-shell {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 100%;
|
|
width: 100%;
|
|
max-width: none;
|
|
margin: 0;
|
|
background: var(--bg);
|
|
}
|
|
.app-shell__column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
.app-header {
|
|
min-height: var(--header-h);
|
|
display: grid;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 10px 16px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
.app-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.app-logo { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; text-decoration: none; }
|
|
.scope { min-width: 0; }
|
|
.search { display: flex; gap: 8px; }
|
|
.search input { flex: 1; }
|
|
.app-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px 16px calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px) + 20px);
|
|
}
|
|
|
|
.bottom-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
max-width: 600px;
|
|
display: flex;
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
z-index: 20;
|
|
padding: var(--nav-pad-top) 6px env(safe-area-inset-bottom, 0px);
|
|
min-height: calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
.nav-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
color: var(--text3);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 10px;
|
|
line-height: 1.15;
|
|
padding: 2px 4px 4px;
|
|
}
|
|
.nav-item.active { color: var(--accent); }
|
|
.nav-item svg { flex-shrink: 0; }
|
|
|
|
.desktop-sidebar {
|
|
display: none;
|
|
flex-direction: column;
|
|
width: 220px;
|
|
height: 100vh;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 30;
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
padding: 16px 0;
|
|
}
|
|
.desktop-sidebar__brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 0 16px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 12px;
|
|
}
|
|
.desktop-sidebar__logo {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
border: 3px solid var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
.desktop-sidebar__title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.desktop-sidebar__nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 0 12px;
|
|
}
|
|
.desktop-sidebar__link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 16px 10px 13px;
|
|
text-decoration: none;
|
|
color: var(--text2);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
border-left: 3px solid transparent;
|
|
border-radius: 0 8px 8px 0;
|
|
}
|
|
.desktop-sidebar__link:hover { background: var(--surface2); color: var(--text1); }
|
|
.desktop-sidebar__link.active {
|
|
background: var(--accent-light);
|
|
color: var(--accent);
|
|
border-left-color: var(--accent);
|
|
}
|
|
.desktop-sidebar__scope { padding: 0 16px 12px; }
|
|
.desktop-sidebar__footer {
|
|
border-top: 1px solid var(--border);
|
|
padding: 16px 12px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.desktop-sidebar__user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
|
|
.desktop-sidebar__user-name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.desktop-sidebar__user-tier { font-size: 11px; color: var(--text3); }
|
|
.desktop-sidebar__logout {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text3);
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
}
|
|
.desktop-sidebar__logout:hover { color: var(--danger); background: rgba(216, 90, 48, 0.08); }
|
|
|
|
.crumb { margin: 0 0 6px; }
|
|
.crumb a { font-weight: 600; text-decoration: none; }
|
|
.chapter { display: grid; gap: 8px; }
|
|
.chapter h3 { font-size: 15px; color: var(--text1); text-transform: none; letter-spacing: 0; }
|
|
.section { display: grid; gap: 10px; }
|
|
.section-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
|
|
.section-bar h2, .section > h2 {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text3);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
|
|
.tile {
|
|
display: grid;
|
|
gap: 6px;
|
|
align-content: start;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
background: var(--surface);
|
|
color: var(--text1);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 14px;
|
|
min-height: 108px;
|
|
font-weight: 500;
|
|
}
|
|
.tile:hover { border-color: var(--accent); }
|
|
.tile strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
|
|
.tile span, .tile__kind { font-size: 12px; color: var(--text3); font-weight: 600; }
|
|
.tile__kind { text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
|
|
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
|
.choice button { min-height: 72px; }
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 40;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 16px;
|
|
background: rgba(28, 27, 24, 0.45);
|
|
}
|
|
.viewer { display: grid; gap: 12px; }
|
|
.viewer iframe { width: 100%; height: 72vh; border: 0; background: #fff; border-radius: 8px; }
|
|
.modal {
|
|
width: min(520px, 100%);
|
|
max-height: min(86vh, 760px);
|
|
overflow: auto;
|
|
background: var(--surface);
|
|
color: var(--text1);
|
|
border-radius: 16px;
|
|
padding: 18px;
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
|
|
}
|
|
.modal__bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
|
|
.modal.modal--wide { width: min(960px, 100%); }
|
|
.modal h2 { font-size: 18px; color: var(--text1); text-transform: none; letter-spacing: 0; margin: 0; }
|
|
.modal h3 { font-size: 13px; }
|
|
|
|
.page { display: grid; gap: 22px; }
|
|
.page-head { display: flex; justify-content: space-between; gap: 16px 24px; align-items: start; flex-wrap: wrap; }
|
|
.page-head > * { min-width: 0; }
|
|
.page-head > :first-child { flex: 1 1 16rem; }
|
|
.split, .forms { display: grid; gap: 12px; }
|
|
.forms > form {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
.index, .work, .people, .timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
|
|
.index li, .work li, .people li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.work li { align-items: start; }
|
|
.work li div, .people li { display: grid; gap: 2px; }
|
|
.index a { font-weight: 600; text-decoration: none; }
|
|
|
|
.item { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 10px; }
|
|
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
|
|
.dates { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
|
|
.dates div { display: grid; }
|
|
.dates dt { font-size: 12px; color: var(--text3); }
|
|
.dates dd { margin: 0; }
|
|
.annotations ul { padding-left: 1rem; margin: 8px 0 0; }
|
|
.annotations li { display: grid; }
|
|
.ref { display: grid; gap: 2px; }
|
|
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
|
|
.check input { width: auto; }
|
|
.demo { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
|
|
.demo ul { padding-left: 1.1rem; margin: 0; }
|
|
.demo li { margin: 6px 0; display: grid; gap: 4px; }
|
|
.demo code { font-size: 13px; color: var(--text2); }
|
|
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
|
|
.timeline time { color: var(--text3); font-size: 13px; }
|
|
.timeline div { display: grid; }
|
|
|
|
.trail { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 15px; margin-bottom: 10px; }
|
|
.trail > span { display: inline-flex; gap: 6px; align-items: center; }
|
|
.trail a, .trail [aria-current="page"] { font-weight: 700; }
|
|
.trail__sep { color: var(--text3); }
|
|
.hierarchy { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
|
|
.hierarchy ul { list-style: none; margin: 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--border); display: grid; gap: 2px; }
|
|
.hierarchy__line { display: flex; align-items: center; gap: 8px; }
|
|
.hierarchy__line .hierarchy__row { flex: 1; }
|
|
.hierarchy__open { flex: 0 0 auto; font-size: 13px; }
|
|
.hierarchy__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; min-height: 32px; padding: 5px 8px; text-decoration: none; color: inherit; border-radius: 8px; }
|
|
.hierarchy__row.is-current { background: var(--accent-light); box-shadow: inset 3px 0 0 var(--accent); }
|
|
.hierarchy__kind { color: var(--text3); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
|
|
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
|
|
.add-choices { display: grid; gap: 8px; }
|
|
.add-choices button { min-height: 44px; justify-content: flex-start; }
|
|
.hierarchy__parent { margin-bottom: 8px; }
|
|
.order-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
|
|
.order-bar button { min-height: 44px; }
|
|
.content-list { list-style: none; margin: 0; padding: 0; display: grid; }
|
|
.content-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border-top: 1px solid var(--border); }
|
|
.content-row__main {
|
|
display: grid;
|
|
grid-template-columns: 8.5rem 1fr auto;
|
|
gap: 12px;
|
|
align-items: baseline;
|
|
padding: 10px 0;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
min-height: 44px;
|
|
}
|
|
.content-row__date { color: var(--text2); font-variant-numeric: tabular-nums; }
|
|
.content-row__title { font-weight: 650; }
|
|
.content-row__kind { color: var(--text3); font-size: 13px; }
|
|
.content-row__move { display: flex; gap: 4px; }
|
|
.chapter-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 18px; }
|
|
.chapter-head.is-movable { cursor: grab; touch-action: none; user-select: none; }
|
|
.chapter-head.is-movable:active { cursor: grabbing; }
|
|
.chapter-head.is-movable .chapter-date,
|
|
.chapter-head.is-movable .chapter-move { cursor: auto; touch-action: auto; user-select: auto; }
|
|
.chapter-title { margin: 22px 0 4px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text1); font-weight: 700; }
|
|
.chapter-head .chapter-title { margin: 0; flex: 1 1 8rem; }
|
|
.chapter-date { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text3); font-size: 13px; }
|
|
.chapter-date input { width: auto; }
|
|
.chapter-move { display: flex; gap: 4px; }
|
|
.chapter-move button { min-height: 32px; padding: 4px 8px; font-size: 13px; }
|
|
.content-section.is-dragging { opacity: 0.45; }
|
|
.content-section.is-chapter-target { box-shadow: inset 0 3px 0 var(--accent); }
|
|
.content-section.is-chapter-after { box-shadow: inset 0 -3px 0 var(--accent); }
|
|
.folder-tree, .folder-tree ul { list-style: none; margin: 0; padding: 0; }
|
|
.folder-tree ul { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }
|
|
.folder-row { display: flex; align-items: center; gap: 2px; min-height: 32px; border-radius: 6px; }
|
|
.folder-row.is-current { background: var(--accent-light); }
|
|
.folder-twist, .folder-name { background: transparent; border: 0; color: inherit; min-height: 32px; padding: 0; }
|
|
.folder-twist { width: 28px; }
|
|
.folder-name { flex: 1; text-align: left; padding: 4px 8px; font: inherit; font-weight: 600; cursor: pointer; }
|
|
.order-choice { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; max-width: 36rem; font-size: 14px; }
|
|
.order-choice select { width: auto; min-width: 16rem; flex: 1; }
|
|
.target-line { margin: 0; color: var(--text2); overflow-wrap: break-word; }
|
|
.target-line strong { color: var(--text1); }
|
|
.content-section { display: grid; gap: 2px; }
|
|
.fold { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); margin-top: 16px; }
|
|
.fold summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
|
|
.tree { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
|
|
.tree__child { margin-left: 1rem; }
|
|
.work-layout { display: grid; gap: 16px; }
|
|
.side-work { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
|
|
.preview { width: 100%; min-height: 70vh; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
|
|
.contained { margin-top: 12px; }
|
|
.notes { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
|
|
|
|
@media (max-width: 720px) {
|
|
.content-row { grid-template-columns: 1fr; }
|
|
.content-row__main { grid-template-columns: 1fr; gap: 2px; }
|
|
.work-layout { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.work-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
|
|
}
|
|
|
|
@media (min-width: 760px) {
|
|
.mobile-only { display: none !important; }
|
|
.bottom-nav { display: none !important; }
|
|
.app-main { padding: 0; }
|
|
.page { padding: 28px 32px 40px; }
|
|
.split { grid-template-columns: 1fr 1fr; }
|
|
.forms { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.timeline li, .item-head, .index li, .work li { display: grid; }
|
|
}
|
|
|
|
.record-layout { display: grid; gap: 28px; align-items: start; }
|
|
.record-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
|
|
.outline-nav { display: grid; gap: 6px; }
|
|
.outline { padding: 4px 0 8px; }
|
|
.outline-nav h2, .outline-nav h3 { margin: 8px 0 0; }
|
|
.outline__toggle { display: none; }
|
|
button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
|
|
.preview-list { list-style: none; margin: 0; padding: 0; }
|
|
.preview-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 14px;
|
|
align-items: flex-start;
|
|
padding: 14px 0;
|
|
border-top: 1px solid var(--border);
|
|
position: relative;
|
|
min-width: 0;
|
|
}
|
|
.preview-row.is-dragging { opacity: 0.4; }
|
|
.preview-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 18rem; color: inherit; text-decoration: none; }
|
|
.preview-row__main strong { font-size: 16px; line-height: 1.35; overflow-wrap: break-word; }
|
|
.preview-row__meta, .preview-row__origin { color: var(--text2); font-size: 13px; overflow-wrap: break-word; }
|
|
.preview-row__actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; align-items: flex-start; }
|
|
.preview-row__text {
|
|
color: var(--text);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.thumb {
|
|
width: 72px;
|
|
height: 96px;
|
|
flex: 0 0 72px;
|
|
object-fit: cover;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
.thumb--note, .thumb--empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
padding: 6px;
|
|
font-size: 12px;
|
|
color: var(--text2);
|
|
}
|
|
.thumb--pdf { pointer-events: none; }
|
|
.handle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
min-width: 28px;
|
|
min-height: 44px;
|
|
padding: 0;
|
|
background: transparent;
|
|
color: var(--text3);
|
|
cursor: grab;
|
|
touch-action: none;
|
|
}
|
|
.handle:hover, .handle:focus-visible { background: var(--surface2); }
|
|
.handle__grip {
|
|
display: block;
|
|
width: 10px;
|
|
height: 16px;
|
|
background-image: radial-gradient(currentColor 1.15px, transparent 1.25px);
|
|
background-size: 5px 5px;
|
|
}
|
|
.insert-line { height: 4px; background: var(--accent); border-radius: 2px; list-style: none; margin: 2px 0; }
|
|
.row-menu { font-size: 13px; align-content: start; }
|
|
.row-menu summary {
|
|
cursor: pointer;
|
|
color: var(--text2);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
min-height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.row-menu button {
|
|
min-height: 36px;
|
|
padding: 6px 10px;
|
|
background: var(--surface2);
|
|
color: var(--text2);
|
|
border: 1px solid var(--border2);
|
|
}
|
|
.row-menu { display: block; }
|
|
.row-menu[open] { display: grid; gap: 8px; }
|
|
.row-menu:not([open]) > :not(summary) { display: none; }
|
|
.menu-list { display: grid; gap: 8px; }
|
|
.menu-list button { width: 100%; justify-content: flex-start; }
|
|
.placements { margin: 4px 0 0; overflow-wrap: anywhere; }
|
|
.reader-preview { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); }
|
|
.mailbox { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 16px; align-items: stretch; min-height: 420px; }
|
|
.mailbox__folders { border-right: 1px solid var(--border); padding-right: 8px; max-height: 60vh; overflow: auto; }
|
|
.mailbox__folders { display: block; }
|
|
.mailbox__group { min-height: 32px; display: flex; align-items: center; color: var(--text3); font-size: 13px; font-weight: 650; }
|
|
.mailbox__messages { display: grid; gap: 10px; min-width: 0; }
|
|
.mail-list { display: grid; }
|
|
.mail-row {
|
|
display: grid;
|
|
grid-template-columns: 6.5rem minmax(0, 1fr);
|
|
gap: 2px 12px;
|
|
width: 100%;
|
|
min-height: 58px;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
border-top: 1px solid var(--border);
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
text-align: left;
|
|
font-weight: 500;
|
|
}
|
|
.mail-row strong { grid-column: 2; grid-row: 1; overflow-wrap: anywhere; }
|
|
.mail-row span:first-child { grid-column: 1; grid-row: 1 / span 2; color: var(--text2); font-size: 13px; }
|
|
.mail-row span:last-child { grid-column: 2; color: var(--text2); font-size: 13px; overflow-wrap: anywhere; }
|
|
|
|
@media (min-width: 900px) {
|
|
.record-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
h1, .page-title { font-size: 24px; }
|
|
.order-choice { align-items: stretch; flex-direction: column; max-width: none; }
|
|
.order-choice select { width: 100%; min-width: 0; }
|
|
.preview-row { gap: 10px 12px; }
|
|
.preview-row__main { flex-basis: 12rem; }
|
|
.preview-row__actions { flex-basis: 100%; margin-left: 0; }
|
|
.thumb { width: 56px; height: 74px; flex-basis: 56px; }
|
|
}
|
|
|
|
@media (max-width: 899px) {
|
|
.outline__body { display: none; }
|
|
.outline.is-open .outline__body { display: block; }
|
|
.outline__toggle { display: inline-flex; margin-bottom: 8px; }
|
|
.mailbox { grid-template-columns: 1fr; min-height: 0; }
|
|
.mailbox__folders { display: block; max-height: 240px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 8px; }
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
button.danger { background: rgba(216, 90, 48, 0.16); }
|
|
.notice { color: var(--accent-2); }
|
|
.thumb { background: #1c1c1c; }
|
|
.preview-row.is-selected { background: #14382c; }
|
|
.reader-pane { background: #1a2420; }
|
|
}
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.rail {
|
|
width: 240px;
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
background: var(--brand);
|
|
color: #f4fbf7;
|
|
padding: 16px 10px 14px;
|
|
}
|
|
.app-shell.is-compact .rail { width: 72px; padding-inline: 8px; }
|
|
.rail__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 8px; color: #9fe1cb; }
|
|
.rail__name { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
|
|
.app-shell.is-compact .rail__name,
|
|
.app-shell.is-compact .rail__label,
|
|
.app-shell.is-compact .rail__search,
|
|
.app-shell.is-compact .rail__user-name,
|
|
.app-shell.is-compact .rail__logout { display: none; }
|
|
.rail__toggle, .rail__link, .rail__button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 44px;
|
|
margin: 2px 0;
|
|
padding: 8px 12px;
|
|
border-radius: 12px;
|
|
color: #e7f6ef;
|
|
background: transparent;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
border: 0;
|
|
}
|
|
.rail__toggle { color: #9fe1cb; }
|
|
.rail__toggle:disabled { opacity: 0.45; }
|
|
.rail__nav { display: flex; flex-direction: column; gap: 2px; }
|
|
.rail__link.active { background: rgba(159, 225, 203, 0.16); color: #fff; }
|
|
.app-shell.is-compact .rail__link,
|
|
.app-shell.is-compact .rail__toggle,
|
|
.app-shell.is-compact .rail__button {
|
|
width: 44px;
|
|
justify-content: center;
|
|
padding: 8px;
|
|
margin-inline: auto;
|
|
}
|
|
.app-shell.is-compact .rail__link.active { background: var(--accent-3); color: var(--brand); }
|
|
.rail__foot { margin-top: auto; display: grid; gap: 8px; }
|
|
.rail__search input {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-color: transparent;
|
|
color: #fff;
|
|
}
|
|
.rail__search input::placeholder { color: #c9e8db; }
|
|
.rail__user { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px; }
|
|
.app-shell.is-compact .rail__user { justify-content: center; }
|
|
.avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
background: var(--accent-3);
|
|
color: var(--brand);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
flex: none;
|
|
}
|
|
.rail__user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.rail__logout { margin-left: auto; color: #d7efe4; background: transparent; }
|
|
.mark { display: block; }
|
|
|
|
.app-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; }
|
|
.app-main:has(.workspace) {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.workspace {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
|
|
background: var(--bg);
|
|
}
|
|
.workspace.is-nav-hidden { grid-template-columns: minmax(0, 1fr); }
|
|
.workspace.is-split { grid-template-columns: minmax(220px, 280px) minmax(320px, 0.92fr) minmax(420px, 1.12fr); }
|
|
.workspace.is-nav-hidden.is-split { grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.15fr); }
|
|
.workspace.is-structure,
|
|
.workspace.is-reader-focus { grid-template-columns: minmax(0, 1fr); }
|
|
.workspace-nav, .workspace-main, .workspace-reader { min-width: 0; min-height: 0; overflow: auto; }
|
|
.workspace-nav { background: #f7f6f1; border-right: 1px solid var(--border); }
|
|
.workspace-nav.is-overlay {
|
|
position: absolute;
|
|
z-index: 6;
|
|
inset: 0 auto 0 0;
|
|
width: min(340px, 88vw);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.workspace-scrim { position: absolute; inset: 0; z-index: 5; border: 0; background: rgba(28, 27, 24, 0.28); }
|
|
.workspace-main { padding: 22px 28px 32px; }
|
|
.workspace-reader { background: #eef2ee; border-left: 1px solid var(--border); display: flex; min-height: 0; }
|
|
.workspace-head, .title-row, .page-actions, .content-toolbar, .reader-pane__bar, .reader-controls {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
}
|
|
.workspace-head { margin-bottom: 8px; }
|
|
.title-row { align-items: center; justify-content: flex-start; gap: 10px; }
|
|
.title-row h1 { margin: 0; }
|
|
.status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 28px;
|
|
padding: 2px 10px;
|
|
border-radius: 999px;
|
|
background: #f3e6c8;
|
|
color: #6a4b12;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
.status-pill.is-closed { background: #eceae4; color: #4d4a45; }
|
|
.surface-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin: 8px 0 16px; }
|
|
.surface-tabs button {
|
|
background: transparent;
|
|
color: var(--text2);
|
|
border-radius: 0;
|
|
min-height: 44px;
|
|
padding: 8px 0;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
.surface-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--accent); }
|
|
.structure { display: grid; align-content: start; gap: 14px; padding: 16px 14px 24px; }
|
|
.structure__bar, .structure h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 20px; }
|
|
.structure h3 { margin: 8px 0 4px; font-size: 13px; color: var(--text2); font-weight: 700; }
|
|
.context-select select { background: #fff; }
|
|
.nav-tree, .chapter-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
|
|
.nav-tree ul { margin: 0; padding: 0 0 0 14px; }
|
|
.nav-tree__link, .chapter-link {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-height: 44px;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
color: inherit;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
.nav-tree__link.is-current, .chapter-link.is-current { background: var(--accent-light); color: var(--brand); }
|
|
.nav-tree__kind { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text3); font-weight: 700; }
|
|
.nav-tree__title, .chapter-link span:first-child, .preview-row__main strong, h1 { overflow-wrap: anywhere; }
|
|
.chapter-link { justify-content: space-between; align-items: center; }
|
|
.count {
|
|
min-width: 1.6rem;
|
|
text-align: center;
|
|
color: var(--text2);
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
}
|
|
.chapter-link__move { display: flex; gap: 6px; padding: 0 8px 8px; }
|
|
.chapter-link__move button { min-height: 36px; padding: 4px 8px; font-size: 13px; }
|
|
.chapter-add { justify-content: flex-start; }
|
|
.content-toolbar { align-items: center; margin-bottom: 12px; }
|
|
.content-toolbar h2 { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--text1); }
|
|
.order-choice { margin: 0; }
|
|
.preview-list { display: grid; gap: 8px; }
|
|
.preview-row {
|
|
border: 1px solid transparent;
|
|
border-radius: 16px;
|
|
padding: 12px;
|
|
background: transparent;
|
|
}
|
|
.preview-row.is-selected { background: var(--accent-light); }
|
|
.preview-row__main strong { font-size: 17px; }
|
|
.thumb {
|
|
width: 74px;
|
|
height: 96px;
|
|
flex-basis: 74px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 2px rgba(28, 27, 24, 0.08);
|
|
}
|
|
.icon-button {
|
|
width: 44px;
|
|
min-width: 44px;
|
|
height: 44px;
|
|
padding: 0;
|
|
background: transparent;
|
|
color: var(--text2);
|
|
border: 0;
|
|
}
|
|
.row-menu summary { min-height: 44px; min-width: 44px; justify-content: center; }
|
|
.desktop-add svg, .mobile-add svg { width: 18px; height: 18px; }
|
|
.mobile-add { display: none; }
|
|
.reader-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; }
|
|
.reader-pane__bar { padding: 16px 16px 8px; align-items: center; }
|
|
.reader-pane__heading { flex: 1 1 12rem; min-width: 0; }
|
|
.reader-pane__heading h2 { font-size: 22px; overflow-wrap: anywhere; }
|
|
.reader-pane__heading p, .reader-back { color: var(--text2); font-size: 14px; }
|
|
.reader-back { background: transparent; color: var(--brand); padding-inline: 0; }
|
|
.reader-pane__tools { display: flex; gap: 4px; }
|
|
.reader-pane__stage { flex: 1; min-height: 240px; overflow: auto; padding: 8px 16px 16px; }
|
|
.reader-pane__state, .reader-note {
|
|
background: var(--surface);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
.reader-canvas, .reader-image, .reader-frame {
|
|
display: block;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
background: #fff;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.reader-frame { width: 100%; min-height: 70vh; border: 0; }
|
|
.reader-pane__foot {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px 12px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
|
|
background: rgba(255, 252, 247, 0.92);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.reader-pages, .reader-zoom { display: flex; align-items: center; gap: 6px; }
|
|
.reader-annotate { display: grid; gap: 10px; padding: 12px 16px 20px; background: var(--surface); }
|
|
.sheet {
|
|
width: min(520px, 100%);
|
|
margin-top: auto;
|
|
background: var(--surface);
|
|
border-radius: 16px 16px 0 0;
|
|
padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
.menu-list a {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
text-decoration: none;
|
|
font-weight: 650;
|
|
background: var(--surface2);
|
|
}
|
|
|
|
@media (max-width: 759px) {
|
|
.rail { display: none; }
|
|
.app-shell { flex-direction: column; }
|
|
.workspace-main, .structure { padding-bottom: 96px; }
|
|
.mobile-add { display: none; }
|
|
.page-actions { flex-wrap: wrap; }
|
|
.desktop-add { width: 100%; justify-content: center; }
|
|
.modal-overlay { padding: 0; align-items: end; }
|
|
.modal {
|
|
width: 100%;
|
|
max-height: 100%;
|
|
height: 100%;
|
|
border-radius: 0;
|
|
padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
.sheet { height: auto; }
|
|
body.is-phone-reading .bottom-nav,
|
|
body.is-phone-reading .app-header { display: none !important; }
|
|
body.is-phone-reading .workspace-reader { min-height: 100%; }
|
|
.preview-row__actions { flex-basis: 100%; margin-left: 0; }
|
|
}
|
|
|
|
@media (min-width: 760px) and (max-width: 1179px) {
|
|
.rail { width: 72px; }
|
|
.rail__name, .rail__label, .rail__search, .rail__user-name, .rail__logout { display: none; }
|
|
.rail__link, .rail__toggle, .rail__button { width: 44px; justify-content: center; margin-inline: auto; padding: 8px; }
|
|
}
|