:root {
  --bg: #070707;
  --bg-soft: #0d0c0b;
  --panel: rgba(17, 15, 13, 0.9);
  --panel-solid: #11100e;
  --panel-light: #171411;
  --text: #f6f2eb;
  --muted: #b9b0a5;
  --muted-dark: #847b72;
  --orange: #ff7a1a;
  --orange-light: #ffad64;
  --orange-dark: #a93f05;
  --green: #71d39c;
  --red: #ff6961;
  --line: rgba(255, 122, 26, 0.34);
  --line-soft: rgba(255, 255, 255, 0.1);
  --shadow-orange: 0 0 16px rgba(255, 104, 15, 0.3), 0 0 42px rgba(255, 91, 0, 0.1);
  --header-height: 76px;
  --sidebar: 248px;
  --font: Calibri, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; background: linear-gradient(135deg, rgba(7,7,7,.92), rgba(10,8,7,.95)), url("images/mars-texture.jpg") center/cover; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .2; background-image: linear-gradient(rgba(255,122,26,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,122,26,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: var(--header-height) 1fr; }
.topbar { position: sticky; top: 0; z-index: 30; grid-column: 1 / -1; display: flex; align-items: center; min-width: 0; padding: 0 24px; border-bottom: 1px solid var(--line-soft); background: rgba(7,7,7,.9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; height: 100%; flex: 0 0 auto; }
.brand img { display: block; width: 168px; max-height: 52px; object-fit: contain; object-position: left center; }
.product-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-left: 12px; }
.product-divider { color: var(--orange); font-size: 30px; font-weight: 300; }
.product-name strong { font-size: 21px; letter-spacing: .02em; }
.product-local-name { color: var(--orange-light); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.product-name small { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--orange-light); font-size: 10px; letter-spacing: .12em; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.sidebar { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); display: flex; flex-direction: column; gap: 18px; padding: 24px 16px; border-right: 1px solid var(--line-soft); background: rgba(10,9,8,.82); backdrop-filter: blur(16px); overflow-y: auto; z-index: 20; }
.app-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: .2s ease; }
.nav-item span { display: grid; place-items: center; width: 26px; color: var(--orange-light); font-size: 19px; }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active { border-color: var(--line); background: linear-gradient(90deg, rgba(255,122,26,.16), rgba(255,122,26,.035)); color: var(--text); box-shadow: inset 3px 0 0 var(--orange); }
.sidebar-spacer { flex: 1; }
.storage-card { padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.025); }
.storage-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.storage-head strong { color: var(--text); }
.storage-bar { height: 5px; margin: 10px 0; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.storage-bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
.storage-card p { margin: 0; color: var(--muted-dark); font-size: 12px; line-height: 1.35; }
.back-link { color: var(--muted); text-decoration: none; font-size: 13px; padding: 0 8px; }
.back-link:hover { color: var(--orange-light); }

.main { min-width: 0; padding: 34px clamp(20px, 4vw, 56px) 60px; }
.view { display: none; animation: fade-in .24s ease both; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); min-height: 420px; padding: clamp(32px, 5vw, 72px); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 80% 30%, rgba(255,122,26,.18), transparent 35%), linear-gradient(135deg, rgba(20,16,13,.96), rgba(8,7,7,.92)); box-shadow: var(--shadow-orange); }
.hero-panel::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(30deg, rgba(255,122,26,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,122,26,.16) 87.5%, rgba(255,122,26,.16)), linear-gradient(150deg, rgba(255,122,26,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,122,26,.16) 87.5%, rgba(255,122,26,.16)), linear-gradient(30deg, rgba(255,122,26,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,122,26,.16) 87.5%, rgba(255,122,26,.16)), linear-gradient(150deg, rgba(255,122,26,.16) 12%, transparent 12.5%, transparent 87%, rgba(255,122,26,.16) 87.5%, rgba(255,122,26,.16)), linear-gradient(60deg, rgba(255,122,26,.09) 25%, transparent 25.5%, transparent 75%, rgba(255,122,26,.09) 75%, rgba(255,122,26,.09)); background-size: 80px 140px; mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.eyebrow { display: inline-block; color: var(--orange-light); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero-copy h1, .page-head h1 { margin: 14px 0 16px; line-height: .95; letter-spacing: -.045em; }
.hero-copy h1 { font-size: clamp(44px, 6vw, 78px); }
.hero-copy h1 em { color: var(--orange); font-style: normal; text-shadow: var(--shadow-orange); }
.hero-copy p { max-width: 700px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-orbit { position: relative; z-index: 1; min-height: 290px; align-self: center; }
.orbit { position: absolute; inset: 50%; border: 1px solid rgba(255,122,26,.35); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 260px; height: 260px; }
.orbit-two { width: 190px; height: 190px; border-style: dashed; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 108px; height: 108px; transform: translate(-50%,-50%); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); background: linear-gradient(135deg, #ff9b4c, #c94805); color: #130702; font-size: 34px; font-weight: 900; box-shadow: 0 0 50px rgba(255,122,26,.45); }
.node { position: absolute; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,7,7,.85); color: var(--orange-light); font-size: 10px; letter-spacing: .16em; }
.node-a { left: 10%; top: 22%; }.node-b { right: 2%; top: 40%; }.node-c { left: 26%; bottom: 8%; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.stat-card, .panel { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.stat-card { padding: 18px 20px; }
.stat-card > span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin: 6px 0 3px; font-size: 34px; line-height: 1; }
.stat-card small { color: var(--muted-dark); }
.content-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 22px; }
.panel { padding: 24px; }
.panel-head, .page-head, .workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel h2, .page-head h1 { margin: 7px 0 0; }
.project-list { display: grid; gap: 10px; margin-top: 20px; }
.project-list.empty-state { place-items: center; min-height: 180px; border: 1px dashed var(--line-soft); border-radius: 12px; color: var(--muted); text-align: center; }
.project-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.02); cursor: pointer; }
.project-row:hover { border-color: var(--line); background: rgba(255,122,26,.05); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px currentColor; }
.status-dot.done { background: var(--green); }.status-dot.idea { background: var(--muted-dark); }
.project-row strong { display: block; }
.project-row small { color: var(--muted); }
.project-row time { color: var(--muted-dark); font-size: 12px; }
.quick-capture h2 { margin: 7px 0 16px; }
.quick-capture textarea { min-height: 150px; resize: vertical; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted-dark); font-size: 12px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(42px, 5vw, 68px); }
.page-head p { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.025); }
.search-field span { color: var(--orange-light); font-size: 20px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.toolbar select { min-width: 190px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.item-card { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 15px; background: linear-gradient(145deg, rgba(22,18,15,.93), rgba(11,10,9,.95)); transition: transform .18s ease, border-color .18s ease; }
.item-card:hover { transform: translateY(-2px); border-color: var(--line); }
.item-card .card-top { display: flex; justify-content: space-between; gap: 12px; }
.item-card .card-index { color: var(--orange-light); font-size: 11px; letter-spacing: .14em; }
.item-card h2 { margin: 20px 0 8px; font-size: 23px; line-height: 1.15; }
.item-card p { margin: 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.item-card .card-spacer { flex: 1; min-height: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted-dark); font-size: 12px; }
.card-actions { display: flex; gap: 6px; }
.card-actions button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; }
.card-actions button:hover { color: var(--orange-light); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted); font-size: 11px; }
.badge.active { border-color: rgba(255,122,26,.4); color: var(--orange-light); }.badge.done { border-color: rgba(113,211,156,.35); color: var(--green); }
.empty-card { grid-column: 1 / -1; display: grid; place-items: center; min-height: 280px; padding: 30px; border: 1px dashed var(--line-soft); border-radius: 16px; color: var(--muted); text-align: center; }
.resource-link { color: var(--orange-light); text-decoration: none; overflow-wrap: anywhere; }
.resource-link:hover { text-decoration: underline; }

