:root { color-scheme: light; }
body { font-family: "JetBrains Mono", ui-monospace, monospace; margin: 0; color: #1b1b1b; }
header { padding: 24px; border-bottom: 2px solid #1b1b1b; position: relative; background-image: url("/static/adtp-background.png"); background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #ffb152; background-blend-mode: multiply; }
h1 { margin: 0 0 8px; font-size: 28px; }
main { max-width: 900px; margin: 0 auto; padding: 24px; }
button { padding: 10px 14px; border: 2px solid #1b1b1b; background: #f06a00; color: #fff; cursor: pointer; border-radius: 10px; }
input[type="text"], input[type="password"], textarea { padding: 10px 12px; border: 2px solid #1b1b1b; background: #fffaf4; font-family: inherit; font-size: 14px; border-radius: 10px; }
textarea { resize: vertical; min-height: 104px; }

body.theme-main { background: #fff3e8; }
body.theme-archive { background: #f4f2ee; }

header.theme-main { background-color: #ffb152; }
header.theme-archive { background-color: #ffe7a8; }

.footer { max-width: 900px; margin: 0 auto 24px; padding: 0 24px; font-size: 12px; opacity: 0.6; display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

.menu { position: absolute; top: 16px; right: 16px; }
.menu-button { width: 40px; height: 36px; border: 2px solid #1b1b1b; background: #fffaf4; border-radius: 10px; cursor: pointer; font-size: 18px; }
.menu-panel { position: absolute; right: 0; top: 44px; background: #fff; border: 2px solid #1b1b1b; border-radius: 12px; padding: 8px; display: none; min-width: 160px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.menu-panel a { display: block; padding: 6px 8px; text-decoration: none; color: #1b1b1b; border-radius: 8px; }
.menu-panel a:hover { background: #fff3e8; }
.menu.open .menu-panel { display: block; }

.nav { margin-bottom: 12px; }
.archive { margin-top: 16px; display: inline-block; }

form.new-task, form.new-set { display: grid; gap: 8px; grid-template-columns: 1fr auto; margin-bottom: 24px; }
.field { display: grid; gap: 8px; }

ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.task, .set { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 14px; background: #fff; border: 2px solid #1b1b1b; align-items: start; border-radius: 14px; box-shadow: 0 1px 0 rgba(27,27,27,0.08); }
.task { transition: opacity 220ms ease; }
.task.is-printed { opacity: 0.55; }
.actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.title { font-size: 18px; }
.desc { margin-top: 6px; font-size: 14px; white-space: pre-wrap; }
.meta { font-size: 12px; opacity: 0.7; }
.items { margin: 8px 0 0; padding: 8px 10px; background: #fffaf4; border: 1px dashed #1b1b1b; border-radius: 8px; white-space: pre-wrap; }

.btn-delete { background: #2f6fed; color: #fff; }

.admin-main { max-width: 420px; margin: 0 auto; padding: 48px 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid #1b1b1b; border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-actions { display: flex; gap: 8px; }
.logout { background: #2f6fed; }

@media (max-width: 640px) {
  form.new-task, form.new-set { grid-template-columns: 1fr; }
  .task, .set { grid-template-columns: 1fr; }
}
