:root{
  --bg:#f2f4f6;
  --bg-soft:#f7f9fa;
  --surface:#ffffff;
  --surface-2:#fbfcfd;
  --header:#1d1d1f;
  --header-2:#2a2b2f;
  --line:#d5dce0;
  --line-strong:#bcc8ce;
  --text:#101820;
  --muted:#5d6a73;
  --muted-2:#7a8790;
  --link:#0ea0ba;
  --link-hover:#2ab6cb;
  --accent:#0ea0ba;
  --accent-soft:#eef9fb;

  --radius:12px;
  --radius-pill:999px;
  --font-sans:"Inter", Arial, Helvetica, sans-serif;
  --font-display:"Cormorant Garamond", Georgia, "Times New Roman", serif;

  --container:1100px;
  --admin-width:1360px;
  --page-pad-x:24px;
}

.photo-converter-page{
  min-height:100vh;
  margin:0;
  color:var(--text);
  background:
    radial-gradient(900px 560px at 50% 0%, rgba(74,174,220,.11), transparent 62%),
    radial-gradient(740px 380px at 18% 10%, rgba(199,176,128,.08), transparent 58%),
    linear-gradient(180deg, #f1f1f1, #f5f5f5);
  background-color:#f1f1f1;
  font-family:var(--font-sans);
  font-size:14px;
  line-height:1.55;
  overflow-x:hidden;
}

.photo-converter-main{
  width:min(100%, var(--admin-width));
  margin:0 auto;
  padding:22px 22px 30px;
  display:grid;
  gap:18px;
  min-width:0;
}

.photo-page-top,
.photo-section{
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.photo-page-top{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.photo-page-copy{
  min-width:0;
}

.photo-page-copy h1{
  margin:0;
  font:500 24px/1.15 var(--font-display);
  letter-spacing:-.02em;
  color:#151515;
}

.photo-page-copy p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
  line-height:1.7;
}

.photo-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}

.photo-section-head h2{
  margin:0;
  font-size:16px;
  line-height:1.2;
  font-weight:500;
  color:#161616;
  font-family:var(--font-display);
}

.photo-picker-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.photo-btn,
.photo-convert-btn,
.photo-download-btn{
  min-height:34px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid var(--line-strong);
  background:#fff;
  color:var(--text);
  font-size:12px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.photo-btn:hover,
.photo-convert-btn:hover,
.photo-download-btn:hover{
  border-color:#7eb8c3;
  background:#fcfeff;
  color:var(--link);
}

.photo-btn:focus-visible,
.photo-convert-btn:focus-visible,
.photo-download-btn:focus-visible{
  outline:none;
  border-color:#7eb8c3;
  box-shadow:0 0 0 3px rgba(0,130,150,.12);
}

.photo-selection-note{
  margin-top:15px;
  min-height:40px;
  display:flex;
  align-items:center;
  color:var(--muted);
  padding:10px 0;
  font-size:12px;
  font-weight:500;
}

.photo-top-controls{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.photo-inline-field{
  min-width:170px;
  max-width:220px;
  flex:0 0 190px;
}

.photo-inline-field select{
  min-width:100%;
}

.field{
  display:grid;
  gap:6px;
  min-width:0;
}

.field label{
  font-size:11px;
  color:#46525b;
  font-weight:600;
}

.field select{
  width:100%;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  outline:none;
  box-shadow:none;
  font-size:12px;
  font-weight:500;
  appearance:none;
}

.field select:focus{
  border-color:#7eb8c3;
  box-shadow:0 0 0 3px rgba(0,130,150,.12);
}

.photo-action-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.photo-progress-wrap{
  margin-top:16px;
  display:grid;
  gap:8px;
}

.photo-progress-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.photo-progress-head span{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
}

.photo-progress-head strong{
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  color:#10223d;
}

.photo-progress-track{
  position:relative;
  width:100%;
  height:12px;
  border-radius:999px;
  background:#eef1f1;
  border:1px solid #dde4e4;
  overflow:hidden;
}

.photo-progress-fill{
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, var(--accent), #7cc8d5);
  transition:width .2s ease;
}

.photo-operations-wrap{
  margin-top:16px;
}

.photo-operations-head{
  margin-bottom:10px;
}

.photo-operations-box{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:transparent;
}

.photo-operation-empty,
.photo-operation-row{
  min-height:42px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid #e8edef;
}

.photo-operation-empty{
  display:flex;
  align-items:center;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.photo-operation-row:last-child{
  border-bottom:0;
}

.photo-operation-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#1b2328;
  font-size:12px;
  font-weight:500;
}

.photo-operation-status{
  color:#10223d;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}

.photo-download-row{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.page-kicker,
.section-kicker{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted-2);
  font-weight:600;
}

@media (max-width:980px){
  .photo-inline-field{
    flex:1 1 220px;
    max-width:none;
  }
}

@media (max-width:640px){
  :root{
    --page-pad-x:16px;
  }

  .photo-converter-main{
    padding:18px 16px 26px;
  }

  .photo-page-copy h1{
    font-size:20px;
  }

  .photo-picker-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .photo-btn,
  .photo-convert-btn,
  .photo-download-btn{
    width:100%;
  }

  .photo-progress-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .photo-operation-empty,
  .photo-operation-row{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
}

@media (max-width:518px){
  .photo-page-copy h1{
    font-size:18px;
  }
}