:root{
  --green:#36a96b;
  --green-dark:#245d42;
  --bg:#e8f2ea;
  --card:rgba(255,255,255,.34);
  --card-strong:rgba(255,255,255,.62);
  --border:rgba(52,169,107,.18);
  --text:#1f3d2d;
  --muted:#6b7b73;
  --shadow:0 12px 32px rgba(18,50,33,.10);
}

*{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,.12),rgba(255,255,255,.12)),
    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{
  font-size:16px;
  font-weight:900;
  color:var(--green-dark);
  line-height:42px;
  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:var(--card);
  border:1px solid rgba(255,255,255,.46);
  border-radius:28px;
  padding:14px 12px 14px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}

.report-form{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
  padding-right:2px;
}

.field-block{
  position:relative;
}

.field-label{
  display:block;
  margin-bottom:10px;
  font-size:14px;
  font-weight:900;
  color:var(--green-dark);
  letter-spacing:.01em;
}

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

.category-btn{
  min-height:52px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.46);
  color:#2d7adf;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,.03);
}

.category-btn.active{
  background:rgba(54,169,107,.10);
  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:50px;
  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;
  box-shadow:0 4px 10px rgba(0,0,0,.03);
}

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

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

.geo-btn{
  width:100%;
  min-height:50px;
  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.25;
  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) 48px 48px;
  gap:8px;
  align-items:center;
}

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

.search-clear-btn,
.search-mic-btn,
.desc-mic-btn{
  width:48px;
  height:48px;
  min-width:48px;
  min-height:48px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  color:var(--green-dark);
  font-size:22px;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,.03);
}

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

.address-suggest-item{
  padding:10px 12px;
  background:rgba(255,255,255,.95);
  border:1px solid var(--border);
  border-radius:16px;
  font-size:13px;
  line-height:1.25;
  cursor:pointer;
}

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

.textarea-input{
  width:100%;
  min-height:118px;
  height:118px;
  padding:12px 14px;
  border-radius:22px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.94);
  color:var(--text);
  font-size:15px;
  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:50px;
  padding:0 12px;
  border:none;
  border-radius:18px;
  background:var(--green);
  color:#fff;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  user-select:none;
  box-shadow:0 6px 14px rgba(54,169,107,.22);
}

.photo-btn.secondary{
  background:rgba(255,255,255,.82);
  color:var(--green-dark);
  border:1px solid var(--border);
  box-shadow:0 4px 10px rgba(0,0,0,.03);
}

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

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

.form-success,
.form-error{
  padding:10px 12px;
  border-radius:16px;
  font-size:13px;
  font-weight:800;
}

.form-success{
  background:rgba(232,245,233,.88);
  color:#1b5e20;
  border:1px solid rgba(46,125,50,.18);
}

.form-error{
  background:rgba(253,236,234,.90);
  color:#b71c1c;
  border:1px solid rgba(183,28,28,.14);
}

.submit-wrap{
  padding-top:4px;
  padding-bottom:4px;
}

.submit-btn{
  width:100%;
  min-height:54px;
  border:none;
  border-radius:20px;
  background:linear-gradient(180deg,#39b170 0%, #2f9a60 100%);
  color:#fff;
  font-size:15px;
  font-weight:900;
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(54,169,107,.22);
}

@media (max-width: 420px){
  .report-card{
    padding:12px 10px;
    border-radius:24px;
  }

  .report-logo{
    width:40px;
    height:40px;
  }

  .report-city-label,
  .report-header-title{
    font-size:15px;
  }

  .category-btn,
  .mode-btn,
  .geo-btn,
  .photo-btn{
    min-height:48px;
  }
}
