/* Podarr: styled after the Sonarr v4 dark theme so it sits naturally next to the rest of the stack. */
:root {
  --sonarr-blue: #35c5f4;
  --primary: #5d9cec;
  --success: #27c24c;
  --danger: #f05050;
  --warning: #ffa500;
  --purple: #7a43b6;
  --disabled: #999;
  --text: #ccc;
  --text-bright: #e1e2e3;
  --muted: #909293;
  --page-bg: #202020;
  --header-bg: #2a2a2a;
  --sidebar-bg: #2a2a2a;
  --sidebar-active: #333;
  --toolbar-bg: #262626;
  --card-bg: #333;
  --panel-bg: #2a2a2a;
  --input-bg: #333;
  --input-border: #505050;
  --border: #3a3a3a;
  --row-hover: rgba(255, 255, 255, 0.08);
  --header-h: 60px;
  --sidebar-w: 210px;
  --toolbar-h: 60px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--page-bg); color: var(--text); font: 14px/1.428 "Roboto", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-weight: 300; margin: 0; }
.ic { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.ic.fill { fill: currentColor; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- header */
.page-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; background: var(--header-bg); color: #fff; }
.logo-container { width: var(--sidebar-w); flex: none; display: flex; align-items: center; padding-left: 20px; }
.logo img { display: block; }
.sidebar-toggle { display: none; width: 60px; height: 60px; border: 0; background: none; color: #fff; font-size: 18px; }
.header-search { position: relative; flex: 1 1 auto; max-width: 440px; display: flex; align-items: center; margin-left: 20px; }
.header-search .search-icon { color: #fff; opacity: .8; font-size: 16px; display: flex; }
.header-search input { width: 100%; margin-left: 8px; padding: 6px 4px; border: 0; border-bottom: 1px solid transparent; background: none; color: #fff; outline: none; }
.header-search input::placeholder { color: rgba(255, 255, 255, .55); }
.header-search input:focus { border-bottom-color: rgba(255, 255, 255, .5); }
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: var(--card-bg); border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); max-height: 60vh; overflow: auto; z-index: 40; }
.search-result { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--text); cursor: pointer; }
.search-result img { width: 40px; height: 40px; object-fit: cover; border-radius: 2px; }
.search-result.active, .search-result:hover { background: #3f3f3f; text-decoration: none; }
.search-result .sub { color: var(--muted); font-size: 12px; }
.header-right { margin-left: auto; display: flex; align-items: center; padding-right: 10px; }
.header-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 18px; opacity: .85; }
.header-link:hover { opacity: 1; color: var(--sonarr-blue); text-decoration: none; }

/* ---------------------------------------------------------------- sidebar */
.page-sidebar { position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--sidebar-w); z-index: 20; background: var(--sidebar-bg); overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-links { padding-top: 0; }
.nav-item { border-left: 3px solid transparent; }
.nav-item.active { border-left-color: var(--sonarr-blue); background: var(--sidebar-active); }
.nav-link { display: flex; align-items: center; gap: 0; padding: 12px 24px 12px 21px; color: var(--text-bright); font-size: 14px; }
.nav-link:hover { color: var(--sonarr-blue); text-decoration: none; }
.nav-link .ic { width: 16px; height: 16px; margin-right: 7px; }
.nav-item.active > .nav-link { color: var(--sonarr-blue); }
.nav-children { padding-bottom: 6px; }
.nav-child { display: block; padding: 5px 24px 5px 44px; color: var(--text-bright); font-size: 14px; }
.nav-child:hover { color: var(--sonarr-blue); text-decoration: none; }
.nav-child.active { color: var(--sonarr-blue); }
.nav-badge { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 3px; background: var(--primary); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.nav-badge.danger { background: var(--danger); }
.messages { margin-top: auto; padding: 10px 0; }
.message { display: flex; gap: 8px; align-items: flex-start; padding: 6px 20px; font-size: 13px; color: var(--text); animation: fadein .2s; }
.message .ic { margin-top: 3px; }
.message.info .ic { color: var(--primary); }
.message.success .ic { color: var(--success); }
.message.error .ic { color: var(--danger); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------------- page */
.page-content { margin: var(--header-h) 0 0 var(--sidebar-w); min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; }
.page-toolbar { position: sticky; top: var(--header-h); z-index: 10; display: flex; align-items: center; height: var(--toolbar-h); padding: 0 10px; background: var(--toolbar-bg); color: var(--text-bright); }
.page-toolbar:empty { display: none; }
.toolbar-section { display: flex; align-items: center; height: 100%; }
.toolbar-section.right { margin-left: auto; }
.toolbar-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; height: 100%; padding: 0 8px; border: 0; background: none; color: var(--text-bright); text-align: center; }
.toolbar-btn .ic { width: 21px; height: 21px; }
.toolbar-btn .label { margin-top: 3px; font-size: 12px; line-height: 1.1; white-space: nowrap; }
.toolbar-btn:hover:not(:disabled), .toolbar-btn.on { color: var(--sonarr-blue); }
.toolbar-btn:disabled { color: #666; cursor: default; }
.toolbar-sep { width: 1px; height: 40px; margin: 0 10px; background: #535353; }
.page-body { flex: 1; padding: 20px; }
.page-body.flush { padding: 0; }

/* ---------------------------------------------------------------- generic bits */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: "Ubuntu Mono", Menlo, Consolas, monospace; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 16px; }
.empty h1 { color: var(--text-bright); font-size: 24px; margin-bottom: 8px; }
.alert { padding: 12px 15px; border-left: 4px solid var(--primary); border-radius: 4px; background: rgba(93, 156, 236, .12); margin-bottom: 20px; color: var(--text-bright); }
.alert.danger { border-color: var(--danger); background: rgba(240, 80, 80, .12); }
.alert.warning { border-color: var(--warning); background: rgba(255, 165, 0, .12); }
.alert.success { border-color: var(--success); background: rgba(39, 194, 76, .12); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 16px; min-height: 35px; border: 1px solid #393f45; border-radius: 4px; background: #333; color: var(--text); font-size: 14px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #444; border-color: #5a6268; }
.btn.primary { background: var(--primary); border-color: #5899eb; color: #fff; }
.btn.primary:hover:not(:disabled) { background: #4b91ea; border-color: #3483e7; }
.btn.success { background: var(--success); border-color: #25b848; color: #fff; }
.btn.danger { background: var(--danger); border-color: #ee3d3d; color: #fff; }
.btn.danger:hover:not(:disabled) { background: #ec3636; }
.btn.small { min-height: 0; padding: 2px 10px; font-size: 12px; }
.btn:disabled { opacity: .65; cursor: default; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--text); font-size: 14px; }
.icon-btn:hover { color: var(--sonarr-blue); }
.icon-btn:disabled { color: #666; cursor: default; }

.label { display: inline-flex; align-items: center; gap: 4px; margin: 2px 2px 2px 0; padding: 0 4px; border: 1px solid var(--border); border-radius: 2px; background: transparent; color: var(--text); font-size: 12px; line-height: 18px; white-space: nowrap; }
.label.default { border-color: #555; background: #555; color: #eee; }
.label.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.label.success { border-color: var(--success); background: var(--success); color: #fff; }
.label.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.label.warning { border-color: var(--warning); background: var(--warning); color: #fff; }
.label.purple { border-color: var(--purple); background: var(--purple); color: #fff; }
.label.info { border-color: var(--primary); color: var(--primary); }
.label.outline { background: none; }
.label.large { padding: 2px 8px; font-size: 14px; line-height: 22px; }

.progress { position: relative; height: 10px; overflow: hidden; border-radius: 4px; background: #5b5b5b; }
.progress.small { height: 5px; border-radius: 0; }
.progress.medium { height: 15px; }
.progress .bar { height: 100%; background: var(--primary); transition: width .4s; }
.progress .bar.success { background: var(--success); }
.progress .bar.danger { background: var(--danger); }
.progress .bar.warning { background: var(--warning); }
.progress .bar.purple { background: var(--purple); }
.progress .text { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 15px; color: #fff; }

/* tables (Sonarr Table) */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; font-weight: 700; color: var(--text); white-space: nowrap; }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--sonarr-blue); }
.table td { padding: 8px; border-top: 1px solid #333; line-height: 1.5; vertical-align: middle; }
.table tr:hover td { background: var(--row-hover); }
.table td.shrink, .table th.shrink { width: 1%; white-space: nowrap; }
.table td.actions { width: 1%; white-space: nowrap; text-align: right; }
.table td.num { width: 56px; text-align: left; }
.table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 6px; }

.link { color: var(--text-bright); cursor: pointer; }
.link:hover { color: var(--sonarr-blue); text-decoration: none; }
.monitor-toggle { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border: 0; background: none; padding: 0; color: var(--text); font-size: 16px; }
.monitor-toggle:hover { color: var(--sonarr-blue); }
.monitor-toggle.on { color: var(--text-bright); }

/* forms (Sonarr FormGroup) */
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 20px; padding: 0 0 5px; border-bottom: 1px solid #333; font-size: 21px; font-weight: 300; color: var(--text-bright); }
.form-group { display: flex; margin-bottom: 20px; max-width: 900px; }
.form-label { flex: 0 0 250px; padding: 7px 20px 0 0; text-align: right; font-weight: 700; color: var(--text-bright); }
.form-label.advanced { color: var(--warning); }
.form-input { flex: 1 1 auto; min-width: 0; }
.help { margin-top: 5px; color: var(--muted); font-size: 13px; }
.help.warn { color: var(--warning); }
.input, select.input, textarea.input { display: block; width: 100%; height: 35px; padding: 6px 16px; border: 1px solid var(--input-border); border-radius: 4px; background: var(--input-bg); color: var(--text); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); outline: none; }
.input:focus { border-color: var(--primary); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(93, 156, 236, .6); }
textarea.input { height: auto; padding: 10px; }
textarea.code { min-height: 55vh; font: 13px/1.5 "Ubuntu Mono", Menlo, Consolas, monospace; white-space: pre; tab-size: 2; }
.input.small { width: 140px; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; min-height: 35px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.input-group { display: flex; }
.input-group .input { border-radius: 4px 0 0 4px; }
.input-group .btn { border-radius: 0 4px 4px 0; }
.input-prefix { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--input-border); border-right: 0; border-radius: 4px 0 0 4px; background: #2a2a2a; color: var(--muted); white-space: nowrap; }
.input-prefix + .input { border-radius: 0 4px 4px 0; }

/* ---------------------------------------------------------------- index: posters */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--poster-w, 172px), 1fr)); gap: 20px 10px; }
.poster-card { position: relative; padding: 5px; border-radius: 4px; color: var(--text); transition: background .1s; }
.poster-card:hover { background: var(--card-bg); text-decoration: none; }
.poster-wrap { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: #3a3a3a; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-wrap .noart { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; color: #999; text-align: center; font-size: 15px; }
.poster-flag { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 26px 26px 0; border-color: transparent var(--warning) transparent transparent; }
.poster-flag.danger { border-right-color: var(--danger); }
.poster-card .progress { margin-top: 5px; }
.poster-info { padding: 5px 0 0; text-align: center; }
.poster-title { overflow: hidden; color: var(--text-bright); white-space: nowrap; text-overflow: ellipsis; }
.poster-sub { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.index-footer { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; }
.legend { display: grid; grid-template-columns: auto auto; gap: 4px 20px; align-content: start; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 15px; height: 15px; border-radius: 2px; }
.stats { display: grid; grid-template-columns: auto auto; gap: 2px 14px; align-content: start; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; color: var(--text-bright); }

/* ---------------------------------------------------------------- podcast details (SeriesDetails) */
.details-header { position: relative; overflow: hidden; color: #fff; }
.details-backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); transform: scale(1.1); }
.details-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .65)); }
.details-inner { position: relative; z-index: 1; display: flex; gap: 35px; padding: 30px; }
.details-poster { flex: none; width: 250px; height: 250px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 20px rgba(0, 0, 0, .6); }
.details-info { min-width: 0; flex: 1; }
.details-title { display: flex; align-items: center; gap: 12px; font-size: 44px; font-weight: 300; line-height: 1.2; }
.details-title .monitor-toggle { font-size: 30px; width: 40px; height: 40px; color: #fff; }
.details-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 12px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.details-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.details-labels .label { border-color: rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35); color: #fff; font-size: 14px; line-height: 26px; padding: 0 10px; }
.details-overview { max-width: 1000px; max-height: 6.5em; overflow: hidden; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.details-body { padding: 20px; }
.category-title { margin: 10px 0 12px; font-size: 18px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.season { margin-bottom: 20px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel-bg); }
.season-header { display: flex; align-items: center; gap: 10px; padding: 0 10px; min-height: 52px; cursor: pointer; user-select: none; }
.season-header:hover { background: rgba(255, 255, 255, .03); }
.season-name { font-size: 22px; font-weight: 300; color: var(--text-bright); }
.season-name .sub { color: var(--muted); font-size: 18px; }
.season-header .label { font-size: 14px; line-height: 22px; padding: 0 7px; }
.season-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.season-actions .icon-btn { width: 32px; height: 32px; font-size: 16px; }
.season-chevron { transition: transform .15s; }
.season.open .season-chevron { transform: rotate(180deg); }
.season-body { display: none; border-top: 1px solid var(--border); }
.season.open .season-body { display: block; }
.collapse-bar { display: flex; justify-content: center; padding: 6px; border-top: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.collapse-bar:hover { color: var(--sonarr-blue); }
.ep-title-tags .label { margin-left: 4px; }

/* add new */
.add-search { display: flex; max-width: 900px; margin: 0 auto 25px; }
.add-search .input-prefix { font-size: 18px; padding: 0 16px; }
.add-search .input { height: 46px; font-size: 18px; }
.add-search .btn { min-height: 46px; padding: 0 24px; }
.search-card { display: flex; gap: 20px; max-width: 900px; margin: 0 auto 20px; padding: 20px; border-radius: 4px; background: var(--card-bg); cursor: pointer; transition: background .1s; }
.search-card:hover { background: #3a3a3a; }
.search-card img { width: 170px; height: 170px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.search-card h2 { font-size: 28px; color: var(--text-bright); margin-bottom: 6px; }
.search-card .overview { margin-top: 10px; max-height: 6em; overflow: hidden; }
.folder-list { margin-top: 12px; font-size: 13px; }
.folder-list td { padding: 3px 8px; }

/* settings index */
.settings-links { max-width: 900px; }
.settings-link { display: block; margin-bottom: 20px; color: var(--text-bright); font-size: 21px; font-weight: 300; }
.settings-link + .help { margin: -16px 0 22px; }

/* system */
.health-row td:first-child { width: 30px; }

/* ---------------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: rgba(0, 0, 0, .6); overflow: auto; }
.modal { display: flex; flex-direction: column; width: 100%; max-width: 650px; max-height: 90vh; border-radius: 6px; background: var(--panel-bg); box-shadow: 0 5px 15px rgba(0, 0, 0, .5); }
.modal.large { max-width: 1000px; }
.modal.xl { max-width: 1280px; }
.modal-header { display: flex; align-items: center; padding: 15px 50px 15px 30px; border-bottom: 1px solid var(--border); font-size: 18px; color: var(--text-bright); position: relative; }
.modal-close { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 18px; }
.modal-close:hover { color: var(--text-bright); }
.modal-body { flex: 1; padding: 30px; overflow-y: auto; }
.modal-body.tight { padding: 0; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 15px 30px; border-top: 1px solid var(--border); }
.modal-footer .left { margin-right: auto; display: flex; gap: 10px; align-items: center; }
.modal .form-label { flex-basis: 200px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 30px; }
.tab { padding: 10px 20px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text); }
.tab:hover { color: var(--sonarr-blue); }
.tab.active { border-bottom-color: var(--sonarr-blue); color: var(--text-bright); }
.description-list { display: grid; grid-template-columns: 160px 1fr; gap: 6px 20px; margin: 0 0 20px; }
.description-list dt { font-weight: 700; text-align: right; color: var(--text-bright); }
.description-list dd { margin: 0; word-break: break-word; }
.overview-text { white-space: pre-wrap; line-height: 1.6; }
.paths td { font-family: "Ubuntu Mono", Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* popover menu (Sonarr toolbar menus) */
.popover-menu { position: fixed; z-index: 60; min-width: 180px; padding: 4px 0; border-radius: 4px; background: var(--card-bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; border: 0; background: none; color: var(--text); text-align: left; white-space: nowrap; }
.menu-item:hover { background: #3f3f3f; color: var(--text-bright); }
.menu-item .check { width: 14px; color: var(--sonarr-blue); }
.menu-sep { height: 1px; margin: 4px 0; background: #444; }

/* auth */
body.auth-mode .page-sidebar, body.auth-mode .header-search, body.auth-mode .header-right, body.auth-mode .page-toolbar { display: none; }
body.auth-mode .page-content { margin-left: 0; }
.auth-panel { width: 100%; max-width: 400px; margin: 10vh auto 0; padding: 30px; border-radius: 6px; background: var(--panel-bg); box-shadow: 0 5px 20px rgba(0, 0, 0, .5); }
.auth-panel .auth-logo { display: block; margin: 0 auto 16px; }
.auth-panel h1 { text-align: center; font-size: 24px; color: var(--text-bright); margin-bottom: 20px; }
.auth-panel .field { margin-bottom: 16px; }
.auth-panel .field span { display: block; margin-bottom: 5px; font-weight: 700; color: var(--text-bright); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 768px) {
  .sidebar-toggle { display: block; }
  .logo-container { width: auto; padding-left: 0; order: 0; }
  .sidebar-toggle { order: -1; }
  .header-search { margin-left: 10px; }
  .page-sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 12px rgba(0, 0, 0, .5); }
  .page-sidebar.open { transform: none; }
  .page-content { margin-left: 0; }
  .page-toolbar { overflow-x: auto; }
  .toolbar-btn .label { display: none; }
  .toolbar-btn { min-width: 44px; }
  .page-body { padding: 12px; }
  .details-inner { flex-direction: column; gap: 16px; padding: 16px; }
  .details-poster { width: 140px; height: 140px; }
  .details-title { font-size: 28px; }
  .form-group { flex-direction: column; }
  .form-label { flex-basis: auto; padding: 0 0 6px; text-align: left; }
  .hide-sm { display: none; }
  .season-header { flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
  .season-name { font-size: 17px; }
  .season-name .sub { font-size: 15px; }
  .search-card { flex-direction: column; }
  .search-card img { width: 120px; height: 120px; }
  .modal-body { padding: 16px; }
  .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .tabs { padding: 0 16px; overflow-x: auto; }
  .description-list { grid-template-columns: 1fr; }
  .description-list dt { text-align: left; }
}
