/* Front-end form styling aligned with the approved v27 festival form. */
.sv-application-shell{
  --sv-ink:#2e231d;
  --sv-muted:#76675c;
  --sv-brown:#8f623d;
  --sv-line:#dcccbc;
  --sv-paper:#fffdf9;
  max-width:1000px;
  margin:38px auto;
  color:var(--sv-ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-sizing:border-box;
}
.sv-application-shell *{box-sizing:border-box}
.sv-application-shell .form-intro{display:grid;grid-template-columns:1fr .8fr;gap:28px;align-items:end;margin-bottom:24px}
.sv-application-shell .eyebrow{color:var(--sv-brown);font-size:12px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.sv-application-shell .form-intro h2{margin:8px 0 0;color:#261c17;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4vw,48px);font-weight:500;line-height:1.04;letter-spacing:-.025em}
.sv-application-shell .form-intro p{margin:0;color:var(--sv-muted);font-size:14px;line-height:1.65}

.sv-success,.sv-warning{max-width:1000px;margin:0 0 24px;padding:18px 20px;border:1px solid #cfbca8;border-radius:14px;background:#fbf4e9;color:#48372c;line-height:1.55}
.sv-warning{background:#fff6df}
.sv-hp{position:absolute!important;left:-9999px!important;opacity:0!important}

.festival-form{display:grid;gap:18px}
.festival-form fieldset{margin:0;padding:24px;border:1px solid var(--sv-line);border-radius:18px;background:#fff}
.festival-form legend{padding:0 9px;color:#332820;font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:500;line-height:1.15}
.festival-form legend span{margin-right:8px;color:var(--sv-brown);font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:850;letter-spacing:.12em}
.form-grid{display:grid;gap:16px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid .full{grid-column:1/-1}
.festival-form label,.festival-form .form-field{display:grid;min-width:0;gap:7px;color:#55483f;font-size:13px;font-weight:720}
.festival-form .field-label{display:block;color:#55483f;font-size:13px;font-weight:720}
.festival-form label small{display:block;color:var(--sv-muted);font-size:11px;font-weight:500;line-height:1.45}
.festival-form input,.festival-form textarea{width:100%;max-width:100%;padding:12px 13px;border:1px solid #d7c8b9;border-radius:11px;background:var(--sv-paper);color:var(--sv-ink);font:inherit;line-height:1.45;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.festival-form textarea{resize:none;overflow:auto}
.festival-form input:hover,.festival-form textarea:hover{border-color:#c7ad94}
.festival-form input:focus,.festival-form textarea:focus{border-color:#a77951;box-shadow:0 0 0 3px rgba(143,98,61,.10);background:#fff}
.festival-form input[name="production_year"]{appearance:none;-webkit-appearance:none}
.char-count{justify-self:end;color:var(--sv-muted);font-size:11px;font-weight:600}

/* Custom nomination selector */
.custom-select{position:relative;min-width:0}
.custom-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;border:0!important}
.custom-select-trigger{width:100%;min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #d7c8b9;border-radius:11px;background:var(--sv-paper);color:var(--sv-ink);font:inherit;font-weight:650;text-align:left;cursor:pointer;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.custom-select-trigger:hover{background:#fffaf4;border-color:#c7ad94}
.custom-select-trigger:focus-visible,.custom-select.is-open .custom-select-trigger{border-color:#a77951;box-shadow:0 0 0 3px rgba(143,98,61,.10)}
.custom-select.is-invalid .custom-select-trigger{border-color:#9e493f;box-shadow:0 0 0 3px rgba(158,73,63,.10)}
.custom-select-arrow{flex:0 0 auto;color:var(--sv-brown);font-size:20px;line-height:1;transform:translateY(-1px);transition:transform .18s ease}
.custom-select.is-open .custom-select-arrow{transform:rotate(180deg) translateY(1px)}
.custom-select-menu{position:absolute;z-index:999;top:calc(100% + 8px);left:0;right:0;display:grid;gap:3px;max-height:310px;overflow:auto;padding:7px;border:1px solid #d6c3b1;border-radius:15px;background:rgba(255,253,249,.985);box-shadow:0 18px 44px rgba(69,47,31,.16);opacity:0;visibility:hidden;transform:translateY(-5px) scale(.99);transform-origin:top;transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.custom-select.is-open .custom-select-menu{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.custom-select-menu button{width:100%;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:#46372e;font:inherit;font-size:13px;font-weight:680;text-align:left;cursor:pointer;line-height:1.35}
.custom-select-menu button span{font-weight:560;color:#7a6759}
.custom-select-menu button:hover,.custom-select-menu button:focus-visible,.custom-select-menu button[aria-selected="true"]{background:#f2e6d8;color:#2d211a;outline:none}

/* File picker matching v27 */
.file-control{position:relative;display:flex;align-items:flex-start;gap:9px;min-height:54px;padding:8px;border:1px solid #d7c8b9;border-radius:12px;background:#f8f1e8;transition:border-color .16s ease,box-shadow .16s ease}
.file-control:focus-within{border-color:#a77951;box-shadow:0 0 0 3px rgba(143,98,61,.10)}
.file-control.is-invalid{border-color:#9e493f;box-shadow:0 0 0 3px rgba(158,73,63,.10)}
.file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important}
.file-pick{flex:0 0 auto;min-height:36px;padding:8px 13px;border:1px solid #cdb9a6;border-radius:9px;background:#fff;color:#3f3128;font:inherit;font-size:12px;font-weight:780;cursor:pointer;box-shadow:0 2px 5px rgba(64,43,29,.07);transition:transform .14s ease,border-color .14s ease,background .14s ease}
.file-pick:hover{background:#fffaf4;border-color:#ae8968;transform:translateY(-1px)}
.file-pick:focus-visible{outline:2px solid rgba(143,98,61,.38);outline-offset:2px}
.file-list{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:7px;min-width:0;align-items:center;padding-top:2px}
.file-placeholder{padding:8px 2px;color:#6c5b4f;font-size:12px;font-weight:620;line-height:1.35}
.file-chip{max-width:100%;display:inline-flex;align-items:center;gap:7px;padding:5px 6px 5px 8px;border:1px solid #dfcfbf;border-radius:999px;background:#fff;color:#42332a;box-shadow:0 2px 6px rgba(65,43,29,.05)}
.file-chip-thumb{width:28px;height:28px;flex:0 0 28px;border-radius:50%;object-fit:cover;background:#eee2d6;border:1px solid #e1d2c4}
.file-chip-name{min-width:0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700}
.file-remove{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;padding:0;border:0;border-radius:50%;background:#f1e6db;color:#6d4f39;font-size:18px;line-height:1;cursor:pointer;transition:background .14s ease,color .14s ease,transform .14s ease}
.file-remove:hover{background:#e2c7b2;color:#33241c;transform:scale(1.04)}
.file-remove:focus-visible{outline:2px solid rgba(143,98,61,.38);outline-offset:2px}

.consent-list{display:grid;gap:11px}
.festival-form label.check{grid-template-columns:20px 1fr;gap:10px;align-items:start;padding:13px;border:1px solid #eadfd4;border-radius:12px;background:#fdf9f4;font-weight:600;line-height:1.5}
.festival-form label.check input{width:18px;height:18px;margin:2px 0 0;padding:0;accent-color:#8f623d;box-shadow:none}
.form-submit{display:flex;align-items:center;gap:18px;padding:4px 2px}
.form-submit .btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 22px;border:1px solid #2d211a;border-radius:999px;background:#2d211a;color:#fff;font:inherit;font-size:13px;font-weight:800;line-height:1;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.form-submit .btn:hover{transform:translateY(-1px);background:#3b2c24;box-shadow:0 8px 20px rgba(46,33,26,.12)}
.form-submit p{margin:0;color:var(--sv-muted);font-size:12px;line-height:1.5}
.form-message{min-height:20px;color:var(--sv-brown);font-size:12px;font-weight:700}

@media(max-width:760px){
  .sv-application-shell{width:100%;margin:28px auto}
  .sv-application-shell .form-intro{grid-template-columns:1fr;gap:12px;margin-bottom:20px}
  .sv-application-shell .form-intro h2{font-size:31px}
  .form-grid.two{grid-template-columns:1fr}.form-grid .full{grid-column:auto}
  .festival-form fieldset{padding:18px;border-radius:16px}
  .festival-form legend{font-size:22px}
  .custom-select-menu{max-height:280px}
  .file-control{display:grid;grid-template-columns:1fr;gap:7px}
  .file-pick{width:100%}.file-list{width:100%}
  .file-chip{width:100%;border-radius:11px;justify-content:flex-start}.file-chip-name{max-width:none;flex:1}
  .form-submit{align-items:stretch;flex-direction:column}.form-submit .btn{width:100%}.form-submit p{text-align:left}
}

/* v1.1.3 — mobile Safari / smoother controls */
.custom-select-menu{transition:opacity .24s ease,transform .28s cubic-bezier(.22,.68,.28,1),visibility .24s ease}
.custom-select-trigger,.file-control,.file-pick,.file-remove,.form-submit .btn{transition-duration:.24s}
.file-pick{display:inline-flex;align-items:center;justify-content:center;user-select:none;-webkit-user-select:none}
@media(max-width:760px){
  /* Prevent iOS Safari from zooming the page when a field is focused. */
  .festival-form input,
  .festival-form textarea,
  .festival-form select,
  .festival-form .custom-select-trigger{font-size:16px!important}
  .festival-form input[type="checkbox"]{font-size:initial!important}
}


/* v1.1.4 — multi-file chooser with clear per-file controls */
.file-field .field-help{display:block;margin:4px 0 8px;color:#806f62;font-size:11px;line-height:1.45;font-weight:560}
.file-field-multiple .file-control{display:grid;grid-template-columns:1fr;gap:10px;padding:11px}
.file-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.file-count{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border:1px solid #dfcfbf;border-radius:999px;background:rgba(255,255,255,.62);color:#745b47;font-size:11px;font-weight:800;line-height:1}
.file-field-multiple .file-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;padding-top:0}
.file-field-multiple .file-placeholder{grid-column:1/-1;padding:9px 4px}
.file-field-multiple .file-chip{width:100%;max-width:none;min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 8px;border-radius:12px}
.file-field-multiple .file-chip-thumb{width:40px;height:40px;flex-basis:40px;border-radius:9px}
.file-chip-meta{min-width:0;display:grid;gap:2px}
.file-field-multiple .file-chip-name{max-width:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.file-chip-size{display:block;color:#927b69;font-size:10px;font-weight:650;line-height:1.2}
.file-field-multiple .file-remove{width:auto;height:34px;min-width:34px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:9px}
.file-remove-text{font-size:10px;font-weight:800}

@media(max-width:760px){
  .file-field-multiple .file-control{padding:10px}
  .file-actions{display:grid;grid-template-columns:1fr auto;gap:8px}
  .file-actions .file-pick{width:100%}
  .file-count{min-height:42px;padding:8px 11px}
  .file-field-multiple .file-list{grid-template-columns:1fr;gap:7px}
  .file-field-multiple .file-chip{grid-template-columns:46px minmax(0,1fr) auto;padding:8px}
  .file-field-multiple .file-chip-thumb{width:46px;height:46px}
  .file-field-multiple .file-remove{min-width:42px;height:42px;padding:0 10px}
  .file-field-multiple .file-remove-text{display:none}
  .file-field-multiple .file-chip-name{font-size:12px}
  .file-chip-size{font-size:10px}
}

/* v1.1.5 — Safari-safe multi-file uploader */
.file-field-multiple .file-control{padding:12px 13px;gap:12px;background:#faf4ec}
.file-field-multiple .file-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap}
.file-field-multiple .file-actions .file-pick{min-width:150px}
.file-field-multiple .file-count{min-height:36px;padding:8px 12px;background:#fff;border-color:#dfcfbf;color:#665345;font-size:12px}
.file-field-multiple .file-control.has-files .file-count{background:#f0e3d4;color:#513b2c;border-color:#d6bda6}
.file-field-multiple .file-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin:0;padding:0}
.file-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;padding:8px;border:1px solid #dfcfbf;border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(65,43,29,.04)}
.file-card-preview{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#eee3d7;color:#8c735f;font-size:9px;font-weight:800}
.file-card-preview img{display:block;width:100%;height:100%;object-fit:cover}
.file-card-meta{min-width:0;display:grid;gap:3px}
.file-card-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3e3027;font-size:12px;line-height:1.25}
.file-card-size{color:#8e7867;font-size:10px;font-weight:650}
.file-card-remove{display:inline-flex;align-items:center;gap:5px;justify-content:center;min-height:36px;padding:7px 9px;border:0;border-radius:9px;background:#f3e8de;color:#6e503b;font:inherit;font-size:10px;font-weight:800;cursor:pointer;transition:background .18s ease,transform .18s ease}
.file-card-remove>span:first-child{font-size:17px;line-height:1}
.file-card-remove:hover{background:#e8d2c1;transform:translateY(-1px)}
.file-card-remove:focus-visible{outline:2px solid rgba(143,98,61,.38);outline-offset:2px}

@media(max-width:760px){
  .file-field-multiple .file-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .file-field-multiple .file-actions .file-pick{width:100%;min-height:46px}
  .file-field-multiple .file-count{width:100%;justify-content:flex-start;min-height:38px}
  .file-field-multiple .file-list{grid-template-columns:1fr;gap:8px}
  .file-card{grid-template-columns:56px minmax(0,1fr) 42px;padding:8px}
  .file-card-preview{width:56px;height:56px}
  .file-card-name{font-size:13px}
  .file-card-remove{width:42px;height:42px;min-height:42px;padding:0;border-radius:10px}
  .file-card-remove span:last-child{display:none}
  .file-card-remove>span:first-child{font-size:21px}
}

/* v1.1.6 — aligned upload columns + compact removable file rows */
/* Keep both upload controls pinned to the top of the same grid row. */
.file-field{align-content:start;align-self:start}
.file-field > .field-label{margin:0}
.file-field .file-control{align-self:start}

/* Both empty upload fields use the same language and visual rhythm. */
.file-field-multiple .file-count{
  border:0;
  background:transparent;
  padding:8px 2px;
  min-height:36px;
  color:#6c5b4f;
  font-size:12px;
  font-weight:620;
  justify-content:flex-start;
  box-shadow:none;
}
.file-field-multiple .file-control.has-files .file-count{
  width:auto;
  border:1px solid #dfcfbf;
  background:#f0e3d4;
  padding:8px 11px;
  color:#513b2c;
  font-weight:800;
}

/* The multi-file control should grow downward without moving the left column. */
.file-field-multiple .file-control{min-height:54px}
.file-field-multiple .file-list{
  grid-template-columns:1fr;
  gap:7px;
}

/* Cleaner full-width file row. */
.file-card{
  position:relative;
  grid-template-columns:44px minmax(0,1fr) 34px;
  gap:10px;
  min-height:58px;
  padding:7px 8px;
  border-radius:11px;
}
.file-card-preview{
  width:44px;
  height:44px;
  border-radius:8px;
}
.file-card-name{
  font-size:11px;
  line-height:1.3;
  white-space:nowrap;
}
.file-card-size{font-size:10px}

/* Small round close button instead of the bulky "Удалить" pill. */
.file-card-remove{
  width:30px;
  height:30px;
  min-height:30px;
  min-width:30px;
  padding:0;
  border:1px solid #e1d0c0;
  border-radius:50%;
  background:#fff8f1;
  color:#765640;
  box-shadow:none;
}
.file-card-remove>span:first-child{
  display:block;
  font-size:20px;
  line-height:1;
  transform:translateY(-1px);
}
.file-card-remove>span:last-child{display:none!important}
.file-card-remove:hover{
  background:#ead8c9;
  color:#34251c;
  border-color:#d7bca5;
  transform:none;
}

@media(max-width:760px){
  .file-field{align-content:start;align-self:start}
  .file-field-multiple .file-actions{display:grid;grid-template-columns:1fr;gap:6px}
  .file-field-multiple .file-count,
  .file-field-multiple .file-control.has-files .file-count{
    width:100%;
    min-height:auto;
    justify-content:flex-start;
  }
  .file-card{
    grid-template-columns:48px minmax(0,1fr) 38px;
    min-height:64px;
    padding:7px;
  }
  .file-card-preview{width:48px;height:48px}
  .file-card-remove{width:38px;height:38px;min-width:38px;min-height:38px}
  .file-card-remove>span:first-child{font-size:22px}
}


/* v1.1.7 — balanced upload columns and readable remove buttons */
/* Keep the two upload columns visually level before any files are chosen. */
.file-field-multiple .field-help{
  order:3;
  margin:8px 2px 0;
  color:#806f62;
  font-size:11px;
  line-height:1.45;
  font-weight:560;
}
.file-field-multiple .file-control{
  order:2;
  min-height:54px;
}
.file-field-multiple .file-control:not(.has-files){
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px;
}
.file-field-multiple .file-control:not(.has-files) .file-actions{
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:nowrap;
}
.file-field-multiple .file-control:not(.has-files) .file-list{display:none}
.file-field-multiple .file-control:not(.has-files) .file-count{
  flex:1 1 auto;
  padding:8px 2px;
  min-height:auto;
  border:0;
  background:transparent;
  color:#6c5b4f;
  font-size:12px;
  font-weight:620;
  line-height:1.35;
  white-space:nowrap;
}

/* Once files exist the right side may grow downward, without shifting the left column. */
.file-field-multiple .file-control.has-files{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:11px;
}
.file-field-multiple .file-control.has-files .file-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* Clear, comfortably sized remove action — not a tiny circular target. */
.file-card{grid-template-columns:44px minmax(0,1fr) 96px}
.file-card-remove{
  width:96px;
  min-width:96px;
  height:36px;
  min-height:36px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid #dcc7b4;
  border-radius:10px;
  background:#fffaf5;
  color:#654936;
  font-size:11px;
  font-weight:800;
  line-height:1;
  box-shadow:0 2px 5px rgba(65,43,29,.05);
}
.file-card-remove>span:first-child{
  display:inline-block;
  font-size:17px;
  line-height:1;
  transform:none;
}
.file-card-remove>span:last-child{display:inline!important}
.file-card-remove:hover{
  background:#f0dfd0;
  border-color:#cfae92;
  color:#35261e;
  transform:translateY(-1px);
}

/* Same remove language for the single director photo. */
.file-remove{
  width:auto;
  min-width:86px;
  height:34px;
  min-height:34px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #dcc7b4;
  border-radius:9px;
  background:#fffaf5;
  color:#654936;
  font-size:10px;
  font-weight:800;
}
.file-remove>span:first-child{font-size:16px;line-height:1;transform:none}
.file-remove .file-remove-text{display:inline!important}
.file-remove:hover{background:#f0dfd0;border-color:#cfae92;color:#35261e;transform:translateY(-1px)}

@media(max-width:760px){
  .file-field-multiple .field-help{margin-top:7px;font-size:10px}
  .file-field-multiple .file-control:not(.has-files){padding:8px;display:flex}
  .file-field-multiple .file-control:not(.has-files) .file-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    align-items:center;
  }
  .file-field-multiple .file-control:not(.has-files) .file-actions .file-pick{
    width:100%;
    min-width:0;
    min-height:44px;
  }
  .file-field-multiple .file-control:not(.has-files) .file-count{
    width:100%;
    min-width:0;
    padding:8px 4px;
    white-space:normal;
  }
  .file-card{grid-template-columns:48px minmax(0,1fr) 86px}
  .file-card-remove{
    width:86px;
    min-width:86px;
    height:40px;
    min-height:40px;
    padding:0 9px;
    border-radius:10px;
    font-size:10px;
  }
  .file-card-remove>span:last-child{display:inline!important}
  .file-remove{
    min-width:82px;
    height:38px;
    min-height:38px;
    padding:0 9px;
  }
  .file-remove .file-remove-text{display:inline!important}
}


/* v1.1.8 — unified upload geometry, cross-only remove controls */
/* No explanatory helper under the stills field: both columns should begin and end on the same rhythm. */
.file-field-multiple .field-help{display:none!important}

/* Shared geometry tokens for both upload columns. */
.file-field{
  --sv-upload-radius:12px;
  --sv-upload-inner-radius:10px;
  --sv-thumb-radius:9px;
  --sv-remove-size:38px;
}
.file-field .file-control{
  border-radius:var(--sv-upload-radius)!important;
}

/* Empty state: both sides use the same height, spacing and text treatment. */
.file-field .file-control,
.file-field-multiple .file-control:not(.has-files){
  min-height:58px!important;
  padding:8px!important;
}
.file-field-multiple .file-control:not(.has-files){
  display:flex!important;
  align-items:center!important;
}
.file-field-multiple .file-control:not(.has-files) .file-actions{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
}
.file-field-multiple .file-control:not(.has-files) .file-count{
  margin:0!important;
  padding:8px 2px!important;
  min-height:auto!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  color:#6c5b4f!important;
  font-size:12px!important;
  font-weight:620!important;
  line-height:1.35!important;
}

/* Single director-photo chip and multi-file rows now share the same visual language. */
.file-chip,
.file-card{
  border:1px solid #dfcfbf!important;
  border-radius:var(--sv-upload-inner-radius)!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(65,43,29,.045)!important;
}
.file-chip{
  min-height:46px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) var(--sv-remove-size)!important;
  gap:9px!important;
  align-items:center!important;
  padding:4px 5px!important;
}
.file-card{
  grid-template-columns:44px minmax(0,1fr) var(--sv-remove-size)!important;
  gap:10px!important;
  min-height:60px!important;
  padding:7px 8px!important;
}

/* Same corner radius for every thumbnail — no circle on the left, no mismatch on the right. */
.file-chip-thumb,
.file-card-preview{
  border-radius:var(--sv-thumb-radius)!important;
  overflow:hidden!important;
}
.file-chip-thumb{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
}
.file-card-preview{
  width:44px!important;
  height:44px!important;
}

/* Cross-only remove button; same square shape in both columns. */
.file-remove,
.file-card-remove{
  width:var(--sv-remove-size)!important;
  min-width:var(--sv-remove-size)!important;
  height:var(--sv-remove-size)!important;
  min-height:var(--sv-remove-size)!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border:1px solid #dcc7b4!important;
  border-radius:var(--sv-upload-inner-radius)!important;
  background:#fffaf5!important;
  color:#654936!important;
  box-shadow:none!important;
  font:inherit!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important;
}
.file-remove>span,
.file-card-remove>span{
  display:block!important;
  margin:0!important;
  font-size:24px!important;
  font-weight:500!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
.file-remove .file-remove-text,
.file-card-remove>span:not(:first-child){display:none!important}
.file-remove:hover,
.file-card-remove:hover{
  background:#f0dfd0!important;
  border-color:#cfae92!important;
  color:#35261e!important;
  transform:translateY(-1px)!important;
}

/* When files exist, keep the right column compact and aligned to the top. */
.file-field-multiple .file-control.has-files{
  border-radius:var(--sv-upload-radius)!important;
  padding:10px!important;
  gap:9px!important;
}
.file-field-multiple .file-control.has-files .file-actions{
  gap:9px!important;
}
.file-field-multiple .file-control.has-files .file-list{
  gap:7px!important;
}

@media(max-width:760px){
  .file-field{--sv-remove-size:42px}
  .file-field .file-control,
  .file-field-multiple .file-control:not(.has-files){min-height:62px!important}
  .file-field-multiple .file-control:not(.has-files) .file-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  .file-field-multiple .file-control:not(.has-files) .file-count{
    width:100%!important;
    padding:4px 3px 2px!important;
  }
  .file-chip{
    grid-template-columns:42px minmax(0,1fr) var(--sv-remove-size)!important;
    min-height:58px!important;
    padding:6px!important;
  }
  .file-card{
    grid-template-columns:48px minmax(0,1fr) var(--sv-remove-size)!important;
    min-height:64px!important;
    padding:7px!important;
  }
  .file-chip-thumb{width:42px!important;height:42px!important}
  .file-card-preview{width:48px!important;height:48px!important}
}
