.topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; z-index: 5; }
.search { flex: 1; max-width: 560px; position: relative; }
.search svg { position: absolute; left: 10px; top: 8px; color: var(--text-3); }
.search .input { width: 100%; padding-left: 34px; height: 34px; border-radius: 17px; background: var(--surface-2); }
.avatar-btn { border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.home { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.home h2 { font-size: 15px; font-weight: 600; margin: 8px 0 14px; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; margin-bottom: 32px; }
.tpl { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); cursor: pointer; overflow: hidden; text-align: left; padding: 0; transition: box-shadow 0.15s, border-color 0.15s; }
.tpl:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.tpl .thumb { height: 104px; background: #fff; border-bottom: 1px solid var(--border-soft); display: grid; place-items: center; overflow: hidden; }
.tpl .thumb svg { width: 100%; height: 100%; }
.tpl .meta { padding: 10px 12px; }
.tpl .meta b { display: block; font-weight: 600; font-size: 13px; }
.tpl .meta span { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-head { display: flex; align-items: center; justify-content: space-between; }
.drop { position: relative; border-radius: var(--radius); }
.drop .drop-hint { display: none; }
.drop.over { outline: 2px dashed var(--accent); outline-offset: 4px; }
.drop.over .drop-hint { display: grid; place-items: center; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); font-weight: 600; color: var(--accent-text); }
.wb-list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.wb-list th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-2); padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.wb-list td { padding: 9px 14px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.wb-list tr:last-child td { border-bottom: none; }
.wb-list tbody tr { cursor: pointer; }
.wb-list tbody tr:hover { background: var(--surface-2); }
.wb-list .name { display: flex; align-items: center; gap: 10px; font-weight: 500; white-space: normal; }
.wb-list .name svg { color: var(--accent); width: 20px; height: 20px; }
.wb-list td:last-child { width: 44px; }
.empty { text-align: center; padding: 40px; color: var(--text-2); }

.auth-page { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 16px; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--text-3); text-align: center; }
.auth-foot .ver { font-variant-numeric: tabular-nums; }
.auth-card { width: 380px; max-width: 100%; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; padding: 32px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 22px; margin: 24px 0 4px; }
.auth-card form { margin-top: 20px; }
.auth-card .wide { width: 100%; height: 36px; }
.auth-card .switch { margin: 18px 0 0; text-align: center; }
.auth-card .terms { margin: 14px 0 0; text-align: center; line-height: 1.5; }

@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .home { padding: 16px; }
  .wb-list th:nth-child(2), .wb-list td:nth-child(2), .wb-list th:nth-child(4), .wb-list td:nth-child(4) { display: none; }
}

/* Docs start screen */
.greeting { font-size: 28px; font-weight: 600; margin: 8px 0 18px; letter-spacing: -0.01em; }
.templates.pages { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.tpl.page-tpl { background: none; border: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; align-self: start; color: var(--text); }
.tpl.page-tpl .thumb { height: auto; aspect-ratio: 8.5 / 11; background: #fff; border: 1px solid var(--border); border-radius: 3px; display: block; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tpl.page-tpl:hover .thumb { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.tpl.page-tpl .thumb .mini { position: absolute; left: 0; top: 0; width: 612px; padding: 48px 54px; transform-origin: 0 0; color: #000; pointer-events: none; font-size: 12pt; line-height: 1.2; }
.tpl.page-tpl .thumb .mini table { border-collapse: collapse; }
.tpl.page-tpl .meta { padding: 8px 2px 0; }
.tpl.page-tpl .meta b { font-weight: 500; font-size: 13.5px; }
.wb-list .name svg { color: var(--accent); }
.wb-list td.words { font-variant-numeric: tabular-nums; }