.export-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.export-card { display: flex; flex-direction: column; min-height: 300px; }
.export-card .export-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 14px; color: var(--orange-light); font-size: 26px; }
.export-card h2 { margin: 28px 0 8px; }
.export-card p { flex: 1; color: var(--muted); line-height: 1.55; }
.danger-card { border-color: rgba(255,105,97,.2); }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.workspace-head { margin-bottom: 18px; }
.workspace-actions { display: flex; gap: 8px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; }
.workspace-main { min-width: 0; }
.workspace-title { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: -.035em; }
.workspace-description { width: 100%; margin-top: 8px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--muted); resize: vertical; font-size: 17px; line-height: 1.5; }
.workspace-tabs { display: flex; gap: 6px; margin: 22px 0 18px; border-bottom: 1px solid var(--line-soft); }
.workspace-tabs button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.workspace-tabs button.active { border-color: var(--orange); color: var(--text); }
.workspace-tab { display: none; }.workspace-tab.active { display: block; }
.workspace-tab label { display: block; margin-bottom: 8px; color: var(--muted); }
.workspace-tab textarea { min-height: 420px; }
.autosave-note { margin-top: 8px; color: var(--muted-dark); font-size: 12px; }
.structure-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.structure-toolbar p { margin: 0; color: var(--muted); }
.ai-placeholder { display: grid; place-items: center; min-height: 470px; padding: 30px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.ai-placeholder > span { display: grid; place-items: center; width: 78px; height: 78px; clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); background: rgba(255,122,26,.16); color: var(--orange-light); font-size: 24px; font-weight: 800; }
.ai-placeholder h2 { margin: 18px 0 8px; }.ai-placeholder p { max-width: 650px; margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.workspace-meta dl { margin: 22px 0; }
.workspace-meta dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.workspace-meta dt { color: var(--muted); }.workspace-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.workspace-meta label { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: 13px; }

input, textarea, select { border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.035); color: var(--text); padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.1); }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
select { cursor: pointer; }
.primary-button, .secondary-button, .danger-button, .disabled-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border-radius: 9px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .18s ease; }
.primary-button { border: 1px solid var(--orange); background: linear-gradient(135deg, var(--orange-light), var(--orange)); color: #1a0901; box-shadow: var(--shadow-orange); }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.secondary-button { border: 1px solid var(--line); background: rgba(255,122,26,.06); color: var(--orange-light); }
.secondary-button:hover { background: rgba(255,122,26,.12); }
.danger-button { border: 1px solid rgba(255,105,97,.45); background: rgba(255,105,97,.09); color: #ff9b96; }
.danger-button:hover { background: rgba(255,105,97,.15); }
.disabled-button { border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); color: var(--muted-dark); cursor: not-allowed; }
.compact { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; }
.icon-button:hover { border-color: var(--line); color: var(--orange-light); }
.text-button { padding: 0; border: 0; background: none; color: var(--orange-light); cursor: pointer; }
.menu-toggle { display: none; }

.modal { width: min(640px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #100e0c; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.65), var(--shadow-orange); }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.modal form { display: grid; gap: 17px; padding: 24px; }
.modal-head { display: flex; justify-content: space-between; gap: 18px; }
.modal-head h2 { margin: 6px 0 0; font-size: 30px; }
.modal label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.confirm-modal { width: min(480px, calc(100vw - 28px)); }
.confirm-modal p { margin: 0; color: var(--muted); line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); max-width: min(500px, calc(100vw - 28px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #17120f; color: var(--text); opacity: 0; pointer-events: none; box-shadow: 0 16px 50px rgba(0,0,0,.5); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1080px) {
  :root { --sidebar: 218px; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-orbit { position: absolute; right: -80px; top: 65px; width: 350px; opacity: .55; }
  .hero-copy { max-width: 720px; }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-meta { order: -1; }
  .workspace-meta dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  .workspace-meta dl div { display: block; border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px; }
  .workspace-meta dd { margin-top: 4px; text-align: left; }
}

@media (max-width: 780px) {
  :root { --header-height: 68px; }
  .app-shell { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .brand img { width: 132px; }
  .product-name { margin-left: 5px; gap: 6px; }.product-name strong { font-size: 17px; }.product-local-name { font-size: 12px; }.product-name small, .product-divider { display: none; }
  .top-actions .compact, #search-toggle { display: none; }
  .menu-toggle { display: grid; }
  .sidebar { position: fixed; left: 0; top: var(--header-height); bottom: 0; width: min(300px, 86vw); height: auto; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .sidebar.open { transform: translateX(0); }
  .main { grid-column: 1; padding: 20px 14px 45px; }
  .hero-panel { min-height: 500px; padding: 30px 22px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-copy p { font-size: 16px; }
  .hero-orbit { right: -116px; top: 195px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-head, .panel-head { display: grid; }
  .toolbar { display: grid; }.toolbar select { min-width: 0; }
  .cards-grid, .export-grid { grid-template-columns: 1fr; }
  .workspace-head { align-items: center; }.workspace-actions { flex-wrap: wrap; justify-content: flex-end; }
  .workspace-meta dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .structure-toolbar { display: grid; }
}

@media (max-width: 460px) {
  .brand img { width: 120px; }
  .product-name strong { font-size: 15px; }.product-local-name { display: none; }
  .hero-actions, .modal-actions { display: grid; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; }
  .stat-card strong { grid-row: 1 / 3; grid-column: 2; }
  .workspace-title { font-size: 34px; }
  .workspace-tabs { overflow-x: auto; }
}

/* EveryThink – pouze tlačítko „Zapsat myšlenku“ */
#new-thought-hero {
  border-color: #22e06f;
  background: linear-gradient(135deg, #39f28a 0%, #00c853 58%, #008f3c 100%);
  color: #031409;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 20px rgba(0, 200, 83, 0.42),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

#new-thought-hero:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.20) inset,
    0 0 26px rgba(0, 230, 118, 0.54),
    0 10px 24px rgba(0, 0, 0, 0.32);
}


/* EveryThink – mobil: pouze tlačítko „Zapsat myšlenku“ */
@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  body #new-thought-hero.primary-button,
  body #new-thought-hero.primary-button:hover,
  body #new-thought-hero.primary-button:focus,
  body #new-thought-hero.primary-button:focus-visible,
  body #new-thought-hero.primary-button:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    border-color: #20f06d !important;
    background-color: #00c853 !important;
    background-image: linear-gradient(135deg, #46f48f 0%, #00c853 58%, #007f35 100%) !important;
    color: #031409 !important;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16) inset,
      0 0 22px rgba(0, 200, 83, 0.48),
      0 8px 22px rgba(0, 0, 0, 0.30) !important;
    filter: none !important;
  }
}


/* EveryThink – mobilní oprava kliknutí na tlačítko „Zapsat myšlenku“ */
@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  .hero-panel {
    isolation: isolate;
  }

  .hero-panel::before,
  .hero-orbit,
  .hero-orbit * {
    pointer-events: none !important;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
  }

  .hero-actions {
    position: relative;
    z-index: 4;
  }

  body #new-thought-hero.primary-button {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
    touch-action: manipulation;
    cursor: pointer;
  }
}


/* EveryThink – pouze tlačítko „Uložit myšlenku“ v dialogu Nová myšlenka */
#save-thought-button,
#save-thought-button:hover,
#save-thought-button:focus,
#save-thought-button:focus-visible,
#save-thought-button:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  border-color: #20f06d !important;
  background-color: #00c853 !important;
  background-image: linear-gradient(135deg, #46f48f 0%, #00c853 58%, #007f35 100%) !important;
  color: #031409 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 0 22px rgba(0, 200, 83, 0.48),
    0 8px 22px rgba(0, 0, 0, 0.30) !important;
}

#save-thought-button:hover,
#save-thought-button:focus-visible {
  filter: brightness(1.08) !important;
}
/* EVERYTHINK EXACT ACTION BUTTONS 0057D9 START */
/* Modrá je pouze plocha konkrétních akčních buttonů. Ostatní texty a grafika zůstávají původní. */
body #new-thought-hero,
body #new-project-top,
body button[data-action="new-thought"],
body button[data-action="new-project"],
body #quick-thought-form button[type="submit"],
body #save-thought-button,
body #project-form button[type="submit"],
body #thought-form button[type="submit"],
body #new-resource,
body #resource-form button[type="submit"],
body #export-data {
  -webkit-appearance: none !important;
  appearance: none !important;
  border-color: #4da3ff !important;
  background-color: #0057d9 !important;
  background-image: linear-gradient(135deg, #1c7dff 0%, #0057d9 58%, #003e9f 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 22px rgba(0,87,217,.42),
    0 9px 22px rgba(0,0,0,.30) !important;
}
body #new-thought-hero > *,
body #new-project-top > *,
body button[data-action="new-thought"] > *,
body button[data-action="new-project"] > *,
body #quick-thought-form button[type="submit"] > *,
body #save-thought-button > *,
body #project-form button[type="submit"] > *,
body #thought-form button[type="submit"] > *,
body #new-resource > *,
body #resource-form button[type="submit"] > *,
body #export-data > * {
  color: #ffffff !important;
}
body #new-thought-hero:hover,
body #new-thought-hero:focus-visible,
body #new-project-top:hover,
body #new-project-top:focus-visible,
body button[data-action="new-thought"]:hover,
body button[data-action="new-thought"]:focus-visible,
body button[data-action="new-project"]:hover,
body button[data-action="new-project"]:focus-visible,
body #quick-thought-form button[type="submit"]:hover,
body #quick-thought-form button[type="submit"]:focus-visible,
body #save-thought-button:hover,
body #save-thought-button:focus-visible,
body #project-form button[type="submit"]:hover,
body #project-form button[type="submit"]:focus-visible,
body #thought-form button[type="submit"]:hover,
body #thought-form button[type="submit"]:focus-visible,
body #new-resource:hover,
body #new-resource:focus-visible,
body #resource-form button[type="submit"]:hover,
body #resource-form button[type="submit"]:focus-visible,
body #export-data:hover,
body #export-data:focus-visible {
  border-color: #82c4ff !important;
  background-color: #0a63e6 !important;
  background-image: linear-gradient(135deg, #3290ff 0%, #0a63e6 58%, #0048b8 100%) !important;
  color: #ffffff !important;
  filter: none !important;
}
/* EVERYTHINK EXACT ACTION BUTTONS 0057D9 END */

/* REGENTHUS_EVERYTHINK_HERO_MARS_BUTTONS_START */
body::before {
  background:
    linear-gradient(135deg, rgba(7,7,7,.90), rgba(10,8,7,.93)),
    url('/images/plastve-original.png') center/cover no-repeat !important;
}

body::after {
  display: none !important;
}

.hero-panel {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 380px !important;
  background:
    linear-gradient(135deg, rgba(18,14,11,.80), rgba(8,7,7,.88)),
    url('/images/plastve-original.png') center/cover no-repeat !important;
}

.hero-panel::before,
.hero-orbit {
  display: none !important;
}

#new-thought-hero,
#new-thought-hero.primary-button,
#new-thought-hero.primary-button:hover,
#new-thought-hero.primary-button:focus,
#new-thought-hero.primary-button:focus-visible,
#new-thought-hero.primary-button:active {
  border: 1px solid #6EB7FF !important;
  background: linear-gradient(135deg, #1D80FF 0%, #0057D9 58%, #003E9F 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 22px rgba(0,87,217,.38),
    0 8px 22px rgba(0,0,0,.28) !important;
  filter: none !important;
}

button.secondary-button[data-view-jump='projects'],
button.secondary-button[data-view-jump='projects']:hover,
button.secondary-button[data-view-jump='projects']:focus,
button.secondary-button[data-view-jump='projects']:focus-visible,
button.secondary-button[data-view-jump='projects']:active {
  border: 1px solid #ff8b2f !important;
  background: linear-gradient(135deg, rgba(255,169,88,.22), rgba(255,122,26,.12)) !important;
  color: #ffb064 !important;
  box-shadow: none !important;
}

@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  .hero-panel {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  body #new-thought-hero.primary-button,
  body #new-thought-hero.primary-button:hover,
  body #new-thought-hero.primary-button:focus,
  body #new-thought-hero.primary-button:focus-visible,
  body #new-thought-hero.primary-button:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #6EB7FF !important;
    background: linear-gradient(135deg, #1D80FF 0%, #0057D9 58%, #003E9F 100%) !important;
    color: #ffffff !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.12) inset,
      0 0 22px rgba(0,87,217,.38),
      0 8px 22px rgba(0,0,0,.28) !important;
    filter: none !important;
  }

  body button.secondary-button[data-view-jump='projects'],
  body button.secondary-button[data-view-jump='projects']:hover,
  body button.secondary-button[data-view-jump='projects']:focus,
  body button.secondary-button[data-view-jump='projects']:focus-visible,
  body button.secondary-button[data-view-jump='projects']:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #ff8b2f !important;
    background: linear-gradient(135deg, rgba(255,169,88,.22), rgba(255,122,26,.12)) !important;
    color: #ffb064 !important;
    box-shadow: none !important;
    filter: none !important;
  }
}
/* REGENTHUS_EVERYTHINK_HERO_MARS_BUTTONS_END */

/* REGENTHUS_OPEN_PROJECTS_ORANGE_FILL_START */
button.secondary-button[data-view-jump='projects'],
button.secondary-button[data-view-jump='projects']:visited,
button.secondary-button[data-view-jump='projects']:hover,
button.secondary-button[data-view-jump='projects']:focus,
button.secondary-button[data-view-jump='projects']:focus-visible,
button.secondary-button[data-view-jump='projects']:active {
  border: 1px solid #ff9a3d !important;
  background: linear-gradient(135deg, #ffb15b 0%, #ff7a1a 58%, #d95a00 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 22px rgba(255,122,26,.30),
    0 8px 22px rgba(0,0,0,.28) !important;
  filter: none !important;
}
/* REGENTHUS_OPEN_PROJECTS_ORANGE_FILL_END */
/* EVERYTHINK THOUGHT DETAIL + MOBILE PROJECT READABILITY START */
.thought-stat-link {
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.thought-stat-link:hover,
.thought-stat-link:focus-visible {
  outline:none;
  transform:translateY(-2px);
  border-color:rgba(0,87,217,.72) !important;
  box-shadow:0 0 0 1px rgba(77,163,255,.14) inset,0 0 28px rgba(0,87,217,.24),0 12px 28px rgba(0,0,0,.30);
}
.thought-open-card { cursor:pointer; }
.thought-open-card:hover,
.thought-open-card:focus-visible {
  outline:none;
  border-color:rgba(255,122,26,.58) !important;
  box-shadow:0 0 0 1px rgba(255,122,26,.10) inset,0 0 24px rgba(255,122,26,.16),0 12px 28px rgba(0,0,0,.30);
}
#thought-detail-modal::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(3px); }
#thought-detail-modal form {
  width:min(720px,calc(100vw - 32px));
  background:rgba(10,9,8,.94);
  border:1px solid rgba(255,122,26,.48);
  box-shadow:0 24px 70px rgba(0,0,0,.72),0 0 32px rgba(255,122,26,.10);
}
#thought-detail-text {
  min-height:220px;
  resize:vertical;
  background:rgba(0,0,0,.58) !important;
  color:#f7f4ef !important;
  border-color:rgba(255,255,255,.16) !important;
}
.thought-detail-meta {
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-top:10px;
  color:#aaa197;
  font-size:13px;
}
.thought-detail-actions { flex-wrap:wrap; }
#thought-detail-to-project:disabled { opacity:.45;cursor:not-allowed;box-shadow:none!important; }

@media (max-width:780px) {
  /* Projekty: text už neleží přímo na členité fotografii. */
  #view-projects .page-head,
  #view-projects .toolbar {
    background:rgba(8,8,8,.62) !important;
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.26);
  }
  #view-projects .page-head { padding:18px !important;margin-bottom:14px; }
  #view-projects .toolbar { padding:12px !important;margin-bottom:16px; }
  #view-projects .page-head h1 { color:#fff !important;text-shadow:0 2px 12px rgba(0,0,0,.70); }
  #view-projects .page-head p { color:#e0d9d2 !important;text-shadow:0 1px 7px rgba(0,0,0,.82); }
  #view-projects .search-field,
  #view-projects .toolbar select {
    background:rgba(0,0,0,.58) !important;
    color:#fff !important;
    border-color:rgba(255,255,255,.18) !important;
  }
  #view-projects .search-field input { color:#fff !important; }
  #view-projects .search-field input::placeholder { color:#c5bdb5 !important;opacity:1; }

  /* Samotné založení Nového projektu: poloprůhledný tmavý obdélník. */
  #project-modal { padding:12px; }
  #project-modal::backdrop { background:rgba(0,0,0,.68); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
  #project-modal form {
    width:calc(100vw - 24px) !important;
    max-width:none !important;
    max-height:calc(100dvh - 24px);
    overflow:auto;
    box-sizing:border-box;
    background:rgba(8,8,8,.86) !important;
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,122,26,.58) !important;
    border-radius:18px !important;
    box-shadow:0 24px 70px rgba(0,0,0,.76),0 0 32px rgba(255,122,26,.12) !important;
    color:#fff !important;
  }
  #project-modal .modal-head h2,
  #project-modal label { color:#fff !important;text-shadow:0 1px 7px rgba(0,0,0,.65); }
  #project-modal input,
  #project-modal textarea,
  #project-modal select {
    background:rgba(0,0,0,.64) !important;
    color:#fff !important;
    border-color:rgba(255,255,255,.20) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  }
  #project-modal input::placeholder,
  #project-modal textarea::placeholder { color:#bfb7af !important;opacity:1; }

  #thought-detail-modal { padding:12px; }
  #thought-detail-modal form { width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box; }
  #thought-detail-text { min-height:260px; }
  .thought-detail-meta { flex-direction:column;gap:4px; }
  .thought-detail-actions { display:grid;grid-template-columns:1fr; }
  .thought-detail-actions button { width:100%; }
}
/* EVERYTHINK THOUGHT DETAIL + MOBILE PROJECT READABILITY END */

