/* Personal workshop direction. Design review guided by unslop by Damir
   Sokolovsky (@heydamir), https://heydamir.design/unslop — CC BY 4.0. */
:root {
  --paper: #f8f9fa; --card: #fff; --ink: #202b33; --muted: #66737d;
  --line: #dfe5e9; --green: #087da4; --deep: #202b33;
  --accent: #087da4; --raised: #eef2f4; --shadow: 0 4px 16px #202b3306;
}
html { scroll-padding-top: 96px; }
body { background: var(--paper); color: var(--ink); font: 400 14px/1.6 Manrope, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out; }
:where(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #cde7f0; color: var(--ink); }
.main-area { margin-left: 0; background: var(--paper); }
.topbar { height: 80px; padding: 0 max(32px, calc((100vw - 1184px)/2)); gap: 24px; background: #f8f9fa; backdrop-filter: none; border-color: var(--line); }
.top-brand { gap: 12px; font: 500 20px/1 Manrope,sans-serif; letter-spacing: 0; white-space: nowrap; }
.top-brand span { font: 600 16px/1 Manrope,sans-serif; letter-spacing: 0; }
.brand-symbol { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--accent); font: 500 18px/1 monospace; }
.top-nav { gap: 4px; }
.top-nav-link { padding: 8px 16px; min-height: 40px; border-radius: 8px; font: 500 13px/24px Manrope,sans-serif; color: #53616b; }
.top-nav-link:hover { background: var(--raised); color: var(--ink); }
.top-nav-link.active { background: #e5edf1; color: #185a70; }
.top-actions { gap: 12px; }
.login-top, #logout-top { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; font-weight: 500; color: #53616b; }
.login-top:hover, #logout-top:hover { border-color: #b6c4cc; background: var(--raised); }
.login-top span { color: inherit; }
.avatar, .profile-card .profile-avatar { background: #e7edf1; border: 1px solid #d5dfe5; color: #3d5968; font-weight: 500; }
.top-avatar { width: 36px; height: 36px; display: grid; transform: none; box-shadow: none; }
.top-avatar:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.nav-toggle { display: none; }
.content { width: 100%; max-width: 1248px; margin: 0 auto; padding: 48px 32px 64px; }
.portfolio-hero { display: grid; grid-template-columns: .94fr 1.06fr; gap: 48px; align-items: center; padding: 16px 0 48px; text-align: left; min-height: 560px; background: transparent; }
.portfolio-intro { max-width: none; }
.portfolio-kicker, .portfolio-section-title>span, .portfolio-cta>div>span, .eyebrow, .tools-view .page-heading .eyebrow, .profile-view .page-heading .eyebrow { color: var(--muted); font: 400 12px/20px Manrope,sans-serif; letter-spacing: 0; text-transform: none; animation: none; }
.portfolio-kicker i, .hero-scribble, .photo-sticker, .card-icon { display: none; }
.portfolio-intro h1 { margin: 20px 0 24px; font: 500 clamp(36px,3.3vw,48px)/1.14 Manrope,sans-serif; letter-spacing: -.035em; animation: none; }
.portfolio-intro h1 em { color: var(--accent); font-style: normal; font-weight: 400; }
.accent-dot { color: var(--ink); }
.portfolio-intro>p { margin: 0; max-width: 440px; color: #53616b; font-size: 16px; line-height: 1.8; }
.private-actions { justify-content: flex-start; gap: 12px; margin-top: 32px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border-radius: 8px; font: 500 13px/20px Manrope,sans-serif; text-decoration: none; transform: none; }
.button:hover { transform: none; }
.button-primary, .portfolio-cta .button-primary { background: var(--accent); color: #fff; }
.button-primary:hover, .portfolio-cta .button-primary:hover { background: #066583; }
.button-primary span { padding-left: 0; color: inherit; }
.button-soft { background: transparent; color: #475760; border: 1px solid #cfd9df; }
.button-soft:hover { background: var(--raised); }
.portfolio-status { margin-top: 24px; color: var(--muted); font: 400 12px/20px Manrope,sans-serif; animation: none; }
.portfolio-status span { background: #698977; width: 6px; height: 6px; margin-right: 8px; }
.portfolio-photo { width: 100%; min-width: 0; }
.photo-frame { width: 100%; height: 464px; border-radius: 16px; background: var(--raised); box-shadow: none; }
.profile-photo { border-radius: 16px; object-position: 47% 50%; transform: none; }
.portfolio-section-title { padding: 48px 0 32px; text-align: left; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.portfolio-section-title>span::before { content: '01 / '; font-family: monospace; color: var(--accent); }
.portfolio-section-title h2, .portfolio-cta h2 { margin: 12px 0 16px; font: 500 clamp(28px,3vw,36px)/1.25 Manrope,sans-serif; letter-spacing: -.025em; color: var(--ink); }
.portfolio-section-title p { margin: 0; max-width: 640px; color: #53616b; font-size: 14px; line-height: 1.8; }
.portfolio-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.portfolio-card { min-height: 240px; padding: 28px; border: 1px solid var(--line)!important; border-radius: 12px; background: #fff!important; color: var(--ink)!important; box-shadow: none; transition: border-color 160ms ease-out; }
.portfolio-card:hover { transform: none; border-color: #b5c6ce!important; box-shadow: none; }
.card-index { position: static; display: block; color: var(--muted); font: 400 12px/20px monospace; }
.portfolio-card h3 { margin: 20px 0 12px; color: var(--ink); font: 500 20px/1.4 Manrope,sans-serif; letter-spacing: -.02em; }
.portfolio-card p, .plans-card ul { color: #53616b!important; font-size: 13px; line-height: 1.8; opacity: 1; }
.skill-pills { margin-top: 20px; gap: 8px; }
.skill-pills span, .skill-pills .future-tech { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: #53616b; font-size: 11px; font-weight: 400; }
.skill-pills .future-tech { border-style: dashed; }
.learning-path { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.learning-step { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.learning-label { flex: 0 0 140px; color: var(--muted); font-size: 12px; line-height: 20px; }
.learning-label em { color: var(--accent); font-style: normal; font-weight: 500; }
.learning-tech { padding: 4px 8px; border: 1px solid #c9e0e8; border-radius: 4px; background: #edf6f9; color: var(--accent); font-size: 12px; line-height: 20px; }
.pc-specs { margin-top: 20px; gap: 12px; font-size: 12px; }
.pc-specs span { gap: 16px; border-color: var(--line); padding-bottom: 8px; }
.pc-specs b { text-align: right; color: var(--ink); font-weight: 500; opacity: 1; }
.plans-card ul { margin: 0; padding-left: 16px; }
.portfolio-cta { margin-top: 32px; padding: 32px; gap: 32px; border: 1px solid var(--line); border-radius: 12px; background: #edf2f5; }
.portfolio-cta h2 { margin-bottom: 0; font-size: 32px; }
.portfolio-weather { margin-top: 32px; padding: 32px; border: 1px solid var(--line); box-shadow: none; background: #fff; }
.weather-heading h2 { margin-top: 8px; font: 500 24px/1.3 Manrope,sans-serif; letter-spacing: -.02em; }
.weather-heading .portfolio-kicker::before { content: '02 / '; font-family: monospace; color: var(--accent); }
.weather-change { min-height: 40px; padding: 8px 16px; border-radius: 8px; border-color: #cfd9df; color: #475760; font: 500 12px/20px Manrope,sans-serif; }
.weather-change:hover { background: var(--raised); }
.weather-content { margin-top: 32px; }
.weather-city { font: 500 20px/1.4 Manrope,sans-serif; }
.weather-condition { margin-top: 8px; color: var(--muted); }
.weather-temperature { font: 400 48px/1 Manrope,sans-serif; letter-spacing: -.03em; }
.weather-icon { display: grid; place-items: center; color: var(--muted); }
.weather-icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.weather-facts { gap: 16px; margin-top: 24px; }
.weather-facts>div { gap: 8px; padding: 16px; border-radius: 8px; background: var(--paper); }
.weather-facts span { color: var(--muted); font-size: 12px; }
.weather-facts strong { font-size: 16px; font-weight: 500; }
.weather-today { margin-top: 16px; color: #53616b; line-height: 1.8; }
.weather-chart-heading { margin-top: 32px; color: #53616b; font-weight: 400; }
.weather-chart-wrap { height: 280px; margin-top: 16px; padding: 0; }
.weather-credit { margin-top: 24px; padding-top: 16px; font-size: 11px; color: var(--muted); }
.weather-credit a { color: var(--accent); }
.weather-search { padding: 20px; background: var(--paper); }
.weather-search input, .weather-place-option { font-family: Manrope,sans-serif; }
.page-heading, .tools-view .page-heading, .profile-view .page-heading { margin: 8px 0 32px; max-width: none; text-align: left; }
.page-heading h1, .welcome-row h1, .tools-view .page-heading h1, .profile-view .page-heading h1 { margin: 8px 0 12px; color: var(--ink); font: 500 clamp(28px,3vw,36px)/1.25 Manrope,sans-serif; letter-spacing: -.025em; }
.page-heading>p:last-child, .tools-view .page-heading>p:last-child, .profile-view .page-heading>p:last-child { margin-top: 12px; color: #53616b; font-size: 14px; line-height: 1.7; }
.panel, .feature-card, .stat-card, .inline-auth, .table-wrap { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; background: var(--card); }
.panel { padding: 24px; }
.panel-head { gap: 16px; margin-bottom: 20px; }
.panel-title { font: 500 16px/24px Manrope,sans-serif; }
.panel-subtitle { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-grid, .tools-view .page-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.feature-card, .tools-view .feature-card { min-height: 224px; padding: 28px; border-radius: 12px; background: var(--card); box-shadow: none; transition: border-color 160ms ease-out; }
.feature-card:hover, .tools-view .feature-card:hover { transform: none; box-shadow: none; border-color: #b5c6ce; }
.feature-card-icon, .tools-view .feature-card-icon { width: 24px; height: 24px; border-radius: 0; background: none; color: var(--muted); font: 400 14px/24px monospace; }
.feature-card h3, .tools-view .feature-card h3 { margin: 20px 0 12px; color: var(--ink); font: 500 20px/1.4 Manrope,sans-serif; }
.feature-card p, .tools-view .feature-card p { color: #53616b; font-size: 13px; line-height: 1.8; }
.feature-card .coming, .tools-view .feature-card .coming { padding: 0; margin-top: 20px; background: none; color: var(--muted); font: 400 11px/20px Manrope,sans-serif; letter-spacing: 0; }
.profile-card { max-width: 880px; margin: 0; padding: 32px; background: #fff; box-shadow: none; }
.profile-head { gap: 20px; padding-bottom: 24px; }
.profile-card .profile-name { font: 500 24px/1.4 Manrope,sans-serif; overflow-wrap: anywhere; }
.profile-card .profile-email { font-size: 13px; overflow-wrap: anywhere; }
.profile-details { gap: 16px; padding-top: 24px; }
.profile-card .profile-details>div { padding: 20px; background: var(--paper); border: 0; border-radius: 8px; }
.profile-card .detail-label { color: var(--muted); font-size: 12px; }
.profile-card .detail-value { margin-top: 8px; color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.profile-card .role-chip { margin-top: 20px; padding: 4px 8px; background: var(--raised); border-color: var(--line); color: #53616b; border-radius: 4px; font-size: 12px; font-weight: 400; }
.task-form { gap: 12px; margin-bottom: 24px; }
.task-form input, .task-form select { min-height: 44px; padding: 12px 16px; font-size: 14px!important; border-color: #cfd9df!important; border-radius: 8px; }
.task-form input:focus, .auth-field input:focus { border-color: var(--accent); box-shadow: none; }
.task-row, .task-list-full .task-row { padding: 16px 0; gap: 12px; border-color: var(--line); min-height: 56px; }
.task-row:last-child { padding-bottom: 16px; }
.task-title { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.check { width: 20px; height: 20px; border-radius: 6px; border-color: #b6c4cc; }
.check.done { border-color: var(--accent); background: var(--accent); color: #fff; }
.task-title.done { color: var(--muted); }
.task-meta { font: 400 11px/20px monospace; color: var(--muted); }
.task-delete { width: 32px; height: 32px; margin-left: 8px; border-radius: 8px; font-size: 20px; color: var(--muted); }
.task-delete:hover { background: #faeeeb; color: #a5463c; }
.status-pill { padding: 4px 8px; border-radius: 4px; background: var(--raised); color: #53616b; font-size: 11px; font-weight: 400; white-space: nowrap; }
.empty-state { padding: 32px 16px; font-size: 14px; color: var(--muted); }
.inline-auth { padding: 32px; }
.inline-auth strong { font-size: 20px; font-weight: 500; }
.inline-auth p { margin: 12px 0 24px; font-size: 14px; color: #53616b; }
.users-table th, .users-table td { padding: 16px 20px; border-color: var(--line); font-size: 13px; }
.users-table th { background: var(--paper); color: var(--muted); font-size: 12px; }
.users-table tbody tr:hover { background: #f5f8f9; }
.users-table td select { max-width: 200px; min-height: 40px; padding: 8px 12px; font-size: 12px; color: var(--ink); }
.users-table td select:disabled { background: var(--raised); color: var(--muted); }
.camera-panel { margin-bottom: 24px; }
.camera-frame { border-radius: 8px; }
.camera-preview { padding: 24px; border: 1px dashed var(--line); background: var(--paper); color: var(--muted); }
.camera-preview strong { margin: 8px 0; font-size: 14px; font-weight: 500; color: #53616b; }
.camera-preview span { font-size: 12px; }
.camera-status { margin-top: 16px; color: var(--muted); line-height: 1.8; }
.vision-controls { gap: 12px; margin-bottom: 20px; }
.vision-agent-setup { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.vision-agent-setup pre { padding: 16px; border-radius: 8px; background: var(--raised); font: 400 12px/1.8 monospace; }
.modal-backdrop { padding: 24px; background: #17232d70; backdrop-filter: none; }
.auth-card { width: min(100%,440px); padding: 32px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px #202b3320; }
.auth-brand { margin-bottom: 24px; }
.brand-mark { border-radius: 8px; background: var(--raised); color: var(--accent); font-weight: 500; }
.auth-card h2 { font: 500 28px/1.3 Manrope,sans-serif; letter-spacing: -.02em; }
.auth-subtitle { margin: 12px 0 24px; color: #53616b; font-size: 13px; }
.modal-close { top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; background: var(--raised); color: #53616b; }
.auth-tabs { padding: 4px; gap: 4px; background: var(--raised); }
.auth-tab { min-height: 40px; padding: 8px; color: #53616b; font-size: 12px; }
.auth-tab.active { color: var(--ink); font-weight: 500; box-shadow: none; }
.auth-field { margin-top: 20px; gap: 8px; color: #53616b; font-size: 12px; font-weight: 400; }
.auth-field input { min-height: 44px; padding: 12px; border-color: #cfd9df; border-radius: 8px; font-size: 14px; }
.auth-field input::placeholder { color: #75818b; }
.auth-submit { margin-top: 24px; }
.auth-note { margin-top: 16px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.auth-error { color: #a5463c; font-size: 12px; }
.toast { padding: 16px 20px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: var(--shadow); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.footer { width: 100%; max-width: 1184px; margin: auto auto 0; padding: 24px 0; border-color: var(--line); color: var(--muted); font-size: 12px; }
.footer>span:first-child { font: 400 12px/20px monospace; color: var(--muted); letter-spacing: 0; }
.footer .brand-dot { display: none; }
.reveal-on-scroll { opacity: 1; transform: none; transition: none; }
.weather-temperature, .weather-facts strong, .task-meta, .users-table, .card-index, .pc-specs b { font-variant-numeric: tabular-nums; }
/* The standalone contact page shares the same visual system. */
body.contact-page { display: flex; flex-direction: column; min-height: 100vh; }
.contact-page header, .contact-page footer { width: 100%; max-width: 1184px; margin: 0 auto; padding: 24px 32px; text-align: left; }
.contact-page header { font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.contact-page main { width: min(100%,800px); margin: 0 auto; padding: 80px 32px; align-items: flex-start; text-align: left; }
.contact-page h1 { font-size: clamp(32px,4vw,48px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.contact-page p { margin-top: 24px; color: #53616b; font-size: 16px; }
.contact-page a { padding: 12px 20px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; }
.contact-page a:hover { background: #066583; }
.contact-page p a { padding: 0; background: none; color: var(--accent); }
.contact-page footer { margin-top: auto; font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .topbar { padding: 0 24px; gap: 16px; }
  .top-nav-link { padding: 8px 12px; }
  .portfolio-hero { gap: 32px; }
  .portfolio-intro h1 { font-size: 38px; }
  .footer { max-width: calc(100% - 64px); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  .topbar { height: 72px; min-height: 72px; display: flex; flex-wrap: nowrap; gap: 12px; padding: 0 20px; }
  .top-brand { margin-right: auto; gap: 8px; }
  .top-brand span { font-size: 14px; }
  .top-actions { gap: 8px; }
  .top-avatar { display: grid; }
  .nav-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); }
  .nav-toggle svg { width: 20px; height: 20px; }
  .top-nav { display: none; position: absolute; top: 71px; left: 0; right: 0; padding: 12px 20px 20px; gap: 4px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .top-nav.is-open { display: grid; }
  .top-nav-link { width: 100%; min-height: 44px; text-align: left; padding: 12px; }
  .content { padding: 32px 20px 48px; }
  .portfolio-hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; min-height: 0; padding: 8px 0 40px; }
  .portfolio-intro h1 { font-size: clamp(32px,8.8vw,44px); margin: 16px 0 20px; }
  .portfolio-intro>p { font-size: 15px; }
  .private-actions { margin-top: 24px; flex-wrap: wrap; }
  .portfolio-status { margin-top: 20px; }
  .photo-frame { height: 360px; }
  .portfolio-section-title { padding: 32px 0 24px; }
  .portfolio-grid, .page-grid, .tools-view .page-grid { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-card, .feature-card, .tools-view .feature-card { padding: 24px; min-height: 0; }
  .portfolio-cta { padding: 24px; margin-top: 24px; gap: 24px; }
  .portfolio-cta h2 { font-size: 28px; }
  .portfolio-weather { margin-top: 24px; padding: 24px 20px; }
  .weather-heading { align-items: start; gap: 12px; }
  .weather-heading h2 { font-size: 21px; }
  .weather-change { padding: 8px 12px; font-size: 11px; }
  .weather-topline { gap: 16px; }
  .weather-city { font-size: 16px; }
  .weather-temperature { font-size: 40px; }
  .weather-current { gap: 8px; }
  .weather-facts { gap: 8px; }
  .weather-facts>div { padding: 12px 8px; }
  .weather-facts span { font-size: 11px; }
  .weather-facts strong { font-size: 14px; }
  .weather-chart-wrap { height: 240px; }
  .weather-search form { flex-direction: column; align-items: stretch; }
  .weather-search input { flex: initial; }
  .panel, .profile-card, .inline-auth { padding: 24px 20px; }
  .profile-details { grid-template-columns: 1fr; }
  .task-form { flex-wrap: wrap; }
  .task-form input { flex: 1 1 180px; }
  .task-form select { max-width: 100%; }
  .task-row { flex-wrap: wrap; }
  .task-title { flex: 1; }
  .task-meta { order: 4; width: 100%; margin-left: 32px; }
  .panel-head { align-items: start; }
  .vision-controls .button { flex: 1 1 180px; }
  .camera-frame { min-height: 176px; }
  .auth-card { padding: 28px 24px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .modal-backdrop { padding: 16px; }
  .footer { max-width: calc(100% - 40px); padding: 20px 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
