:root {
  font: 1rem/1.5 Arial, sans-serif;
  color: #24362b;
  background: #f7f4ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100% - 68rem)/2));
  background: #263a2f;
  color: white;
}
.brand { font-size: 1.8rem; font-weight: bold; text-decoration: none; }
.brand span { color: #e3977e; }
a { color: inherit; text-underline-offset: .2em; }
nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
main { width: min(68rem, calc(100% - 2rem)); margin: 2.5rem auto; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; }
h2 { margin-top: 0; overflow-wrap: anywhere; }
.card, .records {
  background: #fffcf6;
  border: 1px solid #d5d7ca;
  border-radius: .45rem;
}
.card { padding: clamp(1rem, 4vw, 2rem); }
.narrow { width: min(100%, 28rem); }
label { display: grid; gap: .4rem; font-weight: bold; }
.card label { margin-bottom: 1rem; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  padding: .6rem .7rem;
  border: 1px solid #8b9b8d;
  border-radius: .3rem;
  width: 100%;
  color: inherit;
  background: white;
}
textarea { resize: vertical; }
button {
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  color: white;
  background: #263a2f;
  cursor: pointer;
}
button.secondary { border-color: #c1cfc5; }
:focus-visible { outline: 2px solid #a7563c; outline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.filters a { align-self: center; }
.records { padding: 0; list-style: none; }
.records li {
  display: grid;
  grid-template-columns: 1.3fr 1fr .65fr auto;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  overflow-wrap: anywhere;
}
.records li + li { border-top: 1px solid #d5d7ca; }
.badge { width: fit-content; padding: .15rem .65rem; border-radius: 1rem; background: #e4e7df; }
.badge.new { background: #f2ddd1; }
.badge.active, .notice { background: #e2eddd; }
.notice { padding: .65rem .8rem; border-radius: .3rem; }
.detail, .editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
dt { font-weight: bold; }
dd { margin: .15rem 0 .85rem; overflow-wrap: anywhere; }
.message { white-space: pre-wrap; }
@media (max-width: 650px) {
  .detail, .editor { grid-template-columns: 1fr; }
  .records li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .8rem;
}
.finance-summary strong { display: block; font-size: 1.25rem; margin-top: .35rem; }
.estimate-actions, .print-controls, .estimate-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
#estimate fieldset { margin: 0 0 1rem; padding: 1rem; border: 1px solid #d5d7ca; }
#estimate legend { font-weight: bold; padding: 0 .4rem; }
.estimate-line {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: end;
  gap: .6rem;
  margin-bottom: .9rem;
}
.estimate-line label { margin: 0; }
.clear-line { background: transparent; border-color: #8b9b8d; color: inherit; }
button:disabled { opacity: .5; cursor: default; }
.estimate-totals strong { margin-left: .4rem; }
.proposal { margin-top: 1rem; }
.table-wrap { overflow-x: auto; }
.proposal table { border-collapse: collapse; width: 100%; }
.proposal th, .proposal td {
  border-bottom: 1px solid #d5d7ca;
  padding: .55rem;
  text-align: right;
}
.proposal th:first-child { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .estimate-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate-line label:first-child { grid-column: 1 / -1; }
  .clear-line { width: fit-content; }
}
@media print {
  :root, .proposal { background: white; color: black; }
  header, .print-controls { display: none; }
  main { width: 100%; margin: 0; }
  .proposal { border: 0; padding: 0; }
  .proposal tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
.case-photo { display: block; width: 100%; max-height: 36rem; object-fit: cover; margin-bottom: 1rem; }
.project-section { margin-top: 1rem; }
.inline-form { display: inline; margin-left: .5rem; }
.inline-form button { padding: .2rem .5rem; margin: .25rem 0; }
label.check { display: flex; gap: .6rem; align-items: center; }
label.check input { width: auto; }
.public-lead { font-size: 1.2rem; }
.public-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.public-action { display: inline-block; padding: .65rem 1rem; background: #263a2f; color: white; border-radius: .3rem; text-decoration: none; }

/* svod-brand */
.brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.brand .svod-mark {
    width:38px;
    height:38px;
    object-fit:contain;
    background:transparent;
}

/* SVOD MANAGEMENT */

.stat-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:14px;
    margin:24px 0;
}

.stat-card strong {
    display:block;
    font-size:36px;
    margin-top:12px;
    color:#e7334d;
}

.stat-chart {
    display:flex;
    align-items:flex-end;
    height:210px;
    padding:30px 0;
    gap:5px;
    overflow-x:auto;
}

.stat-column {
    flex:1;
    min-width:32px;
    height:100%;
    display:flex;
    justify-content:flex-end;
    flex-direction:column;
    align-items:center;
}

.stat-bar {
    width:65%;
    background:#e7334d;
    flex-shrink:1;
}

.stat-column span,
.stat-column small {
    font-size:10px;
}

.stat-table {
    border-collapse:collapse;
    width:100%;
}

.stat-table th,
.stat-table td {
    padding:12px;
    border-bottom:1px solid #ddd;
    text-align:left;
    overflow-wrap:anywhere;
}

.member-preview {
    width:120px;
    height:150px;
    object-fit:cover;
}

.member-editor {
    margin-bottom:20px;
}

.member-editor input[type=checkbox] {
    width:auto;
}

/* SVOD DESIGN 2026 */

:root {
    font-family: Arial, Helvetica, sans-serif;
    background: #F4F3EF;
    color: #151515;
    accent-color: #FF304F;
}

body {
    margin: 0;
}

header {
    background: #151515;
    color: #F4F3EF;
    padding: 22px 32px;
    border-bottom: 4px solid #FF304F;
}

.brand {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.brand span {
    color: #FF304F;
}

header nav {
    gap: 6px;
}

header nav a {
    text-decoration: none;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

header nav a:hover {
    background: #303030;
    color: #FF304F;
}

main {
    width: min(1480px, calc(100% - 64px));
    margin: 40px auto;
}

h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -.045em;
    margin-bottom: 32px;
}

h2 {
    font-weight: 800;
    letter-spacing: -.025em;
}

.card,
.records {
    background: #FFFFFF;
    border: 1px solid #D2D1CD;
    border-radius: 0;
    box-shadow: none;
}

.card {
    padding: 24px;
    margin-bottom: 18px;
}

input,
textarea,
select {
    background: #F4F3EF;
    border: 1px solid #D2D1CD;
    border-radius: 0;
    min-height: 44px;
    padding: 11px 13px;
}

input[type=checkbox],
input[type=radio] {
    width: auto;
    min-height: auto;
}

label {
    font-size: 14px;
    font-weight: 600;
}

button,
.public-action {
    background: #151515;
    color: white;
    border-radius: 0;
    min-height: 42px;
    font-weight: 700;
    padding: 10px 18px;
}

button:hover,
.public-action:hover {
    background: #FF304F;
    color: #151515;
}

button.secondary {
    background: transparent;
    color: #151515;
    border: 1px solid #858585;
}

button.secondary:hover {
    border-color: #FF304F;
    color: #B81932;
}

.records li {
    padding: 18px;
}

.records li + li {
    border-color: #D2D1CD;
}

.records li:hover {
    background: #F4F3EF;
}

.stat-grid {
    gap: 16px;
}

.stat-card {
    border-top: 3px solid #FF304F;
}

.stat-card strong {
    font-size: 42px;
    color: #151515;
}

.stat-bar {
    background: #FF304F;
}

.member-editor {
    border-left: 3px solid #FF304F;
}

.member-preview {
    border-radius: 0;
}

:focus-visible {
    outline: 2px solid #FF304F;
    outline-offset: 3px;
}

@media (max-width: 650px) {
    main {
        width: calc(100% - 24px);
        margin: 24px auto;
    }

    header {
        padding: 18px;
    }

    header nav a {
        padding: 8px;
        font-size: 12px;
    }

    .card {
        padding: 16px;
    }
}

@media print {
    header {
        display: none;
    }

    main {
        width: 100%;
        margin: 0;
    }

    .card {
        border: none;
    }
}

