:root {
  --ink: #14233b; --muted: #5d6877; --line: #e4e8ee; --soft: #f5f6f8;
  --bad: #b42318; --good: #17794f;
  --ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 var(--ui); color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 10px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
p { margin: 0 0 14px; max-width: 68ch; color: var(--muted); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; }

.bar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.bar .brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 16px; }
.bar form { display: flex; gap: 16px; align-items: center; margin: 0; }
.who { color: var(--muted); font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }
.crumb { margin: 0 0 10px; font-size: 13px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.facts { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.facts b { color: var(--ink); font-weight: 700; }

.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 0 0 20px; }
.box.narrow { max-width: 400px; margin: 56px auto; }
.center { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.center .box { max-width: 440px; }
.center .box p { margin: 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head h2 { margin: 0; }

label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input:not([type]), input[type="text"], input[type="password"], input[type="number"], select, .mono {
  width: 100%; font: 15px var(--ui); padding: 11px 13px; border: 1px solid #cfd5de; border-radius: 10px; background: #fff; color: var(--ink);
}
input.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; background: var(--soft); border-color: var(--line); }
input[type="file"] { font: 14px var(--ui); color: var(--muted); max-width: 240px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #8fb1e8; outline-offset: 2px; }
.help { display: block; font-size: 13px; color: var(--muted); margin: 5px 0 0; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.grid2 .full { grid-column: 1 / -1; margin-top: 22px; }
.colors { border: 0; padding: 0; display: flex; gap: 12px 24px; flex-wrap: wrap; }
.colors legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.colors label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; color: var(--muted); }
.colors input { width: 40px; height: 32px; padding: 2px; border: 1px solid #cfd5de; border-radius: 8px; background: #fff; }

.btn { display: inline-block; font: 600 14px/1 var(--ui); text-decoration: none; cursor: pointer; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 10px; padding: 12px 18px; }
.btn.line { background: #fff; color: var(--ink); border-color: #cfd5de; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f0c7c2; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:hover { opacity: .88; }
.box.narrow form > .btn { margin-top: 22px; width: 100%; padding: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid; max-width: none; font-weight: 500; }
.flash.good { color: var(--good); border-color: #bfe3d0; background: #f0faf4; }
.flash.bad { color: var(--bad); border-color: #f0c7c2; background: #fef3f2; }
.empty { color: var(--muted); margin: 0; }

.list { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.list th, .list td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--soft); padding-top: 10px; padding-bottom: 10px; }
.list tr:last-child td { border-bottom: 0; }
.list td a { font-weight: 700; text-decoration: none; }
.list td a:hover { text-decoration: underline; }
.list td .inline { margin: 0; }
.box .list { margin: 6px 0 0; border-radius: 12px; }

.open { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.open > img { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.open > div { flex: 1 1 320px; }
.thumb { max-height: 180px; border-radius: 10px; padding: 0 !important; }

.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.photos li { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.shot { display: flex; align-items: center; justify-content: center; height: 230px; background: var(--soft); border-radius: 10px; }
.shot img { display: block; max-height: 206px; max-width: calc(100% - 24px); width: auto; height: auto; box-shadow: 0 6px 16px -8px rgba(20, 35, 59, .4); }
.photos p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.acts { display: flex; gap: 8px; margin-top: auto; }
.acts form { margin: 0; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .box { padding: 20px; } }
