/* Gallery Manager — UI styles */
:root {
    --bg: #f5f6f8;
    --panel: #ffffff;
    --ink: #1d2433;
    --muted: #7a869a;
    --line: #e6e9f0;
    --brand: #4338ca;
    --brand-ink: #ffffff;
    --brand-soft: #eef0fd;
    --danger: #dc2626;
    --ok: #16a34a;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
    --sidebar-w: 244px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .25rem; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { display: block; }
.strong { font-weight: 600; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); background: #11141d; color: #c9cedb;
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; height: 100vh;
}
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.content { padding: 1.5rem; max-width: 1200px; width: 100%; }

/* Brand + gallery chip */
.brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.1rem .6rem; }
.brand-mark {
    background: var(--brand); color: #fff; font-weight: 700; border-radius: 8px;
    width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px;
}
.brand-mark.lg { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
.brand-name { font-weight: 600; color: #fff; font-size: 14px; }
.gallery-chip {
    display: flex; align-items: center; gap: .5rem; margin: .3rem .8rem 1rem;
    padding: .5rem .6rem; background: #1b1f2b; border-radius: 10px;
}
.gallery-logo {
    background: var(--brand-soft); color: var(--brand); font-weight: 700; border-radius: 7px;
    width: 26px; height: 26px; display: grid; place-items: center; font-size: 11px; flex: none;
}
.gallery-logo.lg { width: 52px; height: 52px; font-size: 18px; border-radius: 12px; }
.gallery-name { font-size: 13px; color: #e7e9ef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Nav */
.nav { display: flex; flex-direction: column; padding: 0 .6rem; gap: 2px; }
.nav-bottom { margin-top: auto; padding-bottom: 1rem; border-top: 1px solid #20242f; padding-top: .6rem; }
.nav-item {
    display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 8px;
    color: #c9cedb; font-size: 13.5px; transition: background .12s, color .12s;
}
.nav-item:hover { background: #1b1f2b; color: #fff; }
.nav-item.is-active { background: var(--brand); color: #fff; }
.nav-icon { width: 18px; text-align: center; opacity: .9; }

/* Topbar */
.topbar {
    height: 60px; background: var(--panel); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem;
    position: sticky; top: 0; z-index: 10;
}
.page-title { font-size: 18px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.bell { position: relative; font-size: 18px; }
.badge {
    position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff;
    font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px;
}
.user-menu { display: flex; align-items: center; gap: .6rem; }
.user-meta { display: flex; flex-direction: column; line-height: 1.1; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { color: var(--muted); font-size: 11px; }
.avatar {
    background: var(--brand-soft); color: var(--brand); font-weight: 700; border-radius: 50%;
    width: 34px; height: 34px; display: inline-grid; place-items: center; font-size: 12px; flex: none;
}
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.logout-form { margin: 0; }
.link-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 2px 4px; }
.link-btn:hover { color: var(--ink); }
.link-btn.danger:hover { color: var(--danger); }
.link-btn.ok:hover { color: var(--ok); }

/* Flash */
.flash-stack { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.flash { padding: .7rem 1rem; border-radius: 8px; font-size: 13.5px; border: 1px solid; }
.flash-success { background: #ecfdf3; color: #027a48; border-color: #a6f4c5; }
.flash-error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.flash-info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 8px;
    font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent; background: var(--panel);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #3730a3; }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #f9fafb; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* Panels & cards */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.sub { font-size: 13px; margin-top: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 12px; display: block; margin-bottom: .3rem; }
.stat-value { font-size: 26px; font-weight: 700; }
.stat-inline { color: var(--muted); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-main { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.list-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item.unread .list-title { font-weight: 600; }
.list-item.unread { background: var(--brand-soft); border-radius: 8px; padding-left: .5rem; padding-right: .5rem; }
.amount { font-weight: 600; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-text { flex: 1; }

/* Tags / statuses */
.tag { display: inline-block; padding: .12rem .5rem; border-radius: 20px; font-size: 11px; font-weight: 600; background: #eef0f4; color: #475467; white-space: nowrap; }
.tag-fair, .tag-event { background: #eef0fd; color: #4338ca; }
.tag-exhibition, .tag-opening, .tag-show { background: #fdf2fa; color: #c11574; }
.tag-shipping, .tag-install, .tag-deinstall { background: #fff6ed; color: #c4320a; }
.tag-deadline { background: #fef3f2; color: #b42318; }
.tag-payment { background: #ecfdf3; color: #027a48; }
.tag-studio_visit, .tag-travel { background: #eff8ff; color: #175cd3; }
.tag-doc, .tag-general { background: #f2f4f7; color: #475467; }
.status { display: inline-block; padding: .12rem .5rem; border-radius: 20px; font-size: 11px; font-weight: 600; background: #f2f4f7; color: #475467; }
.status-confirmed, .status-attending, .status-paid, .status-delivered, .status-open { background: #ecfdf3; color: #027a48; }
.status-pending, .status-planning, .status-draft, .status-scheduled { background: #fffaeb; color: #b54708; }
.status-rejected, .status-not_attending, .status-overdue, .status-cancelled { background: #fef3f2; color: #b42318; }
.status-applied, .status-interested, .status-booked, .status-in_transit, .status-sent { background: #eff8ff; color: #175cd3; }
.priority { font-size: 11px; padding: 0 .4rem; border-radius: 6px; }
.priority-high, .priority-urgent { color: var(--danger); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafbfc; }
.row-actions { display: flex; gap: .8rem; align-items: center; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-wide { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field > span { font-size: 12.5px; font-weight: 500; color: #344054; }
.field.span-2 { grid-column: 1 / -1; }
input, select, textarea {
    width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .5rem; }
fieldset { border: none; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding-top: .3rem; }
.check { display: flex; align-items: center; gap: .35rem; font-weight: 400; font-size: 13px; }
.check input { width: auto; }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters { display: flex; gap: .6rem; }
.search { width: 260px; }
.crumbs { font-size: 13px; }
.bare-actions { display: flex; gap: .6rem; align-items: center; }

/* Detail */
.detail-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.detail-head h1 { font-size: 22px; }
.detail-list { display: grid; grid-template-columns: 150px 1fr; gap: .35rem .8rem; margin: 0; }
.detail-list dt { color: var(--muted); font-size: 13px; }
.detail-list dd { margin: 0; font-size: 13.5px; }
.notes { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: .7rem; margin-top: .8rem; }
.assignees { display: flex; align-items: center; gap: .35rem; margin-top: .9rem; flex-wrap: wrap; }
.chip { background: var(--brand-soft); color: var(--brand); border-radius: 50%; width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; }
.chip.sm { width: 22px; height: 22px; font-size: 9px; }

/* Checklist (tasks) */
.checklist { list-style: none; margin: 0 0 .8rem; padding: 0; }
.checklist-item { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.checklist-item:last-child { border-bottom: none; }
.checklist-item.is-done .checklist-title { text-decoration: line-through; color: var(--muted); }
.checklist-title { flex: 1; }
.checkbox { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 0; color: var(--brand); }
.inline { display: inline; margin: 0; }
.task-add { display: flex; gap: .5rem; align-items: center; flex-wrap: nowrap; }
.task-add.wrap { flex-wrap: wrap; }
.task-add input[type=text], .task-add input[type=email] { flex: 1; min-width: 160px; }
.task-add select, .task-add input[type=date] { width: auto; }

/* Comments */
.comments { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.comment { display: flex; gap: .6rem; }
.comment-body { flex: 1; }
.comment-meta { display: flex; gap: .5rem; align-items: baseline; }
.comment-body p { margin: .2rem 0 0; }
.comment-form { display: flex; flex-direction: column; gap: .5rem; }
.comment-form button { align-self: flex-end; }
.upload-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.upload-form input[type=text] { flex: 1; min-width: 160px; }
.upload-form input[type=file] { width: auto; }
.upload-form select { width: auto; }

/* Calendar */
.cal-nav { display: flex; align-items: center; gap: .5rem; }
.cal-title { font-size: 17px; font-weight: 600; min-width: 170px; }
.calendar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-grid-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid-head span { padding: .5rem; font-size: 11px; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); font-weight: 600; }
.cal-cell { min-height: 96px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem; display: flex; flex-direction: column; gap: .2rem; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.is-empty { background: #fafbfc; }
.cal-cell.is-today { background: var(--brand-soft); }
.cal-cell.drop-target { outline: 2px dashed var(--brand); outline-offset: -2px; }
.cal-day { font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-event { font-size: 11px; padding: .12rem .35rem; border-radius: 5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.dragging { opacity: .5; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: .35rem; font-size: 12px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Cards grid */
.card-grid, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.show-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; }
.show-card:hover { border-color: var(--brand); }
.show-card h3 { font-size: 15px; }

/* Empty states */
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }
.empty.small { padding: 1rem; border: none; text-align: left; }
.empty.big { padding: 4rem 2rem; }
.empty.big h1 { font-size: 48px; }
.link { color: var(--brand); }
.link:hover { text-decoration: underline; }

/* Auth */
.auth-body { background: linear-gradient(135deg, #11141d, #2a2466); min-height: 100vh; display: grid; place-items: center; }
.auth-wrap { width: 100%; max-width: 400px; padding: 1.5rem; }
.auth-card { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand h1 { font-size: 20px; margin-top: .8rem; }
.auth-brand .brand-mark.lg { margin: 0 auto; }

/* Bare pages (gallery picker) */
.bare { min-height: 100vh; background: var(--bg); }
.bare-wrap { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }
.bare-wrap.narrow { max-width: 520px; }
.bare-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.gallery-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; box-shadow: var(--shadow); }
.gallery-card:hover { border-color: var(--brand); transform: translateY(-2px); transition: .15s; }
.gallery-card-name { font-weight: 600; }

@media (max-width: 880px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .grid-2, .form-grid, .stat-row { grid-template-columns: 1fr; }
}

/* ===================== Shipping module ===================== */
.ship-toolbar { align-items: center; }
.ship-views { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ship-views .seg { padding: .45rem .8rem; font-size: 13px; color: var(--muted); background: #fff; }
.ship-views .seg.is-active { background: var(--brand); color: #fff; }
.ship-filters { display: inline-flex; align-items: center; gap: .5rem; flex: 1; }
.ship-filters .mini { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; color: var(--muted); }
.ship-filters select.mini-select, .ship-filters .mini select { width: auto; padding: .4rem .5rem; }
.ship-filters .mini-search { width: 200px; padding: .4rem .6rem; }

/* Board table */
.ship-board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.ship-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.ship-table thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .6rem .8rem; border-bottom: 1px solid var(--line); position: sticky; top: 60px; background: var(--panel); z-index: 2; }
.ship-table td { padding: .45rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.ship-table tbody tr:hover td { background: #fafbfc; }
.col-num { width: 36px; color: var(--muted); text-align: center; font-size: 12px; }
.col-name { min-width: 320px; }
.col-track { width: 150px; }
.group-row td { background: #f7f8fa; padding: .5rem .8rem; border-bottom: 1px solid var(--line); }
.group-chip { display: inline-block; padding: .12rem .6rem; border-radius: 6px; font-size: 12px; font-weight: 700; background: #e6e9f0; color: #344054; }
.group-count { margin-left: .5rem; color: var(--muted); font-size: 12px; }
.who { display: inline-flex; align-items: center; gap: .4rem; }
.overdue { color: var(--danger); font-weight: 600; }

/* Pills (static + select) */
.pill { display: inline-block; padding: .14rem .55rem; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
select.pill-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; cursor: pointer; padding-right: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23667' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .45rem center; }
select.pill-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(67,56,202,.35); }
.pill.saved, .cell-input.saved { box-shadow: 0 0 0 2px #16a34a; }

/* Type colours */
.ship-type-print { background: #d1fae5; color: #065f46; }
.ship-type-painting { background: #dbeafe; color: #1e40af; }
.ship-type-sculpture { background: #eef0f4; color: #475467; }
.ship-type-installation { background: #eef0f4; color: #475467; }
.ship-type-multiple { background: #fee2e2; color: #b91c1c; }
.ship-type-other { background: #eef0f4; color: #475467; }

/* Stage colours */
.stage-planned { background: #fef9c3; color: #854d0e; }
.stage-active { background: #dcfce7; color: #166534; }
.stage-in_transit { background: #fee2e2; color: #b91c1c; }
.stage-finish { background: #dbeafe; color: #1e40af; }
.stage-cancelled { background: #eef0f4; color: #475467; }

/* Priority colours */
.prio-low { background: #eef0f4; color: #475467; }
.prio-medium { background: #ffedd5; color: #c2410c; }
.prio-high { background: #fee2e2; color: #b91c1c; }
.prio-urgent { background: #fecaca; color: #7f1d1d; }

/* Transport colours */
.trans-to_be_decided { background: #fee2e2; color: #b91c1c; }
.trans-courier { background: #eef0f4; color: #475467; }
.trans-client_pickup { background: #dbeafe; color: #1e40af; }
.trans-gallery { background: #ede9fe; color: #5b21b6; }
.trans-other { background: #eef0f4; color: #475467; }

/* Detail addresses */
.addr-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.addr-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.addr { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: .6rem; font-size: 12.5px; font-family: inherit; white-space: pre-wrap; margin: .3rem 0 0; }

/* Span helper for panels */
.panel.span-2 { grid-column: 1 / -1; }

/* Artwork rows (form) */
.artwork-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr .6fr .8fr 28px; gap: .4rem; margin-bottom: .4rem; align-items: center; }
.artwork-row input { padding: .4rem .5rem; font-size: 12.5px; }
fieldset legend { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding-top: 1rem; }

@media (max-width: 880px) {
    .addr-grid { grid-template-columns: 1fr; }
    .artwork-row { grid-template-columns: 1fr 1fr; }
}

/* Artwork rows as cards (form) */
.artwork-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem;
    border: 1px solid var(--line); border-radius: 10px; padding: .9rem .7rem .6rem; margin-bottom: .6rem; }
.artwork-row .aw-title { grid-column: span 2; }
.artwork-row input { padding: .4rem .5rem; font-size: 12.5px; }
.artwork-row .remove-artwork { position: absolute; top: .3rem; right: .4rem; }
#gen-name { font-size: 11px; color: var(--brand); }
@media (max-width: 880px) { .artwork-row { grid-template-columns: 1fr 1fr; } .artwork-row .aw-title { grid-column: span 2; } }

/* Form builder rows */
.field-row { position: relative; display: grid; grid-template-columns: 2fr 1.3fr auto 1.5fr; gap: .5rem; align-items: center;
    border: 1px solid var(--line); border-radius: 10px; padding: .9rem .7rem .6rem; margin-bottom: .6rem; }
.field-row input[type=text], .field-row select, .field-row .fopts { padding: .4rem .5rem; font-size: 12.5px; }
.field-row .remove-field { position: absolute; top: .3rem; right: .4rem; }
.field-row .fopts { resize: vertical; }
@media (max-width: 880px){ .field-row { grid-template-columns: 1fr 1fr; } }

/* AI artwork fill box */
.ai-artwork { border: 1px dashed var(--brand); background: var(--brand-soft); border-radius: 10px; padding: .7rem; margin-bottom: .8rem; }
.ai-artwork textarea { width: 100%; padding: .5rem; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; }
.ai-artwork-actions { display: flex; gap: .6rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
