:root {
	--paper: #f6f6f4;
	--panel: #fff;
	--line: #e2e2de;
	--line-strong: #c4c4bf;
	--ink: #1b1b1b;
	--ink-soft: #6f6f6b;
	--accent: #1f7a68;
	--accent-soft: #e2f1ed;
	--error: #b03a2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); }
body.narrow { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
body.wide { display: flex; flex-direction: column; }
a { color: var(--accent); }
.muted { color: var(--ink-soft); }

.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: 0.01em; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 14px; }

.card { width: 100%; max-width: 380px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 5%); }
.card h1 { margin: 20px 0 14px; font-size: 21px; }
.card form { display: flex; flex-direction: column; gap: 12px; }
.card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.card input { padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; color: var(--ink); background: var(--panel); }
.card input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.card button { margin-top: 4px; padding: 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.card button:hover { filter: brightness(1.08); }
.error { margin: 0 0 4px; color: var(--error); }
.notice { margin: 0 0 4px; color: var(--accent); }

.bar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.bar--slim { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.bar__title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__spacer { flex: 1; }
.bar__save { font-size: 13px; color: var(--ink-soft); }
.bar__user { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.bar__link { font-size: 13px; }
.bar__logout { margin: 0; }
.bar__logout button { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); font: inherit; font-size: 13px; cursor: pointer; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #ececea; color: #444; }
.pill--public { background: #fdf1d8; color: #7a5200; }
.pill--private { background: var(--accent-soft); color: var(--accent); }
.pill--password { background: #e4edf6; color: #1f4e79; }

.frame { flex: 1; width: 100%; border: 0; background: var(--paper); }

.index { width: 100%; max-width: 820px; margin: 0 auto; padding: 28px 16px 48px; }
.index h1 { margin: 0 0 16px; font-size: 24px; }
.index__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.index__list a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.index__list a:hover { border-color: var(--line-strong); }
.index__title { font-weight: 600; }
.index__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 640px) {
	.bar { gap: 8px; padding: 6px 10px; flex-wrap: wrap; }
	.bar__user { display: none; }
}
