:root { color-scheme: light; --nav:#101c2b; --text:#172633; --muted:#536776; --line:#dfe7ed; --teal:#08786f; --bg:#f5f7f9; --white:#fff; font-family:Inter,"Segoe UI",Arial,sans-serif; color:var(--text); background:var(--bg); }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; }
a { color:var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible { outline:3px solid #19a99c; outline-offset:3px; }
h1,h2,p { margin:0; }
h1 { font-size:2rem; line-height:1.15; letter-spacing:-.035em; }
h2 { font-size:1.375rem; line-height:1.23; }
p { line-height:1.55; }
.muted { color:var(--muted); }
.brand { display:flex; align-items:center; gap:12px; color:white; text-decoration:none; font-size:1.4rem; font-weight:700; letter-spacing:-.025em; }
.brand img { width:34px; height:34px; }
.auth-layout { min-height:100vh; display:grid; grid-template-columns:minmax(280px,40%) 1fr; }
.auth-brand { background:var(--nav); display:flex; flex-direction:column; justify-content:space-between; min-height:100%; color:white; padding:clamp(28px,5vw,76px); }
.brand-message h1 { font-size:clamp(2rem,4.4vw,4.6rem); }
.brand-message p { margin-top:18px; color:#c5d1dc; }
.brand-rule { height:4px; width:72px; background:#da9469; border-radius:4px; }
.auth-main { display:grid; place-items:center; padding:36px 24px; }
.auth-card { width:min(100%,430px); padding:clamp(22px,4vw,42px); border:1px solid var(--line); border-radius:18px; background:white; }
.auth-card h2 { font-size:1.75rem; }
.auth-card h2 + p { margin-top:8px; }
.auth-card form { margin:24px 0; display:grid; gap:16px; }
.field { display:grid; gap:7px; }
.field label { font-size:.925rem; font-weight:650; }
.field input { min-width:0; width:100%; height:44px; border:1px solid #aab9c4; border-radius:9px; padding:8px 12px; font:inherit; color:inherit; background:white; }
.field small { font-size:.825rem; line-height:1.5; }
.error { color:#9e2323; background:#fff4f3; padding:8px 12px; border-radius:8px; font-size:.875rem; }
.error ul { margin:0; padding-inline-start:20px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 15px; border-radius:10px; font:inherit; font-size:.9rem; font-weight:650; cursor:pointer; }
.primary { background:var(--teal); color:white; border:1px solid var(--teal); }
.primary:hover { background:#08645e; }
.outline { border:1px solid var(--line); background:white; color:var(--text); }
.switch { font-size:.925rem; }
.switch a { font-weight:650; }
.app-layout { min-height:100vh; }
.site-header { position:sticky; top:0; z-index:2; }
.topbar { min-height:68px; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); grid-template-areas:"workspace navigation account"; gap:16px; align-items:center; padding:12px clamp(16px,3vw,40px); background:var(--nav); color:white; }
.workspace, .account { display:flex; align-items:center; gap:12px; min-width:0; }
.workspace { grid-area:workspace; }
.account { grid-area:account; justify-content:flex-end; }
.workspace .brand, .account form { flex-shrink:0; }
.workspace-name, .account span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-name { border-left:1px solid #3d4d5c; padding-left:12px; color:#e5edf2; font-size:.9rem; }
.topbar .outline { border-color:#4d6170; background:#203246; color:white; }
.topbar .outline:hover { background:#30475c; }
.section-nav { grid-area:navigation; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px; }
.section-nav a { display:inline-flex; align-items:center; gap:7px; min-height:42px; padding:7px 9px; border-radius:8px; color:#e5edf2; text-decoration:none; font-size:.9375rem; font-weight:600; white-space:nowrap; }
.section-nav a:hover { background:#203246; color:white; }
.section-nav a[aria-current="page"] { background:#16413d; color:#d9fff3; box-shadow:inset 0 -2px #5ccbbb; }
.section-nav svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
svg { width:20px; height:20px; flex-shrink:0; }
.app-main { padding:clamp(18px,3vw,42px); max-width:1510px; }
.app-main h1 + p { margin-top:8px; }
.panel { margin-top:24px; border:1px solid var(--line); background:white; border-radius:18px; padding:clamp(16px,3vw,28px); }
.module-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; margin-top:18px; }
.module { display:flex; align-items:center; gap:10px; min-height:54px; padding:10px 13px; border:1px solid var(--line); border-radius:9px; text-decoration:none; color:var(--text); }
.module:hover { background:#eef8f6; }
.module svg { color:var(--teal); }
.module-list { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin-bottom:0; }
.module-list li { background:var(--bg); border-radius:7px; padding:9px 12px; }
@media (max-width:1050px) {
  .topbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"workspace account" "navigation navigation"; row-gap:6px; }
}
@media (max-width:760px) {
  .auth-layout { grid-template-columns:1fr; }
  .auth-brand { padding:20px 24px; }
  .brand-message, .brand-rule, .account span { display:none; }
  .auth-main { place-items:start center; }
  .site-header { position:static; }
  .topbar { column-gap:12px; grid-template-columns:minmax(0,1fr) auto; }
  .topbar .brand { font-size:1.125rem; gap:7px; }
  .topbar .brand img { width:28px; height:28px; }
  .section-nav { gap:2px 4px; }
  .section-nav a { padding:7px 9px; font-size:.875rem; }
  .section-nav svg { width:16px; height:16px; }
}

.password-strength { display:block; color:var(--muted); }
.password-strength[data-strength] { font-weight:700; }
.password-strength[data-strength="weak"] { color:#9e2323; }
.password-strength[data-strength="medium"] { color:#815400; }
.password-strength[data-strength="strong"] { color:var(--teal); }

.prays-main { margin-inline:auto; }
.prays-heading, .prays-actions, .prays-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.prays-heading { justify-content:space-between; margin-bottom:18px; }
.prays-heading p { margin-top:7px; }
.prays-panel { padding:0; overflow:hidden; }
.prays-filter { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:18px; border-bottom:1px solid var(--line); }
.prays-filter .field:first-child { flex:1 1 220px; }
.prays-filter .field:nth-child(2) { flex:0 1 200px; max-width:100%; }
.field select { min-width:0; width:100%; height:44px; border:1px solid #aab9c4; border-radius:9px; padding:8px 12px; font:inherit; color:inherit; background:white; }
.field select:focus-visible { outline:3px solid #19a99c; outline-offset:3px; }
.prays-table-wrap { overflow-x:auto; }
.prays-table { width:100%; border-collapse:collapse; text-align:left; font-size:.94rem; }
.prays-table th, .prays-table td { padding:13px 16px; border-bottom:1px solid var(--line); }
.prays-table th { color:var(--muted); background:#f7fafb; white-space:nowrap; }
.prays-table td:nth-last-child(-n+2) { white-space:nowrap; }
.prays-table tbody tr:last-child td { border-bottom:0; }
.prays-empty { padding:24px 18px; }
.prays-pagination { justify-content:center; padding:14px; border-top:1px solid var(--line); }
.prays-forms { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:16px; align-items:start; }
.prays-form { display:grid; gap:13px; margin-top:16px; }
.prays-forms section { scroll-margin-top:140px; }
.prays-product-title { margin-top:16px; }
.prays-forms .prays-table-wrap { margin-top:14px; }
.prays-message { padding:10px 14px; color:#08665d; background:#e1f3ef; border-radius:8px; }
.prays-form .errorlist { color:#9e2323; margin:0; padding-left:20px; }

.import-formats { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.import-formats button:disabled { opacity:.5; cursor:default; }
.import-panel { max-width:620px; }
.import-panel input[type="file"] { height:auto; padding:9px 12px; }

.prays-actions .button, .prays-create .button { text-decoration:none; gap:7px; }
.prays-actions svg { width:16px; height:16px; }
.prays-actions .add-outline { color:var(--teal); background:#f2fbf8; border:1px solid #84bbb3; }
.prays-actions .add-outline:hover { background:#e1f3ef; }
.prays-actions a > span, .prays-create a > span { font-size:1.15em; line-height:1; }
.prays-create { max-width:610px; }
.prays-create > p { margin:12px 0; }
.prays-create-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:4px; }

.prays-create-board.has-directory { display:grid; grid-template-columns:minmax(0,610px) minmax(0,1fr); align-items:start; gap:16px; }
.prays-directory-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; }
.prays-brand-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr)); gap:8px; list-style:none; margin:15px 0 0; padding:0; }
.prays-brand-list a { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; height:100%; min-height:44px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; color:var(--text); text-decoration:none; overflow-wrap:anywhere; }
.prays-brand-list a:hover { background:#eef8f6; border-color:#84bbb3; }
.prays-brand-list a span { font-size:.875rem; white-space:nowrap; }
@media (max-width:850px) {
  .prays-create-board.has-directory { grid-template-columns:1fr; gap:0; }
  .prays-create-board.has-directory .prays-create { max-width:none; }
}