/* REGENTHUS_EVERYTHINK_NAV_ARCHITECTURE_V2_START */

/*
 * Starý EveryThink topbar už v DOM není.
 * App shell má proto pouze jednu obsahovou řadu.
 */
.app-shell{
  grid-template-rows:1fr !important;
}

/*
 * Sidebar se při scrollu drží pod hlavním REGENTHUS master headerem.
 */
.sidebar{
  top:70px !important;
  height:calc(100vh - 70px) !important;
}

/*
 * Hlavní název sekce. Není to druhá navigační lišta —
 * je součástí samotného obsahu EveryThink.
 */
.et-section-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 24px;
  padding:0 4px 16px;
  border-bottom:1px solid rgba(255,122,26,.28);
}

.et-section-title{
  position:relative;
  display:inline-block;
  color:#fff;
  font-family:Calibri,"Segoe UI",Arial,sans-serif;
  font-size:clamp(38px,4.5vw,62px);
  line-height:.95;
  font-weight:900;
  letter-spacing:-.035em;
  text-shadow:0 2px 5px rgba(0,0,0,.72);
}

.et-section-title::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  margin-top:12px;
  border-radius:999px;
  background:#ff7a1a;
  box-shadow:0 0 14px rgba(255,122,26,.42);
}

.et-mobile-app-menu{
  display:none !important;
  flex:0 0 auto;
}

