:root {
  color-scheme: dark;
  --bg: #151715;
  --surface: #1d201d;
  --border: #343934;
  --text: #eeeee6;
  --muted: #a4aaa1;
  --lime: #d2f85c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 'Segoe UI', Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { max-width: 1240px; margin: auto; padding: 0 48px; }
.sidebar { display: flex; align-items: center; gap: 32px; min-height: 106px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; background: var(--lime); color: #20291a; border-radius: 50% 50% 50% 8px; font-size: 23px; font-weight: 750; letter-spacing: -2px; }
.brand-caption { display: block; font-size: 11px; font-weight: 400; letter-spacing: .01em; color: var(--muted); }
.sidebar-middle { margin-left: auto; }
.nav-current { display: flex; align-items: center; gap: 10px; font-size: 14px; text-decoration: none; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid #515b46; color: var(--lime); border-radius: 50%; font-size: 12px; }
.sidebar-bottom { padding-left: 26px; border-left: 1px solid var(--border); }
.login-entry { display: flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); min-height: 44px; font-size: 14px; }
.login-entry:hover { color: var(--text); }
.login-entry svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
main { min-width: 0; }
.workspace { padding: 58px 0 25px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .065em; color: var(--muted); }
h1 { margin: 8px 0 14px; font: 400 clamp(44px, 5vw, 62px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.heading-dot { color: var(--lime); }
.heading p { color: var(--muted); font-size: 15px; margin: 0; }
.total { text-align: right; padding-bottom: 3px; flex-shrink: 0; }
.total strong { display: block; font: 400 40px/1.2 Georgia, 'Times New Roman', serif; font-variant-numeric: tabular-nums; }
.total span { font-size: 12px; color: var(--muted); }
.workspace-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); margin-bottom: 29px; }
.view-switch { display: flex; gap: 4px; padding: 4px; background: #101310; border: 1px solid #343a32; border-radius: 8px; }
.view-switch button { display: flex; align-items: center; gap: 8px; padding: 8px 13px; min-height: 38px; background: transparent; color: var(--muted); border: 0; border-radius: 5px; font-size: 13px; }
.view-switch button:hover { color: var(--text); }
.view-switch button[aria-pressed=true] { background: #30382a; color: #def9a0; box-shadow: inset 0 0 0 1px #46513a; }
.view-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.top-actions { display: flex; gap: 15px; align-items: center; }
.admin-badge { color: var(--lime); font-size: 12px; }
.button { padding: 10px 16px; min-height: 44px; border: 1px solid #485043; border-radius: 6px; background: #2a3027; color: var(--text); font-size: 14px; font-weight: 600; }
.button:hover { background: #37402f; }
.button.primary { background: var(--lime); border-color: var(--lime); color: #20291a; }
.button.primary:hover { background: #e0ff85; }
.button.danger { background: #552b32; border-color: #8a424d; color: #ffd7df; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 500; }
.section-heading > span { font-size: 10px; letter-spacing: .065em; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 38px; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-color] { --accent: var(--lime); --accent-bg: #2c3621; --accent-border: #4d5e38; }
[data-color=violet] { --accent: #c5a5fc; --accent-bg: #332d3f; --accent-border: #554765; }
[data-color=blue] { --accent: #8dcff0; --accent-bg: #26353c; --accent-border: #405965; }
[data-color=orange] { --accent: #edb689; --accent-bg: #3a3026; --accent-border: #63513c; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--accent-border); border-radius: 5px 5px 9px 9px; transition: border-color .18s, background .18s, transform .18s; }
.card:hover { background: #232822; border-color: var(--accent-border); transform: translateY(-3px); }
.featured-grid .card { background: var(--accent-bg); }
.featured-grid .card:hover { border-color: var(--accent); }
.card.hidden-card { border-style: dashed; opacity: .72; }
.card-link { display: flex; flex-direction: column; gap: 21px; flex: 1; padding: 23px; min-height: 262px; text-decoration: none; }
.featured-grid .card-link { min-height: 235px; padding: 25px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.project-icon { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent); }
.project-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.category { color: var(--muted); font-size: 11px; }
.card h3 { font: 400 24px/1.22 Georgia, 'Times New Roman', serif; letter-spacing: -.02em; margin: 0 0 10px; }
.card p { font-size: 13px; color: #b1b7ac; line-height: 1.65; margin: 0; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff12; }
.destination { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #979f92; font-size: 11px; }
.open-label { font-size: 24px; line-height: 1; color: var(--accent); transition: transform .18s; }
.card:hover .open-label { transform: translate(2px, -2px); }
.card-controls { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 19px 18px; }
.card-controls button { padding: 7px 9px; min-height: 34px; border: 1px solid #454e3f; border-radius: 5px; background: #ffffff05; color: #cbd0c6; font-size: 12px; }
.card-controls button:hover { background: #ffffff0c; }
.card-controls .remove { color: #e6b6c0; margin-left: auto; }
.hidden-label { margin-top: 4px; margin-bottom: 5px; font-size: 11px; font-weight: 400; color: #efd188; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 7px; scrollbar-color: #505b44 #1b1f1a; }
.projects-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 13px; }
.projects-table thead { background: #1c211b; }
.projects-table thead th { padding: 0; color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; border-bottom: 1px solid var(--border); }
.projects-table thead th > button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 18px; background: none; border: 0; color: inherit; font-size: inherit; text-align: left; min-height: 46px; gap: 13px; }
.projects-table thead th > button:hover { color: var(--text); background: #ffffff04; }
.projects-table thead th[aria-sort=ascending], .projects-table thead th[aria-sort=descending] { color: var(--lime); }
.sort-mark { color: #73816a; font-size: 14px; }
.projects-table tbody th, .projects-table tbody td { padding: 21px 18px; border-bottom: 1px solid #30362d; vertical-align: middle; }
.projects-table tbody tr:last-child > * { border-bottom: 0; }
.projects-table tbody tr:hover { background: #20271d; }
.table-project { width: 39%; font-weight: 400; min-width: 235px; }
.table-project-link { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.table-project-link:hover .table-project-title { color: var(--accent); }
.table-project-content { display: flex; flex-direction: column; gap: 4px; }
.table-project-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.table-description { font-size: 11px; line-height: 1.5; font-weight: 400; color: var(--muted); }
.pin-mark { display: inline-block; margin-left: 9px; color: var(--accent); font-size: 11px; }
.table-category { color: #c2c9ba; font-size: 12px; }
.table-address { font-size: 11px; width: 28%; }
.table-address a { display: inline-block; max-width: 255px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.table-address a:hover { color: var(--accent); text-decoration: underline; }
.table-date { color: #9ca595; font-size: 11px; white-space: nowrap; }
.table-date time { font-variant-numeric: tabular-nums; }
.hidden-row { opacity: .66; }
.projects-table #table-actions-heading { padding: 16px 18px; }
.table-actions { min-width: 140px; }
.table-actions .card-controls { padding: 0; min-width: 105px; }
.table-actions .card-controls .remove { margin-left: 0; }
.table-hint { font-size: 11px; color: var(--muted); margin: 15px 0 38px; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px 0 8px; border-top: 1px solid var(--border); color: #8e9985; font-size: 11px; }
.footer-slash { margin: 0 8px; color: #56614e; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border: 1px solid #455236; border-radius: 6px; margin-bottom: 25px; background: #22291c; color: #d6e6b9; font-size: 13px; }
.admin-toolbar > div { display: flex; gap: 15px; flex-wrap: wrap; }
.text-button { background: none; border: 0; color: inherit; padding: 4px 0; font-size: 13px; min-height: 34px; text-decoration: none; }
.text-button:hover { text-decoration: underline; }
.notice { display: flex; justify-content: space-between; gap: 12px; padding: 18px; margin-bottom: 20px; background: #422b2c; border: 1px solid #6a4245; border-radius: 6px; color: #ffe0e1; }
.loading, .empty { text-align: center; padding: 65px 15px; color: var(--muted); }
.empty h2 { color: var(--text); font: 400 26px Georgia, 'Times New Roman', serif; }
dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #485141; border-radius: 10px; background: #20241e; color: var(--text); box-shadow: 0 22px 90px #0009; }
dialog::backdrop { background: #090c08cb; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-top: -8px; }
.icon-button { background: transparent; border: 0; color: var(--muted); width: 40px; height: 40px; border-radius: 5px; font-size: 24px; }
.icon-button:hover { background: #30382b; color: var(--text); }
dialog h2 { font: 400 29px/1.25 Georgia, 'Times New Roman', serif; margin: 8px 0 22px; letter-spacing: -.025em; }
.form-description { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; min-height: 46px; background: #151a12; border: 1px solid #434e3a; border-radius: 6px; color: var(--text); font-size: 16px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8e9985; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.check-label { display: flex; align-items: center; gap: 10px; margin: 13px 0; font-weight: 400; }
.check-label input { width: 18px; height: 18px; accent-color: var(--lime); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.submit-button { width: 100%; margin-top: 8px; }
.form-error { color: #ffb8c7; font-size: 14px; margin: 13px 0; }
.form-error:empty { display: none; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 13px 23px; z-index: 10; background: #daf6a9; color: #1a2711; border-radius: 7px; box-shadow: 0 8px 35px #0008; font-size: 14px; }
@media (max-width: 980px) {
  .shell { padding: 0 30px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-link { min-height: 235px; }
  .admin-badge { display: none; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  .shell { padding: 0 20px; }
  .sidebar { min-height: 82px; gap: 16px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-mark { width: 35px; height: 35px; font-size: 20px; }
  .brand-caption, .sidebar-middle { display: none; }
  .sidebar-bottom { margin-left: auto; padding-left: 0; border-left: 0; }
  .workspace { padding: 35px 0 18px; }
  .heading { align-items: flex-end; margin-bottom: 25px; gap: 15px; }
  h1 { font-size: 44px; }
  .heading .eyebrow { font-size: 9px; }
  .heading p { font-size: 13px; max-width: 260px; }
  .total strong { font-size: 33px; }
  .total span { font-size: 10px; }
  .workspace-tools { gap: 12px; flex-wrap: wrap; padding: 13px 0; margin-bottom: 22px; }
  .view-switch button { padding: 8px 10px; min-height: 36px; font-size: 12px; }
  .top-actions .button { font-size: 12px; min-height: 40px; padding: 9px 11px; }
  .project-grid, .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-bottom: 30px; }
  .card-link, .featured-grid .card-link { min-height: 220px; padding: 22px; gap: 17px; }
  .card h3 { font-size: 25px; }
  .card p { font-size: 13px; }
  .card-controls { padding: 0 19px 17px; }
  .projects-table { min-width: 680px; }
  .projects-table tbody th, .projects-table tbody td { padding: 18px 15px; }
  .table-project { width: 260px; }
  .table-hint { max-width: 330px; line-height: 1.6; }
  footer { flex-direction: column; gap: 6px; font-size: 10px; }
  dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
