/* Shared page layout extends the original Mindoryn palette and components. */
html, body { height:auto; min-height:100%; overflow-x:hidden; overflow-y:auto; scroll-behavior:smooth; }
body { min-width:320px; }
.app { min-height:100vh; height:auto; overflow:visible; display:flex; flex-direction:column; }
.page, .page.active { position:relative; inset:auto; display:block; overflow:visible; flex:1; padding-bottom:64px; animation:none; }
.nav-account { border:1px solid rgba(185,72,39,.18); }
.topbar a, .nav a, .btn { -webkit-tap-highlight-color:transparent; }
.cta-top { display:inline-flex; align-items:center; }
.site-footer { max-width:1260px; width:calc(100% - 64px); margin:32px auto 0; padding:28px 0 38px; display:flex; justify-content:space-between; align-items:center; gap:20px; border-top:1px solid var(--line); color:#72594b; font-size:14px; }
.site-footer span:last-child { display:flex; gap:24px; flex-wrap:wrap; }
.site-footer a:hover, .text-link:hover { color:var(--terra); text-decoration:underline; }
.flash { max-width:790px; width:calc(100% - 32px); margin:104px auto -102px; padding:14px 20px; border-radius:16px; border:1px solid #90bea2; background:#e5f4e7; color:#1a5930; position:relative; z-index:9; }
.flash.error { border-color:#e5aaa0; background:#fff0ec; color:#8d3323; }
.auth-page, .app-page, .simple-page { padding-top:138px; }
.auth-shell { max-width:1050px; margin:0 auto; display:grid; grid-template-columns:.95fr 1.05fr; gap:40px; align-items:center; min-height:calc(100vh - 230px); }
.auth-intro { padding:20px 12px 20px 0; }
.auth-intro .section-title { font-size:clamp(44px,4.5vw,70px); }
.auth-intro .lead { max-width:450px; }
.auth-points { display:grid; gap:16px; margin-top:32px; color:#684e40; }
.auth-points span { display:flex; align-items:center; gap:12px; }
.auth-points i { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:rgba(185,72,39,.12); color:var(--terra); font-style:normal; flex:none; }
.auth-card { width:100%; max-width:520px; padding:38px; }
.auth-card h1, .form-card h1 { font:500 42px/1.05 Georgia,serif; letter-spacing:-.035em; }
.auth-card > p, .form-card > p { margin:14px 0 26px; color:#685144; line-height:1.6; }
.stack-form { display:grid; gap:18px; }
.field { display:grid; gap:8px; }
.field label { font-size:14px; font-weight:800; color:#553c2f; }
.field input, .field textarea, .field select { width:100%; border:1px solid rgba(120,70,45,.25); border-radius:14px; background:#fffdf9; padding:15px 16px; color:var(--ink); font-size:16px; min-height:52px; }
.field textarea { min-height:220px; line-height:1.6; resize:vertical; }
.field small, .hint { font-size:13px; line-height:1.5; color:#72594b; }
.field select { appearance:auto; }
.password-row { position:relative; }
.password-row input { padding-right:80px; }
.password-row button { position:absolute; top:50%; right:9px; transform:translateY(-50%); border:0; background:none; color:var(--terra); font-weight:800; cursor:pointer; padding:10px; }
.form-actions { display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
.form-error { padding:13px 15px; background:#fff0ec; color:#8d3323; border:1px solid #e5aaa0; border-radius:12px; line-height:1.5; }
.form-success { padding:13px 15px; background:#e5f4e7; color:#1a5930; border:1px solid #90bea2; border-radius:12px; }
.muted { color:#72594b; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.logout-button { border:0; background:none; width:100%; text-align:left; cursor:pointer; font:inherit; }
.text-link { color:var(--terra); font-weight:800; }
.divider { height:1px; width:100%; background:var(--line); margin:8px 0; }
.btn { text-align:center; justify-content:center; line-height:1.2; }
.btn:disabled { opacity:.6; cursor:not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid #da744c; outline-offset:3px; }
input:focus-visible, textarea:focus-visible { border-color:var(--terra); }
.pricing-intro, .simple-intro { max-width:1260px; margin:0 auto; }
.pricing-intro { padding-top:38px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:34px; }
.pricing-card { display:flex; flex-direction:column; gap:10px; }
.pricing-card .price { margin:16px 0 2px; }
.pricing-card .period { color:#785d4f; margin-bottom:20px; }
.pricing-card .btn { margin-top:auto; }
.pricing-card ul { padding-left:22px; margin:18px 0 0; line-height:1.9; color:#60483c; }
.notice { margin-top:24px; padding:16px 20px; background:rgba(185,72,39,.09); border:1px solid rgba(185,72,39,.24); border-radius:16px; line-height:1.6; }
.simple-shell { max-width:1120px; margin:0 auto; }
.simple-shell .section-title { max-width:800px; }
.simple-shell .lead { max-width:760px; }
.simple-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:28px; margin-top:40px; }
.simple-grid .panel { align-self:start; }
.contact-options { display:grid; gap:15px; margin-top:30px; }
.contact-option { padding:18px 20px; background:rgba(255,250,243,.76); border:1px solid var(--line); border-radius:18px; }
.contact-option b { display:block; margin-bottom:5px; }
.prose { max-width:790px; margin-top:28px; color:#60483d; font-size:16px; line-height:1.8; }
.prose h2 { margin:28px 0 8px; color:var(--ink); font-size:23px; }
.prose p + p { margin-top:14px; }
.prose ul { margin:10px 0 20px 24px; }
/* Workspace */
.workspace-shell { max-width:1260px; margin:0 auto; display:grid; grid-template-columns:260px minmax(0,1fr); gap:30px; }
.workspace-sidebar { align-self:start; position:sticky; top:112px; padding:24px; background:rgba(255,250,243,.76); border:1px solid var(--line); box-shadow:0 16px 45px rgba(102,55,30,.08); border-radius:25px; }
.workspace-sidebar .side-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:20px; }
.workspace-sidebar h2 { font-size:18px; }
.workspace-sidebar .side-link { display:block; padding:12px 13px; border-radius:12px; color:#654b3d; font-weight:700; overflow-wrap:anywhere; }
.workspace-sidebar .side-link:hover, .workspace-sidebar .side-link.active { color:var(--terra); background:rgba(185,72,39,.1); }
.workspace-sidebar .side-link small { float:right; font-size:12px; }
.workspace-sidebar .divider { margin:16px 0; }
.mini-form { display:flex; gap:8px; align-items:center; margin-top:14px; }
.mini-form input { width:100%; min-width:0; border:1px solid var(--line); border-radius:11px; background:#fffdf9; padding:11px 12px; }
.mini-form button { border:0; border-radius:11px; padding:10px 13px; background:var(--terra); color:white; cursor:pointer; font-weight:900; }
.workspace-main { min-width:0; }
.workspace-head { display:flex; justify-content:space-between; align-items:end; gap:18px; flex-wrap:wrap; margin-bottom:24px; }
.workspace-head h1 { font:500 clamp(38px,4vw,60px)/1 Georgia,serif; letter-spacing:-.04em; }
.workspace-head p { margin-top:10px; color:#705447; }
.workspace-head .btn { flex:none; }
.workspace-tools { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:25px; }
.search-form { display:flex; flex:1; min-width:250px; gap:10px; }
.search-form input { min-width:0; width:100%; border:1px solid var(--line); padding:13px 16px; border-radius:14px; background:#fffdf9; }
.search-form .btn { padding:13px 20px; }
.summary-row { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin-bottom:24px; }
.summary-row .stat-box { padding:18px 20px; }
.summary-row .stat-box b { font-size:30px; }
.section-heading { margin:26px 0 14px; font-size:20px; }
.note-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.note-card { display:block; padding:22px; min-height:168px; background:rgba(255,250,243,.76); border:1px solid var(--line); border-radius:22px; box-shadow:0 12px 35px rgba(102,55,30,.07); transition:transform .2s, box-shadow .2s; }
.note-card:hover { transform:translateY(-3px); box-shadow:0 20px 45px rgba(102,55,30,.12); }
.note-card h3 { font-size:20px; margin-bottom:8px; overflow-wrap:anywhere; }
.note-card p { color:#6b5549; font-size:15px; line-height:1.5; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.note-card footer { margin-top:16px; display:flex; justify-content:space-between; gap:10px; font-size:13px; color:#80675a; }
.tag-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.tag { display:inline-flex; padding:5px 9px; border-radius:999px; background:rgba(185,72,39,.09); color:#8d3b28; font-size:12px; font-weight:750; }
.empty-state { padding:55px 25px; border:1px dashed rgba(120,70,45,.32); border-radius:24px; text-align:center; background:rgba(255,250,243,.52); }
.empty-state h2 { font:500 31px Georgia,serif; }
.empty-state p { margin:12px auto 20px; max-width:420px; color:#71594b; line-height:1.6; }
.editor-shell { max-width:920px; margin:0 auto; }
.editor-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.editor-card { padding:34px; }
.editor-card .stack-form { gap:23px; }
.editor-card .field input[name="title"] { font:500 30px Georgia,serif; }
.subtle-actions { display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; margin-top:20px; }
.danger { color:#a53721; font-weight:750; background:transparent; border:1px solid #cc8c7d; border-radius:999px; padding:12px 18px; cursor:pointer; }
.danger:hover { background:#fff0eb; }
.account-card { max-width:820px; margin:0 auto; }
.account-card .panel + .panel { margin-top:20px; }
.account-card .panel { padding:28px; }
.account-card .panel h2 { font-size:22px; margin-bottom:8px; }
.account-card .panel p { margin-bottom:18px; color:#684f42; line-height:1.6; }
.insights-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.insights-grid .panel { min-height:190px; }
.insights-grid h2 { font-size:21px; margin-bottom:15px; }
.insights-grid ol { padding-left:20px; line-height:2; color:#644d41; }
.board-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; background:rgba(255,250,243,.65); border:1px solid var(--line); border-radius:16px; margin-bottom:20px; }
.board-bar form { margin:0; }
.meta-line { color:#80675a; font-size:13px; margin-top:12px; }
@media(max-width:1050px) {
  .app { height:auto; overflow:visible; }
  .page, .page.active { position:relative; min-height:0; padding-bottom:60px; }
  .topbar { margin:22px 20px 0; }
  .cta-top { display:inline-flex; }
  .hero { padding-top:28px; }
  .split { padding-top:50px; }
  .nav { max-width:none; }
  .pricing-grid { grid-template-columns:1fr; }
  .workspace-sidebar { position:static; }
}
@media(max-width:760px) {
  .auth-shell, .simple-grid, .workspace-shell { grid-template-columns:1fr; }
  .auth-shell { gap:16px; min-height:0; }
  .auth-intro { padding:8px 0; }
  .auth-points { display:none; }
  .auth-card { max-width:none; }
  .workspace-sidebar { order:2; }
  .workspace-main { order:1; }
  .note-grid, .insights-grid { grid-template-columns:1fr; }
  .simple-grid { gap:18px; }
}
@media(max-width:680px) {
  .topbar { justify-content:space-between; margin:18px 16px 0; height:48px; }
  .brand { font-size:14px; letter-spacing:.12em; gap:8px; }
  .logo { width:32px; height:32px; }
  .logo:before { width:16px; height:27px; }
  .logo:after { width:27px; height:16px; }
  .cta-top { font-size:12px; padding:12px 13px; box-shadow:none; }
  .page, .page.active { padding:34px 16px 98px; }
  .hero { padding-top:0; min-height:0; gap:10px; }
  .headline { font-size:clamp(50px,12vw,65px); }
  .lead { font-size:16px; line-height:1.6; }
  .map { margin-top:-24px; margin-bottom:-50px; }
  .auth-page, .app-page, .simple-page { padding-top:32px; }
  .auth-card, .editor-card { padding:24px 20px; }
  .auth-card h1 { font-size:37px; }
  .section-title { font-size:clamp(38px,10vw,48px); }
  .site-footer { width:calc(100% - 32px); flex-direction:column; align-items:flex-start; margin-top:0; padding-bottom:102px; }
  .flash { margin:12px auto 0; }
  .nav { bottom:12px; width:calc(100% - 20px); padding:0 8px; justify-content:flex-start; }
  .nav a { flex:none; }
  .workspace-head { align-items:start; }
  .workspace-head .btn { width:100%; }
  .search-form { min-width:100%; }
  .summary-row { grid-template-columns:1fr 1fr; }
  .summary-row .stat-box:last-child { grid-column:span 2; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