/*
 * Nový Projekt + Účet/Sdílení + Vyhledat jsou skutečné sidebar položky.
 * Původní ID zůstávají kvůli existující JS logice.
 */
#sidebar #new-project-top.nav-item,
#sidebar #search-toggle.nav-item{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;

  width:100% !important;
  min-height:0 !important;
  padding:12px 14px !important;

  border:1px solid transparent !important;
  border-radius:10px !important;

  background:transparent !important;
  background-image:none !important;

  color:var(--muted) !important;
  text-align:left !important;

  box-shadow:none !important;
  filter:none !important;
}

#sidebar #new-project-top.nav-item:hover,
#sidebar #new-project-top.nav-item:focus-visible,
#sidebar #search-toggle.nav-item:hover,
#sidebar #search-toggle.nav-item:focus-visible{
  border-color:transparent !important;
  background:rgba(255,255,255,.04) !important;
  color:var(--text) !important;
  box-shadow:none !important;
}

#sidebar #new-project-top.nav-item > span:first-child,
#sidebar #search-toggle.nav-item > span:first-child{
  display:grid !important;
  place-items:center !important;
  width:26px !important;
  min-width:26px !important;
  color:var(--orange-light) !important;
  font-size:19px !important;
}

#sidebar .et-nav-label{
  width:auto !important;
  color:inherit !important;
  font-size:inherit !important;
}

@media(max-width:1120px){
  .sidebar{
    top:76px !important;
    height:calc(100dvh - 76px) !important;
  }
}

@media(max-width:780px){
  .app-shell{
    grid-template-columns:1fr !important;
    grid-template-rows:1fr !important;
  }

  .sidebar{
    top:76px !important;
    bottom:0 !important;
    height:auto !important;
  }

  .et-section-banner{
    margin-bottom:16px;
    padding:0 2px 14px;
  }

  .et-section-title{
    font-size:clamp(38px,12vw,54px);
  }

  .et-mobile-app-menu{
    display:grid !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    border-color:rgba(255,122,26,.42) !important;
    background:rgba(12,10,9,.88) !important;
  }

  /*
   * Staré mobile CSS schovávalo #search-toggle, protože původně bylo v topbaru.
   * V sidebaru ho vracíme.
   */
  #sidebar #search-toggle{
    display:flex !important;
  }
}

@media(max-width:560px){
  .sidebar{
    top:70px !important;
    height:calc(100dvh - 70px) !important;
  }

  .et-section-banner{
    gap:12px;
  }
}

/* REGENTHUS_EVERYTHINK_NAV_ARCHITECTURE_V2_END */
