:root{
  --green:#36a96b;
  --green-dark:#245d42;
  --bg:#e8f2ea;
  --card:rgba(255,255,255,.48);
  --border:rgba(52,169,107,.18);
  --text:#1f3d2d;
  --muted:#6b7b73;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  height:100%;
  overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    linear-gradient(rgba(255,255,255,.18),rgba(255,255,255,.18)),
    url("/static/aion_background.png") center/cover no-repeat fixed;
}

button,input,textarea{font:inherit}
body{-webkit-text-size-adjust:100%}

.report-shell{
  height:100vh;
  overflow:hidden;
  padding:calc(env(safe-area-inset-top,0px) + 10px) 14px calc(env(safe-area-inset-bottom,0px) + 10px);
  display:flex;
  flex-direction:column;
}

.report-header{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  margin-bottom:10px;
  flex:0 0 auto;
}

.report-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
  flex:0 0 auto;
}

.report-logo{
  width:44px;
  height:44px;
  object-fit:contain;
  display:block;
}

.report-header-line{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
}

.report-city-label,
.report-header-title,
.report-sep{
  font-size:16px;
  font-weight:900;
  color:var(--green-dark);
  line-height:42px;
}

.report-city-label,
.report-header-title{
  display:inline-block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.report-main{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}

.report-card{
  height:100%;
  overflow:hidden;
  background:transparent;
  border:none;
  border-radius:26px;
  padding:8px 6px 10px;
  box-shadow:none;
}

.report-form{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.field-block{
  position:relative;
}

.field-label{
  margin-bottom:12px;
}

.category-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  transform:scale(.90);
  transform-origin:top center;
  margin:-6px -5% -12px;
}

.category-btn{
  min-height:54px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.72);
  color:#2d7adf;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.category-btn.active{
  background:rgba(54,169,107,.12);
  border-color:rgba(54,169,107,.45);
  color:var(--green-dark);
}

.mode-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:8px;
}

.mode-btn{
  min-height:52px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.72);
  color:var(--green-dark);
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.mode-btn.active{
  background:var(--green);
  color:#fff;
  border-color:transparent;
}

.geo-box{
  padding:10px;
  border:1px solid var(--border);
  border-radius:22px;
  background:rgba(255,255,255,.42);
}

.geo-btn{
  width:100%;
  min-height:52px;
  border:none;
  border-radius:18px;
  background:var(--green);
  color:#fff;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
}

.geo-status{
  margin-top:8px;
  font-size:12px;
  line-height:1.2;
  color:var(--muted);
  word-break:break-word;
}

.manual-address-block.hidden,
.address-suggest.hidden,
.hidden{
  display:none !important;
}

.search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 52px 52px;
  gap:8px;
  align-items:center;
}

.search-input{
  width:100%;
  min-height:52px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:15px;
  outline:none;
}

.search-clear-btn,
.search-mic-btn,
.desc-mic-btn{
  width:52px;
  height:52px;
  min-width:52px;
  min-height:52px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.9);
  color:var(--green-dark);
  font-size:24px;
  cursor:pointer;
}

.address-suggest{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:150px;
  overflow:auto;
}

.address-suggest-item{
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  font-size:13px;
  line-height:1.2;
  cursor:pointer;
}

.desc-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 52px;
  gap:8px;
  align-items:start;
}

.textarea-input{
  width:100%;
  min-height:132px;
  height:132px;
  padding:12px 14px;
  border-radius:22px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:16px;
  line-height:1.35;
  resize:none;
  outline:none;
  pointer-events:auto;
  touch-action:manipulation;
  -webkit-user-select:text;
  user-select:text;
  -webkit-appearance:none;
  appearance:none;
}

.char-counter{
  margin-top:4px;
  text-align:right;
  font-size:12px;
  color:var(--muted);
}

.photo-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.photo-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 12px;
  border:none;
  border-radius:18px;
  background:var(--green);
  color:#fff;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  user-select:none;
}

.photo-btn.secondary{
  background:rgba(255,255,255,.78);
  color:var(--green-dark);
  border:1px solid var(--border);
}

.photo-btn.disabled{
  opacity:.45;
  pointer-events:none;
}

.photo-file-name{
  margin-top:6px;
  font-size:12px;
  line-height:1.2;
  color:var(--muted);
  word-break:break-word;
}

.form-error,
.form-success{
  border-radius:14px;
  padding:8px 10px;
  font-size:12px;
  line-height:1.25;
}

.form-error{
  background:#fff2f2;
  color:#a33;
  border:1px solid rgba(165,43,43,.18);
}

.form-success{
  background:#f4fbf4;
  color:#13623f;
  border:1px solid rgba(19,98,63,.14);
}

.submit-wrap{
  margin-top:auto;
}

.submit-btn{
  width:100%;
  min-height:56px;
  border:none;
  border-radius:20px;
  background:var(--green);
  color:#fff;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(34,166,111,.16);
}

.submit-btn:disabled{
  opacity:.68;
  cursor:not-allowed;
}
